From sghosh at sghosh.org Wed Mar 1 06:00:31 2006 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 1 Mar 2006 00:00:31 -0500 (EST) Subject: nagios on VPN gateway: ping trouble In-Reply-To: <73eeca44.91e16174.819d300@m4500-00.uchicago.edu> References: <73eeca44.91e16174.819d300@m4500-00.uchicago.edu> Message-ID: On Tue, 28 Feb 2006, dick at uchicago.edu wrote: > greetz, > > i have successfully installed nagios-2.0b4p0-chroot and its related packages, > nagios-plugins-1.4.1 and nagios-web-2.0b4-chroot, on my home firewall/VPN > gateway that's running openbsd-3.8 release. i'm starting simple and doing a > check_ping on all my local machines (10.9.0/24 and 10.9.1/24 subnets), which is > working great and i can see their status under the nagios web interface. now > that i have check_ping working for my local machines, i want to do the same for > hosts at my remote location (10.0.0/24 and 10.0.1./24 subnets) that are under > the same VPN. > > however, i am not able to check_ping for 10.0.0.1, the remote VPN gateway, even > though i'm able to ping it from my home VPN gateway. since my home VPN gateway > has both a public IP, x.y.z.w, and a private IP, 10.9.0.1, i have to issue a > "ping -I 10.9.0.1 10.0.0.1" to ping the remote VPN gateway via the VPN, > otherwise the interface address transmitted falls outside my VPN subnet > (10.9/16) and the ping doesn't get routed through the VPN. i changed the > ping_syntax variable in cgi.cfg from "/bin/ping -n -c 5 $HOSTADDRESS$" to > "/bin/ping -I 10.9.0.1 -n -c 5 $HOSTADDRESS$" to try to remedy the problem, but > it hasn't done the trick. > > just to be clear, here is an text rendering of the situation: > > ######################### ############################# > # home VPN gw # # work VPN gw # > # pub. IP = x.y.z.w #--internet----# pub. IP = a.b.c.d # > # priv. IP = 10.9.0.1 # # priv. IP = 10.0.0.1 # > # VPN for 10.9/16 # # VPN for 10.0/16 # > ######################### ############################# > > am i not supposed to run nagios on such a gateway? i could move it to another > machine behind the gateway at home, but i would rather not for computing > resource reasons. any suggestions on how to successfully check_ping in this > situation would be appreciated. thx for reading. > > cheers, > jake > First off - thanks for a concise and detailed problem statement. I would like to point out that if both lan segments are in different address blocks, -I should not be necessary. The route table on the gateway should be correctly populated. ie. home vpn gateway should have a 1 hop route to work and a 1 hop route to ISP gateway. What is the output in Nagios (visible output) Remedies: Try a shell wrapper and capture the ping exit code. and use that as the wrapper's exit code. -- -sg ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xagonzalezm at gmail.com Wed Mar 1 12:25:25 2006 From: xagonzalezm at gmail.com (Alberto) Date: Wed, 1 Mar 2006 12:25:25 +0100 Subject: Nagiosgraph problem In-Reply-To: <7fa4b410602272315p145e2f7n500a39f78f811eb0@mail.gmail.com> References: <7fa4b410602270922x648f273csa486ca3417798a51@mail.gmail.com> <7fa4b410602272315p145e2f7n500a39f78f811eb0@mail.gmail.com> Message-ID: <7fa4b410603010325p10bbb581qea802156960d11f1@mail.gmail.com> if I define command in this way define command{ command_name process-service-perfdata command_line /usr/share/nagios/nagiosgraph/insert.pl "$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" command_line echo -e "$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" >> /tmp/graph.log } I get data on /tmp/graph.log 1141211466||c-220||FILESYSTEM||DISK OK - free space:||/=1386MB;3426;3829;0;4031 /aplicaciones=2447MB;3426;3829;0;4031 /boot=20MB;83;93;0;98 /datos=1122MB;3426 ;3829;0;4031 /log=379MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004 /var=1698MB;3426;3829;0;4031 /rinstall=9258MB;12850;14362;0;15118 1141211467||c-221||FILESYSTEM||DISK OK - free space:||/=1391MB;3426;3829;0;4031 /aplicaciones=2374MB;3426;3829;0;4031 /boot=20MB;83;93;0;98 /datos=1106MB;3426 ;3829;0;4031 /log=367MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004 /var=1707MB;3426;3829;0;4031 /rinstall=800MB;12850;14362;0;15118 If try to execute insert with this lines I dont get anything inside rrd and nagiosgraph.log: Wed Mar 1 12:14:12 2006 INSERT info: Input perfdata:/=2763MB;3426;3829;0;4031 /var=1102MB;3426;3829;0;4031 /var/run=0MB;8813;9850;0;10369 /tmp=1MB;8814;9851;0;10370 /aplicaciones=1870MB;16055;17944;0;18889 /datos=6200MB;16055;17944;0;18889 /log=1358MB;16055;17944;0;18889 Wed Mar 1 12:14:12 2006 INSERT info: Input servicedescr:FILESYSTEM Wed Mar 1 12:14:12 2006 INSERT info: Input output:DISK OK - free space: Wed Mar 1 12:14:12 2006 INSERT warn: perfdata not recognized Wed Mar 1 12:14:12 2006 INSERT debug: nagiosgraph exited If replace the echo in command and use insert.pl I dont get anything inside rrd folder neither any error in nagiosgraph.log On 2/28/06, Alberto wrote: > > Yes. It's called because if I rename it I get error 127 not found on > nagios.log. > > nagios doesnt generate any file inside rrd/ but if I manually run > insert.pl with user nagios I get files inside rrd/. > > I get this in nagiosgraph.log: > > Tue Feb 28 08:09:42 2006 CGI debug: @db= > Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in > /usr/share/nagios/nagiosgraph/rrd/: > Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -3024000 > -w 350 -h 100 -l 0 -u 100 > Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph > without contents > Tue Feb 28 08:09:42 2006 CGI debug: Config debug:5 > Tue Feb 28 08:09:42 2006 CGI debug: Config > logfile:/var/log/nagios/nagiosgraph.log > Tue Feb 28 08:09:42 2006 CGI debug: Config > rrddir:/usr/share/nagios/nagiosgraph/rrd/ > Tue Feb 28 08:09:42 2006 CGI debug: Config > mapfile:/usr/share/nagios/nagiosgraph/map > Tue Feb 28 08:09:42 2006 CGI debug: Config colorscheme:1 > Tue Feb 28 08:09:42 2006 CGI debug: Config heartbeat:10 > Tue Feb 28 08:09:42 2006 CGI debug: Config > perflog:/var/log/nagios/perfdata.log > Tue Feb 28 08:09:42 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool > Tue Feb 28 08:09:42 2006 CGI debug: @db= > Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in > /usr/share/nagios/nagiosgraph/rrd/: > Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -34560000 > -w 350 -h 100 -l 0 -u 100 > Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph > without contents > > I have this in nagios.cfg: > > process_performance_data=1 > service_perfdata_file=/var/log/nagios/perfdata.log > > service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$ > service_perfdata_file_mode=a > service_perfdata_file_processing_interval=30 > service_perfdata_file_processing_command=process-service-perfdata > > and this in command.cfg > > define command{ > command_name process-service-perfdata > command_line /usr/local/nagios/nagiosgraph/insert.pl > } > > > > > On 2/27/06, Hugo van der Kooij wrote: > > > > On Mon, 27 Feb 2006, Alberto wrote: > > > > > I get this in nagiosgraph.log: > > > > > > CGI error: RRDs::graph ERR can't make a graph without contents > > > > > > I get the blue screen of nagiosgraph but no images on it... what is > > the > > > probleam? I have no data on rrd/ folder but if I execute insert.plmanually > > > as nagios user I get date in the folder but if I delete it and run > > nagios it > > > doesnt generate rrd files. > > > > So what does your log tell you about storing the data? Does it attempt > > to > > create the RRD files? (Should it?) > > > > How did you add the insert.pl in your config? Is it called at all? > > > > Hugo. > > > > -- > > I hate duplicates. Just reply to the relevant mailinglist. > > hvdkooij at vanderkooij.org > > http://hvdkooij.xs4all.nl/ > > Don't meddle in the affairs of magicians, > > for they are subtle and quick to anger. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > language > > that extends applications into web and mobile media. Attend the live > > webcast > > and join the prime developer group breaking into this new coding > > territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From xagonzalezm at gmail.com Wed Mar 1 13:39:21 2006 From: xagonzalezm at gmail.com (Alberto) Date: Wed, 1 Mar 2006 13:39:21 +0100 Subject: Nagiosgraph problem In-Reply-To: <7fa4b410603010325p10bbb581qea802156960d11f1@mail.gmail.com> References: <7fa4b410602270922x648f273csa486ca3417798a51@mail.gmail.com> <7fa4b410602272315p145e2f7n500a39f78f811eb0@mail.gmail.com> <7fa4b410603010325p10bbb581qea802156960d11f1@mail.gmail.com> Message-ID: <7fa4b410603010439j36e3e256y2c463757fc0e1198@mail.gmail.com> I get rrd files generated setting this command with perl path define command{ command_name process-service-perfdata command_line /usr/bin/perl /usr/share/nagios/nagiosgraph/insert.pl } now I get the bluescreen from showcgi but with empty images. On 3/1/06, Alberto wrote: > > if I define command in this way > > define command{ > command_name process-service-perfdata > command_line /usr/share/nagios/nagiosgraph/insert.pl > "$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" > command_line echo -e > "$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" > >> /tmp/graph.log > } > > I get data on /tmp/graph.log > > 1141211466||c-220||FILESYSTEM||DISK OK - free > space:||/=1386MB;3426;3829;0;4031 /aplicaciones=2447MB;3426;3829;0;4031 > /boot=20MB;83;93;0;98 /datos=1122MB;3426 > ;3829;0;4031 /log=379MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004 > /var=1698MB;3426;3829;0;4031 /rinstall=9258MB;12850;14362;0;15118 > 1141211467||c-221||FILESYSTEM||DISK OK - free > space:||/=1391MB;3426;3829;0;4031 /aplicaciones=2374MB;3426;3829;0;4031 > /boot=20MB;83;93;0;98 /datos=1106MB;3426 > ;3829;0;4031 /log=367MB;3426;3829;0;4031 /dev/shm=0MB;3403;3803;0;4004 > /var=1707MB;3426;3829;0;4031 /rinstall=800MB;12850;14362;0;15118 > > If try to execute insert with this lines I dont get anything inside rrd > and nagiosgraph.log: > > Wed Mar 1 12:14:12 2006 INSERT info: Input > perfdata:/=2763MB;3426;3829;0;4031 /var=1102MB;3426;3829;0;4031 > /var/run=0MB;8813;9850;0;10369 /tmp=1MB;8814;9851;0;10370 > /aplicaciones=1870MB;16055;17944;0;18889 /datos=6200MB;16055;17944;0;18889 > /log=1358MB;16055;17944;0;18889 > Wed Mar 1 12:14:12 2006 INSERT info: Input servicedescr:FILESYSTEM > Wed Mar 1 12:14:12 2006 INSERT info: Input output:DISK OK - free space: > Wed Mar 1 12:14:12 2006 INSERT warn: perfdata not recognized > Wed Mar 1 12:14:12 2006 INSERT debug: nagiosgraph exited > > If replace the echo in command and use insert.pl I dont get anything > inside rrd folder neither any error in nagiosgraph.log > > > > On 2/28/06, Alberto wrote: > > > > Yes. It's called because if I rename it I get error 127 not found on > > nagios.log. > > > > nagios doesnt generate any file inside rrd/ but if I manually run > > insert.pl with user nagios I get files inside rrd/. > > > > I get this in nagiosgraph.log: > > > > Tue Feb 28 08:09:42 2006 CGI debug: @db= > > Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in > > /usr/share/nagios/nagiosgraph/rrd/: > > Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start -3024000 > > -w 350 -h 100 -l 0 -u 100 > > Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph > > without contents > > Tue Feb 28 08:09:42 2006 CGI debug: Config debug:5 > > Tue Feb 28 08:09:42 2006 CGI debug: Config > > logfile:/var/log/nagios/nagiosgraph.log > > Tue Feb 28 08:09:42 2006 CGI debug: Config > > rrddir:/usr/share/nagios/nagiosgraph/rrd/ > > Tue Feb 28 08:09:42 2006 CGI debug: Config > > mapfile:/usr/share/nagios/nagiosgraph/map > > Tue Feb 28 08:09:42 2006 CGI debug: Config colorscheme:1 > > Tue Feb 28 08:09:42 2006 CGI debug: Config heartbeat:10 > > Tue Feb 28 08:09:42 2006 CGI debug: Config > > perflog:/var/log/nagios/perfdata.log > > Tue Feb 28 08:09:42 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool > > Tue Feb 28 08:09:42 2006 CGI debug: @db= > > Tue Feb 28 08:09:42 2006 CGI info: Listing c%2D102_PING db files in > > /usr/share/nagios/nagiosgraph/rrd/: > > Tue Feb 28 08:09:42 2006 CGI info: RRDs::graph - -a PNG --start > > -34560000 -w 350 -h 100 -l 0 -u 100 > > Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph > > without contents > > > > I have this in nagios.cfg: > > > > process_performance_data=1 > > service_perfdata_file=/var/log/nagios/perfdata.log > > > > service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$ > > service_perfdata_file_mode=a > > service_perfdata_file_processing_interval=30 > > service_perfdata_file_processing_command=process-service-perfdata > > > > and this in command.cfg > > > > define command{ > > command_name process-service-perfdata > > command_line /usr/local/nagios/nagiosgraph/insert.pl > > } > > > > > > > > > > On 2/27/06, Hugo van der Kooij wrote: > > > > > > On Mon, 27 Feb 2006, Alberto wrote: > > > > > > > I get this in nagiosgraph.log: > > > > > > > > CGI error: RRDs::graph ERR can't make a graph without contents > > > > > > > > I get the blue screen of nagiosgraph but no images on it... what is > > > the > > > > probleam? I have no data on rrd/ folder but if I execute insert.plmanually > > > > as nagios user I get date in the folder but if I delete it and run > > > nagios it > > > > doesnt generate rrd files. > > > > > > So what does your log tell you about storing the data? Does it attempt > > > to > > > create the RRD files? (Should it?) > > > > > > How did you add the insert.pl in your config? Is it called at all? > > > > > > Hugo. > > > > > > -- > > > I hate duplicates. Just reply to the relevant mailinglist. > > > hvdkooij at vanderkooij.org > > > http://hvdkooij.xs4all.nl/ > > > Don't meddle in the affairs of magicians, > > > for they are subtle and quick to anger. > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > > language > > > that extends applications into web and mobile media. Attend the live > > > webcast > > > and join the prime developer group breaking into this new coding > > > territory! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mdash at juniper.net Wed Mar 1 16:44:37 2006 From: mdash at juniper.net (Mrutyunjaya Dash) Date: Wed, 1 Mar 2006 21:14:37 +0530 Subject: Configuring nagios to monitor remote host through snmp Message-ID: <0DB0FFEA6887E349861A3F6B40D71C3AACFD55@gaugeboson.jnpr.net> Hi Friends, Any body has configured nagios to monitor remote host through snmp. In my environment, I have certain number of servers on which I cannot install any plugins on it. But at the same time I have the requirement monitor the servers through nagios. I believe, monitoring through snmp does not require getting any plugins on the monitored hosts. If anybody had ever the requirement of this kind and come out of it with some solution. I would appreciate if you could share the information. Regards, Mrutyunjaya Dash -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Mar 1 17:10:31 2006 From: marc at ena.com (Marc Powell) Date: Wed, 1 Mar 2006 10:10:31 -0600 Subject: Configuring nagios to monitor remote host through snmp Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mrutyunjaya Dash > Sent: Wednesday, March 01, 2006 9:45 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Configuring nagios to monitor remote host through > snmp > > Hi Friends, > > Any body has configured nagios to monitor remote host through snmp. In my > environment, I have certain number of servers on which I cannot install > any plugins on it. But at the same time I have the requirement monitor the > servers through nagios. I believe, monitoring through snmp does not > require getting any plugins on the monitored hosts. > > If anybody had ever the requirement of this kind and come out of it with > some solution. I would appreciate if you could share the information. Yes certainly. There are a number of SNMP aware plugins included in the plugins distribution -- check_snmp - highly flexible; you provide OID's, pattern matches, etc other more specific plugins that utilize SNMP are -- check_hpjd check_breeze check_ifoperstatus check_ifstatus.pl check_wave.pl check_snmp_procs.pl check_temp_cpq check_snmp_process_monitor.pl check_snmp_printer.pl check_netapp.pl and others... There are also SNMP plugins here -- http://www.nagiosexchange.org/SNMP.51.0.html and of course, everyone's first go-to point for any question Google has lots to say as well -- http://www.google.com/search?hs=hzn&hl=en&lr=&client=firefox-a&rls=org.m ozilla%3Aen-US%3Aofficial&q=nagios+snmp+plugins&btnG=Search -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdash at juniper.net Wed Mar 1 17:42:17 2006 From: mdash at juniper.net (Mrutyunjaya Dash) Date: Wed, 1 Mar 2006 22:12:17 +0530 Subject: Configuring nagios to monitor remote host through snmp Message-ID: <0DB0FFEA6887E349861A3F6B40D71C3A03748C@gaugeboson.jnpr.net> Hi Marc, First of all thank you very much for replipying and providing certain information. I have still doubt what exactly I have to do on the monitored host side for snmp and on nagios server side. If you could explain me little elaboratly, I would really appreciate it. Regards, Dash -------------------------- Sent from my BlackBerry Wireless Handheld -----Original Message----- From: nagios-users-admin at lists.sourceforge.net To: nagios-users at lists.sourceforge.net Sent: Wed Mar 01 08:10:31 2006 Subject: RE: [Nagios-users] Configuring nagios to monitor remote host through snmp > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mrutyunjaya Dash > Sent: Wednesday, March 01, 2006 9:45 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Configuring nagios to monitor remote host through > snmp > > Hi Friends, > > Any body has configured nagios to monitor remote host through snmp. In my > environment, I have certain number of servers on which I cannot install > any plugins on it. But at the same time I have the requirement monitor the > servers through nagios. I believe, monitoring through snmp does not > require getting any plugins on the monitored hosts. > > If anybody had ever the requirement of this kind and come out of it with > some solution. I would appreciate if you could share the information. Yes certainly. There are a number of SNMP aware plugins included in the plugins distribution -- check_snmp - highly flexible; you provide OID's, pattern matches, etc other more specific plugins that utilize SNMP are -- check_hpjd check_breeze check_ifoperstatus check_ifstatus.pl check_wave.pl check_snmp_procs.pl check_temp_cpq check_snmp_process_monitor.pl check_snmp_printer.pl check_netapp.pl and others... There are also SNMP plugins here -- http://www.nagiosexchange.org/SNMP.51.0.html and of course, everyone's first go-to point for any question Google has lots to say as well -- http://www.google.com/search?hs=hzn&hl=en&lr=&client=firefox-a&rls=org.m ozilla%3Aen-US%3Aofficial&q=nagios+snmp+plugins&btnG=Search -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null N?HS^????X???'???u?? Hi Folks, I am having a very strange problem. I am moving nagios to a new server and updating to V2.0 (from V2.0b1), at the same time upgrading from nagios-plugins-1.4beta to nagios-plugins-1.4.2. The big difference, and I think the source of my problem, is that I am going from Debian Linux to Redhat Enterprise Linux. In a nutshell, "check_http --ssl" doesn't work for our servers which REQUIRE strong encryption. Examples: On our OLD Debian machine (everything is great): # ./check_http -V check_http (nagios-plugins 1.4-beta1) 1.79 # ./check_http -v -C 60 --ssl www.wellsfargo.com SSL seeding: OK OK - Certificate will expire on 08/19/2006 23:59. # ./check_http -v -C 60 --ssl my-web-server SSL seeding: OK OK - Certificate will expire on 08/14/2011 18:21. New Redhat Server: # ./check_http -V check_http (nagios-plugins 1.4.2) 1.81 # ./check_http -v -C 60 --ssl www.wellsfargo.com SSL seeding: OK OK - Certificate will expire on 08/19/2006 23:59. # ./check_http -v -C 120 --ssl my-web-server SSL seeding: OK CRITICAL - Cannot retrieve server certificate. This happens even if I compile version 1.79 on the Redhat box and try to run it. So, I figured it must be an ssl library problem...right? Nope. I grabbed the latest openssl, compiled it, and used it to build both versions of check_http, and got the exact same problem. I receive this error even when checking to make sure the https side is up and running: # ./check_http --ssl -v my-web-server SSL seeding: OK CRITICAL - Cannot retrieve server certificate. I am pretty sure it has to do with my requirement of strong encryption within my Apache server, but it works fine with my old setup. Has anyone else on the list run into this problem before?? Any help would be GREATLY appreciated! Thanks, Emmett -- ========= LexisNexis Examen, Inc. ========== Emmett Hogan Senior UNIX Administrator emmetth at examen.com === Outside Counsel Management Solutions === ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Wed Mar 1 20:14:10 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Wed, 1 Mar 2006 11:14:10 -0800 Subject: retry_check_interval issue/confusion Message-ID: <20060301191410.GB5113@think.alaya.net> In http://nagios.sourceforge.net/docs/2_0/xodtemplate.html it states: retry_check_interval: This directive is used to define the number of "time units" to wait before scheduling a re-check of the service. Services are rescheduled at the retry interval when the have changed to a non-OK state. Once the service has been retried max_attempts times without a change in its status, it will revert to being scheduled at its "normal" rate as defined by the check_interval value. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. "is used to define the number of "time units" to wait before scheduling a re-check of the service" What exactly does this mean? If a service check fails, then there is clearly a need to recheck the service. One would normally want to do a recheck of the service in question at a higher rate than the normal scheduled (a.k.a. "normal_check_interval" rate). Am I correct in this? If so, and if that is the purpose of retry_check_interval, then the above definition is wrong, because it states "number of "time units" to wait before scheduling a re-check". It does not say "number of "time units" to wait before re-checking". The difference here is that as defined it will wait retry_check_interval units of time and then only reschedule the check. Perhaps the confusion has to do with what it means to "schedule a check". I would think that in essence all future checks are "scheduled" in the sense that they are defined to take place at certain future times, as determined by their normal_check_interval and check_period definitions. But I am guessing that "schedule" in nagiosspeak actually means something analogous to placed into the queue for checking during the next available opportunity according to the current position of the service reaper. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Mar 1 20:28:29 2006 From: marc at ena.com (Marc Powell) Date: Wed, 1 Mar 2006 13:28:29 -0600 Subject: retry_check_interval issue/confusion Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of prosolutions at gmx.net > Sent: Wednesday, March 01, 2006 1:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] retry_check_interval issue/confusion > > > In http://nagios.sourceforge.net/docs/2_0/xodtemplate.html it states: > > retry_check_interval: This directive is used to define the number of > "time units" to wait before scheduling a re-check of the service. > Services are rescheduled at the retry interval when the have changed to > a non-OK state. Once the service has been retried max_attempts times > without a change in its status, it will revert to being scheduled at its > "normal" rate as defined by the check_interval value. Unless you've > changed the interval_length directive from the default value of 60, this > number will mean minutes. > > > "is used to define the number of "time units" to wait before scheduling a > re-check of the service" What exactly does this mean? If a service check > fails, then there is clearly a need to recheck the service. One would > normally want to do a recheck of the service in question at a higher rate > than the normal scheduled (a.k.a. "normal_check_interval" rate). Am I > correct in this? If so, and if that is the purpose of Yes. This is no different than nagios (re-)scheduling the next active check as part of its normal routines. Because you do want to perform checks more frequently than normal in an error state, nagios switches from using normal_check_interval to determine scheduling to using retry_check_interval. > retry_check_interval, then the above definition is wrong, because it > states "number of "time units" to wait before scheduling a re-check". It > does not say "number of "time units" to wait before re-checking". The > difference here is that as defined it will wait retry_check_interval units > of time and then only reschedule the check. It's correct. Under normal circumstances, Nagios performs a check. If that check returns OK then it will re-schedule the next check based on normal_check_interval. If the check returns non-OK then it will re-schedule the next check based on retry_check_interval. > Perhaps the confusion has to do with what it means to "schedule a > check". I would think that in essence all future checks are "scheduled" > in the sense that they are defined to take place at certain future > times, as determined by their normal_check_interval and check_period > definitions. But I am guessing that "schedule" in nagiosspeak actually This is a bad assumption. Nagios does not plan ahead when scheduling checks. The next check time is calculated only when the current check is completed. The only check planning that is done is for the initial checks on start and that's merely to spread them out so that all first checks don't happen at the same time. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Wed Mar 1 21:17:26 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Wed, 1 Mar 2006 12:17:26 -0800 Subject: retry_check_interval issue/confusion In-Reply-To: References: Message-ID: <20060301201726.GC5113@think.alaya.net> > > > > retry_check_interval: This directive is used to define the number of > > "time units" to wait before scheduling a re-check of the service. > > Services are rescheduled at the retry interval when the have changed Thanks for clarifing this for me. I think the wording above is a bit ambiguous and might be clearer if it simply said "the number of "time units" to wait before re-checking the service." Although I understand that, from an internal point of view in terms of how nagios is actually operating, the current way it is stated might more accurately reflect what is actually happening. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Casey.Scott at wizards.com Wed Mar 1 21:22:14 2006 From: Casey.Scott at wizards.com (Scott, Casey) Date: Wed, 1 Mar 2006 12:22:14 -0800 Subject: Passive Service Notifications Message-ID: <9A072150141F5C489DC92CFCB8C0FD490658F5A7@e2ksea2.wotc.wizards.com> I am attempting to configure Nagios to work with SNMP traps. As of now, I can write events to the Nagios external command file (/var/log/nagios/rw/nagio.cmd). Nagios notices these events, and logs them to the nagios.log. e.g. /var/log/nagios/rw/nagios.log contains: [1141242013] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;10.12.3.118;2;w32_time;W32Time Event I can't get Nagios to send out notifications as a result though. My service definition is like this: define service { name generic-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ use generic-service host_name * service_description TRAP is_volatile 1 check_period 24x7 contact_groups linux-admins passive_checks_enabled 1 active_checks_enabled 0 max_check_attempts 1 normal_check_interval 5 retry_check_interval 1 notification_interval 5 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 check_command check-host-alive } I am unclear on what the check_command needs to do in this case. It seems that it doesn't matter as long as it returns OK. Can someone help fill in the gaps here? What do I need to do to get Nagios to finish the task, and actually send a SERVICE ALERT out? Regards, Casey ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Wed Mar 1 22:02:08 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Wed, 1 Mar 2006 13:02:08 -0800 Subject: Need help with service failure recheck interval Message-ID: <20060301210208.GD5113@think.alaya.net> Using nagios 2.0b3 and have the following host and related service defined: define host{ use vip.template host_name ProdSystem alias Prod hostgroups Production check_command check-dummy!0!"See Service Detail for Status Information" address 172.16.1.10 } define service{ use vip.template host_name ProdSystem service_description test_client is_volatile 0 check_period Off_Peak max_check_attempts 3 normal_check_interval 1500 retry_check_interval 20 notification_interval 0 check_command test_client!111.111.111.111!9999!35 } test_client is a simple script that tests the connectivity of the custom service that at listening at 172.16.0.50. It is set to timeout and fail at 35 seconds. interval_length is set to 1, therefore normal_check_interval=1500 should be 1500s=25m and retry_check_interval=20 should be 20s. However last night test_client failed and gave initial notification of state CRITICAL at 00:37:21. Manually testing by me immediately after receiving this notification showed that the service was indeed back up therefore I am almost 100% certain that subsequent test_client checks by nagios would have succeeded. However, I did not receive an RECOVERY alert until 01:26:46, which is almost exactly 50 minutes after the initial CRITICAL alert. Also, I have another test for a similar service with identical parameters, and in that case it didn't send a RECOVERY alert until almost exactly 75 minutes after the CRITICAL alert. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Wed Mar 1 22:15:47 2006 From: tdondich at gmail.com (Taylor Dondich) Date: Wed, 1 Mar 2006 13:15:47 -0800 Subject: Fruity 1.0 Release Candidate 1 Is Out! Message-ID: <3d2eb72a0603011315q7fdc2ef9kc71885a9eada5a1@mail.gmail.com> Fruity, your favorite Nagios Configuration tool is in release candidate stage. At this point, a LOT of bugfixes have gone into this release. You can take a look at the bugfix list at the sourceforge page for more information regarding this releaes. Go download it today at: http://fruity.sf.net I've even made screenshots! Taylor Dondich ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ron at rongage.org Wed Mar 1 22:52:01 2006 From: ron at rongage.org (Ron Gage) Date: Wed, 01 Mar 2006 16:52:01 -0500 Subject: Can templates be cascaded together? Message-ID: <20060301165201.bxiwsu2oj1j48oc0@webmail.rongage.org> Can we cascade a template as in the following: define service{ name blah ... register 0 } define service{ name info use blah ... register 0 } define service{ name checkit use info ... } Why would I want to use such an arrangement? Simple: the "blah" service defines generic values I want for ALL service checks (enable_notifications, etc...). The "info" service defines generic values for each check type - check_ping for example (check_command, service description, etc...). Of course, "checkit" is where I define which service to check on which host. Would this work? -- Ron Gage (LPIC1 MCP A+ Net+) Westland, Michigan ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Mar 1 22:48:03 2006 From: marc at ena.com (Marc Powell) Date: Wed, 1 Mar 2006 15:48:03 -0600 Subject: Can templates be cascaded together? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ron Gage > Sent: Wednesday, March 01, 2006 3:52 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Can templates be cascaded together? > > Can we cascade a template as in the following: > > define service{ > name blah > ... > register 0 > } > define service{ > name info > use blah > ... > register 0 > } > define service{ > name checkit > use info > ... > } That's almost identical to the example usage in the documentation and should work as you expect - http://nagios.sourceforge.net/docs/2_0/templaterecursion.html (see Inheritance Chainging) " define host{ host_name bighost1 check_command check-host-alive notification_options d,u,r max_check_attempts 5 name hosttemplate1 } define host{ host_name bighost2 max_check_attempts 3 use hosttemplate1 name hosttemplate2 } define host{ host_name bighost3 use hosttemplate2 } " The above are chained definitions for real hosts (register 1 assumed) but it'll work for templates too I'm sure. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Wed Mar 1 22:48:53 2006 From: jperrin at gmail.com (Jim Perrin) Date: Wed, 1 Mar 2006 16:48:53 -0500 Subject: Can templates be cascaded together? In-Reply-To: <20060301165201.bxiwsu2oj1j48oc0@webmail.rongage.org> References: <20060301165201.bxiwsu2oj1j48oc0@webmail.rongage.org> Message-ID: <302ce8b50603011348w258335e3md6d7bd2c2bffa103@mail.gmail.com> > > Why would I want to use such an arrangement? Simple: the "blah" service defines > generic values I want for ALL service checks (enable_notifications, etc...). > The "info" service defines generic values for each check type - check_ping for > example (check_command, service description, etc...). Of course, "checkit" is > where I define which service to check on which host. > > Would this work? > > Sure. See "inheritance chaining" in the documentation http://nagios.sourceforge.net/docs/2_0/templaterecursion.html you did read them right? :-P -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Mar 1 22:48:11 2006 From: marc at ena.com (Marc Powell) Date: Wed, 1 Mar 2006 15:48:11 -0600 Subject: Need help with service failure recheck interval Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of prosolutions at gmx.net > Sent: Wednesday, March 01, 2006 3:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Need help with service failure recheck interval > > > Using nagios 2.0b3 and have the following host and related service > defined: > [removed host and service definitions. Thanks!] > test_client is a simple script that tests the connectivity of the custom > service that at listening at 172.16.0.50. It is set to timeout and fail > at 35 seconds. > > interval_length is set to 1, therefore normal_check_interval=1500 should > be 1500s=25m and retry_check_interval=20 should be 20s. However last > night test_client failed and gave initial notification of state CRITICAL > at 00:37:21. Manually testing by me immediately after receiving this > notification showed that the service was indeed back up therefore I am > almost 100% certain that subsequent test_client checks by nagios would > have succeeded. However, I did not receive an RECOVERY alert until > 01:26:46, which is almost exactly 50 minutes after the initial CRITICAL > alert. I would expect this to have been ~25 minutes. > Also, I have another test for a similar service with identical > parameters, and in that case it didn't send a RECOVERY alert until > almost exactly 75 minutes after the CRITICAL alert. Have you checked nagios.log to verify that your assumptions about the check results in both cases are accurate? We'd need those and related entries to know what's really going on, else we're just speculating. If you're not seeing sufficient log entries, make sure you've enabled log_ options in nagios.cfg. You may also want to consider enabling debug options at compile time for additional logging. As noted in nagios.cfg, using an interval_length other than 60 isn't common and isn't thoroughly tested. I for one have not experienced notification issues such as this using many versions of Netsaint/Nagios. Also, you should be using the 2.0 release now to make sure you're not hitting a bug that's already been fixed. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkoponick at redhawk.info Thu Mar 2 00:52:41 2006 From: mkoponick at redhawk.info (Mike Koponick) Date: Wed, 1 Mar 2006 15:52:41 -0800 Subject: Syslog - Nagios? Message-ID: <8C18BAD1F46B2245B0A08BCF1A823DD4109C63@raptor.redhawk.info> I would like to send Syslog information from a remote Nagios sensor to the Central Server via NSCA, since it's already in place. I'm trying to see if there is a feasible way to parse out the information I need, using something like SWATCH and send it to the Central Server, who should be able to send it to a MySQL server. I was thinking that I might be able to write the parsed out information to the Nagios command file, but I don't think that would work. My thinking is that if it was written to the Nagios command file that I would be able to send it the parsed out information via the Nagios process, but I might be WAY off base. Has anyone ever done anything like this before? Thanks in advance, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at lovedthanlost.net Thu Mar 2 03:39:29 2006 From: james at lovedthanlost.net (James Turnbull) Date: Thu, 02 Mar 2006 13:39:29 +1100 Subject: Syslog - Nagios? In-Reply-To: <8C18BAD1F46B2245B0A08BCF1A823DD4109C63@raptor.redhawk.info> References: <8C18BAD1F46B2245B0A08BCF1A823DD4109C63@raptor.redhawk.info> Message-ID: <44065AE1.9070607@lovedthanlost.net> Mike Koponick wrote: > > I would like to send Syslog information from a remote Nagios sensor to > the Central Server via NSCA, since it?s already in place. > > I?m trying to see if there is a feasible way to parse out the > information I need, using something like SWATCH and send it to the > Central Server, who should be able to send it to a MySQL server. > > I was thinking that I might be able to write the parsed out > information to the Nagios command file, but I don?t think that would > work. My thinking is that if it was written to the Nagios command file > that I would be able to send it the parsed out information via the > Nagios process, but I might be WAY off base. > > Has anyone ever done anything like this before? > > Thanks in advance, > > Mike > Yes - it's pretty easy. With syslog-NG you can write template output something like: destination d_facility_crit { pipe("/var/run/nagios.pipe" template("$HOST,$FACILITY,2,'$MSG'\n") template_escape(no)); }; The template being the data in a form that NSCA can read. The destination is a named pipe. Then echo the contents of the pipe into the send_nsca binary. Regards James Turnbull -- James Turnbull --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vincent at kenic.or.ke Thu Mar 2 12:08:37 2006 From: vincent at kenic.or.ke (Vincent Ngundi) Date: Thu, 02 Mar 2006 14:08:37 +0300 Subject: NRPE SSL Error Message-ID: <1141297717.3190.88.camel@vngundi> Hi All, I'm getting the following error when I run NRPE on a remote host: "CHECK_NRPE: Error - Could not complete SSL handshake." I have looked at the NAGIOS FAQ section and none of the posts seems to be of help. Anyone out there?? System: ------- FreeBSD 5.3 NAGIOS 2.0 NRPE 2.3 Apache 1.3.33 Regards, -Vincent ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thyes at gmx.net Thu Mar 2 12:31:03 2006 From: thyes at gmx.net (Frank Thyes) Date: Thu, 2 Mar 2006 12:31:03 +0100 Subject: NRPE SSL Error In-Reply-To: <1141297717.3190.88.camel@vngundi> References: <1141297717.3190.88.camel@vngundi> Message-ID: <20060302113103.GB35991@gator> Hi Vincent, +++ Vincent Ngundi [Thu, Mar 02, 2006 at 12:08:37PM CET]: > > I'm getting the following error when I run NRPE on a remote host: > > "CHECK_NRPE: Error - Could not complete SSL handshake." > > I have looked at the NAGIOS FAQ section and none of the posts seems to > be of help. Anyone out there?? Have you build the nrpe daemon with ssl? What does ldd nrpe say? Log enabled? Regards Frank -- A: Maybe because some people are too annoyed by top-posting. Q: Why do I not get an answer to my question(s)? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at dep.fem.unicamp.br Thu Mar 2 13:11:01 2006 From: daniel at dep.fem.unicamp.br (Daniel Carvalho) Date: Thu, 2 Mar 2006 09:11:01 -0300 Subject: nagios check-host-alive always down In-Reply-To: References: Message-ID: <4ed3d40d0603020411y6b384e4an3029867f41f6e456@mail.gmail.com> Hello Marc, thanks for your answer. I'm sorry to reply to you too late. Here in my country we were on holiday. The notification information is sent to an e-mail address that I especified on contacts.cfg. The web interface is not installed yet. Find attached some cfg files and the notification alert. Thanks and best regards ***** Nagios ***** Notification Type: PROBLEM Host: bud01 State: DOWN Address: 192.168.0.1 Info: /bin/ping -n -U -w 10 -c 1 192.168.0.1 Date/Time: Thu Mar 2 08:52:19 BRT 2006 On 2/24/06, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > > Sent: Friday, February 24, 2006 12:22 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] nagios check-host-alive always down > > > > Hi list > > > > > > > > I?m a new nagios user and running in some configuration problems. > > > > > > > > I installed nagios 1.3-14 and nagios-plugins 1.4-2.2, and configured > > hosts, hostgroup, etc. Everything works fine, but the notifications > > always come with host DOWN. What happend with nagios??? > > > This was sent to the mailing list 4 times. You might want to check your > mailer. > > Chances are nagios is doing exactly what you've told it to do. In order > for us to be able to help you troubleshoot this issue, you'll need to > provide us with more specific information about your configuration and the > problem. Does the host/service show down in the web interface? What is the > status information? Please show us an example host definition, service > definition, their associated command definitions and the notification > command definition that is used when you receive these bad notifications. > Any relevant 'error' output would be useful as well. As with any kind of > problem, it's hard to troubleshoot if you don't have specific information > about the problem. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hosts.cfg Type: application/octet-stream Size: 1632 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: services.cfg Type: application/octet-stream Size: 2562 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: checkcommands.cfg Type: application/octet-stream Size: 4479 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hostgroups.cfg Type: application/octet-stream Size: 813 bytes Desc: not available URL: From Rainer.Brunold at allianz.at Thu Mar 2 13:34:16 2006 From: Rainer.Brunold at allianz.at (Rainer.Brunold at allianz.at) Date: Thu, 2 Mar 2006 13:34:16 +0100 Subject: host config - action_url - launch external program [wd-vc] Message-ID: An HTML attachment was scrubbed... URL: From vincent at kenic.or.ke Thu Mar 2 13:51:59 2006 From: vincent at kenic.or.ke (Vincent Ngundi) Date: Thu, 02 Mar 2006 15:51:59 +0300 Subject: NRPE SSL Error In-Reply-To: <20060302113103.GB35991@gator> References: <1141297717.3190.88.camel@vngundi> <20060302113103.GB35991@gator> Message-ID: <1141303920.3190.93.camel@vngundi> Hi Frank, On Thu, 2006-03-02 at 12:31 +0100, Frank Thyes wrote: > Hi Vincent, > > +++ Vincent Ngundi [Thu, Mar 02, 2006 at 12:08:37PM CET]: > > > > I'm getting the following error when I run NRPE on a remote host: > > > > "CHECK_NRPE: Error - Could not complete SSL handshake." > > > > I have looked at the NAGIOS FAQ section and none of the posts seems to > > be of help. Anyone out there?? > > Have you build the nrpe daemon with ssl? What does ldd nrpe say? Log > enabled? > > Regards > Frank Thanks for your response. * Yes, I have compiled the nrep daemon with ssl. I ran ./configure --enable-ssl * ldd nrpe returns "ldd: nrpe: No such file or directory" Regards, -Vincent. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thyes at gmx.net Thu Mar 2 14:11:21 2006 From: thyes at gmx.net (Frank Thyes) Date: Thu, 2 Mar 2006 14:11:21 +0100 Subject: NRPE SSL Error In-Reply-To: <1141303920.3190.93.camel@vngundi> References: <1141297717.3190.88.camel@vngundi> <20060302113103.GB35991@gator> <1141303920.3190.93.camel@vngundi> Message-ID: <20060302131121.GA5611@gator> Hi Vincent, +++ Vincent Ngundi [Thu, Mar 02, 2006 at 01:51:59PM CET]: > > Thanks for your response. > > * Yes, I have compiled the nrep daemon with ssl. I ran > ./configure --enable-ssl > > * ldd nrpe returns "ldd: nrpe: No such file or directory" You have to specify the path to your nrpe binary! 1. Build nrpe 2. Copy the binary and alls plugins which nrpe should use to the host which you like to monitor. 3. Start the daemon on that host (For debugging purposes use nrpe -d -c /path/to/nrpe.cfg) enable debugging in nrpe.cfg and watch your logs. 4. Test if the daemon works from your server If you see output like: ./check_nrpe -H xxx.xxx.xxx .xxx NRPE v2.0 Nrpe works as expected. If not, try the README which is a really good starting point... Regards Frank -- Living on Earth may be expensive, but it includes an annual free trip around the Sun. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tim.stoop at gmail.com Thu Mar 2 14:14:57 2006 From: tim.stoop at gmail.com (Tim Stoop) Date: Thu, 2 Mar 2006 14:14:57 +0100 Subject: Hosts checks not done when there is no service configured? Message-ID: <5beee6a0603020514g17defcd3ocf0b05166b34a68c@mail.gmail.com> Hi there, I'm configuring Nagios and it seems that host-checks (check_command check-host-alive) aren't queued. I need to add a PING service on each host, to keep track of the uptime. Is this normal? I'd like to keep track of ISP routers at customers sites, so we can see if a fallout is caused by our devices or by the ISP. I'm using Nagios 1.3, the latest package from the stable Debian branche. -- Gegroet, Tim ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thyes at gmx.net Thu Mar 2 14:21:46 2006 From: thyes at gmx.net (Frank Thyes) Date: Thu, 2 Mar 2006 14:21:46 +0100 Subject: NRPE SSL Error In-Reply-To: <20060302131121.GA5611@gator> References: <1141297717.3190.88.camel@vngundi> <20060302113103.GB35991@gator> <1141303920.3190.93.camel@vngundi> <20060302131121.GA5611@gator> Message-ID: <20060302132146.GB5611@gator> +++ Frank Thyes [Thu, Mar 02, 2006 at 02:11:21PM CET]: > Hi Vincent, > > +++ Vincent Ngundi [Thu, Mar 02, 2006 at 01:51:59PM CET]: > > > > Thanks for your response. > > > > * Yes, I have compiled the nrep daemon with ssl. I ran > > ./configure --enable-ssl > > > > * ldd nrpe returns "ldd: nrpe: No such file or directory" > > You have to specify the path to your nrpe binary! > > 1. Build nrpe > 2. Copy the binary and alls plugins which nrpe should use to the > host which you like to monitor. > 3. Start the daemon on that host (For debugging purposes use nrpe -d -c > /path/to/nrpe.cfg) enable debugging in nrpe.cfg and watch your logs. > 4. Test if the daemon works from your server > > If you see output like: > > ./check_nrpe -H xxx.xxx.xxx .xxx > NRPE v2.0 > > Nrpe works as expected. If not, try the README which is a really > good starting point... addendum... If it doesnt work, try to build the binary on your monitoring host. You have to install the openssl package on each system. A other possibility ist to not create a dynamical executable. This binary can be used on each of your linux boxes. Regards Frank -- In the beginning was the word and the word was content-type: text/plain ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gwcook at arcadis-us.com Thu Mar 2 15:30:33 2006 From: gwcook at arcadis-us.com (Cook, Garry) Date: Thu, 2 Mar 2006 07:30:33 -0700 Subject: Hosts checks not done when there is no service configured? Message-ID: <38D6D515FC15924693F2640881AF46202DC91F@corpexbe2.arcadis-us.com> Yes, that's completely normal. Please read the fine manual at: http://nagios.sourceforge.net/docs/1_0/ Specifically, the Network Reachability portion of the Theory of Operations section: http://nagios.sourceforge.net/docs/1_0/networkreachability.html And the FAQ at: http://www.nagios.org/faqs/viewfaq.php?faq_id=39 Thanks, Garry -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Tim Stoop Sent: Thursday, March 02, 2006 6:15 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Hosts checks not done when there is no service configured? Hi there, I'm configuring Nagios and it seems that host-checks (check_command check-host-alive) aren't queued. I need to add a PING service on each host, to keep track of the uptime. Is this normal? I'd like to keep track of ISP routers at customers sites, so we can see if a fallout is caused by our devices or by the ISP. I'm using Nagios 1.3, the latest package from the stable Debian branche. -- Gegroet, Tim ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m at rtij.nl Thu Mar 2 16:00:22 2006 From: m at rtij.nl (Martijn Lievaart) Date: Thu, 2 Mar 2006 16:00:22 +0100 (CET) Subject: Syslog - Nagios? In-Reply-To: <8C18BAD1F46B2245B0A08BCF1A823DD4109C63@raptor.redhawk.info> References: <8C18BAD1F46B2245B0A08BCF1A823DD4109C63@raptor.redhawk.info> Message-ID: <54478.217.166.60.19.1141311622.squirrel@ma.rtij.nl> Mike Koponick zei: > I would like to send Syslog information from a remote Nagios sensor to > the Central Server via NSCA, since it's already in place. > > > > I'm trying to see if there is a feasible way to parse out the > information I need, using something like SWATCH and send it to the > Central Server, who should be able to send it to a MySQL server. > > > > I was thinking that I might be able to write the parsed out information > to the Nagios command file, but I don't think that would work. My > thinking is that if it was written to the Nagios command file that I > would be able to send it the parsed out information via the Nagios > process, but I might be WAY off base. > > > > Has anyone ever done anything like this before? I found swatch to be unreliable. Don't remember why, but I cooked up the following perl script. It sends mail and is hardwired for a certain event, but it should get you started. BTW you need gnu tail for this. #!/usr/bin/perl -w use warnings; use strict; $| = 1; my $p; open $p, "tail --follow=name /var/log/nagios/nagios.log |" or die "Cannot open pipe: $!"; while (<$p>) { /Warning:.*The service could not be found/ and do { use Mail::Sendmail; my %mail = ( To => '', From => 'nagioswatcher@', Subject => 'WARNING: unknown service result', Message => $_ ); sendmail(%mail) or die $Mail::Sendmail::error; }; } Cheers, M4 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 2 16:31:03 2006 From: marc at ena.com (Marc Powell) Date: Thu, 2 Mar 2006 09:31:03 -0600 Subject: nagios check-host-alive always down Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > Sent: Thursday, March 02, 2006 6:11 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] nagios check-host-alive always down {Disarmed} > {Fraud?} > > Hello Marc, thanks for your answer. > > I'm sorry to reply to you too late. Here in my country we were on holiday. > > The notification information is sent to an e-mail address that I > especified on contacts.cfg. The web interface is not installed yet. > > Find attached some cfg files and the notification alert. > > Thanks and best regards > > ***** Nagios ***** > > Notification Type: PROBLEM > Host: bud01 > State: DOWN > Address: 192.168.0.1 > Info: /bin/ping -n -U -w 10 -c 1 192.168.0.1 It would appear that /bin/ping is not executable by the nagios user. Try running the command in the Info as the nagios user. In some distributions, ping is only executable by root. You can modify that by giving /bin/ping suid permissions if it doesn't have them already -- # ls -al /bin/ping -rwxr-xr-x 1 root root 27860 Sep 29 13:28 /bin/ping # chmod u+s /bin/ping # ls -al /bin/ping -rwsr-xr-x 1 root root 27860 Sep 29 13:28 /bin/ping -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dick at uchicago.edu Thu Mar 2 16:51:28 2006 From: dick at uchicago.edu (dick at uchicago.edu) Date: Thu, 2 Mar 2006 09:51:28 -0600 Subject: nagios on VPN gateway: ping trouble Message-ID: <50325a4.92c3eac8.819d300@m4500-00.uchicago.edu> ---- Original message ---- >Date: Tue, 28 Feb 2006 20:07:27 -0500 >From: "Chet Luther" >Subject: Re: [Nagios-users] nagios on VPN gateway: ping trouble >To: "dick at uchicago.edu" > >On 2/28/06, dick at uchicago.edu wrote: >> i have successfully installed nagios-2.0b4p0-chroot and its related packages, >> nagios-plugins-1.4.1 and nagios-web-2.0b4-chroot, on my home firewall/VPN >> gateway that's running openbsd-3.8 release. i'm starting simple and doing a >> check_ping on all my local machines (10.9.0/24 and 10.9.1/24 subnets), which is >> working great and i can see their status under the nagios web interface. now >> that i have check_ping working for my local machines, i want to do the same for >> hosts at my remote location (10.0.0/24 and 10.0.1./24 subnets) that are under >> the same VPN. >> >> however, i am not able to check_ping for 10.0.0.1, the remote VPN gateway, even >> though i'm able to ping it from my home VPN gateway. since my home VPN gateway >> has both a public IP, x.y.z.w, and a private IP, 10.9.0.1, i have to issue a >> "ping -I 10.9.0.1 10.0.0.1" to ping the remote VPN gateway via the VPN, >> otherwise the interface address transmitted falls outside my VPN subnet >> (10.9/16) and the ping doesn't get routed through the VPN. i changed the >> ping_syntax variable in cgi.cfg from "/bin/ping -n -c 5 $HOSTADDRESS$" to >> "/bin/ping -I 10.9.0.1 -n -c 5 $HOSTADDRESS$" to try to remedy the problem, but >> it hasn't done the trick. >> >> just to be clear, here is an text rendering of the situation: >> >> ######################### ############################# >> # home VPN gw # # work VPN gw # >> # pub. IP = x.y.z.w #--internet----# pub. IP = a.b.c.d # >> # priv. IP = 10.9.0.1 # # priv. IP = 10.0.0.1 # >> # VPN for 10.9/16 # # VPN for 10.0/16 # >> ######################### ############################# >> >> am i not supposed to run nagios on such a gateway? i could move it to another >> machine behind the gateway at home, but i would rather not for computing >> resource reasons. any suggestions on how to successfully check_ping in this >> situation would be appreciated. thx for reading. > >Jake, > >Just add a route for the 10.0/16 on your home VPN gateway to the >proper interface so that the source interface is correct by default. > many thanks! issuing a "route add 10.0/16 10.9.0.1" on the home gateway did the trick. >-- >Chet Luther >chet.luther at gmail.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at dep.fem.unicamp.br Thu Mar 2 16:59:45 2006 From: daniel at dep.fem.unicamp.br (Daniel Carvalho) Date: Thu, 2 Mar 2006 12:59:45 -0300 Subject: nagios check-host-alive always down In-Reply-To: References: Message-ID: <4ed3d40d0603020759w49fcaef0ld534c5366259ba83@mail.gmail.com> Hi Marc, The command /bin/ping -n -U -w 10 -c 1 192.168.0.1 is executable for user nagios. I logged as nagios user and exec the command above and everythings is OK. The nagios machine is running CentOS 4.0. I installed nagios via yum. Thanks Daniel On 3/2/06, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > > Sent: Thursday, March 02, 2006 6:11 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] nagios check-host-alive always down > {Disarmed} > > {Fraud?} > > > > Hello Marc, thanks for your answer. > > > > I'm sorry to reply to you too late. Here in my country we were on > holiday. > > > > The notification information is sent to an e-mail address that I > > especified on contacts.cfg. The web interface is not installed yet. > > > > Find attached some cfg files and the notification alert. > > > > Thanks and best regards > > > > ***** Nagios ***** > > > > Notification Type: PROBLEM > > Host: bud01 > > State: DOWN > > Address: 192.168.0.1 > > Info: /bin/ping -n -U -w 10 -c 1 192.168.0.1 > > It would appear that /bin/ping is not executable by the nagios user. Try > running the command in the Info as the nagios user. In some > distributions, ping is only executable by root. You can modify that by > giving /bin/ping suid permissions if it doesn't have them already -- > > # ls -al /bin/ping > -rwxr-xr-x 1 root root 27860 Sep 29 13:28 /bin/ping > > # chmod u+s /bin/ping > > # ls -al /bin/ping > -rwsr-xr-x 1 root root 27860 Sep 29 13:28 /bin/ping > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Mar 2 17:10:31 2006 From: marc at ena.com (Marc Powell) Date: Thu, 2 Mar 2006 10:10:31 -0600 Subject: nagios check-host-alive always down {Disarmed} {Fraud?} Message-ID: Hmm. That's an unexpected result. The next step would be to go one level higher and execute nagios' check_ping as the nagios user -- /path/to/nagios/libexec/check_ping -H 192.168.0.1 -w 3000.0,80% -c 5000.0,100% -p 1 Do you have SELinux enabled? Have you modified the default policies? I'd look for 'avc denied' messages related to nagios in /var/log/messages just to be safe or, as root, run 'audit2allow -l -i /var/log/messages -v'. -- Marc Powell > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > Sent: Thursday, March 02, 2006 10:00 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] nagios check-host-alive always down {Disarmed} > {Fraud?} > > Hi Marc, > > The command /bin/ping -n -U -w 10 -c 1 192.168.0.1 is executable for user > nagios. I logged as nagios user and exec the command above and everythings > is OK. > > The nagios machine is running CentOS 4.0. I installed nagios via yum. > > Thanks > > Daniel > > > On 3/2/06, Marc Powell < marc at ena.com > wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net users-admin at lists.sourceforge.net> [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > > Sent: Thursday, March 02, 2006 6:11 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] nagios check-host-alive always down > {Disarmed} > > {Fraud?} > > > > Hello Marc, thanks for your answer. > > > > I'm sorry to reply to you too late. Here in my country we were on > holiday. > > > > The notification information is sent to an e-mail address that I > > especified on contacts.cfg. The web interface is not installed > yet. > > > > Find attached some cfg files and the notification alert. > > > > Thanks and best regards > > > > ***** Nagios ***** > > > > Notification Type: PROBLEM > > Host: bud01 > > State: DOWN > > Address: 192.168.0.1 > > Info: /bin/ping -n -U -w 10 -c 1 192.168.0.1 > > It would appear that /bin/ping is not executable by the nagios user. > Try > running the command in the Info as the nagios user. In some > distributions, ping is only executable by root. You can modify that > by > giving /bin/ping suid permissions if it doesn't have them already -- > > # ls -al /bin/ping > -rwxr-xr-x 1 root root 27860 Sep 29 13:28 /bin/ping > > # chmod u+s /bin/ping > > # ls -al /bin/ping > -rwsr-xr-x 1 root root 27860 Sep 29 13:28 /bin/ping > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at dep.fem.unicamp.br Thu Mar 2 17:31:49 2006 From: daniel at dep.fem.unicamp.br (Daniel Carvalho) Date: Thu, 2 Mar 2006 13:31:49 -0300 Subject: nagios check-host-alive always down {Disarmed} {Fraud?} In-Reply-To: References: Message-ID: <4ed3d40d0603020831i1d9816dfmfc7976e0b2c5fe6e@mail.gmail.com> Marc, The nagios users check_ping result is: PING OK - Packet loss = 0%, RTA = 0.07 ms The SELinux is not enabled because I installed ganglia monitor too. And there is no message like 'avc denied' in /var/log/message and the output of command audit2allow is blank. Thanks Daniel On 3/2/06, Marc Powell wrote: > > Hmm. That's an unexpected result. The next step would be to go one level > higher and execute nagios' check_ping as the nagios user -- > > /path/to/nagios/libexec/check_ping -H 192.168.0.1 -w 3000.0,80% -c > 5000.0,100% -p 1 > > Do you have SELinux enabled? Have you modified the default policies? I'd > look for 'avc denied' messages related to nagios in /var/log/messages > just to be safe or, as root, run 'audit2allow -l -i /var/log/messages > -v'. > > -- > Marc Powell > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > > Sent: Thursday, March 02, 2006 10:00 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] nagios check-host-alive always down > {Disarmed} > > {Fraud?} > > > > Hi Marc, > > > > The command /bin/ping -n -U -w 10 -c 1 192.168.0.1 is executable for > user > > nagios. I logged as nagios user and exec the command above and > everythings > > is OK. > > > > The nagios machine is running CentOS 4.0. I installed nagios via yum. > > > > Thanks > > > > Daniel > > > > > > On 3/2/06, Marc Powell < marc at ena.com > wrote: > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > users-admin at lists.sourceforge.net> [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > > > Sent: Thursday, March 02, 2006 6:11 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] nagios check-host-alive always > down > > {Disarmed} > > > {Fraud?} > > > > > > Hello Marc, thanks for your answer. > > > > > > I'm sorry to reply to you too late. Here in my country we were > on > > holiday. > > > > > > The notification information is sent to an e-mail address that > I > > > especified on contacts.cfg. The web interface is not installed > > yet. > > > > > > Find attached some cfg files and the notification alert. > > > > > > Thanks and best regards > > > > > > ***** Nagios ***** > > > > > > Notification Type: PROBLEM > > > Host: bud01 > > > State: DOWN > > > Address: 192.168.0.1 > > > Info: /bin/ping -n -U -w 10 -c 1 192.168.0.1 > > > > It would appear that /bin/ping is not executable by the nagios > user. > > Try > > running the command in the Info as the nagios user. In some > > distributions, ping is only executable by root. You can modify > that > > by > > giving /bin/ping suid permissions if it doesn't have them > already -- > > > > # ls -al /bin/ping > > -rwxr-xr-x 1 root root 27860 Sep 29 13:28 > /bin/ping > > > > # chmod u+s /bin/ping > > > > # ls -al /bin/ping > > -rwsr-xr-x 1 root root 27860 Sep 29 13:28 > /bin/ping > > > > -- > > Marc > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking > scripting > > language > > that extends applications into web and mobile media. Attend the > live > > webcast > > and join the prime developer group breaking into this new coding > > territory! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to > > /dev/null > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: From estair at ilm.com Thu Mar 2 18:03:25 2006 From: estair at ilm.com (Eli Stair) Date: Thu, 2 Mar 2006 09:03:25 -0800 Subject: host config - action_url - launch external program [wd-vc] Message-ID: <6E56E676C9D6A74EBC980144BC06A17D0614F2@mailbox03.lucas.alllucas.com> Well, if you're using IE* there are innumerable hacks you could exploit usefully in this scenario to do what you want :) Other than that, there are some functional Java SSH clients that you can have the URL load in your browser, or alternately use some server-side scripting to generate whatever you want. You're looking along those lines? /eli -----Original Message----- From: nagios-users-admin at lists.sourceforge.net on behalf of Rainer.Brunold at allianz.at Sent: Thu 3/2/2006 4:34 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] host config - action_url - launch external program [wd-vc] Hello nagios users ! I have a small question if anybody has configured a action_url for a host which launches a local program of the windows machine where you have your browser. I monitor several services of a host like http, https, ssh,cpu, .... If one of them appears in the service problems I open the host details and have just to click on the "extra host action" link and a local program like putty with the hostname as the parameter is launched. So I would get automatically a ssh session to that server. Any advice would be great, thanks, Rainer ******************************************************** Dieses E-Mail und allfaellig daran angeschlossene Anhaenge enthalten Informationen, die vertraulich und ausschliesslich fuer den (die) bezeichneten Adressaten bestimmt sind. Wenn Sie nicht der genannte Adressat sind, darf dieses E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen Personen zugaenglich gemacht, noch in anderer Weise verwertet werden. Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten wir Sie, dieses E-Mail und saemtliche angeschlossenen Anhaenge zu loeschen. ******************************************************** ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Mar 2 18:05:35 2006 From: marc at ena.com (Marc Powell) Date: Thu, 2 Mar 2006 11:05:35 -0600 Subject: nagios check-host-alive always down {Disarmed} {Fraud?} {Disarmed} {Fraud?} Message-ID: And that's even more unexpected. If you ran the test as the nagios user then you did exactly what nagios is doing. Do you have multiple copies of nagios running? Stop nagios, use ps to verify that all are dead and restart nagios. -- Marc > -----Original Message----- > From: dlcarvalho at gmail.com [mailto:dlcarvalho at gmail.com] On Behalf Of > Daniel Carvalho > Sent: Thursday, March 02, 2006 10:32 AM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] nagios check-host-alive always down {Disarmed} > {Fraud?} {Disarmed} {Fraud?} > > Marc, > > The nagios users check_ping result is: PING OK - Packet loss = 0%, RTA = > 0.07 ms > > The SELinux is not enabled because I installed ganglia monitor too. And > there is no message like 'avc denied' in /var/log/message and the output > of command audit2allow is blank. > > Thanks > > Daniel > > > On 3/2/06, Marc Powell wrote: > > Hmm. That's an unexpected result. The next step would be to go one > level > higher and execute nagios' check_ping as the nagios user -- > > /path/to/nagios/libexec/check_ping -H 192.168.0.1 -w 3000.0,80% -c > 5000.0,100% -p 1 > > Do you have SELinux enabled? Have you modified the default policies? > I'd > look for 'avc denied' messages related to nagios in > /var/log/messages > just to be safe or, as root, run 'audit2allow -l -i > /var/log/messages > -v'. > > -- > Marc Powell > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto: nagios- > users- > > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > > Sent: Thursday, March 02, 2006 10:00 AM > > To: nagios-users at lists.sourceforge.net users at lists.sourceforge.net> > > Subject: Re: [Nagios-users] nagios check-host-alive always down > {Disarmed} > > {Fraud?} > > > > Hi Marc, > > > > The command /bin/ping -n -U -w 10 -c 1 192.168.0.1 is executable > for > user > > nagios. I logged as nagios user and exec the command above and > everythings > > is OK. > > > > The nagios machine is running CentOS 4.0. I installed nagios via > yum. > > > > Thanks > > > > Daniel > > > > > > On 3/2/06, Marc Powell < marc at ena.com > > wrote: > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net nagios- > > users-admin at lists.sourceforge.net> [mailto:nagios-users- > > > admin at lists.sourceforge.net > ] On Behalf Of Daniel Carvalho > > > Sent: Thursday, March 02, 2006 6:11 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] nagios check-host-alive always > down > > {Disarmed} > > > {Fraud?} > > > > > > Hello Marc, thanks for your answer. > > > > > > I'm sorry to reply to you too late. Here in my country we > were > on > > holiday. > > > > > > The notification information is sent to an e-mail address > that > I > > > especified on contacts.cfg. The web interface is not > installed > > yet. > > > > > > Find attached some cfg files and the notification alert. > > > > > > Thanks and best regards > > > > > > ***** Nagios ***** > > > > > > Notification Type: PROBLEM > > > Host: bud01 > > > State: DOWN > > > Address: 192.168.0.1 > > > Info: /bin/ping -n -U -w 10 -c 1 192.168.0.1 > > > > It would appear that /bin/ping is not executable by the > nagios > user. > > Try > > running the command in the Info as the nagios user. In some > > distributions, ping is only executable by root. You can > modify > that > > by > > giving /bin/ping suid permissions if it doesn't have them > already -- > > > > # ls -al /bin/ping > > -rwxr-xr-x 1 root root 27860 Sep 29 13:28 > /bin/ping > > > > # chmod u+s /bin/ping > > > > # ls -al /bin/ping > > -rwsr-xr-x 1 root root 27860 Sep 29 13:28 > /bin/ping > > > > -- > > Marc > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking > scripting > > language > > that extends applications into web and mobile media. Attend > the > live > > webcast > > and join the prime developer group breaking into this new > coding > > territory! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and > OS > when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to > > /dev/null > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Peter at berghold.net Thu Mar 2 18:14:18 2006 From: Peter at berghold.net (Peter L. Berghold) Date: Thu, 02 Mar 2006 12:14:18 -0500 Subject: multiple templates for one definition? Message-ID: <440727EA.9030603@Berghold.Net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm not sure this has already been asked/answered and I haven't found it specifically in the documentation, but is these legal? define host { host_name a_host use host-template-a use host-template-b } define service { use a-host-template use generic-ping-template } In the case of the host definition I'm trying to put really generic standard parameters in one template, "group specific" templates. In the case of the service definition I'm trying to get away with defining the ping service ONCE and the host specific parameters in another template. The end result I'm after is a really clean configuration file set that's fairly easy to read. - -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Peter L. Berghold Peter at Berghold.Net "Those who fail to learn from history are condemned to repeat it." AIM: redcowdawg Yahoo IM: blue_cowdawg ICQ: 11455958 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org iD8DBQFEByfpUM9/01RIhaARAvW0AJwL44r8mxiY8by2U0vTyKPVPZMYsgCgtVHv Gb+474uQDLTqm03KLcqGp98= =OOEh -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: Peter.vcf Type: text/x-vcard Size: 192 bytes Desc: not available URL: From daniel at dep.fem.unicamp.br Thu Mar 2 18:23:50 2006 From: daniel at dep.fem.unicamp.br (Daniel Carvalho) Date: Thu, 2 Mar 2006 14:23:50 -0300 Subject: nagios check-host-alive always down {Disarmed} {Fraud?} {Disarmed} {Fraud?} In-Reply-To: References: Message-ID: <4ed3d40d0603020923r21ad47f5sda45712c022a0df9@mail.gmail.com> When I run as nagios user, everything works fine. And I have only one copy of nagios when I ran ps command. I stoped and restart nagios and only one service appeared. Thanks Daniel On 3/2/06, Marc Powell wrote: > > And that's even more unexpected. If you ran the test as the nagios user > then you did exactly what nagios is doing. Do you have multiple copies > of nagios running? Stop nagios, use ps to verify that all are dead and > restart nagios. > > -- > Marc > > > -----Original Message----- > > From: dlcarvalho at gmail.com [mailto:dlcarvalho at gmail.com] On Behalf Of > > Daniel Carvalho > > Sent: Thursday, March 02, 2006 10:32 AM > > To: Marc Powell > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] nagios check-host-alive always down > {Disarmed} > > {Fraud?} {Disarmed} {Fraud?} > > > > Marc, > > > > The nagios users check_ping result is: PING OK - Packet loss = 0%, RTA > = > > 0.07 ms > > > > The SELinux is not enabled because I installed ganglia monitor too. > And > > there is no message like 'avc denied' in /var/log/message and the > output > > of command audit2allow is blank. > > > > Thanks > > > > Daniel > > > > > > On 3/2/06, Marc Powell wrote: > > > > Hmm. That's an unexpected result. The next step would be to go > one > > level > > higher and execute nagios' check_ping as the nagios user -- > > > > /path/to/nagios/libexec/check_ping -H 192.168.0.1 -w 3000.0,80% > -c > > 5000.0,100% -p 1 > > > > Do you have SELinux enabled? Have you modified the default > policies? > > I'd > > look for 'avc denied' messages related to nagios in > > /var/log/messages > > just to be safe or, as root, run 'audit2allow -l -i > > /var/log/messages > > -v'. > > > > -- > > Marc Powell > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto: > nagios- > > users- > > > admin at lists.sourceforge.net] On Behalf Of Daniel Carvalho > > > Sent: Thursday, March 02, 2006 10:00 AM > > > To: nagios-users at lists.sourceforge.net > users at lists.sourceforge.net> > > > Subject: Re: [Nagios-users] nagios check-host-alive always > down > > {Disarmed} > > > {Fraud?} > > > > > > Hi Marc, > > > > > > The command /bin/ping -n -U -w 10 -c 1 192.168.0.1 is > executable > > for > > user > > > nagios. I logged as nagios user and exec the command above and > > everythings > > > is OK. > > > > > > The nagios machine is running CentOS 4.0. I installed nagios > via > > yum. > > > > > > Thanks > > > > > > Daniel > > > > > > > > > On 3/2/06, Marc Powell < marc at ena.com > > > wrote: > > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > nagios- > > > users-admin at lists.sourceforge.net> [mailto:nagios-users- > > > > admin at lists.sourceforge.net > > ] On Behalf Of Daniel Carvalho > > > > Sent: Thursday, March 02, 2006 6:11 AM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: Re: [Nagios-users] nagios check-host-alive > always > > down > > > {Disarmed} > > > > {Fraud?} > > > > > > > > Hello Marc, thanks for your answer. > > > > > > > > I'm sorry to reply to you too late. Here in my country > we > > were > > on > > > holiday. > > > > > > > > The notification information is sent to an e-mail > address > > that > > I > > > > especified on contacts.cfg. The web interface is not > > installed > > > yet. > > > > > > > > Find attached some cfg files and the notification > alert. > > > > > > > > Thanks and best regards > > > > > > > > ***** Nagios ***** > > > > > > > > Notification Type: PROBLEM > > > > Host: bud01 > > > > State: DOWN > > > > Address: 192.168.0.1 > > > > Info: /bin/ping -n -U -w 10 -c 1 192.168.0.1 > > > > > > It would appear that /bin/ping is not executable by the > > nagios > > user. > > > Try > > > running the command in the Info as the nagios user. In > some > > > distributions, ping is only executable by root. You can > > modify > > that > > > by > > > giving /bin/ping suid permissions if it doesn't have > them > > already -- > > > > > > # ls -al /bin/ping > > > -rwxr-xr-x 1 root root 27860 Sep 29 13:28 > > /bin/ping > > > > > > # chmod u+s /bin/ping > > > > > > # ls -al /bin/ping > > > -rwsr-xr-x 1 root root 27860 Sep 29 13:28 > > /bin/ping > > > > > > -- > > > Marc > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by xPML, a groundbreaking > > scripting > > > language > > > that extends applications into web and mobile media. > Attend > > the > > live > > > webcast > > > and join the prime developer group breaking into this > new > > coding > > > territory! > > > > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ::: Please include Nagios version, plugin version (-v) > and > > OS > > when > > > reporting any issue. > > > ::: Messages without supporting info will risk being > sent to > > > /dev/null > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking > scripting > > language > > that extends applications into web and mobile media. Attend the > live > > webcast > > and join the prime developer group breaking into this new coding > > territory! > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS > when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to > > /dev/null > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: From drussell at mpifix.com Thu Mar 2 18:55:42 2006 From: drussell at mpifix.com (Danny Russell) Date: Thu, 2 Mar 2006 10:55:42 -0700 Subject: Nagios action_url Problems Message-ID: <028B223BB24E5443A9784BBE1CC5EBE0A40029@Lisa.mpifix.com> Fellow Nagios Users, I am running Nagios 2.0 and I am trying to use the action_url for a host definition. It is only half working. Here is my def: http://nagios.host.com/rdp.php?ip=$HOSTADDRESS$&host_name=$HOSTNAME$ The link shows up as: http://nagios.host.com/rdp.php?ip=10.100.0.70 & Can the action_url have multiple Nagios Marco Variables? What should I be doing here? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhmartin at toger.us Thu Mar 2 19:41:06 2006 From: jhmartin at toger.us (Jason Martin) Date: Thu, 2 Mar 2006 10:41:06 -0800 Subject: multiple templates for one definition? In-Reply-To: <440727EA.9030603@Berghold.Net> References: <440727EA.9030603@Berghold.Net> Message-ID: <20060302184106.GO7611@mal.toger.us> On Thu, Mar 02, 2006 at 12:14:18PM -0500, Peter L. Berghold wrote: > In the case of the host definition I'm trying to put really generic A object cannot have multiple 'use' statements, but a template can inherit a template, allowing you to create a tree-like structure. -Jason Martin -- URA Redneck if you use more than one can of hairspray per week. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 213 bytes Desc: not available URL: From drussell at mpifix.com Thu Mar 2 19:48:56 2006 From: drussell at mpifix.com (Danny Russell) Date: Thu, 2 Mar 2006 11:48:56 -0700 Subject: Nagios action_url Problems Message-ID: <028B223BB24E5443A9784BBE1CC5EBE0A40068@Lisa.mpifix.com> There aren't any spaces in my config files. I switched around the url: http://nagios.host.com/rdp.php?host_name=$HOSTNAME$&ip=$HOSTADDRESS$ And now I get: http://nagios.host.com/rdp.php?host_name=Anderson& What's the special magic to get this to work? ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Thomas.Zimmer at oppenheim.de Sent: Thursday, March 02, 2006 11:24 AM To: nagios-users at lists.sourceforge.net Subject: AW: [Nagios-users] Nagios action_url Problems try it without trailing spaces in the ip adress that should work :) Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de -----Urspr?ngliche Nachricht----- Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Danny Russell Gesendet: Donnerstag, 2. M?rz 2006 18:56 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Nagios action_url Problems Fellow Nagios Users, I am running Nagios 2.0 and I am trying to use the action_url for a host definition. It is only half working. Here is my def: http://nagios.host.com/rdp.php?ip=$HOSTADDRESS$&host_name=$HOSTNAME$ The link shows up as: http://nagios.host.com/rdp.php?ip=10.100.0.70 & Can the action_url have multiple Nagios Marco Variables? What should I be doing here? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thomas.Zimmer at oppenheim.de Thu Mar 2 20:16:28 2006 From: Thomas.Zimmer at oppenheim.de (Thomas.Zimmer at oppenheim.de) Date: Thu, 2 Mar 2006 20:16:28 +0100 Subject: AW: Nagios action_url Problems Message-ID: <9A834A8DCEC68648B20701E1CDE109250295ED54@OKWPMXS01.de.sal-opp.net> and the hostname is without whitespaces, too? i have exactly this definition working on nagios 2.0b4: http:// :/nagiostest/cgi-bin/top.cgi?host=$HOSTNAME$&service =$SERVICEDESC$> :/nagiostest/cgi-bin/top.cgi?host=$HOSTNAME$&service=$SERVIC EDESC$ try the HOSTNAME rather the address, all without blanks Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de -----Urspr?ngliche Nachricht----- Von: Danny Russell [mailto:drussell at mpifix.com] Gesendet: Donnerstag, 2. M?rz 2006 19:49 An: Zimmer, Thomas (BB) Frankfurt/M.; nagios-users at lists.sourceforge.net Betreff: RE: [Nagios-users] Nagios action_url Problems There aren't any spaces in my config files. I switched around the url: http://nagios.host.com/rdp.php?host_name=$HOSTNAME$ &ip=$HOSTADDRESS$ And now I get: http://nagios.host.com/rdp.php?host_name=Anderson& What's the special magic to get this to work? _____ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Thomas.Zimmer at oppenheim.de Sent: Thursday, March 02, 2006 11:24 AM To: nagios-users at lists.sourceforge.net Subject: AW: [Nagios-users] Nagios action_url Problems try it without trailing spaces in the ip adress that should work :) Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de -----Urspr?ngliche Nachricht----- Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Danny Russell Gesendet: Donnerstag, 2. M?rz 2006 18:56 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Nagios action_url Problems Fellow Nagios Users, I am running Nagios 2.0 and I am trying to use the action_url for a host definition. It is only half working. Here is my def: http://nagios.host.com/rdp.php?ip=$HOSTADDRESS$ &host_name=$HOSTNAME$ The link shows up as: http://nagios.host.com/rdp.php?ip=10.100.0.70 & Can the action_url have multiple Nagios Marco Variables? What should I be doing here? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Zimmer, Thomas (Produktservices und Betrieb).vcf Type: application/octet-stream Size: 254 bytes Desc: not available URL: From Rainer.Brunold at allianz.at Thu Mar 2 20:45:54 2006 From: Rainer.Brunold at allianz.at (Rainer.Brunold at allianz.at) Date: Thu, 2 Mar 2006 20:45:54 +0100 Subject: Antwort: *****RE: host config - action_url - launch external program [wd-vc] Message-ID: An HTML attachment was scrubbed... URL: From dschlecht at doit.nv.gov Thu Mar 2 23:00:43 2006 From: dschlecht at doit.nv.gov (David Schlecht) Date: Thu, 2 Mar 2006 23:00:43 +0100 (CET) Subject: crash recovery Message-ID: <20060302220043.BA8314F40E3@desire.netways.de> Hi All I'm still debugging a problem with Schedule Downtime, but, until I get there, I'm working on restarting the Nagios process after a crash. I've considerd a shell script for this but it seems that inittab is a better solution. However, when using inittab, I get the dreaded "respawning too fast" message as inittab tries to restart the process as soon as the Nagios loader switches to daemon. Has anyone succeeded at loading Nagios from inittab? If so, how did you do it? What other restart solutions have you found? For what it's worth, I'm running Nagios 2.0b? on numerous flavors of SuSE on numerous hardware platforms. - David Schlecht (dschl) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Thu Mar 2 23:38:37 2006 From: al at its-lehmann.de (Arno Lehmann) Date: Thu, 02 Mar 2006 23:38:37 +0100 Subject: crash recovery In-Reply-To: <20060302220043.BA8314F40E3@desire.netways.de> References: <20060302220043.BA8314F40E3@desire.netways.de> Message-ID: <440773ED.7000401@its-lehmann.de> Hello, On 3/2/2006 11:00 PM, David Schlecht wrote: > Hi All > > ... > > I've considerd a shell script for this but it seems that inittab > is a better solution. However, when using inittab, I get the dreaded > "respawning too fast" message as inittab tries to restart the process > as soon as the Nagios loader switches to daemon. > > > > Has anyone succeeded at loading Nagios from inittab? If so, how > did you do it? > Haven't done it, but how about trying without the -d switch? Arno > > What other restart solutions have you found? > > > > For what it's worth, I'm running Nagios 2.0b? on numerous flavors > of SuSE on numerous hardware platforms. > > > > > > - David Schlecht (dschl) > > > > ----------------------- > > The mailing list archive is found here: > > http://www.nagiosexchange.org/nagios-users.34.0.html > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shoktai at gmail.com Fri Mar 3 08:18:14 2006 From: shoktai at gmail.com (Toto Capuccino) Date: Fri, 3 Mar 2006 08:18:14 +0100 Subject: *****RE: host config - action_url - launch external program [wd-vc] In-Reply-To: References: Message-ID: <619cf3c0603022318i102b4192m@mail.gmail.com> For windows servers, you got the Terminal Services Web, you can have a url that links to http://yourserver/TSWeb and then open a remote desktop session through internet explorer. 2006/3/2, Rainer.Brunold at allianz.at : > > Hi Eli, > > I'm using a mixed environment with linux and windows workstations. And > forefox on all. > That with the java ssh apps is a good idea. I will try it to see how it > works. > > Thanks for your ideas! > > Rainer > mit freundlichen Gruessen / with kind regards > Rainer Brunold > Technologie und Infrastruktur, Allianz Elementar Vers. AG > Hietzinger Kai 101-105, 1130 Vienna, Austria > > Dpt. IM/IV/TI, phn ++43/1/87807 ext. 60103 fax. ++43/1/87807/70103 od. 40246 > e-mail: Rainer.Brunold at allianz.at web: http://www.allianz.at > > -----nagios-users-admin at lists.sourceforge.net schrieb: ----- > > An: , > Von: "Eli Stair" > Gesendet von: nagios-users-admin at lists.sourceforge.net > Datum: 02.03.2006 18:03 > Thema: *****RE: [Nagios-users] host config - action_url - launch external > program [wd-vc] > > > Well, if you're using IE* there are innumerable hacks you could exploit > usefully in this scenario to do what you want :) Other than that, there are > some functional Java SSH clients that you can have the URL load in your > browser, or alternately use some server-side scripting to generate whatever > you want. > > You're looking along those lines? > > /eli > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net on behalf of > Rainer.Brunold at allianz.at > Sent: Thu 3/2/2006 4:34 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] host config - action_url - launch external program > [wd-vc] > > Hello nagios users ! > > I have a small question if anybody has configured a action_url for a host > which launches a local program of the windows machine where you have your > browser. > > I monitor several services of a host like http, https, ssh,cpu, .... If > one of them appears in the service problems I open the host details and have > just to click on the "extra host action" link and a local program like putty > with the hostname as the parameter is launched. So I would get automatically > a ssh session to that server. > > Any advice would be great, > > thanks, > Rainer > > > > > > ******************************************************** > Dieses E-Mail und allfaellig daran angeschlossene Anhaenge > enthalten Informationen, die vertraulich und > ausschliesslich fuer den (die) bezeichneten Adressaten > bestimmt sind. > Wenn Sie nicht der genannte Adressat sind, darf dieses > E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen > Personen zugaenglich gemacht, noch in anderer Weise > verwertet werden. > Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten > wir Sie, dieses E-Mail und saemtliche angeschlossenen > Anhaenge zu loeschen. > ******************************************************** > ------------------------------------------------------- This SF.Net email > is sponsored by xPML, a groundbreaking scripting language that extends > applications into web and mobile media. Attend the live webcast and join the > prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid > 0944&bid$1720&dat1642 _______________________________________________ > Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null > > > > > > ******************************************************** > Dieses E-Mail und allfaellig daran angeschlossene Anhaenge > enthalten Informationen, die vertraulich und > ausschliesslich fuer den (die) bezeichneten Adressaten > bestimmt sind. > Wenn Sie nicht der genannte Adressat sind, darf dieses > E-Mail samt allfaelliger Anhaenge von Ihnen weder anderen > Personen zugaenglich gemacht, noch in anderer Weise > verwertet werden. > Wenn Sie nicht der beabsichtigte Empfaenger sind, bitten > wir Sie, dieses E-Mail und saemtliche angeschlossenen > Anhaenge zu loeschen. > ******************************************************** > ------------------------------------------------------- This SF.Net email > is sponsored by xPML, a groundbreaking scripting language that extends > applications into web and mobile media. Attend the live webcast and join the > prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642_______________________________________________ Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Le bon sens est la chose du monde la mieux partag?e. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chertolyas.av at mgsm.ru Fri Mar 3 09:21:14 2006 From: chertolyas.av at mgsm.ru (=?KOI8-R?Q?=FE=C5=D2=D4=CF=CC=D1=D3_=E1=CE=C4=D2=C5=CA?=) Date: Fri, 03 Mar 2006 12:21:14 +0400 Subject: Distibuted monitoring Message-ID: <4407FC7A.6060409@mgsm.ru> Hello, nagios users! I try to tune up distributed monitoring in Nagios. On both servers, central and distributed, nsca plugin works correctly, messages received on central server, so i can see them in nsca daemon logs. But - messages does not appear on central nagios. What am I missing? Central server: rh9, Nagios 2.0b3 Distr. server: rhel3, Nagios 2.0 Thanks in advance! PS Sorry for my english, it's not my foreign language. -- Regards, Andrew V. Chertolyas | JSC MSS Povoljie IT engineer | Samara, Russia ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Fri Mar 3 11:04:00 2006 From: al at its-lehmann.de (Arno Lehmann) Date: Fri, 03 Mar 2006 11:04:00 +0100 Subject: Distibuted monitoring In-Reply-To: <4407FC7A.6060409@mgsm.ru> References: <4407FC7A.6060409@mgsm.ru> Message-ID: <44081490.80603@its-lehmann.de> Hello, On 3/3/2006 9:21 AM, ???????? ?????? wrote: > Hello, nagios users! > > I try to tune up distributed monitoring in Nagios. On both servers, > central and distributed, nsca plugin works correctly, messages received > on central server, so i can see them in nsca daemon logs. But - messages > does not appear on central nagios. What am I missing? Have you defined the services and hosts that you report from the distributed monitoring server on the central one, too, set up command processing, and accept passive check results for the services and hosts? > Central server: rh9, Nagios 2.0b3 > Distr. server: rhel3, Nagios 2.0 Some relevant parts of your configuration as well as the Nagios log when distributed checks arrive might be helpful. > Thanks in advance! > > PS > Sorry for my english, it's not my foreign language. Good enough for me, but I assume English *is* a foreign language for you ;-) Arno -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chertolyas.av at mgsm.ru Fri Mar 3 12:51:12 2006 From: chertolyas.av at mgsm.ru (Andrew V. Chertolyas) Date: Fri, 03 Mar 2006 15:51:12 +0400 Subject: Distibuted monitoring In-Reply-To: <44081490.80603@its-lehmann.de> References: <4407FC7A.6060409@mgsm.ru> <44081490.80603@its-lehmann.de> Message-ID: <44082DB0.1020008@mgsm.ru> Arno Lehmann wrote: > Have you defined the services and hosts that you report from the > distributed monitoring server on the central one, too, Hmm. So, if i have following configuration for one of hosts on distributed server, what do I need to write in configs on central server? The same? define host{ use generic-host host_name NSCA_test name NSCA_test alias NSCA_test address x.x.x.x check_command check-host-alive ...... } define service{ use generic-service host_name NSCA_test service_description PING ....... check_command check_ping!100.0,20%!500.0,60% } > set up command > processing, and accept passive check results for the services and hosts? Yes, it's done. > > > Good enough for me, but I assume English *is* a foreign language for you > ;-) Yeah, it's my fault (right?) :-))) Regards, Andrew V. Chertolyas | JSC MSS Povoljie IT engineer | Samara, Russia ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Zimmer at oppenheim.de Thu Mar 2 19:24:23 2006 From: Thomas.Zimmer at oppenheim.de (Thomas.Zimmer at oppenheim.de) Date: Thu, 2 Mar 2006 19:24:23 +0100 Subject: AW: Nagios action_url Problems Message-ID: <9A834A8DCEC68648B20701E1CDE109250295ED53@OKWPMXS01.de.sal-opp.net> try it without trailing spaces in the ip adress that should work :) Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de -----Urspr?ngliche Nachricht----- Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Danny Russell Gesendet: Donnerstag, 2. M?rz 2006 18:56 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Nagios action_url Problems Fellow Nagios Users, I am running Nagios 2.0 and I am trying to use the action_url for a host definition. It is only half working. Here is my def: http://nagios.host.com/rdp.php?ip=$HOSTADDRESS$ &host_name=$HOSTNAME$ The link shows up as: http://nagios.host.com/rdp.php?ip=10.100.0.70 & Can the action_url have multiple Nagios Marco Variables? What should I be doing here? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Zimmer, Thomas (Produktservices und Betrieb).vcf Type: application/octet-stream Size: 254 bytes Desc: not available URL: From engelenh at gmail.com Fri Mar 3 15:46:10 2006 From: engelenh at gmail.com (Hans Engelen) Date: Fri, 3 Mar 2006 15:46:10 +0100 Subject: Monitor Fileserver In-Reply-To: <741E24F735AED141B61948AC155E7DAA741A10@CORPDALLMSG05.na.srcp.net> References: <741E24F735AED141B61948AC155E7DAA741A10@CORPDALLMSG05.na.srcp.net> Message-ID: <5383c62b0603030646t47d791fcjd22132de0f6182ea@mail.gmail.com> Oh yeah been there done that ... Still should be enough to monitor the diskspace issue. There you go Josh, install one of the common SNMP toolsets (most linux distros have it already) and if unsure do an snmpwalk to see what infos you might get. Cheers, Hans On 2/27/06, Frank, Jason wrote: > > NetApp certainly has SNMP support. It's not wonderful, it only supports > v1. As a result, it has the usual problems with overflowing COUNTER32's. > But, it's fairly easy to set up and will let you monitor just about anything > you want. > > Jason > > ------------------------------ > *From:* nagios-users-admin at lists.sourceforge.net [mailto: > nagios-users-admin at lists.sourceforge.net] *On Behalf Of *Hans Engelen > *Sent:* Monday, February 27, 2006 4:01 PM > *To:* Nagios Users Mailinglist > *Subject:* Re: [Nagios-users] Monitor Fileserver > > Ah, i see. > > Question ... is there no SNMP access for these blackboxes ? Most > blackboxes do from my experience (though I usually steer clear of them so I > haven't used that many of them really). > > SNMP access will most likely allow you to poll a fair number of > interesting metrics. Free space, network utilization, load ... that kind of > thing. > > Worth checking into should my other suggestion fail. Incidentally don't > forget to give the service-user enough rights to do its work, i.e. on the > share and also for other checks it might have to do or you might get other > unexplained errors. Start out with adding it to the local admins group to > test the general idea first (and get a baseline check) then bump it down to > normal user and add rights as you need. But I am sure you know that drill. > > Cheers, > Hans > > > On 2/27/06, Josh wrote: > > > > Hans / Ryan, > > > > Thanks for your input... > > > > I thought the question might arise about "why don't I > > monitor the server housing the shares"... well, the > > problem there is the machine is a NetApp device (not > > running windows and won't allow me to install anything > > on it of course... it's an appliance). > > > > I've tried touching the /root/.smb/smb.conf... the > > problem is most likely related to the nagios user > > can't even see inside /root. > > > > I like your idea of mapping the drives under the > > nagios user and then running the service as the nagios > > user... I'll give that a shot. > > > > On a side note, I did try getting the nrpe checks to > > work on the windows server but am getting the > > following error: > > > > "CScript Error: Execution of the Windows Script Host > > failed. (Catastrophic failure)" > > > > A little research shows it is most likely related to a > > software security policy in place. Anyone on this > > list know what I need to change? > > > > Thanks again for all your help. > > > > Josh > > > > --- Hans Engelen wrote: > > > > > Dangit replied privately and not to the list, anyway > > > heres a forward. > > > > > > Also just checked the /root/.smb/smb.conf reference > > > is actually a workaround > > > for a problem with samba's libsmbclient in the perl > > > module > > > Filesys::SmbClient (used by check_smb_shares.pl). > > > Aparantly libsmbclient > > > segfaults if it does not exist. Therefor if it does > > > not exist the perl > > > module Filesys::SmbClient tries to make one (an > > > empty one) but has no > > > permission to do so from what you wrote. I supose > > > you could make it yourself > > > (touch /root/.smb/smb.conf; chmod og+r > > > /root/.smb/smb.conf). Maybe that will > > > solve your issues with that particular check > > > allowing you to use it to > > > monitor the remote shares you spoke of > > > > > > Cheers, > > > Hans > > > > > > > > > On 2/27/06, Hans Engelen wrote: > > > > > > > > For mapped drives that is quite normal since > > > mapped drives are, barring a > > > > small number of special cases, only accessible for > > > the user that did the > > > > actual mapping. It's the same problem you get for > > > other NT services trying > > > > to access a drive mapping made from another user. > > > Also most likely your > > > > pNSClient (or NC_Net or NSClient++) or whatever > > > agent you have running on > > > > the Windows box is running under the System > > > security setting. This security > > > > context is only valid for that windows box > > > internally and as such has no > > > > credentials to access anything beyond that > > > machine. This includes (but is > > > > not limited to) shares. > > > > > > > > Theoretically you could of course run your Nagios > > > Agent under an actual > > > > user account, log in interactively on that same > > > account and create a > > > > persistent mapping (net use * \\server\share > > > /persist:yes, if memory serves) > > > > to the shares in question. Since the service will > > > use the same profile when > > > > logging in that should solve the issue. But why > > > even monitor a remote disk > > > > in this way. Just install the Nagios Agent on the > > > server that houses the > > > > share and monitor it directly instead of > > > indirectly (with all the quirks and > > > > pitfalls that come with it). > > > > > > > > Of course in this case the check_smb_shares is a > > > solution too. As to why > > > > it insists on writing to /root/.smb/smb.conf is a > > > bit strange. Possibly this > > > > was defined somewhere in the check_smb_shares.pl > > > file. Open it up in a text > > > > editor and see. > > > > > > > > Cheers, > > > > Hans > > > > Cheers, > > > > Hans > > > > > > > > On 2/27/06, Ryan Wilcox < rwilcox at mobitrac.com> > > > wrote: > > > > > > > > > > yeah... i got the same error as you did with a > > > mapped drive. we aren't > > > > > monitoring any mapped drives right now, hence > > > the confusion. > > > > > > > > > > not sure about the mapped drives... anyone else > > > have an idea for josh? > > > > > > > > > > >> -----Original Message----- > > > > > >> From: Josh [mailto: josh2780 at yahoo.com] > > > > > >> Sent: Monday, February 27, 2006 11:38 AM > > > > > >> To: Ryan Wilcox; > > > nagios-users at lists.sourceforge.net > > > > > >> Subject: RE: [Nagios-users] Monitor > > > Fileserver > > > > > >> > > > > > >> Hmm... Got it working for local drives on > > > the windows > > > > > >> box but I get an "Invalid drive" error from > > > the > > > > > >> check_nt script when I check a drive that is > > > mapped. > > > > > >> Any way to check networked drives on that > > > windows box? > > > > > >> Or will I have to go with nrpe checks for > > > that? > > > > > >> > > > > > >> --- Ryan Wilcox wrote: > > > > > >> > > > > > >> > actually i am using check_nt right from the > > > nagios > > > > > >> > (fedora core 4) box. > > > > > >> > > > > > > >> > ./check_nt -H 10.0.0.32 -v USEDDISKSPACE > > > -lc -w 75 > > > > > >> > -c 90 > > > > > >> > > > > > > >> > output looks like: > > > > > >> > > > > > > >> > c:\ - total: 74.52 Gb - used: 52.98 Gb > > > (71%) - free > > > > > >> > 21.54 Gb (29%) | > > > > > >> > 'c:\ Used > > > Space'= 52.98Gb;55.89;67.07;0.00;74.52 > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > >> -----Original Message----- > > > > > >> > >> From: Josh [mailto: josh2780 at yahoo.com] > > > > > >> > >> Sent: Monday, February 27, 2006 10:57 AM > > > > > >> > >> To: Ryan Wilcox; > > > > > >> > nagios-users at lists.sourceforge.net > > > > > >> > >> Subject: RE: [Nagios-users] Monitor > > > Fileserver > > > > > >> > >> > > > > > >> > >> I'm assuming you are using NRPE and > > > executing the > > > > > >> > >> check_nt_disk from a windows machine... > > > I might > > > > > >> > end > > > > > >> > >> up doing that. > > > > > >> > >> > > > > > >> > >> I was attempting to use smb checks > > > directly from > > > > > >> > the > > > > > >> > >> linux box running Nagios. > > > > > >> > >> > > > > > >> > >> > > > > > >> > >> > > > > > >> > >> --- Ryan Wilcox < rwilcox at mobitrac.com> > > > wrote: > > > > > >> > >> > > > > > >> > >> > > > > > > >> > >> > > > > > > >> > >> > >> -----Original Message----- > > > > > >> > >> > >> From: > > > > > >> > nagios-users-admin at lists.sourceforge.net > > > > > >> > >> > [mailto: nagios-users- > > > > > >> > >> > >> admin at lists.sourceforge.net] On > > > Behalf Of > > > > > >> > Josh > > > > > >> > >> > >> Sent: Monday, February 27, 2006 > > > 10:19 AM > > > > > >> > >> > >> To: > > > nagios-users at lists.sourceforge.net > > > > > >> > >> > >> Subject: [Nagios-users] Monitor > > > Fileserver > > > > > >> > >> > >> > > > > > >> > >> > >> Does anyone have any suggestions as > > > to how > > > > > >> > to > > > > > >> > >> > monitor > > > > > >> > >> > >> network drive (fileserver) status > > > from > > > > > >> > Nagios? > > > > > >> > >> > I'm > > > > > >> > >> > >> trying to get the > > > check_smb_shares.pl (from > > > > > >> > >> > >> nagiosexchange.org) but keep > > > getting the > > > > > >> > >> > following > > > > > >> > >> > >> error when Nagios executes the > > > check: > > > > > >> > >> > >> > > > > > >> > >> > >> **ePN 'check_smb_shares.pl' Can't > > > create > > > > > >> > >> > >> /root/.smb/smb.conf : Permission > > > denied > > > > > >> > >> > >> > > > > > >> > >> > >> Not sure why when the Nagios binary > > > executes > > > > > >> > the > > > > > >> > >> > >> script it wants to use /root/ > > > (Nagios runs > > > > > >> > as the > > > > > >> > >> > user > > > > > >> > >> > >> nagios). > > > > > >> > >> > >> > > > > > >> > >> > >> Any other suggestions on monitoring > > > network > > > > > >> > >> > drives? > > > > > >> > >> > >> > > > > > >> > >> > > > > > > >> > >> > > > > > > === message truncated === > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > > language > > that extends applications into web and mobile media. Attend the live > > webcast > > and join the prime developer group breaking into this new coding > > territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > This message (including any attachments) may contain confidential or > otherwise privileged information and is intended only for the individual(s) > to which it is addressed. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and delete > this e-mail from your system. E-mail transmission cannot be guaranteed to be > secured or error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message or that arise as a result of e-mail transmission. > If verification is required please request a hard-copy version from the > sender. > > SOURCECORP, Incorporated > www.srcp.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen at totalflood.com Fri Mar 3 17:23:39 2006 From: stephen at totalflood.com (Stephen Carville) Date: Fri, 03 Mar 2006 08:23:39 -0800 Subject: Error in configuration file (NULL value) Message-ID: <44086D8B.8050500@totalflood.com> I've recently decdied to give nagios a try (been using Big Brother and Cricket for past several years) and right away I come up against a problem I cannot solve by just RT'ing the FM. When I do a configuration cehck (-v) using nagios v1.2 a Fedora Core 3 server I get the following error: Error in configuration file '/etc/nagios/nagios.cfg' - Line 33 (NULL value) Line 33 and subsequent: define timeperiod { timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } which, as far as I can tell, is perfectly legitimate! -- Stephen Carville Unix and Network Admin Nationwide Totalflood 6033 W. Century Blvd Los Angeles, CA 90045 310-342-3602 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Zimmer at oppenheim.de Fri Mar 3 17:32:35 2006 From: Thomas.Zimmer at oppenheim.de (Thomas.Zimmer at oppenheim.de) Date: Fri, 3 Mar 2006 17:32:35 +0100 Subject: AW: Error in configuration file (NULL value) Message-ID: <9A834A8DCEC68648B20701E1CDE109250295ED59@OKWPMXS01.de.sal-opp.net> You did not really mean "/etc/nagios/nagios.cfg" ? I assume, you do not have timeperiods defined there, right? By the way Nmagios 1.2 is really old, there are a l lot more features in newer versions... Greetz, Thomas. -----Urspr?ngliche Nachricht----- Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Stephen Carville Gesendet: Freitag, 3. M?rz 2006 17:24 An: Nagios Users Betreff: [Nagios-users] Error in configuration file (NULL value) I've recently decdied to give nagios a try (been using Big Brother and Cricket for past several years) and right away I come up against a problem I cannot solve by just RT'ing the FM. When I do a configuration cehck (-v) using nagios v1.2 a Fedora Core 3 server I get the following error: Error in configuration file '/etc/nagios/nagios.cfg' - Line 33 (NULL value) Line 33 and subsequent: define timeperiod { timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } which, as far as I can tell, is perfectly legitimate! -- Stephen Carville Unix and Network Admin Nationwide Totalflood 6033 W. Century Blvd Los Angeles, CA 90045 310-342-3602 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dschlecht at doit.nv.gov Fri Mar 3 17:33:13 2006 From: dschlecht at doit.nv.gov (David Schlecht) Date: Fri, 3 Mar 2006 17:33:13 +0100 (CET) Subject: crash recovery In-Reply-To: <440773ED.7000401@its-lehmann.de> References: <440773ED.7000401@its-lehmann.de> Message-ID: <20060303163313.D1F704F40E3@desire.netways.de> Hi Arno Your reply is most appreciated. This did, in fact, take care of the respawn-too-fast problem. I'm reviewing the logs and don't see any problems with it. Thanks. - David Schlecht (dschl) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=15969 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gorste at tesco.net Fri Mar 3 17:52:11 2006 From: gorste at tesco.net (Gordon Stewart) Date: Fri, 3 Mar 2006 16:52:11 +0000 Subject: failing CGI scripts Message-ID: <20060303165211.VFWX20857.aamta10-winn.ispmail.ntl.com@smtp.ntlworld.com> Dear List I have installed Nagios 1.3 and worked ok. I have an issue with the cgi though, They seam to give me a internal server error. In my error logs for apache it tells me (13)Permission denied: exec of '/usr/lib/cgi-bin/nagios/status.cgi' failed, referer: I have created a perl cgi script and it worked fine in the same directory. Has any one seen this before. What have I missed. Thanks Gordon Stewart ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Mar 3 18:31:09 2006 From: marc at ena.com (Marc Powell) Date: Fri, 3 Mar 2006 11:31:09 -0600 Subject: Error in configuration file (NULL value) Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Stephen Carville > Sent: Friday, March 03, 2006 10:24 AM > To: Nagios Users > Subject: [Nagios-users] Error in configuration file (NULL value) > > I've recently decdied to give nagios a try (been using Big Brother and > Cricket for past several years) and right away I come up against a > problem I cannot solve by just RT'ing the FM. When I do a configuration > cehck (-v) using nagios v1.2 a Fedora Core 3 server I get the following > error: > > Error in configuration file '/etc/nagios/nagios.cfg' - Line 33 (NULL > value) > > Line 33 and subsequent: > > define timeperiod { > timeperiod_name 24x7 > alias 24 Hours A Day, 7 Days A Week > sunday 00:00-24:00 > monday 00:00-24:00 > tuesday 00:00-24:00 > wednesday 00:00-24:00 > thursday 00:00-24:00 > friday 00:00-24:00 > saturday 00:00-24:00 > } > > which, as far as I can tell, is perfectly legitimate! Not for nagios.cfg. The only directives that go in nagios.cfg are liste here -- http://nagios.sourceforge.net/docs/1_0/configmain.html The default nagios.cfg should only need minor modifications and no additions. The directives above are only valid in Object Configuration Files (files defined as cfg_file in nagios.cfg). -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen at totalflood.com Fri Mar 3 20:51:37 2006 From: stephen at totalflood.com (Stephen Carville) Date: Fri, 03 Mar 2006 11:51:37 -0800 Subject: AW: Error in configuration file (NULL value) In-Reply-To: <9A834A8DCEC68648B20701E1CDE109250295ED59@OKWPMXS01.de.sal-opp.net> References: <9A834A8DCEC68648B20701E1CDE109250295ED59@OKWPMXS01.de.sal-opp.net> Message-ID: <44089E49.8050300@totalflood.com> Thomas.Zimmer at oppenheim.de wrote: > You did not really mean "/etc/nagios/nagios.cfg" ? Yes I did. The main configuration file is named 'nagios.cfg' isn't it? /etc/nagios is where FC3 puts the config files. > I assume, you do not have timeperiods defined there, right? I didn't create the file, it came that way with FC 3. I'm just trying t get nagios started so I can determine if it can replace and enhance what I already have. > By the way Nmagios 1.2 is really old, there are a l lot more features in > newer versions... I know it an older version but it what was already installed. I hope is enough to give me an idea of what nagios can do. If it works out and I decide to migrate, I'll upgrade to the latest version. > Greetz, Thomas. > > -----Urspr?ngliche Nachricht----- > Von: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Stephen > Carville > Gesendet: Freitag, 3. M?rz 2006 17:24 > An: Nagios Users > Betreff: [Nagios-users] Error in configuration file (NULL value) > > > I've recently decdied to give nagios a try (been using Big Brother and > Cricket for past several years) and right away I come up against a > problem I cannot solve by just RT'ing the FM. When I do a configuration > cehck (-v) using nagios v1.2 a Fedora Core 3 server I get the following > error: > > Error in configuration file '/etc/nagios/nagios.cfg' - Line 33 (NULL value) > > Line 33 and subsequent: > > define timeperiod { > timeperiod_name 24x7 > alias 24 Hours A Day, 7 Days A Week > sunday 00:00-24:00 > monday 00:00-24:00 > tuesday 00:00-24:00 > wednesday 00:00-24:00 > thursday 00:00-24:00 > friday 00:00-24:00 > saturday 00:00-24:00 > } > > which, as far as I can tell, is perfectly legitimate! > -- Stephen Carville Unix and Network Admin Nationwide Totalflood 6033 W. Century Blvd Los Angeles, CA 90045 310-342-3602 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Fri Mar 3 21:36:37 2006 From: jperrin at gmail.com (Jim Perrin) Date: Fri, 3 Mar 2006 15:36:37 -0500 Subject: AW: Error in configuration file (NULL value) In-Reply-To: <44089E49.8050300@totalflood.com> References: <9A834A8DCEC68648B20701E1CDE109250295ED59@OKWPMXS01.de.sal-opp.net> <44089E49.8050300@totalflood.com> Message-ID: <302ce8b50603031236r2b87000eg4214c8cd1798bd20@mail.gmail.com> > Yes I did. The main configuration file is named 'nagios.cfg' isn't it? > /etc/nagios is where FC3 puts the config files. > You may want to look at nagios 2.0, and you may want to look at some documentation that I've done up specifically for the rpm users of nagios. It's located here -> http://www.cognitive-dissonance.org/journal/2006/02/23/configuring-nagios-on-centos-and-rhel/ and while it's not technically for fc3, it should be distro generic enough to work for you. > > I assume, you do not have timeperiods defined there, right? > > I didn't create the file, it came that way with FC 3. I'm just trying t > get nagios started so I can determine if it can replace and enhance what > I already have. > > > By the way Nmagios 1.2 is really old, there are a l lot more features in > > newer versions... > > I know it an older version but it what was already installed. I hope is > enough to give me an idea of what nagios can do. If it works out and I > decide to migrate, I'll upgrade to the latest version. > > > Greetz, Thomas. > > > > -----Urspr?ngliche Nachricht----- > > Von: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Stephen > > Carville > > Gesendet: Freitag, 3. M?rz 2006 17:24 > > An: Nagios Users > > Betreff: [Nagios-users] Error in configuration file (NULL value) > > > > > > I've recently decdied to give nagios a try (been using Big Brother and > > Cricket for past several years) and right away I come up against a > > problem I cannot solve by just RT'ing the FM. When I do a configuration > > cehck (-v) using nagios v1.2 a Fedora Core 3 server I get the following > > error: > > > > Error in configuration file '/etc/nagios/nagios.cfg' - Line 33 (NULL value) > > > > Line 33 and subsequent: > > > > define timeperiod { > > timeperiod_name 24x7 > > alias 24 Hours A Day, 7 Days A Week > > sunday 00:00-24:00 > > monday 00:00-24:00 > > tuesday 00:00-24:00 > > wednesday 00:00-24:00 > > thursday 00:00-24:00 > > friday 00:00-24:00 > > saturday 00:00-24:00 > > } > > > > which, as far as I can tell, is perfectly legitimate! > > > > > -- > Stephen Carville > Unix and Network Admin > Nationwide Totalflood > 6033 W. Century Blvd > Los Angeles, CA 90045 > 310-342-3602 > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kylet at panix.com Fri Mar 3 22:01:46 2006 From: kylet at panix.com (Kyle Tucker) Date: Fri, 3 Mar 2006 16:01:46 -0500 (EST) Subject: check_snmp on Sol 10 mangling data Message-ID: <200603032101.k23L1kK00676@panix3.panix.com> Hi, I had check_snmp from the 1.4.2 plugins working great with Net-SNMP 5.2.2 on Solaris 8. I have built it all on Solaris 10 now for my production server and I get mangled data back from check_snmp going to the exact same snmpd client. Here's a good working Solaris 8 query from check_snmp and snmpget and it's output through 'od'. # /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -L authPriv \ -U Username -a MD5 -A abcdefg -X hijklmno -o .1.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116 SNMP OK - "extt running okay" | iso.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116="extt running okay";;;; 0000000 S N M P O K - " e x t t 0000020 r u n n i n g o k a y " | 0000040 i s o . 3 . 6 . 1 . 4 . 1 . 8 0 0000060 7 2 . 1 . 3 . 2 . 3 . 1 . 2 . 4 0000100 . 1 0 1 . 1 2 0 . 1 1 6 . 1 1 6 0000120 = " e x t t r u n n i n g o 0000140 k a y " ; ; ; ; \n snmpget -l AuthPriv -v 3 -u Username -a MD5 -A abcdefg -x DES -X hijklmno 192.168.16.11 .1.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116 NET-SNMP-EXTEND-MIB::nsExtendOutputFull."extt" = STRING: extt running okay And here's the mangled output on Solaris 10 /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -L authPriv \ -U Username -a MD5 -A abcdefg -X hijklmno -o .1.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116 SNMP OK - "extt running okay" | iso.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116="extt running okay"?p??Xiso.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116 = STRING: "extt running okay" ;;;; 0000000 S N M P O K - " e x t t 0000020 r u n n i n g o k a y " | 0000040 i s o . 3 . 6 . 1 . 4 . 1 . 8 0 0000060 7 2 . 1 . 3 . 2 . 3 . 1 . 2 . 4 0000100 . 1 0 1 . 1 2 0 . 1 1 6 . 1 1 6 0000120 = " e x t t r u n n i n g o 0000140 k a y " 377 " \b p 377 ? 017 X i s o . 0000160 3 . 6 . 1 . 4 . 1 . 8 0 7 2 . 1 0000200 . 3 . 2 . 3 . 1 . 2 . 4 . 1 0 1 0000220 . 1 2 0 . 1 1 6 . 1 1 6 = S 0000240 T R I N G : " e x t t r u n 0000260 n i n g o k a y " \n ; ; ; ; snmpget -l AuthPriv -v 3 -u Username -a MD5 -A abcdefg -x DES -X hijklmno 192.168.16.11 .1.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116 NET-SNMP-EXTEND-MIB::nsExtendOutputFull."extt" = STRING: extt running okay Oddly the output from the mangled one is 3 lines, 2 for the good one. Any thoughts what's going on or where to chase this? Thanks. -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephen at totalflood.com Fri Mar 3 23:16:14 2006 From: stephen at totalflood.com (Stephen Carville) Date: Fri, 03 Mar 2006 14:16:14 -0800 Subject: AW: Error in configuration file (NULL value) In-Reply-To: <302ce8b50603031236r2b87000eg4214c8cd1798bd20@mail.gmail.com> References: <9A834A8DCEC68648B20701E1CDE109250295ED59@OKWPMXS01.de.sal-opp.net> <44089E49.8050300@totalflood.com> <302ce8b50603031236r2b87000eg4214c8cd1798bd20@mail.gmail.com> Message-ID: <4408C02E.7070809@totalflood.com> Jim Perrin wrote: >>Yes I did. The main configuration file is named 'nagios.cfg' isn't it? >> /etc/nagios is where FC3 puts the config files. >> > > > You may want to look at nagios 2.0, and you may want to look at some > documentation that I've done up specifically for the rpm users of > nagios. It's located here -> > http://www.cognitive-dissonance.org/journal/2006/02/23/configuring-nagios-on-centos-and-rhel/ Thank you, I will take a look. -- Stephen Carville Unix and Network Admin Nationwide Totalflood 6033 W. Century Blvd Los Angeles, CA 90045 310-342-3602 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkoponick at redhawk.info Fri Mar 3 23:40:35 2006 From: mkoponick at redhawk.info (Mike Koponick) Date: Fri, 3 Mar 2006 14:40:35 -0800 Subject: Check_Log Message-ID: <8C18BAD1F46B2245B0A08BCF1A823DD4109C78@raptor.redhawk.info> I wanted to say thanks to all who responded to my question regarding parsing syslog files. Thanks! But, I was wondering about check_log. It seems that it would work for my environment. However I see that I have run into a snag of sorts. I'm parsing out Cisco PIX logs, and was able to parse out "Deny" type logs successfully. However, I'm only getting part of the syslog message. Here is what I receive in MySQL: (36) Mar 3 14:22:11 secure-primary Mar 03 2006 14:59:44: If I look at the Nagios log (External Commands) I also see the "chopped" line, so it appears to be occurring during the parsing process. Here is the syslog entry: Mar 3 14:22:11 secure-primary Mar 03 2006 14:59:44: %PIX-4-106023: Deny udp src inside:10.xxx.xxx.xxx/12346 dst EXTRANET:192.168.xx.xx/12345 by access-group "inside" It appears to be failing at the "%" on the syslog entry. Thanks in advance, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at lovedthanlost.net Sat Mar 4 03:32:50 2006 From: james at lovedthanlost.net (James Turnbull) Date: Sat, 04 Mar 2006 13:32:50 +1100 Subject: Check_Log In-Reply-To: <8C18BAD1F46B2245B0A08BCF1A823DD4109C78@raptor.redhawk.info> References: <8C18BAD1F46B2245B0A08BCF1A823DD4109C78@raptor.redhawk.info> Message-ID: <4408FC52.2060500@lovedthanlost.net> Mike Koponick wrote: > > I wanted to say thanks to all who responded to my question regarding > parsing syslog files. > > > > Thanks! > > > > But, I was wondering about check_log. It seems that it would work for > my environment. However I see that I have run into a snag of sorts. > > > Can you post the command/etc you are using check_log in to parse the log? Regards James Turnbull -- James Turnbull --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkoponick at redhawk.info Sat Mar 4 16:58:44 2006 From: mkoponick at redhawk.info (Mike Koponick) Date: Sat, 4 Mar 2006 07:58:44 -0800 Subject: Check_Log Message-ID: <8C18BAD1F46B2245B0A08BCF1A823DD4109C7A@raptor.redhawk.info> Sure. Here is the service check command: define service { use Sensor-Log hostgroup_name Firewalls service_description Check_Log check_command check_log!/var/log/messages!/usr/local/nagios/var/PIX-Deny.log!"Deny" register 1 } Here is the template that I am using: define service{ name Sensor-Log is_volatile 0 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 passive_checks_enabled 0 active_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 0 flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups Support notification_interval 0 notification_period 24x7 notification_options w,c notifications_enabled 0 register 0 } Here is my check command: define command { command_name check_log command_line $USER1$/check_log -F $ARG1$ -O $ARG2$ -q $ARG3$ Thanks! Mike -----Original Message----- From: James Turnbull [mailto:james at lovedthanlost.net] Sent: Friday, March 03, 2006 6:33 PM To: Mike Koponick Cc: Nagios Users Subject: Re: [Nagios-users] Check_Log Mike Koponick wrote: > > I wanted to say thanks to all who responded to my question regarding > parsing syslog files. > > > > Thanks! > > > > But, I was wondering about check_log. It seems that it would work for > my environment. However I see that I have run into a snag of sorts. > > > Can you post the command/etc you are using check_log in to parse the log? Regards James Turnbull -- James Turnbull --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerhard.Lausser at consol.de Sat Mar 4 17:36:21 2006 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Sat, 4 Mar 2006 17:36:21 +0100 Subject: AW: Check_Log In-Reply-To: <8C18BAD1F46B2245B0A08BCF1A823DD4109C7A@raptor.redhawk.info> References: <8C18BAD1F46B2245B0A08BCF1A823DD4109C7A@raptor.redhawk.info> Message-ID: <003101c63fa9$c7dadc70$a601000a@int.consol.de> Hi Mike, i have no answer to your question why the text is being cut off, maybe the string with the "%" inside ends up somewhere in a printf command, so the "%" is treated like part of a format string. Look at the notification command of contact_group Support for that. But what i saw is the is_volatile option in your template. You should set it to 1, because each time you read the logfile, you remove the cause of the alert by not reading the same lines of the logfile again. If you get an alert when you run check_log next time, then another match has been found which must be treated as a separate event. Greetings from munich, Gerhard > Here is the service check command: > > define service { > use Sensor-Log > hostgroup_name Firewalls > service_description Check_Log > check_command > check_log!/var/log/messages!/usr/local/nagios/var/PIX-Deny.log!"Deny" > register 1 > } > > Here is the template that I am using: > > define service{ > > name Sensor-Log > is_volatile 0 > max_check_attempts 1 > normal_check_interval 1 > retry_check_interval 1 > passive_checks_enabled 0 > active_checks_enabled 1 > check_period 24x7 > parallelize_check 1 > obsess_over_service 1 > check_freshness 0 > event_handler_enabled 0 > flap_detection_enabled 0 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > contact_groups Support > notification_interval 0 > notification_period 24x7 > notification_options w,c > notifications_enabled 0 > register 0 > } > > Here is my check command: > > define command { > command_name check_log > command_line $USER1$/check_log -F $ARG1$ -O $ARG2$ > -q $ARG3$ > > > Thanks! > > Mike > > > -----Original Message----- > From: James Turnbull [mailto:james at lovedthanlost.net] > Sent: Friday, March 03, 2006 6:33 PM > To: Mike Koponick > Cc: Nagios Users > Subject: Re: [Nagios-users] Check_Log > > Mike Koponick wrote: > > > > I wanted to say thanks to all who responded to my question > regarding > > parsing syslog files. > > > > > > > > Thanks! > > > > > > > > But, I was wondering about check_log. It seems that it > would work for > > my environment. However I see that I have run into a snag of sorts. > > > > > > > Can you post the command/etc you are using check_log in to > parse the log? > > Regards > > James Turnbull > > -- > James Turnbull > --- > Author of Pro Nagios 2.0 > (http://www.amazon.com/gp/product/1590596099/) > > Hardening Linux > (http://www.amazon.com/gp/product/1590594444/) > --- > PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language that extends applications into web and > mobile media. Attend the live webcast and join the prime > developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd___________________________ > ____________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mario at bortal.de Sat Mar 4 18:58:48 2006 From: mario at bortal.de (Mario Ohnewald) Date: Sat, 04 Mar 2006 18:58:48 +0100 Subject: check disk_free on windows client Message-ID: <1141495128.6123.8.camel@spiekey.lansin.ole> Hello List, whats the easiest way to check the disk free space on a windows box? All i can think of is via SNMP. Are there other possibilities? (except mounting the drive with smb and then use the unix tool check_diskfree). Thanks, Mario ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shoktai at gmail.com Sat Mar 4 21:26:21 2006 From: shoktai at gmail.com (Toto Capuccino) Date: Sat, 4 Mar 2006 21:26:21 +0100 Subject: check disk_free on windows client In-Reply-To: <1141495128.6123.8.camel@spiekey.lansin.ole> References: <1141495128.6123.8.camel@spiekey.lansin.ole> Message-ID: <619cf3c0603041226h5a517c4ct@mail.gmail.com> Hi, You can use nrpe and plugins http://www.nagiosexchange.org/NRPE_Plugins.66.0.html check also http://www.miwi-dv.com/nrpent/ but there are other way to monitor windows hosts, as with nsclient http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1[p_view]=65&tx_netnagext_pi1[page]=10%3A10 or WSC (you dont need to install anything then on Windows hosts) http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1[p_view]=360&tx_netnagext_pi1[page]=10%3A10 2006/3/4, Mario Ohnewald : > > Hello List, > > whats the easiest way to check the disk free space on a windows box? > All i can think of is via SNMP. > Are there other possibilities? (except mounting the drive with smb and > then use the unix tool check_diskfree). > > Thanks, Mario > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Le bon sens est la chose du monde la mieux partag?e. -------------- next part -------------- An HTML attachment was scrubbed... URL: From al at its-lehmann.de Sun Mar 5 22:58:16 2006 From: al at its-lehmann.de (Arno Lehmann) Date: Sun, 05 Mar 2006 22:58:16 +0100 Subject: Distibuted monitoring In-Reply-To: <44082DB0.1020008@mgsm.ru> References: <4407FC7A.6060409@mgsm.ru> <44081490.80603@its-lehmann.de> <44082DB0.1020008@mgsm.ru> Message-ID: <440B5EF8.5050905@its-lehmann.de> Hi, On 3/3/2006 12:51 PM, Andrew V. Chertolyas wrote: > Arno Lehmann wrote: > > Have you defined the services and hosts that you report from the > >> distributed monitoring server on the central one, too, > > > Hmm. So, if i have following configuration for one of hosts on > distributed server, what do I need to write in configs on central > server? The same? > > define host{ > use generic-host > host_name NSCA_test > name NSCA_test > alias NSCA_test > address x.x.x.x > check_command check-host-alive > ...... > } > > define service{ > use generic-service > host_name NSCA_test > service_description PING > ....... > check_command check_ping!100.0,20%!500.0,60% > } You need an identical definition as far as host and service name, description and alias are concerned. If you set up check_commands dependson your needs... the central check_commands can be used as a fall back when no distributed status reports come in - very ofen, you'll find variants of check_dummy with a status of WARNING or CRITICAL and some message saying that no reports came in. There are some more options you should understand - the manual chapter concerning distributed monitoring is rather helpful there. >> set up command processing, and accept passive check results for the >> services and hosts? > > > Yes, it's done. Arno -- IT-Service Lehmann al at its-lehmann.de Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Sun Mar 5 23:15:20 2006 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Mon, 6 Mar 2006 11:15:20 +1300 Subject: Using Nagios plugins via UCD-SNMPD Message-ID: <006501c640a2$4a63ec60$8ea8d882@438LG01sshi052> Hi, I thought I'd see if anyone has done this before. I'm installing the standard Nagios check_* plugins on a server with only the UCD SNMP daemon (IE, the one you get with Linux). This takes generic extensions, which are compatible with the Nagios plugins. So, I would add something like this to the snmpd.conf: exec procs /usr/local/nrpe/check_procs -w 100 -c 1000 and then the output of the plugin would be visible via SNMP. I can write a simple check plugin - check_ucd - that I can query with check_ucd -H hostname -v procs and it returns the plugin output and exit status. Of course, you cant pass any parameters. Has anyone tried this before? Am I reinventing a round rolling thing? Would people want a copy of check_ucd? Steve ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Sun Mar 5 02:00:04 2006 From: james at lovedthanlost.net (James Turnbull) Date: Sun, 05 Mar 2006 12:00:04 +1100 Subject: Check_Log - SOLUTION In-Reply-To: <8C18BAD1F46B2245B0A08BCF1A823DD4109C7B@raptor.redhawk.info> References: <8C18BAD1F46B2245B0A08BCF1A823DD4109C7B@raptor.redhawk.info> Message-ID: <440A3814.1000005@lovedthanlost.net> Mike Koponick wrote: > All, > > Thanks for all the help/information regarding this subject. > > I have found a solution that works in this case. > > The problem is that the "%" is a directive for printf. Since the "%" was > in the string, printf thinks it should be a directive. > > Since I had no need for the "%" in the output string, I removed it. > > I changed the check_log script with the following: > > OLD: > $ECHO "($count) $lastentry" > > NEW: > $ECHO "($count) $lastentry" | /bin/sed 's/%//' > > I'm sure there is probably a more efficient way of doing this, but it > was a quick fix for me. > I guess the easier way might be to escape the % in printf. Regards James Turnbull -- James Turnbull --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkoponick at redhawk.info Sat Mar 4 23:29:16 2006 From: mkoponick at redhawk.info (Mike Koponick) Date: Sat, 4 Mar 2006 14:29:16 -0800 Subject: Check_Log - SOLUTION Message-ID: <8C18BAD1F46B2245B0A08BCF1A823DD4109C7B@raptor.redhawk.info> All, Thanks for all the help/information regarding this subject. I have found a solution that works in this case. The problem is that the "%" is a directive for printf. Since the "%" was in the string, printf thinks it should be a directive. Since I had no need for the "%" in the output string, I removed it. I changed the check_log script with the following: OLD: $ECHO "($count) $lastentry" NEW: $ECHO "($count) $lastentry" | /bin/sed 's/%//' I'm sure there is probably a more efficient way of doing this, but it was a quick fix for me. Thanks! Mike -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mike Koponick Sent: Saturday, March 04, 2006 7:59 AM To: James Turnbull Cc: Nagios Users Subject: RE: [Nagios-users] Check_Log Sure. Here is the service check command: define service { use Sensor-Log hostgroup_name Firewalls service_description Check_Log check_command check_log!/var/log/messages!/usr/local/nagios/var/PIX-Deny.log!"Deny" register 1 } Here is the template that I am using: define service{ name Sensor-Log is_volatile 0 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 passive_checks_enabled 0 active_checks_enabled 1 check_period 24x7 parallelize_check 1 obsess_over_service 1 check_freshness 0 event_handler_enabled 0 flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups Support notification_interval 0 notification_period 24x7 notification_options w,c notifications_enabled 0 register 0 } Here is my check command: define command { command_name check_log command_line $USER1$/check_log -F $ARG1$ -O $ARG2$ -q $ARG3$ Thanks! Mike -----Original Message----- From: James Turnbull [mailto:james at lovedthanlost.net] Sent: Friday, March 03, 2006 6:33 PM To: Mike Koponick Cc: Nagios Users Subject: Re: [Nagios-users] Check_Log Mike Koponick wrote: > > I wanted to say thanks to all who responded to my question regarding > parsing syslog files. > > > > Thanks! > > > > But, I was wondering about check_log. It seems that it would work for > my environment. However I see that I have run into a snag of sorts. > > > Can you post the command/etc you are using check_log in to parse the log? Regards James Turnbull -- James Turnbull --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From simon.cusack at memetrics.com Mon Mar 6 01:05:48 2006 From: simon.cusack at memetrics.com (Simon Cusack) Date: Mon, 6 Mar 2006 11:05:48 +1100 Subject: Last Check column config on the Service Detail page question Message-ID: Hi all, I have been trying to find a way to configure the Last Check column (or something similar) to show the difference between the Last Check and the Last Updated field, ie the the amount of time passed since the last check was. Obviously this is only accurate to how often you update the Service Detail page but that is good enough. This would allow you with a glance to see how "current" all your checks are. Is there an option in the config files that would let me do this or would I have to make a change to status.c? And then recompile, etc. Regards, Simon. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at lovedthanlost.net Sun Mar 5 03:28:56 2006 From: james at lovedthanlost.net (James Turnbull) Date: Sun, 05 Mar 2006 13:28:56 +1100 Subject: check disk_free on windows client In-Reply-To: <1141495128.6123.8.camel@spiekey.lansin.ole> References: <1141495128.6123.8.camel@spiekey.lansin.ole> Message-ID: <440A4CE8.1020907@lovedthanlost.net> Mario Ohnewald wrote: > Hello List, > > whats the easiest way to check the disk free space on a windows box? > All i can think of is via SNMP. > Are there other possibilities? (except mounting the drive with smb and > then use the unix tool check_diskfree). > There are a number of check plug-ins and clients for Windows at http://www.nagiosexchange.org/Windows.49.0.html. Regards James Turnbull -- James Turnbull --- Author of Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) Hardening Linux (http://www.amazon.com/gp/product/1590594444/) --- PGP Key (http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x0C42DF40) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Sun Mar 5 06:16:46 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Sat, 4 Mar 2006 21:16:46 -0800 Subject: max_check_attempts, retry_check_interval, and notifications: confusion Message-ID: <20060305051646.GB3860@think.alaya.net> Hello, I am trying to configure the following behavior from nagios: 1. check a service every normal_check_interval 2. if service check fails, up the check rate to retry_check_interval 3. if 2 successive service checks fail, send notification 4. continue to check at retry_check_interval until service check succeeds and send notification my understanding is that once max_check_attempts is reached the service check interval returns to normal_check_interval even if the service is still down. but this does not make sense to me. if a service is down - it seems logical to up the check interval and try a couple more checks before sending an alert. but if the service has not recovered i don't want the check interval to go back to normal. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdaily at apparatus.net Mon Mar 6 01:51:35 2006 From: jdaily at apparatus.net (John R. Daily) Date: Sun, 5 Mar 2006 19:51:35 -0500 Subject: ePN: notification script Message-ID: <36587E8E-C05D-4F37-BE36-E7485AB0EE22@apparatus.net> I've been trying to get a Perl script to work as part of the notify- by-email command as defined in minimal.cfg, and it's finally dawned on me that the RPM package I'm using has the embedded Perl interpreter compiled in. (Is there a replacement for nagios -m in v2.0? The documentation still refers to it, but it doesn't seem to work.) Anyway, I'm not thrilled about having to deal with ePN for simple Perl utilities that aren't plugins, but I figured I could get it to work anyway. However, now I'm less confident. Here's the pipeline as originally defined in minimal.cfg: /usr/bin/printf ... | /bin/mail -s ... It's the printf portion of the pipeline that I've been attempting to replace with a Perl script. Once I realized that ePN was mucking things up I hoped that it would be sufficient to exit with an OK "error", but that was apparently wishful thinking. Does anyone know what the shortest functional ePN script might be? John R. Daily Apparatus, Inc. 912 N. Delaware St. Indianapolis, IN 46202 (317) 254-8488 Ext. 320 jdaily at apparatus.net ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rouilj at cs.umb.edu Mon Mar 6 02:09:22 2006 From: rouilj at cs.umb.edu (John P. Rouillard) Date: Sun, 05 Mar 2006 20:09:22 -0500 Subject: max_check_attempts, retry_check_interval, and notifications: confusion In-Reply-To: Your message of "Sat, 04 Mar 2006 21:16:46 PST." <20060305051646.GB3860@think.alaya.net> References: <20060305051646.GB3860@think.alaya.net> Message-ID: <200603060109.k2619YbW008571@mx1.cs.umb.edu> In message <20060305051646.GB3860 at think.alaya.net>, prosolutions at gmx.net writes: >I am trying to configure the following behavior from nagios: >1. check a service every normal_check_interval >2. if service check fails, up the check rate to retry_check_interval >3. if 2 successive service checks fail, send notification >4. continue to check at retry_check_interval until service check > succeeds and send notification Yup 4 is the tough one. >my understanding is that once max_check_attempts is reached the service >check interval returns to normal_check_interval even if the service >is still down. Correct. >but this does not make sense to me. The idea for the shortened retry check interval is to allow faster checks while the service is in a soft error state. This way you can run multiple (soft) checks within the time it would take to perform a single normal check. Once the hard state resumes, the "normal" check interval will resume. It would probably have been better if the intervals were called "hard_check_interval" and "soft_check_interval" rather than normal/retry since normal makes it sound like it should be used for the "normal" state which one hopes is "ok" 8-). >if a service is >down - it seems logical to up the check interval and try a couple more >checks before sending an alert. but if the service has not recovered i >don't want the check interval to go back to normal. You don't say what version of nagios you are using but there are a couple of ways to handle this. I believe I saw a patch for nagios 1.x that added another check_interval option. I want to say error_check_interval, but that's not getting any hits on google. I think it was on the nagios developer's list, but it could have been nagios-users. For nagios 2.x you can use the adaptive monitoring (see manual) command: 'CHANGE_NORMAL_SVC_CHECK_INTERVAL:interval' to change the interval from an event handler. I would suggest using the objects.cache file to determine the configured normal_check_interval and retry_check_interval. You may have to cache that info for your event handler as I am not sure if that file is re-written when the intervals change. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Mon Mar 6 06:56:09 2006 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Mon, 6 Mar 2006 16:56:09 +1100 Subject: ePN: notification script Message-ID: Dear Folks, I am writing to thank you for your letters and say, >-----Original Message----- >Message: 8 >To: Nagios-users at lists.sourceforge.net >From: "John R. Daily" >Date: Sun, 5 Mar 2006 19:51:35 -0500 >Subject: [Nagios-users] ePN: notification script > >I've been trying to get a Perl script to work as part of the notify- >by-email command as defined in minimal.cfg, and it's finally dawned >on me that the RPM package I'm using has the embedded Perl >interpreter compiled in. > I am using a home-cooked one with a spec file pretty well copied from the Dag Wieers EL3 RPM. Works fine for me. >(Is there a replacement for nagios -m in v2.0? The documentation >still refers to it, but it doesn't seem to work.) > >Anyway, I'm not thrilled about having to deal with ePN for simple >Perl utilities that aren't plugins, but I figured I could get it to >work anyway. However, now I'm less confident. > It can be a great pain in the proverbial to get going. However, the docco suggests (perldoc p1.pl) that you can enable some debug/verbose output to find where the plugin/Perl code is blowing up. Here's my debug p1.pl header. [sh1517 at acisf011 Nagios-Report-0.016]$ more /usr/bin/p1.pl_debug-epn package Embed::Persistent; # p1.pl for Nagios 2.0 use strict ; use Text::ParseWords qw(parse_line) ; use constant LEAVE_MSG => 1 ; use constant CACHE_DUMP => 2 ; use constant PLUGIN_DUMP => 4 ; use constant DEBUG_LEVEL => LEAVE_MSG ; use constant DEBUG_LOG_PATH => '/var/log/nagios/' ; # use constant DEBUG_LOG_PATH => './' ; You could try backing up your p1.pl, editing it as above and then restart Nagios (its prob good to have a second devel installation - in a second path for this). This will leave messages like Thu Feb 9 11:31:30 2006 eval_file: successfully compiled "/usr/lib/nagios/plugins/eventhandlers/global_host_event_handler acisf011 DOWN HARD 1139444865 1139445090 0 0". Thu Feb 9 11:31:30 2006 run_package: "/usr/lib/nagios/plugins/eventhandlers/global_host_event_handler acisf011 DOWN HARD 1139444865 1139445090 0 0" returning (3, "**ePN /usr/lib/nagios/plugins/eventhandlers/global_host_event_handler: "Can't open /usr/lib/nagios/p lugins/eventhandlers/global_event_handler-debug.log for output in append mode: Permission denied at (eval 1) line 61,". "). in the log. The other suggestion for debugging ePN probs is have a look at new_mini_epn. (Unfortch as I have just now found out, it doesn't appear to have the correct path to p1.pl in it so it doesn't work. This is very useful for debugging Perl scripts for use with ePN). >Here's the pipeline as originally defined in minimal.cfg: > > /usr/bin/printf ... | /bin/mail -s ... (I have been happily using such pipelines for years with ePN eg # 'notify-by-epager' command definition define command{ command_name notify-by-epager command_line /usr/bin/printf "%b" "$SERVICEDESC$ $HOSTNAME$ $SERVICESTATE$ $SERVICEOUTPUT$ $SHORTDATETIME$" | /bin/mail $ CONTACTPAGER$.sms ) > >It's the printf portion of the pipeline that I've been attempting to >replace with a Perl script. Once I realized that ePN was mucking >things up I hoped that it would be sufficient to exit with an OK >"error", but that was apparently wishful thinking. > You should only need to exit with a return code known to Nagios although it is customary to write a line of text. >Does anyone know what the shortest functional ePN script might be? #!/usr/bin/perl use lib q ; use utils ; print "In the beginning was the word.\n" ; exit $ERRORS{OK} ; or more tersely #!/usr/bin/perl print "Foo.\n"; exit 0; If you can't get it going, please post your problem script and someone should be able to spot the bug. Good luck. Yours sincerely. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Mon Mar 6 07:06:02 2006 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Mon, 6 Mar 2006 17:06:02 +1100 Subject: Nagios-users digest, Vol 1 #3076 - 9 msgs Message-ID: Dear Folks, >Message: 8 >To: Nagios-users at lists.sourceforge.net >From: "John R. Daily" >Date: Sun, 5 Mar 2006 19:51:35 -0500 >Subject: [Nagios-users] ePN: notification script > >I've been trying to get a Perl script to work as part of the notify- >by-email command as defined in minimal.cfg, and it's finally dawned >on me that the RPM package I'm using has the embedded Perl >interpreter compiled in. > >(Is there a replacement for nagios -m in v2.0? The documentation >still refers to it, but it doesn't seem to work.) > >Anyway, I'm not thrilled about having to deal with ePN for simple >Perl utilities that aren't plugins, but I figured I could get it to >work anyway. However, now I'm less confident. > Give this a try with your Perl alternative to printf. 1 cd into /usr/bin (if RHEL; Nag bin path otherwise). 2 run new_mini_epn from there (the path to p1.pl should be set in the new_mini_epn binary but is not). (new_mini_epn has readline support so command line history and edit work ok.) eg [sh1517 at acisf011 bin]$ ./new_mini_epn plugin command line: /usr/lib/nagios/plugins/check_rootport -H 10.0.254.168 embedded perl plugin return code and output was: 0 & Ok. No topology change: root port of 10.0.254.168 has not changed from that expected: 1. See Current spanning tree graph. plugin command line: /usr/lib/nagios/plugins/check_rootport -H 10.0.254.168 embedded perl plugin return code and output was: 0 & Ok. No topology change: root port of 10.0.254.168 has not changed from that expected: 1. See Current spanning tree graph. plugin command line: /usr/lib/nagios/plugins/check_rootport -H 10.0.254.168 embedded perl plugin return code and output was: 0 & Ok. No topology change: root port of 10.0.254.168 has not changed from that expected: 1. See Current spanning tree graph. plugin command line: /usr/lib/nagios/plugins/check_rootport -H 10.0.254.168 embedded perl plugin return code and output was: 0 & Ok. No topology change: root port of 10.0.254.168 has not changed from that expected: 1. See Current spanning tree graph. plugin command line: q embedded perl compiled plugin q with error: **ePN failed to open "q": "No such file or directory" at p1.pl line 168. - skipping plugin plugin command line: That's all folks. [sh1517 at acisf011 bin]$ This is repeatedly running a Perl plugin check_rootport (simulating reuse by ePN). It will display probs either 1 at compile time (ePN has some funny limits. See the mod_perl docco for more info). 2 at run time. Good luck. Yours sincerely. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giovanni.clemente at mail.ing.unibo.it Mon Mar 6 09:41:04 2006 From: giovanni.clemente at mail.ing.unibo.it (Giovanni Clemente) Date: Mon, 6 Mar 2006 09:41:04 +0100 Subject: [newbie] nrpe security Message-ID: Hello, I would know if there's a way to provide authentication in nrpe without resorting to tunnels. As far as I know, nrpe supports strong encryption but no authentication (not even in a weak sense, e.g. a private key hard-coded in the client and the coupled public key in the server). Thank you, Giovanni ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tony at srishtisoft.com Mon Mar 6 12:14:18 2006 From: tony at srishtisoft.com (Tony John) Date: Mon, 06 Mar 2006 16:44:18 +0530 Subject: SMS Sending Problem Message-ID: <440C198A.4000504@srishtisoft.com> Hello everybody, I am using nagios to monitor our intranet. For this I have configured nagios with the minimal configuration and tested. Its working fine and I am getting mails whenever some system goes down. Now I want to configure SMS sending utilities too. I have a DSL connection. I have downloaded and configured sms_client. But when i tried to test sms_client it has thrown some error as follows / [root at tony libmodem-1.3]# sms_client 9986490187 'Hello Tony' Dialing SMSC 0640900139... ERROR: MODEM: stat() Failed Ensure that the device entry '/dev/eth' exists If you want to use a different device, change the value of 'MDM_device' in '/etc/sms/sms_modem' to that device. Total Elapsed Time: 0 Seconds [root at tony libmodem-1.3]# /Since I am in a LAN i have a proxy server. Is there any other utility which can be used to send SMS through DSL lines. Or any way is there solve the problem. Please help me out. Any help would be highly appreciated. -- Thanks&Regards, Tony John Software Engineer Sristhi Software Pvt. Ltd. L-174, 6th Sector, HSR Layout, Bangalore - 560 034, India. Cell: +91 9986490187 Tel: +91 80 4110 9060/61/62 Ext: 254 url: www.srishtisoft.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kylet at panix.com Mon Mar 6 12:43:07 2006 From: kylet at panix.com (Kyle Tucker) Date: Mon, 6 Mar 2006 06:43:07 -0500 (EST) Subject: check_snmp on Sol 10 mangling data In-Reply-To: <200603032101.k23L1kK00676@panix3.panix.com> References: <200603032101.k23L1kK00676@panix3.panix.com> Message-ID: <200603061143.k26Bh7j28507@panix1.panix.com> I just want to add that snmpget returns a good clean string on both Solaris 8 and 10. I also copied over and ran the check_snmp that I built (and runs well) on Solaris 8 on the Solaris 10 system and it too returns the garbage strings. So I'm at a total loss as to what about Solaris 10 that would cause such behavior, but it's bad enough that I cannot use check_snmp dependably. > I had check_snmp from the 1.4.2 plugins working great with=20 > Net-SNMP 5.2.2 on Solaris 8. I have built it all on Solaris 10 now=20 > for my production server and I get mangled data back from check_snmp > going to the exact same snmpd client.=20 > > Here's a good working Solaris 8 query from check_snmp and snmpget and it'= > s > output through 'od'. > > # /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -L auth= > Priv \ > -U Username -a MD5 -A abcdefg -X hijklmno -o .1.3.6.1.4.1.8072.1.3.2.3.1.= > 2.4.101.120.116.116 > SNMP OK - "extt running okay" | iso.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.= > 116.116=3D"extt running okay";;;; =20 > > 0000000 S N M P O K - " e x t t =20 > 0000020 r u n n i n g o k a y " | =20 > 0000040 i s o . 3 . 6 . 1 . 4 . 1 . 8 0 > 0000060 7 2 . 1 . 3 . 2 . 3 . 1 . 2 . 4 > 0000100 . 1 0 1 . 1 2 0 . 1 1 6 . 1 1 6 > 0000120 =3D " e x t t r u n n i n g o > 0000140 k a y " ; ; ; ; \n > > snmpget -l AuthPriv -v 3 -u Username -a MD5 -A abcdefg -x DES -X hijklmno= > 192.168.16.11 .1.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116=20 > NET-SNMP-EXTEND-MIB::nsExtendOutputFull."extt" =3D STRING: extt running o= > kay > > And here's the mangled output on Solaris 10 > > /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -L authPr= > iv \ > -U Username -a MD5 -A abcdefg -X hijklmno -o .1.3.6.1.4.1.8072.1.3.2.3.1.= > 2.4.101.120.116.116 > SNMP OK - "extt running okay" | iso.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.= > 116.116=3D"extt running okay"=FFp=FF?Xiso.3.6.1.4.1.8072.1.3.2.3.1.2.4.10= > 1.120.116.116 =3D STRING: "extt running okay" > ;;;; =20 > > 0000000 S N M P O K - " e x t t =20 > 0000020 r u n n i n g o k a y " | =20 > 0000040 i s o . 3 . 6 . 1 . 4 . 1 . 8 0 > 0000060 7 2 . 1 . 3 . 2 . 3 . 1 . 2 . 4 > 0000100 . 1 0 1 . 1 2 0 . 1 1 6 . 1 1 6 > 0000120 =3D " e x t t r u n n i n g o > 0000140 k a y " 377 " \b p 377 ? 017 X i s o . > 0000160 3 . 6 . 1 . 4 . 1 . 8 0 7 2 . 1 > 0000200 . 3 . 2 . 3 . 1 . 2 . 4 . 1 0 1 > 0000220 . 1 2 0 . 1 1 6 . 1 1 6 =3D S > 0000240 T R I N G : " e x t t r u n > 0000260 n i n g o k a y " \n ; ; ; ; =20 > > snmpget -l AuthPriv -v 3 -u Username -a MD5 -A abcdefg -x DES -X hijklmno= > 192.168.16.11 .1.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116=20 > NET-SNMP-EXTEND-MIB::nsExtendOutputFull."extt" =3D STRING: extt running o= > kay > > Oddly the output from the mangled one is 3 lines, 2 for the good one. > Any thoughts what's going on or where to chase this? Thanks. > > --=20 > - Kyle=20 > --------------------------------------------- > kylet at panix.com http://www.panix.com/~kylet =20 > --------------------------------------------- > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at dep.fem.unicamp.br Mon Mar 6 15:02:32 2006 From: daniel at dep.fem.unicamp.br (Daniel Carvalho) Date: Mon, 6 Mar 2006 11:02:32 -0300 Subject: CHECK_NRPE: Error receiving dates from daemon. Message-ID: <4ed3d40d0603060602s745c8289x68097882ef096484@mail.gmail.com> Hi list. I am running some problems with addon NRPE. I did the installation and configuration as described in the README of the software. However, when I try to execute it in the command line, the following error message appears: CHECK_NRPE: Error receiving dates from daemon. Somebody has an idea? Grateful Thanks Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Mon Mar 6 16:57:09 2006 From: marc at ena.com (Marc Powell) Date: Mon, 6 Mar 2006 09:57:09 -0600 Subject: SMS Sending Problem Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Tony John > Sent: Monday, March 06, 2006 5:14 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] SMS Sending Problem > > Hello everybody, > > > I am using nagios to monitor our intranet. For this I > have configured nagios with the minimal configuration and tested. Its > working fine and I am getting mails whenever some system goes down. Now I > want to configure SMS sending utilities too. I have a DSL connection. I > have downloaded and configured sms_client. But when i tried to test > sms_client it has thrown some error as follows > > [root at tony libmodem-1.3]# sms_client 9986490187 'Hello > Tony' > Dialing SMSC 0640900139... > ERROR: MODEM: stat() Failed > > Ensure that the device entry '/dev/eth' exists > If you want to use a different device, change the > value of 'MDM_device' in '/etc/sms/sms_modem' to that > device. > > Total Elapsed Time: 0 Seconds > [root at tony libmodem-1.3]# > > > Since I am in a LAN i have a proxy server. Is there any other utility > which can be used to send SMS through DSL lines. Or any way is there solve > the problem. Please help me out. Any help would be highly appreciated. /dev/eth doesn't sound like a modem device. You need to have an analog modem attached to your computer for sms_client to use to connect to the POTS (Plain Old Telephone System) network. A DSL modem != analog modem. As you can see above, it's trying to dial a phone number, not connect to an IP address. A DSL modem is not sufficient and doesn't provide connectivity to the POTS network. As far as alternatives if you can't connect an analog modem to the computer you might see if your provider has a mail->sms gateway. It's not as reliable in the event of a network failure of course... -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Mar 6 17:04:30 2006 From: marc at ena.com (Marc Powell) Date: Mon, 6 Mar 2006 10:04:30 -0600 Subject: Last Check column config on the Service Detail page question Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Simon Cusack > Sent: Sunday, March 05, 2006 6:06 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Last Check column config on the Service Detail > page question > > Hi all, > > I have been trying to find a way to configure the Last Check column (or > something similar) to show the difference between the Last Check and the > Last Updated field, ie the the amount of time passed since the last check That option doesn't currently exist. You'd need to add it. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Mon Mar 6 17:36:24 2006 From: jhmartin at toger.us (Jason Martin) Date: Mon, 6 Mar 2006 08:36:24 -0800 Subject: [newbie] nrpe security In-Reply-To: References: Message-ID: <20060306163624.GZ7611@mal.toger.us> On Mon, Mar 06, 2006 at 09:41:04AM +0100, Giovanni Clemente wrote: > I would know if there's a way to provide authentication in > nrpe without resorting to tunnels. As far as I know, nrpe supports Althought not exactly authentication, you can configure NRPE via tcp wrappers or its own internal configuration to only accept connections from a given set of hosts. What sort of attack are you worried about that isn't covered by tcpwrappers? -Jason Martin -- This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 213 bytes Desc: not available URL: From jdaily at apparatus.net Mon Mar 6 18:10:32 2006 From: jdaily at apparatus.net (John R. Daily) Date: Mon, 6 Mar 2006 12:10:32 -0500 Subject: ePN: notification script In-Reply-To: References: Message-ID: <2176B198-CBE8-4AF3-A5D3-9086B8C550F2@apparatus.net> On Mar 6, 2006, at 12:56 AM, wrote: > It can be a great pain in the proverbial to get going. However, the > docco suggests (perldoc p1.pl) that you can enable some debug/verbose > output to find where the plugin/Perl code is blowing up. Thanks for your insights. Here's the bare minimum script I had originally set up for testing: --- #!/usr/bin/perl -w use utils qw(%ERRORS); print "Perl here.\n\n"; exit($ERRORS{'OK'}); --- I have been swapping it out with a SH version, which works: --- #!/bin/sh echo "SH here" echo "" --- The debugging log that I set up as per Stanley's suggestion of editing p1.pl: Mon Mar 6 11:27:08 2006 eval_file: successfully compiled "/etc/ nagios/messages/test | /bin/mail -s "** PROBLEM alert - localhost/ HTTPD is CRITICAL **" jdaily at apparatus.net". Mon Mar 6 11:27:08 2006 run_package: "/etc/nagios/messages/test | / bin/mail -s "** PROBLEM alert - localhost/HTTPD is CRITICAL **" jdaily at apparatus.net" returning (0, "Perl here. "). So it looks to me as if ePN is fine with the script, but the output does not seem to be delivered to /bin/mail as it is with the shell version. -John ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giovanni.clemente at mail.ing.unibo.it Mon Mar 6 19:05:24 2006 From: giovanni.clemente at mail.ing.unibo.it (Giovanni Clemente) Date: Mon, 6 Mar 2006 19:05:24 +0100 Subject: [newbie] nrpe security In-Reply-To: <20060306163624.GZ7611@mal.toger.us> References: <20060306163624.GZ7611@mal.toger.us> Message-ID: Il giorno 06/mar/06, alle ore 17:36, Jason Martin ha scritto: > On Mon, Mar 06, 2006 at 09:41:04AM +0100, Giovanni Clemente wrote: >> I would know if there's a way to provide authentication in >> nrpe without resorting to tunnels. As far as I know, nrpe supports > Althought not exactly authentication, you can configure NRPE via > tcp wrappers or its own internal configuration to only accept > connections from a given set of hosts. > > What sort of attack are you worried about that isn't covered by > tcpwrappers? > -Jason Martin I don't think Nagios will ever be our worst security hole... That said, with a B-class fully switched network tcp-wrappers are of little use... I would have slept more comfortably with x509 :) Bye, Giovanni _________________________________ Giovanni Clemente DEIS - Lab2 tel. 051 20 93890 email: giovanni.clemente at mail.ing.unibo.it I miei molteplici impegni... -------------- next part -------------- An HTML attachment was scrubbed... URL: From lanning at lanning.cc Mon Mar 6 19:08:29 2006 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Mon, 6 Mar 2006 10:08:29 -0800 (PST) Subject: ePN: notification script In-Reply-To: <2176B198-CBE8-4AF3-A5D3-9086B8C550F2@apparatus.net> References: <2176B198-CBE8-4AF3-A5D3-9086B8C550F2@apparatus.net> Message-ID: <45570.192.168.128.102.1141668509.squirrel@ssl.monsoonwind.com> > Here's the bare minimum script I had originally set up for testing: > --- > #!/usr/bin/perl -w > > use utils qw(%ERRORS); > > print "Perl here.\n\n"; > exit($ERRORS{'OK'}); [snip] > The debugging log that I set up as per Stanley's suggestion of > editing p1.pl: > > Mon Mar 6 11:27:08 2006 eval_file: successfully compiled "/etc/ > nagios/messages/test | /bin/mail -s "** PROBLEM alert - localhost/ > HTTPD is CRITICAL **" jdaily at apparatus.net". > Mon Mar 6 11:27:08 2006 run_package: "/etc/nagios/messages/test | / > bin/mail -s "** PROBLEM alert - localhost/HTTPD is CRITICAL **" > jdaily at apparatus.net" returning (0, "Perl here. > > "). > > > So it looks to me as if ePN is fine with the script, but the output > does not seem to be delivered to /bin/mail as it is with the shell > version. Ah, you are running into the problem that in ePN STDOUT does not go to STDOUT. It is redirected to an array inside of p1.pl. The best way to fix this is to not use the "|" on the commandline. Use: open(CMD,"|/bin/mail arg1 arg2..."); print CMD "Perl here.\n\n"; close(CMD); or if you really need to use the commandline pipe, then you have to not use ePN (ie. use "/usr/bin/perl script_name | /bin/mail ..." -- And, did Guloka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kylet at panix.com Mon Mar 6 19:58:53 2006 From: kylet at panix.com (Kyle Tucker) Date: Mon, 6 Mar 2006 13:58:53 -0500 (EST) Subject: check_snmp on Sol 10 mangling data In-Reply-To: <200603032101.k23L1kK00676@panix3.panix.com> References: <200603032101.k23L1kK00676@panix3.panix.com> Message-ID: <200603061858.k26IwrA04016@panix3.panix.com> After playing with gdb all day, I found the culprit. The array of chars named "type" was getting initialized with the crud on Solaris 10. On 8 it was zeroed out at runtime. Using bzero on it before it's used fixed it up. *** check_snmp.c.orig Mon Mar 6 08:05:26 2006 --- check_snmp.c Mon Mar 6 13:45:53 2006 *************** *** 242,247 **** --- 242,249 ---- } /* We strip out the datatype indicator for PHBs */ + /* Clean up type array */ + bzero(type, sizeof(type)); if (strstr (response, "Gauge: ")) show = strstr (response, "Gauge: ") + 7; else if (strstr (response, "Gauge32: ")) -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeffwilliams05 at gmail.com Mon Mar 6 23:27:03 2006 From: jeffwilliams05 at gmail.com (Jeff Williams) Date: Mon, 6 Mar 2006 16:27:03 -0600 Subject: multiple notification/escalation definitions Message-ID: <17e351010603061427x71e0ac71oc7fed5ebd73e6334@mail.gmail.com> I'm wondering if I'm missing something or thinking about this incorrectly. I have some hosts that have services and their contact groups already defined like so: define service{ use generic-service host_name vader service_description NTP is_volatile 0 check_period 24x7 retry_check_interval 1 contact_groups oncall,ulsysadmins,dba notification_interval 5 notification_period 24x7 notification_options w,u,c,r check_command check_ntp } I also have an escalation for this service: define serviceescalation{ host_name vader service_description NTP first_notification 2 last_notification 2 notification_interval 5 contact_groups oncall } define serviceescalation{ host_name vader service_description NTP first_notification 3 last_notification 4 notification_interval 5 contact_groups oncall,backup } define serviceescalation{ host_name vader service_description NTP first_notification 5 last_notification 0 notification_interval 0 contact_groups oncall,backup } What I'm wondering is if I can add another contact for this service that gets notified after 30 minutes, but only gets notified once. Ideally I would like to be able to do this as easily as possible and for an entire group of servers and for multiple services, if possible. We are migrating from big brother and while big brother is not nearly as complex and functional as Nagios, it can be done in big brother with probably one line. Am I missing something though? Can a service be defined twice? Or can I define it in an escalation that includes the entire hostgroup that I want? Thanks in advance. Jeff ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdaily at apparatus.net Mon Mar 6 19:25:49 2006 From: jdaily at apparatus.net (John R. Daily) Date: Mon, 6 Mar 2006 13:25:49 -0500 Subject: ePN: notification script In-Reply-To: <45570.192.168.128.102.1141668509.squirrel@ssl.monsoonwind.com> References: <2176B198-CBE8-4AF3-A5D3-9086B8C550F2@apparatus.net> <45570.192.168.128.102.1141668509.squirrel@ssl.monsoonwind.com> Message-ID: Thanks, that explains everything. I clearly needed to dig more deeply into the ePN documentation to find that. -John On Mar 6, 2006, at 1:08 PM, Robert Hajime Lanning wrote: > or if you really need to use the commandline pipe, then you have > to not use ePN (ie. use "/usr/bin/perl script_name | /bin/mail ..." ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Tue Mar 7 00:30:33 2006 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Tue, 7 Mar 2006 10:30:33 +1100 Subject: Potential bug in avail.cgi/Nagios 2.0. Message-ID: Dear Folks, I am writing to report a peculiar behaviour of the availability CGI with Nagios 2.0 Firstly, I think the avail.cgi is a wonderful beast that turns the Nagios logs into a very useful and desirable data source. My reporting requirements are down times minus any down time scheduled. I guess that total_time_down is in fact the sum of time_down_scheduled and time_down_unscheduled. But for some of my availability data (last month), I see (with an unpublished SQL interface on top). DB<29> p $SQL SELECT host_name, total_time_down, time_down_scheduled, time_down_unscheduled FROM tab_24x7 where total_time_down > 0 and time_down_unscheduled > 10000 DB<30> $s = $d->prepare($SQL) DB<31> $s->execute DB<32> $s->dump_results 'Lismore_Optus_router_PE_interface', '96712', '0', '96712' 'MTASW203', '800', '10000', '4294958096' 'TODSW210', '429', '6771', '4294960954' 'TRASW202', '200', '7000', '4294960496' 'TRASW203', '1392', '5808', '4294962880' 'TRASW204', '1092', '6108', '4294962280' 6 rows The problem is the too large values of time_down_unscheduled and the fact that the total_time_down is not the sum of sched and unsched downtime. In this case, downtime was scheduled for the TOD\w+ and TRA\w+ hosts (the Lismore entry is correct BTW). What can I provide that may help the investigation progress ? Yours sincerely. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Tue Mar 7 01:30:36 2006 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Tue, 7 Mar 2006 13:30:36 +1300 Subject: Potential bug in avail.cgi/Nagios 2.0. In-Reply-To: <14A270C0E2F4124AB0B7320BDBEA949F0B90EF03@vxchange.vcr.auckland.ac.nz> References: <14A270C0E2F4124AB0B7320BDBEA949F0B90EF03@vxchange.vcr.auckland.ac.nz> Message-ID: <006501c6417e$5a6103f0$8ea8d882@438LG01sshi052> > > The problem is the too large values of time_down_unscheduled > and the fact that the total_time_down is not the sum of sched > and unsched downtime. > We get this as well, and it is a big nuisance. It looks very much like someone is using signed integers when they should be using unsigned, or vice-versa. We have had to revert to using an in-house tool to calculate availabilities. I am using Nagios 1.2 -- I don't really want to modify the code since we're likely to move up to 2.0 in a few months time, once it is out of beta and generally stable. Steve ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Tue Mar 7 01:52:25 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Mon, 6 Mar 2006 16:52:25 -0800 Subject: max_check_attempts, retry_check_interval, and notifications: confusion In-Reply-To: <200603060109.k2619YbW008571@mx1.cs.umb.edu> References: <20060305051646.GB3860@think.alaya.net> <200603060109.k2619YbW008571@mx1.cs.umb.edu> Message-ID: <20060307005225.GA5178@think.alaya.net> > >I am trying to configure the following behavior from nagios: > >1. check a service every normal_check_interval > >2. if service check fails, up the check rate to retry_check_interval > >3. if 2 successive service checks fail, send notification > >4. continue to check at retry_check_interval until service check > > succeeds and send notification > > Yup 4 is the tough one. > ... > For nagios 2.x you can use the adaptive monitoring (see manual) > command: 'CHANGE_NORMAL_SVC_CHECK_INTERVAL:interval' to change the > interval from an event handler. I would suggest using the > objects.cache file to determine the configured normal_check_interval > and retry_check_interval. You may have to cache that info for your > event handler as I am not sure if that file is re-written when the > intervals change. > Thanks for your help. Too bad nagios doesn't simply have object configuration file options such as: normal_check_interval - how often to normally check when all OK warning_check_interval - how often to check when WARNING critical_check_interval - how often to check when CRITICAL number_of_warnings_notification - after how many WARNING checks to send notification number_of_critical_notification - after how many CRITICAL checks to send notification at any rate the external command CHANGE_NORMAL_SVC_CHECK_INTERVAL does seem to almost do what I want with one small problem: Service event handlers recieve the following 3 macros: $SERVICESTATE$, $SERVICESTATETYPE$, $SERVICEATTEMPT$, yet in order to run CHANGE_NORMAL_SVC_CHECK_INTERVAL via an external command/event handler I need to provide the following to it: CHANGE_NORMAL_SVC_CHECK_INTERVAL;host1;service1;15\n" $now > $commandfile unfortunately $host$ is not provided to the external command via the event handler. I'm not sure how to tell my external command for what host it should be changing the normal_check_interval. How is the external command supposed to know which host triggered its event handler? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alekseyz at hotmail.com Tue Mar 7 02:00:33 2006 From: alekseyz at hotmail.com (aleksey zakharov) Date: Mon, 6 Mar 2006 17:00:33 -0800 Subject: Cant get NRPE working on Solaris9 Message-ID: I've installed NRPE/Nagios-Plugins binaries - nagios-plugins-1.3.1_2-sol9-sparc-local and nrpe-1.9_5-sol9-sparc-local on Solaris 9 as follows: # pkgadd -d /tmp/nagios-plugins-1.3.1_2-sol9-sparc-local # pkgadd -d /tmp/nrpe-1.9_5-sol9-sparc-local Edited /etc/services and added the following line nrpe 5666/tcp # Nagios NRPE client Modified /etc/init.d/nrpe to point to /etc/nrpe.cfg Configured /etc/nrpe.cfg by editing allowed_hosts to point to my NAGIOS server as well as localhost for testing purposes. But when testing NRPE connection from Nagios server i get: CHECK_NRPE: Socket timeout after 10 seconds. and on the client side /var/adm/messages displays: Could not read request from client, bailing out... When checking from local host I do however bet a response: #check_nrpe -H 127.0.0.1 -c check_load OK - load average: 0.00, 0.00, 0.01 After countless forum searches I wasn't able to find any clues as to what could be wrong with my connection. Thanks for any help in advance. Aleksey -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.johnston at kirtland.af.mil Tue Mar 7 02:02:07 2006 From: michael.johnston at kirtland.af.mil (Johnston Michael J Contr AFRL/DES) Date: Tue, 7 Mar 2006 01:02:07 -0000 Subject: pNSClient.exe port used? Message-ID: I have a silly question about pNSClient.exe for monitoring my windows servers. I added guarddog to my nagios server to better control my firewall, but when I turn it on the "CPU Load" and "DNS Check" and a few other services stop being reported. I'm going to add a custom rule, but I'm not sure what port to allow. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Tue Mar 7 03:15:36 2006 From: marc at ena.com (Marc Powell) Date: Mon, 6 Mar 2006 20:15:36 -0600 Subject: max_check_attempts, retry_check_interval, and notifications: confusion Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of prosolutions at gmx.net > Sent: Monday, March 06, 2006 6:52 PM > To: rouilj at ieee.org > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] max_check_attempts, retry_check_interval, and > notifications: confusion > > > >I am trying to configure the following behavior from nagios: > > >1. check a service every normal_check_interval > > >2. if service check fails, up the check rate to retry_check_interval > > >3. if 2 successive service checks fail, send notification > > >4. continue to check at retry_check_interval until service check > > > succeeds and send notification > > > > Yup 4 is the tough one. > > > > ... > > > For nagios 2.x you can use the adaptive monitoring (see manual) > > command: 'CHANGE_NORMAL_SVC_CHECK_INTERVAL:interval' to change the > > interval from an event handler. I would suggest using the > > objects.cache file to determine the configured normal_check_interval > > and retry_check_interval. You may have to cache that info for your > > event handler as I am not sure if that file is re-written when the > > intervals change. > > > > Thanks for your help. Too bad nagios doesn't simply have object > configuration file options such as: > [chop] > at any rate the external command CHANGE_NORMAL_SVC_CHECK_INTERVAL does > seem to almost do what I want with one small problem: Service event > handlers recieve the following 3 macros: $SERVICESTATE$, > $SERVICESTATETYPE$, $SERVICEATTEMPT$, yet in order to run In the _examples_, sure, but you're not limited to those three at all. There are many macros available to event handlers. > CHANGE_NORMAL_SVC_CHECK_INTERVAL via an external command/event handler I > need to provide the following to it: > > CHANGE_NORMAL_SVC_CHECK_INTERVAL;host1;service1;15\n" $now > $commandfile > > unfortunately $host$ is not provided to the external command via the > event handler. I'm not sure how to tell my external command for what > host it should be changing the normal_check_interval. How is the > external command supposed to know which host triggered its event > handler? By passing it the $HOSTNAME$. http://nagios.sourceforge.net/docs/2_0/macros.html -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Tue Mar 7 05:43:12 2006 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Tue, 7 Mar 2006 17:43:12 +1300 Subject: pNSClient.exe port used? In-Reply-To: <14A270C0E2F4124AB0B7320BDBEA949F0B90EF07@vxchange.vcr.auckland.ac.nz> References: <14A270C0E2F4124AB0B7320BDBEA949F0B90EF07@vxchange.vcr.auckland.ac.nz> Message-ID: <009501c641a1$a4604330$8ea8d882@438LG01sshi052> pnsclient 1248/tcp inbound nrpe and nrpe_NT 5666/tcp inbound Eventlog monitor (uses nsca) 5667/tcp outbound Steve I have a silly question about pNSClient.exe for monitoring my windows servers. I added guarddog to my nagios server to better control my firewall, but when I turn it on the "CPU Load" and "DNS Check" and a few other services stop being reported. I'm going to add a custom rule, but I'm not sure what port to allow. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ka at pacific.net Tue Mar 7 06:01:05 2006 From: ka at pacific.net (Ken A) Date: Mon, 06 Mar 2006 21:01:05 -0800 Subject: check disk_free on windows client In-Reply-To: <1141495128.6123.8.camel@spiekey.lansin.ole> References: <1141495128.6123.8.camel@spiekey.lansin.ole> Message-ID: <440D1391.2030403@pacific.net> wmi should help. http://www.microsoft.com/technet/scriptcenter/guide/sas_fsd_dzbl.mspx Ken Mario Ohnewald wrote: > Hello List, > > whats the easiest way to check the disk free space on a windows box? > All i can think of is via SNMP. > Are there other possibilities? (except mounting the drive with smb and > then use the unix tool check_diskfree). > > Thanks, Mario > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ronald.rojas at gmail.com Tue Mar 7 06:22:52 2006 From: ronald.rojas at gmail.com (Ronald's Gmail) Date: Tue, 7 Mar 2006 13:22:52 +0800 Subject: NRPE Problem Message-ID: <677c22a0603062122n7b6aa4f9t344a48d3f5f213db@mail.gmail.com> Hi, I got a problem. The error displays something like this: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. This appears on the service monitoring with the 'UNKNOWN' status. Anyone have an idea on how to fix this? Thanks. Ronald Rojas System Administrator -------------- next part -------------- An HTML attachment was scrubbed... URL: From gorste at tesco.net Tue Mar 7 12:09:02 2006 From: gorste at tesco.net (Gordon Stewart) Date: Tue, 7 Mar 2006 11:09:02 +0000 Subject: Configure CGI Message-ID: <20060307110902.YQXM11653.aamtaout01-winn.ispmail.ntl.com@smtp.ntlworld.com> Dear list When I call the cgis scripts from the command line they work fine but when I use the web browser I get an error in my error_log. Premature end of script headers: status.cgi Can someone point me in the right direction to solve this? I am running it on Fedora Core 4. Thanks Gordon Thanks ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kate.harris at gmail.com Tue Mar 7 12:32:48 2006 From: kate.harris at gmail.com (Kate Harris) Date: Tue, 7 Mar 2006 11:32:48 +0000 Subject: Nagios Performance Data shows checks aren't being completed Message-ID: <83db1edb0603070332k717d2dffp4e94cc8fb404d196@mail.gmail.com> I had a similar problem and thought I had fixed it. My situation is that I have 922 services to check (at the moment, I need to ramp up to over 2,500 but the latency problem is a show-stopper at the moment). I'm using a very low-spec Dell running Solaris 10 with Nagios 2.0to do it. Using default settings, I was initially getting average check latencies of the order of 5-6 seconds which was fine, but after a day or so of no Nagios restarts, that figure would rocket to 100 seconds and stay there, not ever re-checking the majority of the services, with re-scheduled check times staying in the past, until I did a nagios reload. There was one directive which solved the stale re-check times:- check_for_orphaned_services=1 Also, I reduced a couple of timeout values so that Nagios stopped wasting time on checks which were bound to fail:- service_check_timeout=30 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 Given that the load on the machine doesn't appear to go over 0.50, I've allowed infinite concurrent services checks now, increased from 400, but that appears to be making no difference at all. And I left the reaper frequency at 10 seconds. So now the checks were being re-scheduled for times in the future, and the latencies stopped running away quite so dramatically. This is the state of things at the moment:- Active Service Checks: Time Frame Checks Completed <= 1 minute: 107 (11.6%) <= 5 minutes: 593 (64.3%) <= 15 minutes: 922 (100.0%) <= 1 hour: 922 (100.0%) Since program start: 922 (100.0%) Metric Min. Max. Average Check Execution Time: 0.06 sec 19.70 sec 0.139 sec Check Latency: 0.00 sec 17.19 sec 2.164 sec Percent State Change: 0.00% 0.00% 0.00% Passive Service Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% Active Host Checks: Time Frame Checks Completed <= 1 minute: 1 (0.9%) <= 5 minutes: 4 (3.6%) <= 15 minutes: 5 (4.5%) <= 1 hour: 5 (4.5%) Since program start: 11 (9.8%) Metric Min. Max. Average Check Execution Time: 0.02 sec 13.52 sec 0.170 sec Check Latency: 0.00 sec 8.16 sec 0.073 sec Percent State Change: 0.00% 0.00% 0.00% Passive Host Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% However, the latencies are creeping upwards again, albeit very very slowly and at some point I think I'll have to do a reload just to get the checking back on track again. Has anyone got any ideas on where I should be looking to make this better? K -- Kate Harris http://www.totkat.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From chertolyas.av at mgsm.ru Tue Mar 7 13:16:42 2006 From: chertolyas.av at mgsm.ru (Andrew V. Chertolyas) Date: Tue, 07 Mar 2006 16:16:42 +0400 Subject: Failover nagios server Message-ID: <440D79AA.9060208@mgsm.ru> Hello, nagios users! I have a standalone server with nagios running on it. I want to tune up an another server, for distributed monitoring. But main task is to provide for failover work of allover nagios configuration - in case of failure of one of the servers another server must provide data collection from all monitoring servers. Is there any solutions for it? Thanks! -- Regards, Andrew V. Chertolyas | JSC MSS Povoljie IT engineer | Samara, Russia ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkoponick at redhawk.info Tue Mar 7 14:46:17 2006 From: mkoponick at redhawk.info (Mike Koponick) Date: Tue, 7 Mar 2006 05:46:17 -0800 Subject: ICMP - RTA? Message-ID: <8C18BAD1F46B2245B0A08BCF1A823DD4109C94@raptor.redhawk.info> Hello, I've been using check_icmp and have also used check_ping to test if a host is available or not. It seems like a simple test but I'm running into an interesting issue. I see round trip times in the 500+ ms range, which causes an alert. At first I thought we had a network issue, but when I PING directly to the host which I'm running the check, I receive round trip times in the 1-2ms range, which is puzzling to me. On some sensors I'm testing 40+ hosts with check_icmp, and another sensor I'm only testing 10 hosts, I see the same issue on both sensors. So it doesn't look like its amount of tests I'm running. I wonder what I'm seeing is the time for the complete check to take place for each host. Has anyone else seen this issue? Thanks! Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.w.miner at baesystems.com Tue Mar 7 14:57:12 2006 From: jonathan.w.miner at baesystems.com (Miner, Jonathan W (CSC) (US SSA)) Date: Tue, 7 Mar 2006 08:57:12 -0500 Subject: Nagios notifications References: <885C7EC41C6782488AD7D3A7C3259106095D15CD@blums0009> Message-ID: <7FCB0E206880084DB3D57CBAA2119F1202366A29@blums0010> Hi - We've been running Nagios 2.0 for several months now. Great tool, have been extremely happy with it. I have been asked by my management to "create a list of WHAT we are currently monitoring and WHEN someone is notified and WHO that someone is". This seems pretty trivial, just go through the all the configuration files and cut-n-paste the desired information. A very time consuming task, and something that would need to be updated from time to time. Is there a better way? If not, for those intimate with Nagios internals, any estimate on how much work would be involved in traversing the internal data structures and producing a report? I've got a programming background, and willing to tackle this myself if needed. Thanks ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Tue Mar 7 15:17:22 2006 From: jperrin at gmail.com (Jim Perrin) Date: Tue, 7 Mar 2006 09:17:22 -0500 Subject: Nagios notifications In-Reply-To: <7FCB0E206880084DB3D57CBAA2119F1202366A29@blums0010> References: <885C7EC41C6782488AD7D3A7C3259106095D15CD@blums0009> <7FCB0E206880084DB3D57CBAA2119F1202366A29@blums0010> Message-ID: <302ce8b50603070617k68637e46y3f0653fb67323fa4@mail.gmail.com> > I have been asked by my management to "create a list of WHAT we are currently monitoring and WHEN someone is notified and WHO that someone is". This seems pretty trivial, just go through the all the configuration files and cut-n-paste the desired information. A very time consuming task, and something that would need to be updated from time to time. > Is there a better way? If not, for those intimate with Nagios internals, any estimate on how much work would be involved in traversing the internal data structures and producing a report? I've got a programming background, and willing to tackle this myself if needed. > > Thanks I may not be understanding what exactly your management is asking for here, so bear with me. Isn't this EXACTLY the information that the web interface provides? The host details page shows what hosts you're checking, the service details page shows what services on which hosts you're checking, and the notifications reporting page shows what notifications have been sent out recently. If he wants to know further details, your PHB can click on the configuration information and see who teh contact and contact groups are. That said... be careful about giving your boss THAT much access to things. Managers need to be kept on a short leash, lest they think they have the power to make changes. -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonathan.w.miner at baesystems.com Tue Mar 7 15:39:08 2006 From: jonathan.w.miner at baesystems.com (Miner, Jonathan W (CSC) (US SSA)) Date: Tue, 7 Mar 2006 09:39:08 -0500 Subject: Nagios notifications References: <885C7EC41C6782488AD7D3A7C3259106095D15CD@blums0009> <7FCB0E206880084DB3D57CBAA2119F1202366A29@blums0010> <302ce8b50603070617k68637e46y3f0653fb67323fa4@mail.gmail.com> Message-ID: <7FCB0E206880084DB3D57CBAA2119F1202366A2D@blums0010> -----Original Message----- From: Jim Perrin [mailto:jperrin at gmail.com] Sent: Tue 03/07/2006 09:17 AM To: Miner, Jonathan W (CSC) (US SSA) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios notifications > I have been asked by my management to "create a list of WHAT we are currently monitoring and WHEN someone is notified and WHO that someone is". This seems pretty trivial, just go through the all the configuration files and cut-n-paste the desired information. A very time consuming task, and something that would need to be updated from time to time. > Is there a better way? If not, for those intimate with Nagios internals, any estimate on how much work would be involved in traversing the internal data structures and producing a report? I've got a programming background, and willing to tackle this myself if needed. > > Thanks I may not be understanding what exactly your management is asking for here, so bear with me. Isn't this EXACTLY the information that the web interface provides? The host details page shows what hosts you're checking, the service details page shows what services on which hosts you're checking, and the notifications reporting page shows what notifications have been sent out recently. If he wants to know further details, your PHB can click on the configuration information and see who teh contact and contact groups are. That said... be careful about giving your boss THAT much access to things. Managers need to be kept on a short leash, lest they think they have the power to make changes. --------------------------- Hi Jim - Thanks for the response... definitely agree with the short leash comment! :) I should have been more specfic... yes, all the information is available by clicking through the web-interface, but I'd rather see a simple document that just listed everything... or even more horid, could be exported as a CSV file. Thay way management could get an inventory of Nagios monitored "stuff" ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Tue Mar 7 16:01:11 2006 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Tue, 07 Mar 2006 10:01:11 -0500 Subject: Latency problem - was - Nagios Performance Data shows checks aren't being completed Message-ID: Diddo here too. I thought that it there was too much process at once, so I changed this line in nagios.cfg... max_service_check_spread=50 But no changes. I have 1300 services checks, so there was about 900 process simultaniously at first. But even changing the max_service_check did not change a thing. I'll go on with some tests and tweaks. --------------------------------------------------- Alexandre Racine - Gardien Virtuel - S?curit? Informatique www.gardienvirtuel.com Montr?al, Qu?bec, Canada >>> kate.harris at gmail.com 2006-03-07 06:32:48 >>> I had a similar problem and thought I had fixed it. My situation is that I have 922 services to check (at the moment, I need to ramp up to over 2,500 but the latency problem is a show-stopper at the moment). I'm using a very low-spec Dell running Solaris 10 with Nagios 2.0to do it. Using default settings, I was initially getting average check latencies of the order of 5-6 seconds which was fine, but after a day or so of no Nagios restarts, that figure would rocket to 100 seconds and stay there, not ever re-checking the majority of the services, with re-scheduled check times staying in the past, until I did a nagios reload. There was one directive which solved the stale re-check times:- check_for_orphaned_services=1 Also, I reduced a couple of timeout values so that Nagios stopped wasting time on checks which were bound to fail:- service_check_timeout=30 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 Given that the load on the machine doesn't appear to go over 0.50, I've allowed infinite concurrent services checks now, increased from 400, but that appears to be making no difference at all. And I left the reaper frequency at 10 seconds. So now the checks were being re-scheduled for times in the future, and the latencies stopped running away quite so dramatically. This is the state of things at the moment:- Active Service Checks: Time Frame Checks Completed <= 1 minute: 107 (11.6%) <= 5 minutes: 593 (64.3%) <= 15 minutes: 922 (100.0%) <= 1 hour: 922 (100.0%) Since program start: 922 (100.0%) Metric Min. Max. Average Check Execution Time: 0.06 sec 19.70 sec 0.139 sec Check Latency: 0.00 sec 17.19 sec 2.164 sec Percent State Change: 0.00% 0.00% 0.00% Passive Service Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% Active Host Checks: Time Frame Checks Completed <= 1 minute: 1 (0.9%) <= 5 minutes: 4 (3.6%) <= 15 minutes: 5 (4.5%) <= 1 hour: 5 (4.5%) Since program start: 11 (9.8%) Metric Min. Max. Average Check Execution Time: 0.02 sec 13.52 sec 0.170 sec Check Latency: 0.00 sec 8.16 sec 0.073 sec Percent State Change: 0.00% 0.00% 0.00% Passive Host Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% However, the latencies are creeping upwards again, albeit very very slowly and at some point I think I'll have to do a reload just to get the checking back on track again. Has anyone got any ideas on where I should be looking to make this better? K -- Kate Harris http://www.totkat.org/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rouilj at cs.umb.edu Tue Mar 7 16:42:17 2006 From: rouilj at cs.umb.edu (John P. Rouillard) Date: Tue, 07 Mar 2006 10:42:17 -0500 Subject: max_check_attempts, retry_check_interval, and notifications: confusion In-Reply-To: Your message of "Mon, 06 Mar 2006 16:52:25 PST." <20060307005225.GA5178@think.alaya.net> References: <20060307005225.GA5178@think.alaya.net> Message-ID: <200603071542.k27FgHr7018265@mx1.cs.umb.edu> In message <20060307005225.GA5178 at think.alaya.net>, prosolutions at gmx.net writes: >> >I am trying to configure the following behavior from nagios: >> >1. check a service every normal_check_interval >> >2. if service check fails, up the check rate to retry_check_interval >> >3. if 2 successive service checks fail, send notification >> >4. continue to check at retry_check_interval until service check >> > succeeds and send notification >> >> Yup 4 is the tough one. >> >... >> For nagios 2.x you can use the adaptive monitoring (see manual) >> command: 'CHANGE_NORMAL_SVC_CHECK_INTERVAL:interval' to change the >> interval from an event handler. I would suggest using the >> objects.cache file to determine the configured normal_check_interval >> and retry_check_interval. You may have to cache that info for your >> event handler as I am not sure if that file is re-written when the >> intervals change. >> > >Thanks for your help. Too bad nagios doesn't simply have object >configuration file options such as: > >normal_check_interval - how often to normally check when all OK >warning_check_interval - how often to check when WARNING >critical_check_interval - how often to check when CRITICAL >number_of_warnings_notification - after how many WARNING checks to send >notification >number_of_critical_notification - after how many CRITICAL checks to >send notification Yeah. I used SEC to correlate when I need this level of detailed correlation. Once you start getting to this level of detail you often find out that you want different types of warnings/critical events handled differently. >at any rate the external command CHANGE_NORMAL_SVC_CHECK_INTERVAL does >seem to almost do what I want with one small problem: Service event >handlers recieve the following 3 macros: $SERVICESTATE$, $SERVICESTATETYPE$, > $SERVICEATTEMPT$, yet in order to run CHANGE_NORMAL_SVC_CHECK_INTERVAL via >an external command/event handler I need to provide the following to it: > >CHANGE_NORMAL_SVC_CHECK_INTERVAL;host1;service1;15\n" $now > $commandfile > >unfortunately $host$ is not provided to the external command via the >event handler. Seems $HOSTNAME$ is provided: http://nagios.sourceforge.net/docs/2_0/macros.html so just add it to the event handler description. E.G. define command { command_name handle_PortScanCheck command_line $USER2$/PortScanCheck $SERVICEATTEMPT$ $SERVICESTATE$ $HOSTADDRESS$ '$SERVICEOUTPUT$' } I use HOSTADDRESS rather then HOSTNAME, but it should still work. >I'm not sure how to tell my external command for what >host it should be changing the normal_check_interval. How is the >external command supposed to know which host triggered its event >handler? It all depends on what arguments you define for the event handler. Also with 2.0 I think all macros are in the environment as well, so you can get NAGIOS_HOSTNAME from the environment rather then passing it on the command line. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Toby_Kraft at KSAinc.com Tue Mar 7 16:49:03 2006 From: Toby_Kraft at KSAinc.com (Toby Kraft) Date: Tue, 7 Mar 2006 09:49:03 -0600 Subject: Configure CGI In-Reply-To: <20060307110902.YQXM11653.aamtaout01-winn.ispmail.ntl.com@smtp.ntlworld.com> References: <20060307110902.YQXM11653.aamtaout01-winn.ispmail.ntl.com@smtp.ntlworld.com> Message-ID: SELinux enabled? check permissions on cgi directory and scripts (see nagios docs) search list archives for "Premature end of script headers" Toby nagios-users-admin at lists.sourceforge.net wrote on 03/07/2006 05:09:02 AM: > Dear list > > When I call the cgis scripts from the command line they work fine > but when I use the web browser I get an error in my error_log. > > Premature end of script headers: status.cgi > > Can someone point me in the right direction to solve this? > > I am running it on Fedora Core 4. > > Thanks > > Gordon > > Thanks > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Tue Mar 7 16:52:06 2006 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Tue, 07 Mar 2006 10:52:06 -0500 Subject: Latency problem - was - Nagios Performance Data shows checksaren't being completed Message-ID: And the weirdest part, is that it is only Netware and Windows clients that are showing this kind of performance problem. Netware are check with the client program mrtgext.nlm and Windows are check with the nsclient program. Everything else is working fine, switchs, linux (nrpe), ups, etc. --------------------------------------------------- Alexandre Racine - Gardien Virtuel - S?curit? Informatique www.gardienvirtuel.com Montr?al, Qu?bec, Canada >>> "Serveur-Faucon Surveillance" 2006-03-07 10:01:11 >>> Diddo here too. I thought that it there was too much process at once, so I changed this line in nagios.cfg... max_service_check_spread=50 But no changes. I have 1300 services checks, so there was about 900 process simultaniously at first. But even changing the max_service_check did not change a thing. I'll go on with some tests and tweaks. --------------------------------------------------- Alexandre Racine - Gardien Virtuel - S?curit? Informatique www.gardienvirtuel.com Montr?al, Qu?bec, Canada >>> kate.harris at gmail.com 2006-03-07 06:32:48 >>> I had a similar problem and thought I had fixed it. My situation is that I have 922 services to check (at the moment, I need to ramp up to over 2,500 but the latency problem is a show-stopper at the moment). I'm using a very low-spec Dell running Solaris 10 with Nagios 2.0to do it. Using default settings, I was initially getting average check latencies of the order of 5-6 seconds which was fine, but after a day or so of no Nagios restarts, that figure would rocket to 100 seconds and stay there, not ever re-checking the majority of the services, with re-scheduled check times staying in the past, until I did a nagios reload. There was one directive which solved the stale re-check times:- check_for_orphaned_services=1 Also, I reduced a couple of timeout values so that Nagios stopped wasting time on checks which were bound to fail:- service_check_timeout=30 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 Given that the load on the machine doesn't appear to go over 0.50, I've allowed infinite concurrent services checks now, increased from 400, but that appears to be making no difference at all. And I left the reaper frequency at 10 seconds. So now the checks were being re-scheduled for times in the future, and the latencies stopped running away quite so dramatically. This is the state of things at the moment:- Active Service Checks: Time Frame Checks Completed <= 1 minute: 107 (11.6%) <= 5 minutes: 593 (64.3%) <= 15 minutes: 922 (100.0%) <= 1 hour: 922 (100.0%) Since program start: 922 (100.0%) Metric Min. Max. Average Check Execution Time: 0.06 sec 19.70 sec 0.139 sec Check Latency: 0.00 sec 17.19 sec 2.164 sec Percent State Change: 0.00% 0.00% 0.00% Passive Service Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% Active Host Checks: Time Frame Checks Completed <= 1 minute: 1 (0.9%) <= 5 minutes: 4 (3.6%) <= 15 minutes: 5 (4.5%) <= 1 hour: 5 (4.5%) Since program start: 11 (9.8%) Metric Min. Max. Average Check Execution Time: 0.02 sec 13.52 sec 0.170 sec Check Latency: 0.00 sec 8.16 sec 0.073 sec Percent State Change: 0.00% 0.00% 0.00% Passive Host Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% However, the latencies are creeping upwards again, albeit very very slowly and at some point I think I'll have to do a reload just to get the checking back on track again. Has anyone got any ideas on where I should be looking to make this better? K -- Kate Harris http://www.totkat.org/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hv at tbz-pariv.de Tue Mar 7 16:55:01 2006 From: hv at tbz-pariv.de (Thomas Guettler) Date: Tue, 7 Mar 2006 16:55:01 +0100 Subject: Debuggin Check-Scripts Message-ID: <200603071655.01649.hv@tbz-pariv.de> Hi, I had difficulties to debug the check commands. I wrote a little wrapper script, which logs some informtion into a logfile. The is usefull if you want to see how variables (e.g. $USER1$) get expanded and which command is actually run. Use it like this. You need absolute path $USER$ gets only expanded once! command_line /usr/local/nagios/libexec/log_checkcommand $USER1$/check_... Here is the script: #!/bin/bash SCRIPT=`basename $0` LOGFILE=/usr/local/nagios/var/checkcommands.log if [ ! -w $LOGFILE ]; then echo "$SCRIPT: Can not write to $LOGFILE" exit 3 fi echo `date` >> $LOGFILE echo `id` >> $LOGFILE echo $@ >> $LOGFILE for arg in ${1+"$@"}; do echo "arg $arg" >> $LOGFILE done echo >> $LOGFILE ${1+"$@"} ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Mar 7 17:01:56 2006 From: marc at ena.com (Marc Powell) Date: Tue, 7 Mar 2006 10:01:56 -0600 Subject: Configure CGI Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Gordon Stewart > Sent: Tuesday, March 07, 2006 5:09 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Configure CGI > > Dear list > > When I call the cgis scripts from the command line they work fine but when > I use the web browser I get an error in my error_log. > > Premature end of script headers: status.cgi > > Can someone point me in the right direction to solve this? > > I am running it on Fedora Core 4. Most likely SELinux restrictions. Search the archives, you'll find more information. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Mar 7 17:13:53 2006 From: jhmartin at toger.us (Jason Martin) Date: Tue, 7 Mar 2006 08:13:53 -0800 Subject: [newbie] nrpe security In-Reply-To: References: <20060306163624.GZ7611@mal.toger.us> Message-ID: <20060307161353.GE7611@mal.toger.us> On Mon, Mar 06, 2006 at 07:05:24PM +0100, Giovanni Clemente wrote: > I don't think Nagios will ever be our worst security hole... > That said, with a B-class fully switched network tcp-wrappers > are of little use... How does 'fully switched' help you? tcp wrappers make sure that only authorized IP addresses connect, IE your Nagios hosts. There's no need for a random desktop host to be able to invoke NRPE. -Jason Martin -- I distinctly remember forgetting that. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 213 bytes Desc: not available URL: From jperrin at gmail.com Tue Mar 7 18:06:21 2006 From: jperrin at gmail.com (Jim Perrin) Date: Tue, 7 Mar 2006 12:06:21 -0500 Subject: Nagios notifications In-Reply-To: <7FCB0E206880084DB3D57CBAA2119F1202366A2D@blums0010> References: <885C7EC41C6782488AD7D3A7C3259106095D15CD@blums0009> <7FCB0E206880084DB3D57CBAA2119F1202366A29@blums0010> <302ce8b50603070617k68637e46y3f0653fb67323fa4@mail.gmail.com> <7FCB0E206880084DB3D57CBAA2119F1202366A2D@blums0010> Message-ID: <302ce8b50603070906s64748acq41b43e9fce6b3d12@mail.gmail.com> > Thanks for the response... definitely agree with the short leash comment! :) > > I should have been more specfic... yes, all the information is available by clicking through the web-interface, but I'd rather see a simple document that just listed everything... or even more horid, could be exported as a CSV file. Thay way management could get an inventory of Nagios monitored "stuff" System availability reporting can output to CSV, and shows machine and services as the first two columns. I'm not sure of a way to get the contacts in such a manner. I would assume that if you're using fruity or something similar which uses a DB to store your config options that you could simply script a query to output the information you wanted rather easily. That said, I have no idea what fruity's db schema looks like, as I do damn near everything the cli+vim way.... -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andreaco at email.it Tue Mar 7 18:49:31 2006 From: andreaco at email.it (Andreaco) Date: Tue, 7 Mar 2006 18:49:31 +0100 Subject: Active directory Message-ID: <7cc348bfe247832142c8aa691286dea6@85.18.90.170> Hallo, I need something to check the Microsoft Active Directory under Nagios. In Nagiosexchange I found nothing related with, maybe someone have the right plugin for me. For example something like Ipmonitor, specifing the microsoft server name (or ip) and the server port, it outputs: Server handshaked OK. I don't know what's the logic of this Ipmonitor check. Can I replicate this check in Nagios ? Thanks in advance. Andrea -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Web Marketing: impara tutti i segreti del Posizionamento sui Motori di Ricerca, Pubblicita' on-line, Email Marketing ?- clicca qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3213&d=20060307 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CWaters at jeld-wen.com Tue Mar 7 19:03:34 2006 From: CWaters at jeld-wen.com (Chris Waters) Date: Tue, 7 Mar 2006 10:03:34 -0800 Subject: status.dat object definition Message-ID: <83C21E03494FF147B56468B505517821DAFB47@jwmail01.domain.jw.local> Does anyone have a complete definition for the status.dat file? I need to know the possible values and their meanings for each part of a host or service object. I have looked through the docs but I don't seem to be able to locate this. I need to be able to decyper the values associated with certain parts for some real-time statistics displays. I am looking for something like: current_state= 0|1|2|3 0 = Host/Service OK 1 = Host Down 2 = Service Down Thanks! Chris Waters Technology Services: Networks WAN/LAN Technician JELD-WEN, inc. Information Systems cwaters at jeld-wen.com RELIABILITY for real life(r) This correspondence is for the named person's use only. It may contain confidential or legally privileged information and is intended solely for the named addressee. If you receive this correspondence in error, please notify the sender and delete it from your system. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Tue Mar 7 19:22:28 2006 From: marc at ena.com (Marc Powell) Date: Tue, 7 Mar 2006 12:22:28 -0600 Subject: status.dat object definition Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Waters > Sent: Tuesday, March 07, 2006 12:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] status.dat object definition > > Does anyone have a complete definition for the status.dat file? I need to > know the possible values and their meanings for each part of a host or > service object. I have looked through the docs but I don't seem to be > able to locate this. I need to be able to decyper the values associated > with certain parts for some real-time statistics displays. I am looking > for something like: > > current_state= 0|1|2|3 > 0 = Host/Service OK > 1 = Host Down > 2 = Service Down It's not documented at this time (for 2.0). You could use this FAQ for the 1.x status.log as a guide. There have been a number of changes but it's a good start -- http://www.nagios.org/faqs/viewfaq.php?faq_id=66 The current_state codes are the plugin exit codes -- 0 OK 1 WARNING 2 CRITICAL 3 UNKNOWN (http://nagiosplug.sourceforge.net/developer-guidelines.html). Everything else looks pretty straightforward or directly from the host/service definitions. If you have any you can't figure out or it's not clear from the source then we can help figure them out. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Tue Mar 7 19:22:11 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Tue, 7 Mar 2006 10:22:11 -0800 Subject: how to customize which macros get sent with service event handlers? Message-ID: <20060307182211.GC4077@think.alaya.net> According to http://nagios.sourceforge.net/docs/2_0/eventhandlers.html: "In most cases, event handler commands will be shell or perl scripts. At a minimum, the scripts should take the following macros as arguments: Service event handler macros: $SERVICESTATE$, $SERVICESTATETYPE$, $SERVICEATTEMPT$" I have created a simple external command triggerend by a service event handler that just echoes $@ to a temp file and can verify that it does provide these three macros to the external command. But I want/need to provide other macros (such as $HOSTNAME$) to my external command. I'm am not sure how this is done - am not finding anything in the docs which mentions how to do this. Is there some config option where which macros are sent by an event handler can be defined? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Mar 7 19:41:26 2006 From: marc at ena.com (Marc Powell) Date: Tue, 7 Mar 2006 12:41:26 -0600 Subject: how to customize which macros get sent with service event handlers? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of prosolutions at gmx.net > Sent: Tuesday, March 07, 2006 12:22 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] how to customize which macros get sent with > service event handlers? > > > According to http://nagios.sourceforge.net/docs/2_0/eventhandlers.html: > > "In most cases, event handler commands will be shell or perl scripts. At > a minimum, the scripts should take the following macros as arguments: > > Service event handler macros: $SERVICESTATE$, $SERVICESTATETYPE$, > $SERVICEATTEMPT$" > > > I have created a simple external command triggerend by a service event > handler that just echoes $@ to a temp file and can verify that it does > provide these three macros to the external command. But I want/need to > provide other macros (such as $HOSTNAME$) to my external command. I'm am > not sure how this is done - am not finding anything in the docs which > mentions how to do this. Is there some config option where which macros > are sent by an event handler can be defined? Add it to your command definition for your event handler. Using the example service event handler on the documentation page referenced above it becomes -- define command{ command_name restart-httpd command_line /usr/local/nagios/libexec/eventhandlers/restart-httpd $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTNAME$ } Your event handler script needs to grab that extra command line argument to do something useful with it of course. How that's done varies widely based on the scripting language used. For /bin/sh, the hostname would be stored in the $4 variable. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shoktai at gmail.com Tue Mar 7 19:49:29 2006 From: shoktai at gmail.com (Toto Capuccino) Date: Tue, 7 Mar 2006 19:49:29 +0100 Subject: event handlers Message-ID: <619cf3c0603071049h4a307845u@mail.gmail.com> Hi Nachos folks, I would like some of you please to give me advice on how and what could be be the better way to write a simple script to be run as an eventhandler inside nagios. I am currently checking that the Microsoft Exchange services Information Store, System Attendant are running and i would like to restart them once they stop. I was thinking using nrep to run a simple script as a shell script or a perl script. Would that be smart or do you see some better ways ? -- Le bon sens est la chose du monde la mieux partag?e. -------------- next part -------------- An HTML attachment was scrubbed... URL: From SrvFaucon at cslaval.qc.ca Tue Mar 7 20:05:40 2006 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Tue, 07 Mar 2006 14:05:40 -0500 Subject: know bug? Next check keep last value until check Message-ID: Hi all, I was testing some checks and performance issue and I changed the value "normal_check_interval" from 1440 (a day) to 60 (one hour) for one service check. This service check something like 100 UPSs. After that... /etc/init.d/nagios stop /etc/init.d/nagios start Looking at the Scheduling Queue, I look at this service, and it shows that the next check will be done in one day for all hosts! I re-schedule one of them in 2 minutes to test. After 2 minutes, Nagios did check the service of that host and the next schedule is in one hour just like it is suppose to be. Strange, normal or a bug? Nagios v2, RH9. --------------------------------------------------- Alexandre Racine - Gardien Virtuel - S?curit? Informatique www.gardienvirtuel.com Montr?al, Qu?bec, Canada ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From drwho102003-nagios at yahoo.com Tue Mar 7 20:50:08 2006 From: drwho102003-nagios at yahoo.com (drwho102003-nagios at yahoo.com) Date: Tue, 7 Mar 2006 11:50:08 -0800 (PST) Subject: what external cmd(s) to use to stop escalations/notifications ? Message-ID: <20060307195008.70504.qmail@web34315.mail.mud.yahoo.com> I've some hosts that are under attack and some hosts that will be under attack. What cmd(s) should I use to stop notifications on all of them ? I've tried ACKNOWLEDGE_SVC_PROBLEM but all it does is disabling passive checks. Some of my svc checks are active checks. Should I use DISABLE_HOST_SVC_NOTIFICATION in addition to ACKNOWLEDGE_SVC_PROBLEM ? Also, should I use ACKNOWLEDGE_HOST_PROBLEM instead ? If a host is under attack, multple services could be affected. It'll be nice to issue just one cmd instead of multiple ACKNOWLEDGE_SVC_PROBLEM. Also, should I use the sticky option for ACKNOWLEDGE_{SVC,HOST}_PROBLEM ? Remember that some of the hosts are NOT YET under attack but I THINK that they'll be within 10 mins or so... Thx much. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alekseyz at hotmail.com Tue Mar 7 20:57:03 2006 From: alekseyz at hotmail.com (aleksey zakharov) Date: Tue, 7 Mar 2006 11:57:03 -0800 Subject: Cant get NRPE working on Solaris9 References: <009d01c641a2$149e64b0$8ea8d882@438LG01sshi052> Message-ID: Steve, Thanks for your response. I'm also puzzled as to why there's a /etc/init.d/nrpe, I believe it was installed when I installed binaries: nagios-plugins-1.3.1_2-sol9-sparc-local and nrpe-1.9_5-sol9-sparc-local For now I ignore /etc/init.d/nrpe and edit /etc/inetd.conf to information that I found in README as well as to what you have described bellow. I also edited my path to point to all check_* and edited nrpe.cfg file accordingly, but I still get "CHECK_NRPE: Socket timeout after 10 seconds." from Nagios server and "daemon.error] Could not read request from client, bailing out..." from NRPE client. Executing #check_nrpe -H localhost Does work with the following output. NRPE v1.9 I've tried this on two Solaris9 boxes with the same results. Perhaps there is a problem with the built installation files that I'm installing. Thanks, Aleksey ----- Original Message ----- From: "Steve Shipway" To: "'aleksey zakharov'" Sent: Monday, March 06, 2006 8:46 PM Subject: RE: [Nagios-users] Cant get NRPE working on Solaris9 > > Modified /etc/init.d/nrpe to point to /etc/nrpe.cfg > > What? This doesn't sound right. You shouldn't have added anything in > /etc/init.d, but you should have a line added to your /etc/inetd.conf > similar to > > nrpe stream tcp nowait nobody /usr/local/nrpe/nrpe nrpe -i -c > /usr/local/nrpe/nrpe.cfg > > and then restart inetd. > > Steve > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Tue Mar 7 22:03:55 2006 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 8 Mar 2006 10:03:55 +1300 Subject: Failover nagios server In-Reply-To: <440D79AA.9060208@mgsm.ru> References: <440D79AA.9060208@mgsm.ru> Message-ID: <002b01c6422a$a56b4c50$8ea8d882@438LG01sshi052> > I have a standalone server with nagios running on it. I want > to tune up an another server, for distributed monitoring. But > main task is to provide for failover work of allover nagios > configuration - in case of failure of one of the servers > another server must provide data collection from all > monitoring servers. Is there any solutions for it? We have such a setup here. I have two Linux servers, each with 2 network cards and one Adaptec serveraid card. There is an external SCSI disk unit, connected to BOTH server's SCSI cards, with a pair of disks configured in mirror. The servers are joined by a crossed ethernet cable on the second network card. The primary network card of each is on the network. I have installed linux-HA on both servers, and have a service group consisting of a virtual IP, the filesystem on the external disk, and the nagios service. This is set to failover between servers, with one server being the primary home with autofailback. (Actually, there is also a mysql database on the nagios server, plus the BigBrother/Nagios gateway and a couple of other services, and the other server normally runs our MRTG setup on a separate filesystem, but this is just extra) Since the Adaptec Serveraid natively supports this configuration, it works very well with linux-HA and the failover goes nicely. The only thing to add is some cleanup code so that, if server1 dies, then server2 picks up the filesystem and needs to delete any Nagios.cmd pipe that may have been left lying around before starting. This was surprisingly easy to set up, once the Raid config had been done. Thereis a bitof problem with how to define 'down' -- if the network interface 1 is down (so people cannot see Nagios) but interface 2 is up (so the heartbeat still works) should it fail over? I would say no. You should also send the heartbeat over the crossed ethernet cable, since otherwise a switch going down would make the 2 servers fight over the services (but thanks to the serveraid having internal locking, youll never get both accessing the filesystem at once and corrupting data) Steve ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Tue Mar 7 23:02:23 2006 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Tue, 07 Mar 2006 17:02:23 -0500 Subject: [Solved] Nagios Performance Data shows checks aren't being completed Message-ID: I found my bug. The DNS server was experimenting lags, slowing down Nagios. There you go. --------------------------------------------------- Alexandre Racine - Gardien Virtuel - S?curit? Informatique www.gardienvirtuel.com Montr?al, Qu?bec, Canada >>> kate.harris at gmail.com 2006-03-07 06:32:48 >>> I had a similar problem and thought I had fixed it. My situation is that I have 922 services to check (at the moment, I need to ramp up to over 2,500 but the latency problem is a show-stopper at the moment). I'm using a very low-spec Dell running Solaris 10 with Nagios 2.0to do it. Using default settings, I was initially getting average check latencies of the order of 5-6 seconds which was fine, but after a day or so of no Nagios restarts, that figure would rocket to 100 seconds and stay there, not ever re-checking the majority of the services, with re-scheduled check times staying in the past, until I did a nagios reload. There was one directive which solved the stale re-check times:- check_for_orphaned_services=1 Also, I reduced a couple of timeout values so that Nagios stopped wasting time on checks which were bound to fail:- service_check_timeout=30 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 Given that the load on the machine doesn't appear to go over 0.50, I've allowed infinite concurrent services checks now, increased from 400, but that appears to be making no difference at all. And I left the reaper frequency at 10 seconds. So now the checks were being re-scheduled for times in the future, and the latencies stopped running away quite so dramatically. This is the state of things at the moment:- Active Service Checks: Time Frame Checks Completed <= 1 minute: 107 (11.6%) <= 5 minutes: 593 (64.3%) <= 15 minutes: 922 (100.0%) <= 1 hour: 922 (100.0%) Since program start: 922 (100.0%) Metric Min. Max. Average Check Execution Time: 0.06 sec 19.70 sec 0.139 sec Check Latency: 0.00 sec 17.19 sec 2.164 sec Percent State Change: 0.00% 0.00% 0.00% Passive Service Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% Active Host Checks: Time Frame Checks Completed <= 1 minute: 1 (0.9%) <= 5 minutes: 4 (3.6%) <= 15 minutes: 5 (4.5%) <= 1 hour: 5 (4.5%) Since program start: 11 (9.8%) Metric Min. Max. Average Check Execution Time: 0.02 sec 13.52 sec 0.170 sec Check Latency: 0.00 sec 8.16 sec 0.073 sec Percent State Change: 0.00% 0.00% 0.00% Passive Host Checks: Time Frame Checks Completed <= 1 minute: 0 (0.0%) <= 5 minutes: 0 (0.0%) <= 15 minutes: 0 (0.0%) <= 1 hour: 0 (0.0%) Since program start: 0 (0.0%) Metric Min. Max. Average Percent State Change: 0.00% 0.00% 0.00% However, the latencies are creeping upwards again, albeit very very slowly and at some point I think I'll have to do a reload just to get the checking back on track again. Has anyone got any ideas on where I should be looking to make this better? K -- Kate Harris http://www.totkat.org/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CWaters at jeld-wen.com Tue Mar 7 23:02:13 2006 From: CWaters at jeld-wen.com (Chris Waters) Date: Tue, 7 Mar 2006 14:02:13 -0800 Subject: status.dat object definition Message-ID: <83C21E03494FF147B56468B505517821DAFB49@jwmail01.domain.jw.local> Thanks Marc. This will go a long way. Chris Waters WAN/LAN Technician JELD-WEN, Inc. Network Services Group =================== -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Tuesday, March 07, 2006 10:22 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] status.dat object definition > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Waters > Sent: Tuesday, March 07, 2006 12:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] status.dat object definition > > Does anyone have a complete definition for the status.dat file? I need to > know the possible values and their meanings for each part of a host or > service object. I have looked through the docs but I don't seem to be > able to locate this. I need to be able to decyper the values associated > with certain parts for some real-time statistics displays. I am looking > for something like: > > current_state= 0|1|2|3 > 0 = Host/Service OK > 1 = Host Down > 2 = Service Down It's not documented at this time (for 2.0). You could use this FAQ for the 1.x status.log as a guide. There have been a number of changes but it's a good start -- http://www.nagios.org/faqs/viewfaq.php?faq_id=66 The current_state codes are the plugin exit codes -- 0 OK 1 WARNING 2 CRITICAL 3 UNKNOWN (http://nagiosplug.sourceforge.net/developer-guidelines.html). Everything else looks pretty straightforward or directly from the host/service definitions. If you have any you can't figure out or it's not clear from the source then we can help figure them out. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Tue Mar 7 23:16:13 2006 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 8 Mar 2006 11:16:13 +1300 Subject: [Solved] Nagios Performance Data shows checks aren't being completed In-Reply-To: <14A270C0E2F4124AB0B7320BDBEA949F0B90EF28@vxchange.vcr.auckland.ac.nz> References: <14A270C0E2F4124AB0B7320BDBEA949F0B90EF28@vxchange.vcr.auckland.ac.nz> Message-ID: <004201c64234$bf8b2e20$8ea8d882@438LG01sshi052> > The DNS server was experimenting lags, slowing down Nagios. To get around this problem, I installed an unpublished secondary for the DNS zone on the Nagios server. You could use a caching relay instead, although this way it holds the whole zone and can cache anything else. Made a huge difference, and decreased the load on the DNS servers as well. Steve ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Mar 7 23:17:20 2006 From: marc at ena.com (Marc Powell) Date: Tue, 7 Mar 2006 16:17:20 -0600 Subject: [Solved] Nagios Performance Data shows checks aren't being completed Message-ID: Thanks for posting back to the list. Are you using names or IP's for the host address in your definitions? Was that the lookup that was affecting your performance? We've always used IP's to try to be as independent of other systems as possible and I highly recommend it. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Serveur-Faucon Surveillance > Sent: Tuesday, March 07, 2006 4:02 PM > To: kate.harris at gmail.com; nagios-users at lists.sourceforge.net; > kat at totkat.org > Subject: [Nagios-users] [Solved] Nagios Performance Data shows checks > aren't being completed > > I found my bug. > > The DNS server was experimenting lags, slowing down Nagios. > > There you go. > > > > > > --------------------------------------------------- > Alexandre Racine - Gardien Virtuel - S?curit? Informatique > www.gardienvirtuel.com > Montr?al, Qu?bec, Canada > > >>> kate.harris at gmail.com 2006-03-07 06:32:48 >>> > I had a similar problem and thought I had fixed it. > > My situation is that I have 922 services to check (at the moment, I need > to > ramp up to over 2,500 but the latency problem is a show-stopper at the > moment). I'm using a very low-spec Dell running Solaris 10 with > Nagios 2.0to do it. Using default settings, I was initially getting > average check > latencies of the order of 5-6 seconds which was fine, but after a day or > so > of no Nagios restarts, that figure would rocket to 100 seconds and stay > there, not ever re-checking the majority of the services, with re- > scheduled > check times staying in the past, until I did a nagios reload. > > There was one directive which solved the stale re-check times:- > check_for_orphaned_services=1 > > Also, I reduced a couple of timeout values so that Nagios stopped wasting > time on checks which were bound to fail:- > service_check_timeout=30 > host_check_timeout=30 > event_handler_timeout=30 > notification_timeout=30 > > Given that the load on the machine doesn't appear to go over 0.50, I've > allowed infinite concurrent services checks now, increased from 400, but > that appears to be making no difference at all. And I left the reaper > frequency at 10 seconds. So now the checks were being re-scheduled for > times in the future, and the latencies stopped running away quite so > dramatically. > > This is the state of things at the moment:- > > Active Service Checks: Time Frame Checks Completed > <= 1 minute: 107 (11.6%) > <= 5 minutes: 593 (64.3%) > <= 15 minutes: 922 (100.0%) > <= 1 hour: 922 (100.0%) > Since program start: 922 (100.0%) > > Metric Min. Max. Average > Check Execution Time: 0.06 sec 19.70 sec 0.139 sec > Check Latency: 0.00 sec 17.19 sec 2.164 sec > Percent State Change: 0.00% 0.00% 0.00% > > > Passive Service Checks: Time Frame Checks Completed > <= 1 minute: 0 (0.0%) > <= 5 minutes: 0 (0.0%) > <= 15 minutes: 0 (0.0%) > <= 1 hour: 0 (0.0%) > Since program start: 0 (0.0%) > > Metric Min. Max. Average > Percent State Change: 0.00% 0.00% 0.00% > > > Active Host Checks: Time Frame Checks Completed > <= 1 minute: 1 (0.9%) > <= 5 minutes: 4 (3.6%) > <= 15 minutes: 5 (4.5%) > <= 1 hour: 5 (4.5%) > Since program start: 11 (9.8%) > > Metric Min. Max. Average > Check Execution Time: 0.02 sec 13.52 sec 0.170 sec > Check Latency: 0.00 sec 8.16 sec 0.073 sec > Percent State Change: 0.00% 0.00% 0.00% > > > Passive Host Checks: Time Frame Checks Completed > <= 1 minute: 0 (0.0%) > <= 5 minutes: 0 (0.0%) > <= 15 minutes: 0 (0.0%) > <= 1 hour: 0 (0.0%) > Since program start: 0 (0.0%) > > Metric Min. Max. Average > Percent State Change: 0.00% 0.00% 0.00% > > However, the latencies are creeping upwards again, albeit very very slowly > and at some point I think I'll have to do a reload just to get the > checking > back on track again. > > Has anyone got any ideas on where I should be looking to make this better? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Wed Mar 8 00:50:22 2006 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 8 Mar 2006 12:50:22 +1300 Subject: [Solved] Nagios Performance Data shows checks aren't being completed In-Reply-To: <14A270C0E2F4124AB0B7320BDBEA949F0B90EF2A@vxchange.vcr.auckland.ac.nz> References: <14A270C0E2F4124AB0B7320BDBEA949F0B90EF2A@vxchange.vcr.auckland.ac.nz> Message-ID: <004a01c64241$e6608330$8ea8d882@438LG01sshi052> > Thanks for posting back to the list. Are you using names or > IP's for the host address in your definitions? Was that the > lookup that was affecting your performance? We've always used > IP's to try to be as independent of other systems as possible > and I highly recommend it. We usually use IPs, although with a local DNS it removes our dependency on external services while retaining the flexibility of hostname. The DNS will automatically update the zone files every night from one of our several DNS servers, to keep the cache fresh. Some checks, though (such as http retrieves) we always do via hostnames as this more closely matches a user experience, and allows us to catch DNS changes that break a web site. A local DNS helps here as it means again no dependency on other servers (if we lose communication with ALL the DNS servers for 4 days (long enough for the zone to expire) then I think someone would have already noticed!) Steve ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ross.Minkov at hp.com Wed Mar 8 03:22:51 2006 From: Ross.Minkov at hp.com (Minkov, Ross) Date: Tue, 7 Mar 2006 21:22:51 -0500 Subject: Problems with RPM install Message-ID: <192E38594ACFAF4EB4F40E1C4B604723084A2A6B@tayexc13.americas.cpqcorp.net> > Results in Internal Server error. I don't know what your OS is but this > could be SELinux restrictions if you haven't allowed the proper context > for the Nagios sbin directory. Short Question: Where is the nagios sbin directory if you installed from RPM? Long Story: I just installed Nagios 2.0 (stable) on a FC4 system with SElinux enabled. I used the fc3 RPMs from http://dag.wieers.com/packages/nagios/ (dag doesn't have the FC4 RPMs out there yet): nagios-2.0-2.1.fc3.rf.i386 Also installed nagios-plugins-1.4.1-1.1.fc3.rf.i386 from http://dag.wieers.com/packages/nagios-plugins/. Seems to be ok, except I had to --nodep the installation of the plugins and add "Ignore { nagios-plugins };" to my apt.conf file (yes, I'm still using apt)... The reason was that it was complaining about Perl Net-SNMP, but I already had it installed (net-snmp-perl)... Then I copied my config files from an older server I had (with Nagios 1.2), changed a few things to comply with the new syntax and tried to get the web interface configured. I was able to get to the home page and read the online help/manual ok. But any other attempt to click on hosts, services, etc would not work. I'd get "Error: Could not read object configuration data!" No trace of this in /var/log/nagios/nagios.log... I assume I need to configure SElinux, but unfortunately I don't know how. Any pointers would be appreciated. I tried one thing: chcon -R system_u:object_r:httpd_sys_script_exec_t /usr/lib/nagios/ (although I think I only need to do this on /usr/lib/nagios/cgi/) But that didn't help a bit... Thanks, Ross -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Monday, February 27, 2006 7:41 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems with RPM install > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brook Hurd > Sent: Monday, February 27, 2006 6:22 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problems with RPM install > > The RPM install of Nagios was fairly strait forward. I installed the RPMs > for Nagios and the Nagios-plugins along with the misc. required RPMs. > Unfortunately, all the documentation is written toward a non rpm install. > Not too surprising since RPM installs can vary quite a bit depending on the packager. > The RPM file added all the appropriate httpd.conf configurations, and I > setup up proper users, etc. It is viewable at: > > [link] > > userid: guest > password: guest Results in Internal Server error. I don't know what your OS is but this could be SELinux restrictions if you haven't allowed the proper context for the Nagios sbin directory. > > [root at server nagios]# /etc/rc.d/init.d/nagios start > Starting network monitor: nagios > CONFIG ERROR! Start aborted. Check your Nagios configuration. > [root at server nagios]# > > I just cannot get it to run and cannot see the issue with the Nagios > config. Run /path/to/nagios -v /path/to/nagios.cfg. Nagios will verify your configuration files and report any errors. > I even altered ownership info in the 'nagios.conf' to root: What is the contents of this file? There isn't a nagios.conf that's part of the standard distribution. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmourati at cm.math.uiuc.edu Wed Mar 8 05:40:03 2006 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Tue, 7 Mar 2006 22:40:03 -0600 (CST) Subject: Problems with RPM install In-Reply-To: <192E38594ACFAF4EB4F40E1C4B604723084A2A6B@tayexc13.americas.cpqcorp.net> References: <192E38594ACFAF4EB4F40E1C4B604723084A2A6B@tayexc13.americas.cpqcorp.net> Message-ID: Ross, Answers inline below. On Tue, 7 Mar 2006, Minkov, Ross wrote: > > Short Question: Where is the nagios sbin directory if you installed from > RPM? Run the rpm query command against the nagios package to find out: # rpm -ql nagios|grep sbin /usr/sbin/nagios /usr/sbin/p1.pl > > > Long Story: > I just installed Nagios 2.0 (stable) on a FC4 system with SElinux > enabled. I used the fc3 RPMs from http://dag.wieers.com/packages/nagios/ > (dag doesn't have the FC4 RPMs out there yet): > > nagios-2.0-2.1.fc3.rf.i386 > > Also installed nagios-plugins-1.4.1-1.1.fc3.rf.i386 from > http://dag.wieers.com/packages/nagios-plugins/. > I use the dag repository myself. Note, however, that Nagios has been included in the FC distro so you could install the official FC package using apt-get, yum, or even up2date, e.g.: # up2date nagios > Seems to be ok, except I had to --nodep the installation of the plugins > and add "Ignore { nagios-plugins };" to my apt.conf file (yes, I'm still > using apt)... The reason was that it was complaining about Perl > Net-SNMP, but I already had it installed (net-snmp-perl)... > > Then I copied my config files from an older server I had (with Nagios > 1.2), changed a few things to comply with the new syntax and tried to > get the web interface configured. This is undoubtedly where your problem is. Copying the old config files won't get you very far. I would suggest running nagios in flight check mode as follows until you get 0 errors. You may need to iterate a few times but this is the best way to troubleshoot a bad config. # nagios -v /etc/nagios/nagios.cfg ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tony at srishtisoft.com Wed Mar 8 06:55:50 2006 From: tony at srishtisoft.com (Tony John) Date: Wed, 08 Mar 2006 11:25:50 +0530 Subject: Database Used By Nagios Message-ID: <440E71E6.8080103@srishtisoft.com> Dear all, I am a newbie to nagios. I have configured nagios to monitor our intranet. Now i have a doubt, how nagios stores the information. Whether it is in a Database or filesystem. If it is in a database then which one is that. Where can I find the Db Or files related to my installation directory. Thanks in advance and waiting for your reply. Thanks & Regards Tony John ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian.masopust at siemens.com Wed Mar 8 07:51:54 2006 From: christian.masopust at siemens.com (Masopust, Christian) Date: Wed, 8 Mar 2006 07:51:54 +0100 Subject: Active directory In-Reply-To: <7cc348bfe247832142c8aa691286dea6@85.18.90.170> References: <7cc348bfe247832142c8aa691286dea6@85.18.90.170> Message-ID: <60721B67EAF0994EAFFB561767B700140ACC69@nets13ha.ww300.siemens.net> Hello Andrea, i do this by use of "check_wins" to see if the domaincontrolers are registered to the wins-server.. check_wins -D -W -C chris > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Andreaco > Sent: Tuesday, March 07, 2006 6:50 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Active directory > > Hallo, > I need something to check the Microsoft Active Directory under Nagios. > In Nagiosexchange I found nothing related with, maybe someone > have the right > plugin for me. > For example something like Ipmonitor, specifing the microsoft > server name > (or ip) and the server port, > it outputs: Server handshaked OK. > I don't know what's the logic of this Ipmonitor check. > Can I replicate this check in Nagios ? > Thanks in advance. > Andrea > -- > Email.it, the professional e-mail, gratis per te: > http://www.email.it/f > > Sponsor: > Web Marketing: impara tutti i segreti del Posizionamento sui > Motori di > Ricerca, Pubblicita' on-line, Email Marketing ?- clicca qui > Clicca qui: > http://adv.email.it/cgi-bin/foclick.cgi?mid=3213&d=20060307 > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language > that extends applications into web and mobile media. Attend > the live webcast > and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists.rwhalen at gmail.com Wed Mar 8 14:39:01 2006 From: lists.rwhalen at gmail.com (Ryan Whalen) Date: Wed, 8 Mar 2006 08:39:01 -0500 Subject: HOST ALERT: hostabc;DOWN;SOFT;1;Segmentation fault Message-ID: <60a326f0603080539t8101fe3k210247eefc015e82@mail.gmail.com> Last night I received three alerts from devices that were down. The only service I am monitoring is ping. Instead of how it normally indicates it didnt receive a response, or timed out, the problem was identified as a "Segmentation Fault": [03-08-2006 00:37:50] HOST ALERT: host_1;DOWN;SOFT;1;Segmentation fault Any ideas what a segmentation fault means? it seems like a problem with the nagios box and not the monitoring host.. Thanks, Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Mar 8 16:12:51 2006 From: marc at ena.com (Marc Powell) Date: Wed, 8 Mar 2006 09:12:51 -0600 Subject: Database Used By Nagios Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Tony John > Sent: Tuesday, March 07, 2006 11:56 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Database Used By Nagios > > Dear all, > > I am a newbie to nagios. I have configured nagios to monitor > our intranet. Now i have a doubt, how nagios stores the information. > Whether it is in a Database or filesystem. If it is in a database then > which one is that. Where can I find the Db Or files related to my > installation directory. For a standard install/configuration of nagios-1.x or 2.0 from source, nagios uses flat files to store status information. They are located in the path specified by 'status_file' in nagios.cfg. Archived status files are stored in 'log_archive_path'. Typically /usr/local/nagios/var/ and /usr/local/nagios/var/archives respectively. Nagios-1.x natively supported mysql and pgsql databases for status information. Nagios-2.0 requires an external module. In both cases special actions are required on your part to activate those and you would know if you did it. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ntoughe at hotmail.com Wed Mar 8 17:04:31 2006 From: ntoughe at hotmail.com (NTOUGHE GUY-SERGE) Date: Wed, 08 Mar 2006 16:04:31 +0000 Subject: Nagios 2.0 config files Message-ID:

ntoughe at hotmail.com
Hi, I installed nagios 2.0 on RedHat Enterprise 4,i can access to the nagios webpage,my problem concerns, the way to declare hosts in configFiles. Normally there is no hosts.cfg file in this version(Nagios2.0) so is it correct to declare hosts in bigger.cfg or in minimal.cfg files? About services i noticed that services.cfg was absent, and i have to declare services in bigger.cfg, but i can't see all the hosts i want to monitor when i click on host detail menu!! do you have any solutions for me. regards ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Wed Mar 8 17:15:10 2006 From: jperrin at gmail.com (Jim Perrin) Date: Wed, 8 Mar 2006 11:15:10 -0500 Subject: Nagios 2.0 config files In-Reply-To: References: Message-ID: <302ce8b50603080815o56df7ed6g5da152986a805150@mail.gmail.com> On 3/8/06, NTOUGHE GUY-SERGE wrote: > > >

ntoughe at hotmail.com
> > Hi, > I installed nagios 2.0 on RedHat Enterprise 4,i can access to the nagios > webpage,my problem concerns, the way to declare hosts in configFiles. > > Normally there is no hosts.cfg file in this version(Nagios2.0) > so is it correct to declare hosts in bigger.cfg or in minimal.cfg files? > About services i noticed that services.cfg was absent, and i have to declare > services in bigger.cfg, but i can't see all the hosts i want to monitor > when i click on host detail menu!! > I did some documentation for the those of us who use RHEL and similar systems. I include sample configs and templates for checking a host and webserver. Have a look. http://www.cognitive-dissonance.org/journal/2006/02/23/configuring-nagios-on-centos-and-rhel/ -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shoktai at gmail.com Wed Mar 8 17:37:55 2006 From: shoktai at gmail.com (Toto Capuccino) Date: Wed, 8 Mar 2006 17:37:55 +0100 Subject: notes_url Message-ID: <619cf3c0603080837p13010331m@mail.gmail.com> Hi, I am using nagios 1.3 with 1.4 plugins version on debian sid server. I use a file hostextinfo.cfg to put some links on the nagios web interface that redirect to a particular URL It looks like this define hostextinfo{ hostname server1 .... notes_url http://server1/index.html } It was working great but i have done the same for a new host and the link doesn't appear after a reload of nagios even after a restart. It should be working and i would appreciate your thoughts about what make this not to work properly. Thanks in advance. -- Le bon sens est la chose du monde la mieux partag?e. -------------- next part -------------- An HTML attachment was scrubbed... URL: From SrvFaucon at cslaval.qc.ca Wed Mar 8 17:53:14 2006 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Wed, 08 Mar 2006 11:53:14 -0500 Subject: =?ISO-8859-1?Q?R=E9p.=20:=20RE:=20[Nagios-users]=20[Solved]=20Na?= =?ISO-8859-1?Q?gios=20Performance=20Data=20shows=20checks=20aren't=20bei?= =?ISO-8859-1?Q?ng=20completed?= Message-ID: You are welcome, I so think it is irresponsible or anti-openess when someone do not post the solution ;) We are using DNS names all the way except in some exceptions like core routers. Since we have 300 hosts to check and more services, managing 300 IP's that do change sometimes is too much time consuming. In this particular situation, the server hosting the dns service was at 100% from time to time. I'll be noticed now when it is 90% or more in a space of 10 minutes or more :) One partial solution was also to put --with-ipv6=no while compiling the plugins. Somehow, when no options are present, when the query goes, there is 1 ipv4 packet and 3 ipv6 packets (retrys). On the other hand, Steve Shipway suggestion of having a local DNS sound good. Or mabe there is a way to keep arp cache longer? But this goes in GNU/Linux and not in Nagios :) --------------------------------------------------- Alexandre Racine - Gardien Virtuel - S?curit? Informatique www.gardienvirtuel.com Montr?al, Qu?bec, Canada >>> "Marc Powell" 2006-03-07 17:17:20 >>> Thanks for posting back to the list. Are you using names or IP's for the host address in your definitions? Was that the lookup that was affecting your performance? We've always used IP's to try to be as independent of other systems as possible and I highly recommend it. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Serveur-Faucon Surveillance > Sent: Tuesday, March 07, 2006 4:02 PM > To: kate.harris at gmail.com; nagios-users at lists.sourceforge.net; > kat at totkat.org > Subject: [Nagios-users] [Solved] Nagios Performance Data shows checks > aren't being completed > > I found my bug. > > The DNS server was experimenting lags, slowing down Nagios. > > There you go. > > > > > > --------------------------------------------------- > Alexandre Racine - Gardien Virtuel - S?curit? Informatique > www.gardienvirtuel.com > Montr?al, Qu?bec, Canada > > >>> kate.harris at gmail.com 2006-03-07 06:32:48 >>> > I had a similar problem and thought I had fixed it. > > My situation is that I have 922 services to check (at the moment, I need > to > ramp up to over 2,500 but the latency problem is a show-stopper at the > moment). I'm using a very low-spec Dell running Solaris 10 with > Nagios 2.0to do it. Using default settings, I was initially getting > average check > latencies of the order of 5-6 seconds which was fine, but after a day or > so > of no Nagios restarts, that figure would rocket to 100 seconds and stay > there, not ever re-checking the majority of the services, with re- > scheduled > check times staying in the past, until I did a nagios reload. > > There was one directive which solved the stale re-check times:- > check_for_orphaned_services=1 > > Also, I reduced a couple of timeout values so that Nagios stopped wasting > time on checks which were bound to fail:- > service_check_timeout=30 > host_check_timeout=30 > event_handler_timeout=30 > notification_timeout=30 > > Given that the load on the machine doesn't appear to go over 0.50, I've > allowed infinite concurrent services checks now, increased from 400, but > that appears to be making no difference at all. And I left the reaper > frequency at 10 seconds. So now the checks were being re-scheduled for > times in the future, and the latencies stopped running away quite so > dramatically. > > This is the state of things at the moment:- > > Active Service Checks: Time Frame Checks Completed > <= 1 minute: 107 (11.6%) > <= 5 minutes: 593 (64.3%) > <= 15 minutes: 922 (100.0%) > <= 1 hour: 922 (100.0%) > Since program start: 922 (100.0%) > > Metric Min. Max. Average > Check Execution Time: 0.06 sec 19.70 sec 0.139 sec > Check Latency: 0.00 sec 17.19 sec 2.164 sec > Percent State Change: 0.00% 0.00% 0.00% > > > Passive Service Checks: Time Frame Checks Completed > <= 1 minute: 0 (0.0%) > <= 5 minutes: 0 (0.0%) > <= 15 minutes: 0 (0.0%) > <= 1 hour: 0 (0.0%) > Since program start: 0 (0.0%) > > Metric Min. Max. Average > Percent State Change: 0.00% 0.00% 0.00% > > > Active Host Checks: Time Frame Checks Completed > <= 1 minute: 1 (0.9%) > <= 5 minutes: 4 (3.6%) > <= 15 minutes: 5 (4.5%) > <= 1 hour: 5 (4.5%) > Since program start: 11 (9.8%) > > Metric Min. Max. Average > Check Execution Time: 0.02 sec 13.52 sec 0.170 sec > Check Latency: 0.00 sec 8.16 sec 0.073 sec > Percent State Change: 0.00% 0.00% 0.00% > > > Passive Host Checks: Time Frame Checks Completed > <= 1 minute: 0 (0.0%) > <= 5 minutes: 0 (0.0%) > <= 15 minutes: 0 (0.0%) > <= 1 hour: 0 (0.0%) > Since program start: 0 (0.0%) > > Metric Min. Max. Average > Percent State Change: 0.00% 0.00% 0.00% > > However, the latencies are creeping upwards again, albeit very very slowly > and at some point I think I'll have to do a reload just to get the > checking > back on track again. > > Has anyone got any ideas on where I should be looking to make this better? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeffwilliams05 at gmail.com Wed Mar 8 17:52:56 2006 From: jeffwilliams05 at gmail.com (Jeff Williams) Date: Wed, 8 Mar 2006 10:52:56 -0600 Subject: multiple notification/escalation definitions In-Reply-To: <17e351010603061427x71e0ac71oc7fed5ebd73e6334@mail.gmail.com> References: <17e351010603061427x71e0ac71oc7fed5ebd73e6334@mail.gmail.com> Message-ID: <17e351010603080852i7ac012e9jd20ba3f991bf33fa@mail.gmail.com> I checked again in all the documentation under advanced topics and escalation and I don't see anything about this. Is it in there and I am just missing it? On 3/6/06, Jeff Williams wrote: > > I'm wondering if I'm missing something or thinking about this > incorrectly. I have some hosts that have services and their contact > groups already defined like so: > > define service{ > use generic-service > host_name vader > service_description NTP > is_volatile 0 > check_period 24x7 > retry_check_interval 1 > contact_groups oncall,ulsysadmins,dba > notification_interval 5 > notification_period 24x7 > notification_options w,u,c,r > check_command check_ntp > } > > I also have an escalation for this service: > > define serviceescalation{ > host_name vader > service_description NTP > first_notification 2 > last_notification 2 > notification_interval 5 > contact_groups oncall > } > > define serviceescalation{ > host_name vader > service_description NTP > first_notification 3 > last_notification 4 > notification_interval 5 > contact_groups oncall,backup > } > define serviceescalation{ > host_name vader > service_description NTP > first_notification 5 > last_notification 0 > notification_interval 0 > contact_groups oncall,backup > } > > What I'm wondering is if I can add another contact for this service > that gets notified after 30 minutes, but only gets notified once. > Ideally I would like to be able to do this as easily as possible and > for an entire group of servers and for multiple services, if possible. > We are migrating from big brother and while big brother is not nearly > as complex and functional as Nagios, it can be done in big brother > with probably one line. Am I missing something though? Can a service > be defined twice? Or can I define it in an escalation that includes > the entire hostgroup that I want? Thanks in advance. > > Jeff > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Mar 8 18:26:40 2006 From: marc at ena.com (Marc Powell) Date: Wed, 8 Mar 2006 11:26:40 -0600 Subject: Nagios 2.0 config files Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of NTOUGHE GUY-SERGE > Sent: Wednesday, March 08, 2006 10:05 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios 2.0 config files > Importance: Low > > > >

ntoughe at hotmail.com
> > Hi, > I installed nagios 2.0 on RedHat Enterprise 4,i can access to the nagios > webpage,my problem concerns, the way to declare hosts in configFiles. > > Normally there is no hosts.cfg file in this version(Nagios2.0) > so is it correct to declare hosts in bigger.cfg or in minimal.cfg files? Whichever you've specified as a cfg_file in nagios.cfg. In fact, those are just example files and you don't need to use them at all. You could specify your own cfg_files or use cfg_dir. We have all our devices in separate files per region and/or function for example. cfg_file=/usr/local/nagios/etc/ena_config/tnops-hosted-dns.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-east.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-lea-east.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-middle.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-lea-middle.cfg cfg_file=/usr/local/nagios/etc/ena_config/tnops-west.cfg ... > About services i noticed that services.cfg was absent, and i have to > declare > services in bigger.cfg, but i can't see all the hosts i want to monitor > when i click on host detail menu!! Is the file specified as a cfg_file in nagios.cfg? Try running /path/to/nagios -v /path/to/nagios.cfg and look for warnings or errors. Also verify that the count of hosts and services is correct. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rstewart at eandhis.com Wed Mar 8 19:47:00 2006 From: rstewart at eandhis.com (Robert Stewart) Date: Wed, 08 Mar 2006 13:47:00 -0500 Subject: Nagios users and view that user can see Message-ID: An HTML attachment was scrubbed... URL: From marc at ena.com Wed Mar 8 19:58:00 2006 From: marc at ena.com (Marc Powell) Date: Wed, 8 Mar 2006 12:58:00 -0600 Subject: Nagios users and view that user can see Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Robert Stewart > Sent: Wednesday, March 08, 2006 12:47 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Nagios users and view that user can see > > I need to be able to create a user in nagios and only allow that user to > see only the data that has been granted access > > > > I have been reading through the documentation and I believe I need to do > the following > > > > Create a user in the .htpasswd file > > Create a contact for that user > > Create a contact_group and apply that user into the group > > Add the contact_group to the host and services in the host.cfg and > services.cfg > > > > I have done this and I can logon to nagios with the user that I have > created but that user can still see all the equipment One more step. Enable authentication in cgi.cfg - http://nagios.sourceforge.net/docs/1_0/cgiauth.html#enable_cgi_auth Also, did you create your .htaccess file in the nagios sbin directory (with the cgi's)? It needs to be there specifically for the CGI's to see the authorized username (via the REMOTE_USER environment variable). What does nagios show you logged in as (upper left hand box of any status page). -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Alan_Maxwell at hilton.com Wed Mar 8 20:25:15 2006 From: Alan_Maxwell at hilton.com (Alan Maxwell) Date: Wed, 8 Mar 2006 13:25:15 -0600 Subject: Solaris 10 and SIGHUP Message-ID: Both on Solaris 10 I have an install that when I send the nagios process a SIGHUP, it catches it, but does "hangs" or does not do the reload. I have another install , that it works as designed. Any ideas what could cause such behaviour? -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Mar 8 21:10:30 2006 From: marc at ena.com (Marc Powell) Date: Wed, 8 Mar 2006 14:10:30 -0600 Subject: HOST ALERT: hostabc;DOWN;SOFT;1;Segmentation fault Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ryan Whalen > Sent: Wednesday, March 08, 2006 7:39 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] HOST ALERT: hostabc;DOWN;SOFT;1;Segmentation fault > > Last night I received three alerts from devices that were down. The only > service I am monitoring is ping. Instead of how it normally indicates it > didnt receive a response, or timed out, the problem was identified as a > "Segmentation Fault": > > > [03-08-2006 00:37:50] HOST ALERT: host_1;DOWN;SOFT;1;Segmentation fault > > > Any ideas what a segmentation fault means? it seems like a problem with > the nagios box and not the monitoring host.. http://www.google.com/search?hs=NoO&hl=en&lr=&client=firefox-a&rls=org.m ozilla%3Aen-US%3Aofficial&q=segmentation+fault&btnG=Search Consider it a program crash. What OS, plugin and nagios versions are you using? This could be interesting to troubleshoot. My feeling is that it's /bin/ping that is segfaulting when the site is down. I would have expected nagios to report a different kind of error if the plugin crashed (i.e. check of service foo on host bar did not exit properly). I think the only way you're going to be able to narrow it down is to try the check_ping command and using /bin/ping directly when you see this to see which it is. The only seemingly relevant mention I can find of a check_ping segfault is at the bottom of this thread -- http://64.233.179.104/search?q=cache:Svba1PNB27oJ:www.nagiosexchange.org /nagiosplug-devel.31.0.html%3F%26tx_maillisttofaq_pi1%255Bmode%255D%3D1% 26tx_maillisttofaq_pi1%255BshowUid%255D%3D15650+nagios+check_ping+segfau lt&hl=en&gl=us&ct=clnk&cd=1&client=firefox-a Andreas Ericsson was troubleshooting a segfault issue but it isn't clear whether that was check_ping segfaulting or /bin/ping. Not much help I know but it's all I can offer. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists.rwhalen at gmail.com Wed Mar 8 21:29:21 2006 From: lists.rwhalen at gmail.com (Ryan Whalen) Date: Wed, 8 Mar 2006 15:29:21 -0500 Subject: HOST ALERT: hostabc;DOWN;SOFT;1;Segmentation fault In-Reply-To: References: Message-ID: <60a326f0603081229t5b32e197s207cf4a012f5fe6f@mail.gmail.com> OS is FreeBSD (5.4 i think?) and Nagios version is 2.0b4....not using any extra plugins or anything. On 3/8/06, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Ryan Whalen > > Sent: Wednesday, March 08, 2006 7:39 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] HOST ALERT: hostabc;DOWN;SOFT;1;Segmentation > fault > > > > Last night I received three alerts from devices that were down. The > only > > service I am monitoring is ping. Instead of how it normally indicates > it > > didnt receive a response, or timed out, the problem was identified as > a > > "Segmentation Fault": > > > > > > [03-08-2006 00:37:50] HOST ALERT: host_1;DOWN;SOFT;1;Segmentation > fault > > > > > > Any ideas what a segmentation fault means? it seems like a problem > with > > the nagios box and not the monitoring host.. > > http://www.google.com/search?hs=NoO&hl=en&lr=&client=firefox-a&rls=org.m > ozilla%3Aen-US%3Aofficial&q=segmentation+fault&btnG=Search > > Consider it a program crash. What OS, plugin and nagios versions are you > using? This could be interesting to troubleshoot. My feeling is that > it's /bin/ping that is segfaulting when the site is down. I would have > expected nagios to report a different kind of error if the plugin > crashed (i.e. check of service foo on host bar did not exit properly). I > think the only way you're going to be able to narrow it down is to try > the check_ping command and using /bin/ping directly when you see this to > see which it is. > > The only seemingly relevant mention I can find of a check_ping segfault > is at the bottom of this thread -- > > http://64.233.179.104/search?q=cache:Svba1PNB27oJ:www.nagiosexchange.org > /nagiosplug-devel.31.0.html%3F%26tx_maillisttofaq_pi1%255Bmode%255D%3D1% > 26tx_maillisttofaq_pi1%255BshowUid%255D%3D15650+nagios+check_ping+segfau > lt&hl=en&gl=us&ct=clnk&cd=1&client=firefox-a > > Andreas Ericsson was troubleshooting a segfault issue but it isn't clear > whether that was check_ping segfaulting or /bin/ping. > > Not much help I know but it's all I can offer. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dschlecht at doit.nv.gov Wed Mar 8 22:16:33 2006 From: dschlecht at doit.nv.gov (David Schlecht) Date: Wed, 8 Mar 2006 22:16:33 +0100 (CET) Subject: failover and notification status Message-ID: <20060308211633.CF8924F40E3@desire.netways.de> Hi All I'm planning to implement failover monitoring at our site but need to know how notification status is handled. Notifications per host/servi ce may be disabled due to flapping or because someone is working on it or has acknowledged a problem. Similarly with downtime. If I enable failover monitoring, how do I get these statuses into the slave Nagios? We sure don't want notifications to start going out, again, after someone has turned them off, if Nagios fails-over. Is this something that I can bring over with NSCA? How are people handling this, now? - David Schlecht (dschl) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ross.Minkov at hp.com Thu Mar 9 02:44:32 2006 From: Ross.Minkov at hp.com (Minkov, Ross) Date: Wed, 8 Mar 2006 20:44:32 -0500 Subject: Problems with RPM install Message-ID: <192E38594ACFAF4EB4F40E1C4B604723084A2EE5@tayexc13.americas.cpqcorp.net> Thanks for you reply. I didn't know that FC4 now has nagios included... Maybe that's why DAG never packaged nagios for FC4... The last version for FC he has in his repo is for FC3. In re: config files --> I already did the nagios -v trick and cleared all errors. My config files are ok (iow, I don't have a bad config problem). I think my problem is that I don't know enough about SElinux to configure it to allow me to see the nagios web interface. Any help in regard to nagios and SElinux would be highly appreciated. Thanks, Ross P.S. BTW, I have nothing from nagios in /sbin... rpm -ql nagios | grep bin /usr/bin/convertcfg /usr/bin/mini_epn /usr/bin/nagios /usr/bin/nagiostats /usr/bin/new_mini_epn /usr/bin/p1.pl rpm -qi nagios|head -12 Name : nagios Relocations: (not relocatable) Version : 2.0 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Release : 2.1.fc3.rf Build Date: Wed 08 Feb 2006 02:57:19 PM EST Install Date: Sun 19 Feb 2006 01:02:25 AM EST Build Host: lisse.leuven.wieers.com Group : Applications/System Source RPM: nagios-2.0-2.1.fc3.rf.src.rpm Size : 4933812 License: GPL Signature : DSA/SHA1, Wed 08 Feb 2006 05:01:29 PM EST, Key ID a20e52146b8d79e6 Packager : Dag Wieers URL : http://www.nagios.org/ Summary : Open Source host, service and network monitoring program Description : Nagios is an application, system and network monitoring application. -----Original Message----- From: Demetri Mouratis [mailto:dmourati at cm.math.uiuc.edu] Sent: Tuesday, March 07, 2006 11:40 PM To: Minkov, Ross Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems with RPM install Ross, Answers inline below. On Tue, 7 Mar 2006, Minkov, Ross wrote: > > Short Question: Where is the nagios sbin directory if you installed from > RPM? Run the rpm query command against the nagios package to find out: # rpm -ql nagios|grep sbin /usr/sbin/nagios /usr/sbin/p1.pl > > > Long Story: > I just installed Nagios 2.0 (stable) on a FC4 system with SElinux > enabled. I used the fc3 RPMs from http://dag.wieers.com/packages/nagios/ > (dag doesn't have the FC4 RPMs out there yet): > > nagios-2.0-2.1.fc3.rf.i386 > > Also installed nagios-plugins-1.4.1-1.1.fc3.rf.i386 from > http://dag.wieers.com/packages/nagios-plugins/. > I use the dag repository myself. Note, however, that Nagios has been included in the FC distro so you could install the official FC package using apt-get, yum, or even up2date, e.g.: # up2date nagios > Seems to be ok, except I had to --nodep the installation of the plugins > and add "Ignore { nagios-plugins };" to my apt.conf file (yes, I'm still > using apt)... The reason was that it was complaining about Perl > Net-SNMP, but I already had it installed (net-snmp-perl)... > > Then I copied my config files from an older server I had (with Nagios > 1.2), changed a few things to comply with the new syntax and tried to > get the web interface configured. This is undoubtedly where your problem is. Copying the old config files won't get you very far. I would suggest running nagios in flight check mode as follows until you get 0 errors. You may need to iterate a few times but this is the best way to troubleshoot a bad config. # nagios -v /etc/nagios/nagios.cfg ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From p_santos at psantos.no-ip.org Thu Mar 9 02:48:02 2006 From: p_santos at psantos.no-ip.org (Pavel Santos) Date: Wed, 8 Mar 2006 20:48:02 -0500 Subject: Nagios escalations not working Message-ID: Hello List, I'm running Nagios 2.0 on Red Hat version 4. I recently configured escalations in some of the services but it is not working. When Nagios sends a notification for a service any issue, it send the alert to the main contact group (sysadmins) and the defined escalated group at the same time, even though they are not be notified until 60 and 90 minutes respectively. Below is a sample of my escalations.cfg file. Thanks in advance. define serviceescalation{ host_name computername service_description HTTP first_notification 3 last_notification 5 notification_interval 60 contact_groups system-group } define serviceescalation{ host_name computername service_description HTTP first_notification 6 last_notification 0 notification_interval 90 contact_groups system-group } Pavel -------------- next part -------------- An HTML attachment was scrubbed... URL: From VINAY_SHARMA at advanex.co.jp Thu Mar 9 05:18:25 2006 From: VINAY_SHARMA at advanex.co.jp (VINAY_SHARMA at advanex.co.jp) Date: Thu, 9 Mar 2006 13:18:25 +0900 Subject: Problems with RPM install Message-ID: Hi, Better go for Binary installation and it will be good in working without error and you can install in few setps. just download nagios latest tar file unzip ./configure ./make ./make install and you can see installation way when you unzip tar file. Thanks & regards ************************************** Vinay Sharma Information Systems and Solutions-Associates Advanex Inc (www.advanex.co.jp) Fon : 813-3822-5863 Fax : 813-5815-7881 Email : vinay_sharma at advanex.co.jp "Minkov, Ross" ??: "Demetri Mouratis" ???: cc: nagios-users-admin at lists.sour ??: RE: [Nagios-users] Problems with RPM install ceforge.net 2006/03/09 10:44 Thanks for you reply. I didn't know that FC4 now has nagios included... Maybe that's why DAG never packaged nagios for FC4... The last version for FC he has in his repo is for FC3. In re: config files --> I already did the nagios -v trick and cleared all errors. My config files are ok (iow, I don't have a bad config problem). I think my problem is that I don't know enough about SElinux to configure it to allow me to see the nagios web interface. Any help in regard to nagios and SElinux would be highly appreciated. Thanks, Ross P.S. BTW, I have nothing from nagios in /sbin... rpm -ql nagios | grep bin /usr/bin/convertcfg /usr/bin/mini_epn /usr/bin/nagios /usr/bin/nagiostats /usr/bin/new_mini_epn /usr/bin/p1.pl rpm -qi nagios|head -12 Name : nagios Relocations: (not relocatable) Version : 2.0 Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Release : 2.1.fc3.rf Build Date: Wed 08 Feb 2006 02:57:19 PM EST Install Date: Sun 19 Feb 2006 01:02:25 AM EST Build Host: lisse.leuven.wieers.com Group : Applications/System Source RPM: nagios-2.0-2.1.fc3.rf.src.rpm Size : 4933812 License: GPL Signature : DSA/SHA1, Wed 08 Feb 2006 05:01:29 PM EST, Key ID a20e52146b8d79e6 Packager : Dag Wieers URL : http://www.nagios.org/ Summary : Open Source host, service and network monitoring program Description : Nagios is an application, system and network monitoring application. -----Original Message----- From: Demetri Mouratis [mailto:dmourati at cm.math.uiuc.edu] Sent: Tuesday, March 07, 2006 11:40 PM To: Minkov, Ross Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems with RPM install Ross, Answers inline below. On Tue, 7 Mar 2006, Minkov, Ross wrote: > > Short Question: Where is the nagios sbin directory if you installed from > RPM? Run the rpm query command against the nagios package to find out: # rpm -ql nagios|grep sbin /usr/sbin/nagios /usr/sbin/p1.pl > > > Long Story: > I just installed Nagios 2.0 (stable) on a FC4 system with SElinux > enabled. I used the fc3 RPMs from http://dag.wieers.com/packages/nagios/ > (dag doesn't have the FC4 RPMs out there yet): > > nagios-2.0-2.1.fc3.rf.i386 > > Also installed nagios-plugins-1.4.1-1.1.fc3.rf.i386 from > http://dag.wieers.com/packages/nagios-plugins/. > I use the dag repository myself. Note, however, that Nagios has been included in the FC distro so you could install the official FC package using apt-get, yum, or even up2date, e.g.: # up2date nagios > Seems to be ok, except I had to --nodep the installation of the plugins > and add "Ignore { nagios-plugins };" to my apt.conf file (yes, I'm still > using apt)... The reason was that it was complaining about Perl > Net-SNMP, but I already had it installed (net-snmp-perl)... > > Then I copied my config files from an older server I had (with Nagios > 1.2), changed a few things to comply with the new syntax and tried to > get the web interface configured. This is undoubtedly where your problem is. Copying the old config files won't get you very far. I would suggest running nagios in flight check mode as follows until you get 0 errors. You may need to iterate a few times but this is the best way to troubleshoot a bad config. # nagios -v /etc/nagios/nagios.cfg ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deviousz at gmail.com Thu Mar 9 05:37:12 2006 From: deviousz at gmail.com (Dustin) Date: Wed, 8 Mar 2006 20:37:12 -0800 Subject: scriptalias error Message-ID: <844950720603082037g7c147d4dwaae19468bcb40719@mail.gmail.com> Hello, New user here, just following the documentation to setup on RHEL4. Installed vi RPM's, getting an error when I restart httpd after I've added the configuration (modified for my system) to httpd.conf. Here's what I added: ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi/" Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user Alias /nagios /usr/share/nagios/ Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user And I get this message when restarting httpd: The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 546 will probably never match because it overlaps an earlier ScriptAlias. When i comment out these 2 lines the daemon restarts clean: ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi/" Alias /nagios /usr/share/nagios/ Ideas? TIA, dustin ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Mar 9 08:36:24 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 9 Mar 2006 08:36:24 +0100 (CET) Subject: Nagios escalations not working In-Reply-To: References: Message-ID: On Wed, 8 Mar 2006, Pavel Santos wrote: > define serviceescalation{ > > host_name computername > > service_description HTTP > > first_notification 6 > > last_notification 0 > > notification_interval 90 > > contact_groups system-group > > } Hold on. This one is configured to send notifications every 90 minutes (assuming 60 seconds is the default time measurement) But it should only trigger after 6 * 90 = 540 minutes (9 hours). But it should stop at 0 notifications which, I think, is not valid. If you remove the escalation do you get alerts to the escalation group(s) as well? Please provide relevant details like host + service definitions, nagios version ..... Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shoktai at gmail.com Thu Mar 9 11:19:42 2006 From: shoktai at gmail.com (Toto Capuccino) Date: Thu, 9 Mar 2006 11:19:42 +0100 Subject: nrpe arguments Message-ID: <619cf3c0603090219x39d45003v@mail.gmail.com> Hi, I want to launch event hancler on a remote windows host. The active nagios checks are checking exchange IS, MTA and SA and i want services to be restarted if they stop. Event handlers are enabled. I see in eventlog [09-03-2006 10:43:28] SERVICE EVENT HANDLER: ussfrsv02;Exchange IS;CRITICAL;SOFT;3;restart_exchange I put a service eventhandler in nagios services.cfg file event_handler restart_exchange and put a definition in miscommands.cfg file ####Event-Handlers############# define command { command_name restart_exchange command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c restart_exchange $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$ } I am wondering if the concept is ok. On the windows side the nrpe.cfg file got a definition for restart_exchange: # Values: 0=do not allow arguments, 1=allow command arguments dont_blame_nrpe=1 command[restart_exchange]=C:\nrpe\bin\RestartExchangeServices.cmd $ARG1$ $ARG2$ $ARG3$ And my RestartExchangeServices.cmd file contains this and at least it works in command line @ECHO off IF %1 == 'HARD' GOTO :1 ELSE GOTO :999 :1 IF %2 == 'SOFT' GOTO :2 ELSE GOTO :999 :2 IF %3 == '3' GOTO :3 :3 net start MSExchangeIS net start MSExchangeMTA net start MSExchangeSA ECHO "Services Exchange IS, MTA ans SA have been started" REM EXIT exitCode 0 GOTO :999 I commented the Exitcode because it dont see the need for eventhandler. Anyway it is not working at all :( I would greatly appreciate some thoughts, comments, help or solutions. -- Le bon sens est la chose du monde la mieux partag?e. -------------- next part -------------- An HTML attachment was scrubbed... URL: From johan.corsini at guest.minfin.fed.be Thu Mar 9 13:02:34 2006 From: johan.corsini at guest.minfin.fed.be (Johan Corsini) Date: Thu, 09 Mar 2006 13:02:34 +0100 Subject: defunct process / more than one nagios "root" process... In-Reply-To: <006501c640a2$4a63ec60$8ea8d882@438LG01sshi052> References: <006501c640a2$4a63ec60$8ea8d882@438LG01sshi052> Message-ID: <200603091302.34756.johan.corsini@guest.minfin.fed.be> Hello everyone. I am facing problems for a few days with my Nagios server (2.0b4). I often have more than one nagios "root" process (launched by the root process), and sometimes have a "defunct" nagios process. It is really anoying, as it can leads to Nagios not working any more, or, at best, only doing half of the checks it should perform,... Often, it also stops recording the results of the checks, or "forget" latest informations after a restart, rolling back to the status data of hours ago. I don't remember doing any big change lately, so I can't find why I am facing all those problems right now... Does any of you know what can cause those defunct processes, or the multiple nagios "root" processes? Or best do you know how I could avoid it :) Thanks a lot for your help, Johan. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Thu Mar 9 13:29:34 2006 From: jperrin at gmail.com (Jim Perrin) Date: Thu, 9 Mar 2006 07:29:34 -0500 Subject: Problems with RPM install In-Reply-To: References: Message-ID: <302ce8b50603090429m44898d62l913f17bd08263eec@mail.gmail.com> > Better go for Binary installation and it will be good in working > without error and you can install in few setps. > > > unzip > ./configure > > ./make > > ./make install I'm not sure what you're definition of binary is, but what you just described isn't it. That's building from source to install. In some shops where rpm based distros are mandated, this is a no-no. Your method doesn't allow for any system-wide software auditing system to know what is installed. Also, your command above will fail because it looks for the 'make' command in the current directory where it won't be. For rpm based systems, it's best to work with the tools of the system and use rpms. In doing that you have to know how to salt the general provided directions to taste. There are guides for working with nagios rpms out there. Basically, understand the theory behind the directions, and the platform becomes irrelevant. > and you can see installation way when you unzip tar file. Nope, you can see the source files. The only binaries in the nagios tarball are the images. -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pavel.santos at cyberlockconsulting.com Thu Mar 9 13:55:36 2006 From: pavel.santos at cyberlockconsulting.com (Pavel Santos) Date: Thu, 9 Mar 2006 07:55:36 -0500 Subject: Nagios escalations not working Message-ID: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C1903@EPI-EXB2.epidirect.epi> Hugo, I'm running Nagios 2.0 on Red Hat version 4 and the client machine is windows 2003 for now, but I could be another Linux or windows 2000 box. Pavel ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Hugo van der Kooij Sent: Thu 3/9/2006 2:36 AM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Nagios escalations not working On Wed, 8 Mar 2006, Pavel Santos wrote: > define serviceescalation{ > > host_name computername > > service_description HTTP > > first_notification 6 > > last_notification 0 > > notification_interval 90 > > contact_groups system-group > > } Hold on. This one is configured to send notifications every 90 minutes (assuming 60 seconds is the default time measurement) But it should only trigger after 6 * 90 = 540 minutes (9 hours). But it should stop at 0 notifications which, I think, is not valid. If you remove the escalation do you get alerts to the escalation group(s) as well? Please provide relevant details like host + service definitions, nagios version ..... Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wouter.mignon at khleuven.be Thu Mar 9 15:10:01 2006 From: wouter.mignon at khleuven.be (Wouter Mignon) Date: Thu, 09 Mar 2006 15:10:01 +0100 Subject: Host checks not working on certain hosts Message-ID: <44103739.60006@khleuven.be> Hello, I have a few switches that don't have any services attached, some of them do their host-check and i receive mail/sms when they have are unreachable but a few stay in PENDING state and don't seem to do any checks. What could be wrong? -- snip --- switch_cd UP No matching services View Extended Information For This Host View Service Details For This Host switch_dlod UP No matching services View Extended Information For This Host View Service Details For This Host switch_dloh UP No matching services View Extended Information For This Host View Service Details For This Host switch_echo UP No matching services View Extended Information For This Host View Service Details For This Host switch_ludit UP No matching services View Extended Information For This Host View Service Details For This Host switch_ludit_servers PENDING No matching services View Extended Information For This Host View Service Details For This Host switch_rega UP No matching services View Extended Information For This Host View Service Details For This Host switch_rega_gigabit UP No matching services View Extended Information For This Host View Service Details For This Host switch_rega_ilwb UP No matching services View Extended Information For This Host View Service Details For This Host switch_ssh UP No matching services View Extended Information For This Host View Service Details For This Host switch_vv PENDING No matching services View Extended Information For This Host View Service Details For This Host switch_vv_straf PENDING No matching services View Extended Information For This Host View Service Details For This Host -- snip --- greets, Wouter Mignon ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gwcook at arcadis-us.com Thu Mar 9 15:23:30 2006 From: gwcook at arcadis-us.com (Cook, Garry) Date: Thu, 9 Mar 2006 07:23:30 -0700 Subject: Host checks not working on certain hosts Message-ID: <38D6D515FC15924693F2640881AF462032B9DE@corpexbe2.arcadis-us.com> What could be wrong is that you have a few switches that don't have any services attached. Please read the fine manual at: http://nagios.sourceforge.net/docs/1_0/ Specifically, the Network Reachability portion of the Theory of Operations section: http://nagios.sourceforge.net/docs/1_0/networkreachability.html And the FAQ at: http://www.nagios.org/faqs/viewfaq.php?faq_id=39 Thanks, Garry -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Wouter Mignon Sent: Thursday, March 09, 2006 7:10 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Host checks not working on certain hosts Hello, I have a few switches that don't have any services attached, some of them do their host-check and i receive mail/sms when they have are unreachable but a few stay in PENDING state and don't seem to do any checks. What could be wrong? [snip] greets, Wouter Mignon ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 9 15:26:52 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 08:26:52 -0600 Subject: Host checks not working on certain hosts Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Wouter Mignon > Sent: Thursday, March 09, 2006 8:10 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host checks not working on certain hosts > > Hello, > > I have a few switches that don't have any services attached, some of > them do their host-check and i receive mail/sms when they have are > unreachable but a few stay in PENDING state and don't seem to do any > checks. What could be wrong? > Nagios is first-and-foremost a service monitor. With few exceptions*, host checks are never executed unless a service on that host returns a non-OK state. You need to have at least one service defined per host if you want it to be checked regularly. That service could be just another ping check. As to why some show OK and others show PENDING, I would speculate that they are listed as the parent for a device that has failed in the past. Nagios will check the host status of parents to determine if a child is down or unreachable due to higher level outages. * Starting with Nagios 2.0 you _can_ have regularly scheduled host checks but they affect performance and are discouraged. The parent checks are another case where a host check may be executed without a failure of a service on the device. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jduraisw at smtp.aed.org Thu Mar 9 15:44:49 2006 From: jduraisw at smtp.aed.org (John Duraiswamy) Date: Thu, 09 Mar 2006 09:44:49 -0500 Subject: Nagios 2.0 and cgi Message-ID: Hello everyone, I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0 on sles 9 and everything worked fine except for "statusmap.cgi trends.cgi histogram.cgi " did not get compiled. I have all the requirements(gd,zlib and png) on the server to compile cgi stuff. If anyone have any workaround on this please let me know. Thanks John Duraiswamy, CCNP Network Engineer Academy for Educational Development Washington, DC Tel. 202-884-8116 Fax. 202-884-8464 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Mar 9 15:48:15 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 9 Mar 2006 15:48:15 +0100 (CET) Subject: Nagios escalations not working In-Reply-To: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C1903@EPI-EXB2.epidirect.epi> References: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C1903@EPI-EXB2.epidirect.epi> Message-ID: On Thu, 9 Mar 2006, Pavel Santos wrote: > Hugo, > > I'm running Nagios 2.0 on Red Hat version 4 and the client machine is windows 2003 for now, but I could be another Linux or windows 2000 box. We do not care what your client machine is. But we do care about your definitions in nagios config files. You have not shown a bit of that config so there is still very little to go on. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gorste at tesco.net Thu Mar 9 16:01:00 2006 From: gorste at tesco.net (Gordon Stewart) Date: Thu, 9 Mar 2006 15:01:00 +0000 Subject: Nagios 2.0 and cgi Message-ID: <20060309150100.FQGC1347.aamtaout02-winn.ispmail.ntl.com@smtp.ntlworld.com> John Are you getting an Internal Server error when to click on the links? I am having the same issues. Thanks Gordon > > From: "John Duraiswamy" > Date: 2006/03/09 Thu PM 02:44:49 GMT > To: > Subject: [Nagios-users] Nagios 2.0 and cgi > > Hello everyone, > I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0 on > sles 9 and everything worked fine except for "statusmap.cgi trends.cgi > histogram.cgi " did not get compiled. I have all the > requirements(gd,zlib and png) on the server to compile cgi stuff. If > anyone have any workaround on this please let me know. > > Thanks > > > John Duraiswamy, CCNP > Network Engineer > Academy for Educational Development > Washington, DC > Tel. 202-884-8116 > Fax. 202-884-8464 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Alan_Maxwell at hilton.com Thu Mar 9 16:00:13 2006 From: Alan_Maxwell at hilton.com (Alan Maxwell) Date: Thu, 9 Mar 2006 09:00:13 -0600 Subject: Security in the cgi Message-ID: Is it possible to setup the security to allow a login to be able acknowledge alerts but not be able to disable services and hosts? Using nagios 2.0 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jduraisw at smtp.aed.org Thu Mar 9 16:07:12 2006 From: jduraisw at smtp.aed.org (John Duraiswamy) Date: Thu, 09 Mar 2006 10:07:12 -0500 Subject: Nagios 2.0 and cgi Message-ID: Gordon, Yep I am getting the same errors. "The requested URL /nagios/cgi-bin/trends.cgi was not found on this server" under /sbin I find the following but not the statusmap.cgi, trends.cgi and histogram.cgi . cmd.cgi history.cgi outages.cgi statuswml.cgi tac.cgi .. config.cgi .htaccess showlog.cgi statuswrl.cgi avail.cgi extinfo.cgi notifications.cgi status.cgi summary.cgi >>> Gordon Stewart 3/9/2006 10:01:00 AM >>> John Are you getting an Internal Server error when to click on the links? I am having the same issues. Thanks Gordon > > From: "John Duraiswamy" > Date: 2006/03/09 Thu PM 02:44:49 GMT > To: > Subject: [Nagios-users] Nagios 2.0 and cgi > > Hello everyone, > I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0 on > sles 9 and everything worked fine except for "statusmap.cgi trends.cgi > histogram.cgi " did not get compiled. I have all the > requirements(gd,zlib and png) on the server to compile cgi stuff. If > anyone have any workaround on this please let me know. > > Thanks > > > John Duraiswamy, CCNP > Network Engineer > Academy for Educational Development > Washington, DC > Tel. 202-884-8116 > Fax. 202-884-8464 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rafaelc at vegait.com.br Thu Mar 9 16:06:08 2006 From: rafaelc at vegait.com.br (Rafael Bandeira da Costa) Date: Thu, 09 Mar 2006 12:06:08 -0300 Subject: Security in the cgi In-Reply-To: References: Message-ID: <44104460.6030108@vegait.com.br> Alan Maxwell escreveu: > Is it possible to setup the security to allow a login to be able > acknowledge alerts but not be able to disable services and hosts? > Using nagios 2.0 > You can secure it within apache. I just use the following in my /etc/httpd/conf.d/nagios.conf (maybe you use another file to that) / Require user nagios /Hope that helps you. -- Rafael Costa rafaelc at vegait.com.br Curitiba - Paran? - Brasil -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ross.Minkov at hp.com Thu Mar 9 16:06:37 2006 From: Ross.Minkov at hp.com (Minkov, Ross) Date: Thu, 9 Mar 2006 10:06:37 -0500 Subject: Problems with RPM install Message-ID: <192E38594ACFAF4EB4F40E1C4B604723085067EF@tayexc13.americas.cpqcorp.net> Thanks Jim. I was going to reply, but you beat me to it... :) I totally agree with you. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jim Perrin Sent: Thursday, March 09, 2006 7:30 AM To: VINAY_SHARMA at advanex.co.jp Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems with RPM install > Better go for Binary installation and it will be good in working > without error and you can install in few setps. > > > unzip > ./configure > > ./make > > ./make install I'm not sure what you're definition of binary is, but what you just described isn't it. That's building from source to install. In some shops where rpm based distros are mandated, this is a no-no. Your method doesn't allow for any system-wide software auditing system to know what is installed. Also, your command above will fail because it looks for the 'make' command in the current directory where it won't be. For rpm based systems, it's best to work with the tools of the system and use rpms. In doing that you have to know how to salt the general provided directions to taste. There are guides for working with nagios rpms out there. Basically, understand the theory behind the directions, and the platform becomes irrelevant. > and you can see installation way when you unzip tar file. Nope, you can see the source files. The only binaries in the nagios tarball are the images. -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rafaelc at vegait.com.br Thu Mar 9 16:25:17 2006 From: rafaelc at vegait.com.br (Rafael Bandeira da Costa) Date: Thu, 09 Mar 2006 12:25:17 -0300 Subject: Nagios escalations not working In-Reply-To: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C1903@EPI-EXB2.epidirect.epi> References: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C1903@EPI-EXB2.epidirect.epi> Message-ID: <441048DD.5050008@vegait.com.br> Hugo van der Kooij escreveu: >Hold on. This one is configured to send notifications every 90 minutes >(assuming 60 seconds is the default time measurement) But it should only >trigger after 6 * 90 = 540 minutes (9 hours). But it should stop at 0 >notifications which, I think, is not valid. > > Hugo, actually setting last_notification to 0 is valid, and it means nagios will use this escalation /ad infinitum /(in case there are no other escalation "overwriting" these settings - in which case nagios send notifications in the smallest time frame defined), as we can see on manual (http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#serviceescalation): /*last_notification*: This directive is a number that identifies the //last notification for which this escalation is effective. For instance, if you set this value to 5, this escalation will not be used if more than five notifications are sent out for the service. Setting this value to 0 means to keep using this escalation entry forever (no matter how many notifications go out)./_/ /_ Pavel Santos escreveu: > I'm running Nagios 2.0 on Red Hat version 4. I recently configured > escalations in some of the services but it is not working. When > Nagios sends a notification for a service any issue, it send the alert > to the main contact group (sysadmins) and the defined escalated group > at the same time, even though they are not be notified until 60 and 90 > minutes respectively. Below is a sample of my escalations.cfg file. > Thanks in advance. > Pavel, I haven't understood your problem: does nagios send notifications for both groups since the first notification? And as Hugo has said, you are misinterpretting the docs for escalations: they are not defined to be sent notifications to system-group after 60 and 90 minutes, they mean they are going to be sent every 60 minutes from notifications number 3 to 5, and every 90 minutes from the sixth notification on. -- Rafael Costa rafaelc at vegait.com.br Curitiba - Paran? - Brasil -------------- next part -------------- An HTML attachment was scrubbed... URL: From tcruicksh at gmail.com Thu Mar 9 15:56:58 2006 From: tcruicksh at gmail.com (Tom Cruickshank) Date: Thu, 9 Mar 2006 09:56:58 -0500 Subject: escalation procedures? Message-ID: Hello, I was wondering if it was possible to configure Nagios in a way that if it detects something going down or unreachable, it sends an email to one person, but if it detects it again on the 2nd time, it sends an email to a different person? Kind of like escalation procedures. I tried looking in the manual but could not find anything of that nature. Would anyone happen to know? Thanks for any assistance. Tom Cruickshank -------------- next part -------------- An HTML attachment was scrubbed... URL: From werner.flamme at ufz.de Thu Mar 9 16:36:50 2006 From: werner.flamme at ufz.de (Werner Flamme) Date: Thu, 09 Mar 2006 16:36:50 +0100 Subject: escalation procedures? In-Reply-To: References: Message-ID: <44104B92.1080506@ufz.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tom Cruickshank schrieb am 09.03.2006 15:56: > Hello, > I was wondering if it was possible to configure Nagios in a way that > if it detects something going down or unreachable, it sends an email to one > person, but if it detects it again on the 2nd time, it sends an email to a > different person? Kind of like escalation procedures. > > I tried looking in the manual but could not find anything of that nature. > > Would anyone happen to know? > > Thanks for any assistance. > > Tom Cruickshank > Tom, are you kidding? ;-) Search the mailing list archive for "escalation" or "service escalation", you will find a lot about it. And maybe you read even where to look in the manual ;-) For Release 2.0, look at http://nagios.sourceforge.net/docs/2_0/toc.html. You will find "Notification escalations" under the heading "Advanced Topics". And when you want the documentation of Version 1.x, just change /2_0/ to /1_0/ in the URL. Took me 3 minutes to find out. HTH, Werner - -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15 - 04318 Leipzig Tel.: (0341) 235-3921 - Fax (0341) 235-453921 http://www.ufz.de - eMail: werner.flamme at ufz.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEEEuSk33Krq8b42MRArsCAJ9N9op1X/IHFjS0JTAtNWedSd/XdQCffmn5 QtzJ+Uc2ERFtN1EmtIFqn20= =gmUl -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nuffers at tsainc.com Thu Mar 9 16:39:32 2006 From: nuffers at tsainc.com (nuffers at tsainc.com) Date: Thu, 9 Mar 2006 09:39:32 -0600 Subject: Providing configuration Reports In-Reply-To: <20060308040718.0234189490@sc8-sf-spam1.sourceforge.net> References: <20060308040718.0234189490@sc8-sf-spam1.sourceforge.net> Message-ID: I'm looking for a way to send reports on what is currently being monitored to different functional areas. I currently have subdirectories for each of the functional areas. Each has their own hosts.cfg, hostgroups.cfg, services.cfg ....etc. Not all individuals receiving the reports will have access to Nagios. I would like to pull it directly from Nagios but I don't currently see a way that will provide that. The report would be in column format. Type host_name alias address host myhostname myhostname xxx.xxx.xxx.xxx Does anyone have a script/programs that would assist with this from the command line? Steve Nagios 2.X FedoraCore3 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jperrin at gmail.com Thu Mar 9 16:44:55 2006 From: jperrin at gmail.com (Jim Perrin) Date: Thu, 9 Mar 2006 10:44:55 -0500 Subject: Security in the cgi In-Reply-To: <44104460.6030108@vegait.com.br> References: <44104460.6030108@vegait.com.br> Message-ID: <302ce8b50603090744o446e77c0tcf81e0a291f19fda@mail.gmail.com> On 3/9/06, Rafael Bandeira da Costa wrote: > Alan Maxwell escreveu: > > Is it possible to setup the security to allow a login to be able acknowledge > alerts but not be able to disable services and hosts? > Using nagios 2.0 > > There is a patch at http://altinity.blogs.com/dotorg/patches/issue_commands_1.patch that allows users to view items, but not issue any changes. It seems to work rather well. Hopefully it or something like it will make it in the next 2.x update. It looks much nicer than the .htaccess denial from a user perspective. See the 26 Feb article here http://altinity.blogs.com/dotorg/nagios/index.html -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tcruicksh at gmail.com Thu Mar 9 16:47:43 2006 From: tcruicksh at gmail.com (Tom Cruickshank) Date: Thu, 9 Mar 2006 10:47:43 -0500 Subject: escalation procedures? In-Reply-To: <44104B92.1080506@ufz.de> References: <44104B92.1080506@ufz.de> Message-ID: I seem to need a visit to the eye doctor. Apparnantly my eye sight is just not what it used to be. Now if only I could remove my original email from the mailing list :P Tom On 3/9/06, Werner Flamme wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Tom Cruickshank schrieb am 09.03.2006 15:56: > > Hello, > > I was wondering if it was possible to configure Nagios in a way > that > > if it detects something going down or unreachable, it sends an email to > one > > person, but if it detects it again on the 2nd time, it sends an email to > a > > different person? Kind of like escalation procedures. > > > > I tried looking in the manual but could not find anything of that > nature. > > > > Would anyone happen to know? > > > > Thanks for any assistance. > > > > Tom Cruickshank > > > Tom, > > are you kidding? ;-) > > Search the mailing list archive for "escalation" or "service escalation", > you will find a lot about it. And maybe you read even where to look in the > manual ;-) > > For Release 2.0, look at http://nagios.sourceforge.net/docs/2_0/toc.html. > You will find "Notification escalations" under the heading "Advanced > Topics". And when you want the documentation of Version 1.x, just change > /2_0/ to /1_0/ in the URL. > > Took me 3 minutes to find out. > > HTH, > Werner > > - -- > Werner Flamme, Abt. WKDV > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, > Permoserstr. 15 - 04318 Leipzig > Tel.: (0341) 235-3921 - Fax (0341) 235-453921 > http://www.ufz.de - eMail: werner.flamme at ufz.de > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEEEuSk33Krq8b42MRArsCAJ9N9op1X/IHFjS0JTAtNWedSd/XdQCffmn5 > QtzJ+Uc2ERFtN1EmtIFqn20= > =gmUl > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthias.eble at mailing.kaufland-informationssysteme.com Thu Mar 9 16:47:41 2006 From: matthias.eble at mailing.kaufland-informationssysteme.com (Matthias Eble) Date: Thu, 09 Mar 2006 16:47:41 +0100 Subject: defunct process / more than one nagios "root" process... In-Reply-To: <200603091302.34756.johan.corsini@guest.minfin.fed.be> References: <006501c640a2$4a63ec60$8ea8d882@438LG01sshi052> <200603091302.34756.johan.corsini@guest.minfin.fed.be> Message-ID: <44104E1D.50405@mailing.kaufland-informationssysteme.com> hi list, > > I am facing problems for a few days with my Nagios server (2.0b4). > I often have more than one nagios "root" process (launched by the root > process), and sometimes have a "defunct" nagios process. > > It is really anoying, as it can leads to Nagios not working any more, or, at > best, only doing half of the checks it should perform,... > Often, it also stops recording the results of the checks, or "forget" latest > informations after a restart, rolling back to the status data of hours ago. > > I don't remember doing any big change lately, so I can't find why I am facing > all those problems right now... > > Does any of you know what can cause those defunct processes, or the multiple > nagios "root" processes? Or best do you know how I could avoid it :) > we are ocassionaly experiencing the some of your problems, too. I have thought, that this was a special issue in our Environment. I am about to update to 2.0 stable because of the changelog entry Fix for segfault in timed event queue I don't know what this fix does, but I think, it sounds related. Anyone experiencing similar behavior? matthias ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmourani at privalodc.com Thu Mar 9 16:16:26 2006 From: gmourani at privalodc.com (gmourani at privalodc.com) Date: Thu, 9 Mar 2006 10:16:26 -0500 (EST) Subject: Nagios doesn't send mail! Message-ID: <63441.64.235.216.178.1141917386.squirrel@webmail.privalodc.com> Hello list, I'm using nagios 1.2 and it's working fine except the fact that it doens't send mail when servicegoes down! I can see on the web interface that the service is down (red) but I don't get emailed on my phone or email address. The mail program is working on the server, I can use command like "sendmail name at domain.com < /tmp/testmail.txt" and receive the email, I can also use /bin/mail -s to send mail via the terminal and I receive it, therefore /bin/mail and /usr/sbin/sendmail work. I know that Nagios use /bin/mail to send alert because that is what is used and configured inside the misscommand.cfg file. So I don't understand why Nagios doesn't alert me when hosts or service goes down. Somebody has an idea? Thanks. Gerhard, ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JasonFrank at srcp.com Thu Mar 9 17:10:53 2006 From: JasonFrank at srcp.com (Frank, Jason) Date: Thu, 9 Mar 2006 10:10:53 -0600 Subject: Nagios doesn't send mail! Message-ID: <741E24F735AED141B61948AC155E7DAA741EBE@CORPDALLMSG05.na.srcp.net> Do you seeing it trying to send a notification in the log file? Perhaps you've configured it not to send emails. Jason -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of gmourani at privalodc.com Sent: Thursday, March 09, 2006 9:16 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios doesn't send mail! Hello list, I'm using nagios 1.2 and it's working fine except the fact that it doens't send mail when servicegoes down! I can see on the web interface that the service is down (red) but I don't get emailed on my phone or email address. The mail program is working on the server, I can use command like "sendmail name at domain.com < /tmp/testmail.txt" and receive the email, I can also use /bin/mail -s to send mail via the terminal and I receive it, therefore /bin/mail and /usr/sbin/sendmail work. I know that Nagios use /bin/mail to send alert because that is what is used and configured inside the misscommand.cfg file. So I don't understand why Nagios doesn't alert me when hosts or service goes down. Somebody has an idea? Thanks. Gerhard, ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null This message (including any attachments) may contain confidential or otherwise privileged information and is intended only for the individual(s) to which it is addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or that arise as a result of e-mail transmission. If verification is required please request a hard-copy version from the sender. SOURCECORP, Incorporated www.srcp.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmourani at privalodc.com Thu Mar 9 16:28:45 2006 From: gmourani at privalodc.com (gmourani at privalodc.com) Date: Thu, 9 Mar 2006 10:28:45 -0500 (EST) Subject: Nagios doesn't send mail! In-Reply-To: <741E24F735AED141B61948AC155E7DAA741EBE@CORPDALLMSG05.na.srcp.net> References: <741E24F735AED141B61948AC155E7DAA741EBE@CORPDALLMSG05.na.srcp.net> Message-ID: <63352.64.235.216.178.1141918125.squirrel@webmail.privalodc.com> Hello Frank, > Do you seeing it trying to send a notification in the log file? No, the log file (nagios.log) doesn't show any notification, I can see other info like service alert but nothing about email send notification. > Perhaps you've configured it not to send emails. How/where can I check for this? Gerhard, > Do you seeing it trying to send a notification in the log file? Perhaps > you've configured it not to send emails. > > Jason > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > gmourani at privalodc.com > Sent: Thursday, March 09, 2006 9:16 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios doesn't send mail! > > Hello list, > > I'm using nagios 1.2 and it's working fine except the fact that it > doens't send mail when servicegoes down! I can see on the web interface > that the service is down (red) but I don't get emailed on my phone or > email address. > > The mail program is working on the server, I can use command like > "sendmail name at domain.com < /tmp/testmail.txt" and receive the email, I > can also use /bin/mail -s to send mail via the terminal and I receive > it, therefore /bin/mail and /usr/sbin/sendmail work. I know that Nagios > use /bin/mail to send alert because that is what is used and configured > inside the misscommand.cfg file. So I don't understand why Nagios > doesn't alert me when hosts or service goes down. > > Somebody has an idea? Thanks. > > Gerhard, > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language that extends applications into web and mobile media. Attend the > live webcast and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > This message (including any attachments) may > contain confidential or otherwise privileged information and is intended > only for the individual(s) to which it is addressed. If you are not the > named addressee you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately by e-mail if you have > received this e-mail by mistake and delete this e-mail from your system. > E-mail transmission cannot be guaranteed to be secured or error-free as > information could be intercepted, corrupted, lost, destroyed, arrive late > or incomplete, or contain viruses. The sender therefore does not accept > liability for any errors or omissions in the contents of this message or > that arise as a result of e-mail transmission. If verification is required > please request a hard-copy version from the sender. > > SOURCECORP, Incorporated > www.srcp.com > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deviousz at gmail.com Thu Mar 9 17:50:41 2006 From: deviousz at gmail.com (Dustin) Date: Thu, 9 Mar 2006 08:50:41 -0800 Subject: scriptalias error In-Reply-To: References: <844950720603082037g7c147d4dwaae19468bcb40719@mail.gmail.com> Message-ID: <844950720603090850l39067900y6f6457485bbb1d42@mail.gmail.com> Thanks for the reply, but how am I supposed to know this? The setup docs here say to add those lines to my httpd.conf: http://nagios.sourceforge.net/docs/2_0/installweb.html Is this outdated documentation that I'm following? On 3/8/06, Hugo van der Kooij wrote: > On Wed, 8 Mar 2006, Dustin wrote: > > > New user here, just following the documentation to setup on RHEL4. > > Installed vi RPM's, getting an error when I restart httpd after I've > > added the configuration (modified for my system) to httpd.conf. > > You should not have added these lines to httpd.conf. Beacause you allready > have a valid new config part in ../conf.d/nagios.conf > > Please familiarize yourself a bit more with the config setup of your > apache installation and read the other config files in conf.d as well to > see if you have no further duplication. > > Hugo. > > -- > I hate duplicates. Just reply to the relevant mailinglist. > hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ > Don't meddle in the affairs of magicians, > for they are subtle and quick to anger. > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 9 18:11:12 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 11:11:12 -0600 Subject: Nagios 2.0 and cgi Message-ID: cgi's being missing is different than an Apache Internal Server Error. Nagios was not able to automagically locate the required libraries you correctly noted below at compile time. They're probably located in non-standard locations. You'll need to pass the following flags to ./configure -- --with-gd-lib=DIR sets location of the gd library --with-gd-inc=DIR sets location of the gd include files -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of John Duraiswamy > Sent: Thursday, March 09, 2006 9:07 AM > To: nagios-users at lists.sourceforge.net; Gordon Stewart > Subject: Re: [Nagios-users] Nagios 2.0 and cgi > > Gordon, > Yep I am getting the same errors. "The requested URL > /nagios/cgi-bin/trends.cgi was not found on this server" > > under /sbin I find the following but not the statusmap.cgi, trends.cgi > and histogram.cgi > > . cmd.cgi history.cgi outages.cgi statuswml.cgi > tac.cgi > .. config.cgi .htaccess showlog.cgi statuswrl.cgi > avail.cgi extinfo.cgi notifications.cgi status.cgi summary.cgi > > >>> Gordon Stewart 3/9/2006 10:01:00 AM >>> > John > > Are you getting an Internal Server error when to click on the links? > > I am having the same issues. > > Thanks > > Gordon > > > > > > From: "John Duraiswamy" > > Date: 2006/03/09 Thu PM 02:44:49 GMT > > To: > > Subject: [Nagios-users] Nagios 2.0 and cgi > > > > Hello everyone, > > I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0 > on > > sles 9 and everything worked fine except for "statusmap.cgi > trends.cgi > > histogram.cgi " did not get compiled. I have all the > > requirements(gd,zlib and png) on the server to compile cgi stuff. If > > anyone have any workaround on this please let me know. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 9 18:13:18 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 11:13:18 -0600 Subject: Security in the cgi Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Rafael Bandeira da Costa > Sent: Thursday, March 09, 2006 9:06 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Security in the cgi > > Alan Maxwell escreveu: > > Is it possible to setup the security to allow a login to be able > acknowledge alerts but not be able to disable services and hosts? > Using nagios 2.0 > > > > You can secure it within apache. I just use the following in my > /etc/httpd/conf.d/nagios.conf (maybe you use another file to that) > > > Require user nagios > > > Hope that helps you. This is incorrect information. The level of granularity requested is not possible with apache security or within Nagios itself. It's all or nothing unfortunately unless you edit the source to include that functionality. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 9 18:20:03 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 11:20:03 -0600 Subject: Nagios doesn't send mail! Message-ID: http://nagios.sourceforge.net/docs/1_0/configmain.html#enable_notificati ons http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host (notification_* settings) http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service (notification_* settings) http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact (notification settings) -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of gmourani at privalodc.com > Sent: Thursday, March 09, 2006 9:29 AM > To: Frank, Jason > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios doesn't send mail! > > Hello Frank, > > > Do you seeing it trying to send a notification in the log file? > No, the log file (nagios.log) doesn't show any notification, I can see > other info like service alert but nothing about email send notification. > > > Perhaps you've configured it not to send emails. > How/where can I check for this? > > Gerhard, > > > Do you seeing it trying to send a notification in the log file? Perhaps > > you've configured it not to send emails. > > > > Jason > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > > gmourani at privalodc.com > > Sent: Thursday, March 09, 2006 9:16 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios doesn't send mail! > > > > Hello list, > > > > I'm using nagios 1.2 and it's working fine except the fact that it > > doens't send mail when servicegoes down! I can see on the web interface > > that the service is down (red) but I don't get emailed on my phone or > > email address. > > > > The mail program is working on the server, I can use command like > > "sendmail name at domain.com < /tmp/testmail.txt" and receive the email, I > > can also use /bin/mail -s to send mail via the terminal and I receive > > it, therefore /bin/mail and /usr/sbin/sendmail work. I know that Nagios > > use /bin/mail to send alert because that is what is used and configured > > inside the misscommand.cfg file. So I don't understand why Nagios > > doesn't alert me when hosts or service goes down. > > > > Somebody has an idea? Thanks. > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 9 18:23:21 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 11:23:21 -0600 Subject: scriptalias error Message-ID: The document is written for the source install, the primary method of installation. RPM installs can vary widely and any package specific changes made should be documented by the package maintainer. Ethan does not directly manage, maintain or host RPM installations of Nagios. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dustin > Sent: Thursday, March 09, 2006 10:51 AM > To: Nagios Users Mailinglist > Subject: Re: [Nagios-users] scriptalias error > > Thanks for the reply, but how am I supposed to know this? The setup > docs here say to add those lines to my httpd.conf: > > http://nagios.sourceforge.net/docs/2_0/installweb.html > > Is this outdated documentation that I'm following? > > > > On 3/8/06, Hugo van der Kooij wrote: > > On Wed, 8 Mar 2006, Dustin wrote: > > > > > New user here, just following the documentation to setup on RHEL4. > > > Installed vi RPM's, getting an error when I restart httpd after I've > > > added the configuration (modified for my system) to httpd.conf. > > > > You should not have added these lines to httpd.conf. Beacause you > allready > > have a valid new config part in ../conf.d/nagios.conf > > > > Please familiarize yourself a bit more with the config setup of your > > apache installation and read the other config files in conf.d as well to > > see if you have no further duplication. > > > > Hugo. > > > > -- > > I hate duplicates. Just reply to the relevant mailinglist. > > hvdkooij at vanderkooij.org > http://hvdkooij.xs4all.nl/ > > Don't meddle in the affairs of magicians, > > for they are subtle and quick to anger. > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > > that extends applications into web and mobile media. Attend the live > webcast > > and join the prime developer group breaking into this new coding > territory! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pavel.santos at cyberlockconsulting.com Thu Mar 9 18:26:43 2006 From: pavel.santos at cyberlockconsulting.com (Pavel Santos) Date: Thu, 9 Mar 2006 12:26:43 -0500 Subject: Nagios escalations not working Message-ID: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C1904@EPI-EXB2.epidirect.epi> Hugo, this is my escalations.cfg file: for now define serviceescalation{ host_name server1 service_description HTTP first_notification 3 last_notification 5 notification_interval 60 contact_groups system-manager } define serviceescalation{ host_name server1 service_description HTTP first_notification 6 last_notification 10 notification_interval 90 contact_groups system-manager } ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Hugo van der Kooij Sent: Thu 3/9/2006 9:48 AM To: Nagios Users Mailinglist Subject: RE: [Nagios-users] Nagios escalations not working On Thu, 9 Mar 2006, Pavel Santos wrote: > Hugo, > > I'm running Nagios 2.0 on Red Hat version 4 and the client machine is windows 2003 for now, but I could be another Linux or windows 2000 box. We do not care what your client machine is. But we do care about your definitions in nagios config files. You have not shown a bit of that config so there is still very little to go on. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From richard.hobbs at crl.toshiba.co.uk Thu Mar 9 18:43:28 2006 From: richard.hobbs at crl.toshiba.co.uk (Richard Hobbs) Date: Thu, 9 Mar 2006 17:43:28 -0000 Subject: Multiple notifications for Host DOWN Message-ID: <000101c643a0$f9cf0440$4b03a8c0@stgmkc5win> Hello, If I am monitoring several services on a host, and the host goes DOWN, will I get a single notification stating that the host is down, or will I get several alerts (one for the host and one for each service)? If this is a configurable setting, could you let me know which option I need to change in the config files? Thanks in advance to anyone who can help! :-) Richard. -- Richard Hobbs (Systems Administrator) Toshiba Research Europe Ltd. - Speech Technology Group Web: http://www.toshiba-europe.com/research/ Normal Email: richard.hobbs at crl.toshiba.co.uk Mobile Email: mobile at mongeese.co.uk Tel: +44 1223 376964 Mobile: +44 7811 803377 _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 9 19:10:25 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 12:10:25 -0600 Subject: Multiple notifications for Host DOWN Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Richard Hobbs > Sent: Thursday, March 09, 2006 11:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Multiple notifications for Host DOWN > > Hello, > > If I am monitoring several services on a host, and the host goes DOWN, > will > I get a single notification stating that the host is down, or will I get > several alerts (one for the host and one for each service)? First section of http://nagios.sourceforge.net/docs/1_0/networkreachability.html. Nagios will suppress notification for services on DOWN or UNREACHABLE hosts. > > If this is a configurable setting, could you let me know which option I > need > to change in the config files? I don't use host checks myself but I believe that this is not configurable. You'd have to add your service contacts to the contact_group for the host. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmaruffi at fppartners.com Thu Mar 9 19:43:15 2006 From: mmaruffi at fppartners.com (Mike Maruffi) Date: Thu, 9 Mar 2006 19:43:15 +0100 (CET) Subject: JMS Plugin Message-ID: <20060309184315.B2F5A4F40E3@desire.netways.de> Does anyone know of any nagios plugins that can be used to monitor JMS queues and topics? Thanks, - Mike Maruffi (mmaruffi) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtran at ssc.ucla.edu Thu Mar 9 19:55:59 2006 From: dtran at ssc.ucla.edu (Daniel Tran) Date: Thu, 9 Mar 2006 10:55:59 -0800 Subject: Sms message Message-ID: I have a scenario like this: Currently we are monitoring devices and send notification as an email message. I understand that you can send text messages to cell phone by sending an email such as (phone number)@vtext.com. If the main internet connection is down, we want to be able to send the message via a modem connection. I guess at this point, the modem needs to dial up to some sort of sms gateway and send out the string of text. Are there anything like this? Does any cell phone provider (eg: tmobile, verizon...) has this support. Thanks Daniel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carlos.de_Sousa at ericsson.com Thu Mar 9 20:02:26 2006 From: Carlos.de_Sousa at ericsson.com (Carlos de Sousa) Date: Thu, 09 Mar 2006 20:02:26 +0100 Subject: event_handlers macro contactemail Message-ID: <44107BC2.6040008@ericsson.com> Hi! I am in real need for having access to the $CONTACTx$ macros in my eventhandlers. I am running Nagios V2. Would I get it to work if I did the following? define command { command_name send_snmptrap_host command_line /usr/bin/perl $USER1$/eventhandlers/send_nagiostrap $ARG1$ $ARG2$ } define host { name NOC-MAIN event_handler_enabled 1 ; Host event handler is enabled register 0 ; DONT REGISTER THIS DEFINITION notifications_enabled 0 event_handler send_snmptrap_host!$CONTACTEMAIL$!$CONTACTPAGER$ contact_groups NOC } define host { use NOC-MAIN host_name host1 alias my host1 address xxx.xxx.xxx.xxx check_command check-host-alive } Any other suggestion? would it work if I put the event_handler keyword in the host definition for the host instead of in a template? I have seen the mailing list archives, and there are other people that have asked for the same thing, but they where running Nagios V1 I think, so I wonder if this is duable for Nagios V2. Really greatfull for a solution, and no, I am not going to use the CONTACTEMAIL information to send out notifications from my event handler. Regards Carlos -- Carlos de Sousa Ericsson AB Phone: +46 8 56860605 Mail: Carlos.de_Sousa at ericsson.com Disclaimer This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption,interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. -------------- next part -------------- A non-text attachment was scrubbed... Name: Carlos.de_Sousa.vcf Type: text/x-vcard Size: 161 bytes Desc: not available URL: From rstewart at eandhis.com Thu Mar 9 20:23:00 2006 From: rstewart at eandhis.com (Robert Stewart) Date: Thu, 09 Mar 2006 14:23:00 -0500 Subject: help please - SNMP Message-ID: An HTML attachment was scrubbed... URL: From rstewart at eandhis.com Thu Mar 9 20:27:00 2006 From: rstewart at eandhis.com (Robert Stewart) Date: Thu, 09 Mar 2006 14:27:00 -0500 Subject: FW: help please - SNMP Message-ID: An HTML attachment was scrubbed... URL: From marc at ena.com Thu Mar 9 20:29:56 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 13:29:56 -0600 Subject: Sms message Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Daniel Tran > Sent: Thursday, March 09, 2006 12:56 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Sms message > > I have a scenario like this: > > Currently we are monitoring devices and send notification as an email > message. > > I understand that you can send text messages to cell phone by sending an > email such as (phone number)@vtext.com. > > If the main internet connection is down, we want to be able to send the > message via a modem connection. I guess at this point, the modem needs > to dial up to some sort of sms gateway and send out the string of text. > > Are there anything like this? > Does any cell phone provider (eg: tmobile, verizon...) has this support. Yes, there's are specific FAQ entries on sending SMS messages and lots of discussion in the list archives. Search for SMS in those resources. Basically you configure an SMS sending program (yaps, sms-client, etc) and set it as your notification command. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 9 20:40:51 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 13:40:51 -0600 Subject: event_handlers macro contactemail Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Carlos de Sousa > Sent: Thursday, March 09, 2006 1:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] event_handlers macro contactemail > > Hi! > > I am in real need for having access to the $CONTACTx$ macros in my > eventhandlers. I am running Nagios V2. > > Would I get it to work if I did the following? > > > define command { > command_name send_snmptrap_host > command_line /usr/bin/perl > $USER1$/eventhandlers/send_nagiostrap $ARG1$ $ARG2$ > > } > > define host { > name NOC-MAIN > > event_handler_enabled 1 ; Host event handler is enabled > > > register 0 ; DONT REGISTER THIS DEFINITION > > notifications_enabled 0 > event_handler > send_snmptrap_host!$CONTACTEMAIL$!$CONTACTPAGER$ > contact_groups NOC > } > No, the $CONTACT*$ macros are not available to event handlers. See the chart at -- http://nagios.sourceforge.net/docs/2_0/macros.html > Any other suggestion? Why not make a contact whose notification command runs send_nagiostrap_host and associate them with that host? You could also build in logic into send_nagiostrap_host to gather that information from some other source or the nagios config files themselves if the contact route isn't acceptable to you. > > would it work if I put the event_handler keyword in the host > definition for the host instead of in a template? No, they're just not available to the event_handler subsystem at all. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jduraisw at smtp.aed.org Thu Mar 9 20:43:45 2006 From: jduraisw at smtp.aed.org (John Duraiswamy) Date: Thu, 09 Mar 2006 14:43:45 -0500 Subject: Nagios 2.0 and cgi Message-ID: My bad, although gd and png were installed I had not installed gd-devel and libpng-devel stuff, after installing those stuff the compile worked fine. I only had to do ./configure it picked up everything automatically. Thanks everyone. -john >>> "Alan Maxwell" 3/9/2006 10:08:02 AM >>> Run configure --help Find the options, run configure --whatyouneed , make clean, make all Also make sure during configure, it actually found the JPG, zlib, and png stuff. -----Original Message----- From: John Duraiswamy [mailto:jduraisw at smtp.aed.org] Sent: Thursday, March 09, 2006 8:57 AM To: Alan Maxwell Subject: RE: [Nagios-users] Nagios 2.0 and cgi nope I did not, is there a way I can just recompile that manually ? >>> "Alan Maxwell" 3/9/2006 9:52:16 AM >>> Did you give the configure command the options to enable statusmap..etc? I don't think it tries to compile them by default. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of John Duraiswamy Sent: Thursday, March 09, 2006 8:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios 2.0 and cgi Hello everyone, I am migrating stuff from 1.1. to 2.0, I did a fresh install of 2.0 on sles 9 and everything worked fine except for "statusmap.cgi trends.cgi histogram.cgi " did not get compiled. I have all the requirements(gd,zlib and png) on the server to compile cgi stuff. If anyone have any workaround on this please let me know. Thanks John Duraiswamy, CCNP Network Engineer Academy for Educational Development Washington, DC Tel. 202-884-8116 Fax. 202-884-8464 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rstewart at eandhis.com Thu Mar 9 21:08:00 2006 From: rstewart at eandhis.com (Robert Stewart) Date: Thu, 09 Mar 2006 15:08:00 -0500 Subject: FW: help please - SNMP Message-ID: An HTML attachment was scrubbed... URL: From rstewart at eandhis.com Thu Mar 9 21:26:00 2006 From: rstewart at eandhis.com (Robert Stewart) Date: Thu, 09 Mar 2006 15:26:00 -0500 Subject: help please - SNMP Message-ID: An HTML attachment was scrubbed... URL: From estair at ilm.com Thu Mar 9 21:39:19 2006 From: estair at ilm.com (Eli Stair) Date: Thu, 09 Mar 2006 12:39:19 -0800 Subject: help please - SNMP In-Reply-To: References: Message-ID: <44109277.5030202@ilm.com> I think those all came through OK. Check the docs for {net|ucd}-snmp, and the help for check_snmp.* For instance, find out what version of what plugin you're using, what mechanism it uses to read the MIB and access SNMP (bash/perl exec of the binaries, perl module, direct binary implementation compiled-in, etc). Sounds also like you'll want to determine what it is you actually want to poll via SNMP, and whether it's a static value (temp/PS/FAN/link state) or time-dependent (network traffic, IOps/sec, etc). If you don't have those questions answered, you might want to start with installing your MIBs in the net-snmp search path (try the net-snmp FAQ ; 'export MIBS=all'), and saving the output to peruse vs. the MIB while you're reading it. In the situation it sounds like you want, you'll have to understand not just Nagios but SNMP as well. /eli Robert Stewart wrote: > I?m new to setting up SNMP on nagios. > > I need some pointers. > > I have downloaded the mibs that I need but I have never installed them > on Suse 10 for nagios 2.0. > > Could you all tell me how I would get the mibs in place to be used by > the ./check_snmp command. > > > > Could you all send me an example of the ./check_snmp command that you > all use > > > > Thank you > > > > Robert Stewart > > SalesEng. > > E&H Integrated Systems > > > > ------------------------------------------------------- This SF.Net > email is sponsored by xPML, a groundbreaking scripting language that > extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHATHAWAY at bridgew.edu Thu Mar 9 22:13:14 2006 From: AHATHAWAY at bridgew.edu (Hathaway, Adam B.) Date: Thu, 9 Mar 2006 16:13:14 -0500 Subject: Modifying the TAC.cgi file Message-ID: I was wondering how I would go about modifying the tac.cgi file. What I want to do is create a network bandwidth monitor that displays on the tac.cgi file itself. I searched around but all I really found was how to change colors. Any help would be greatly appreciated. Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.hobbs at crl.toshiba.co.uk Thu Mar 9 22:44:48 2006 From: richard.hobbs at crl.toshiba.co.uk (Richard Hobbs) Date: Thu, 9 Mar 2006 21:44:48 -0000 Subject: Data File Storage Message-ID: <002001c643c2$b0329820$4b03a8c0@stgmkc5win> Hello, Assuming I have not changed any default paths, where would the Nagios data files be held? Basically, I'm looking to add directories into our backup, and so far I've just included "/usr/local/nagios/". Should I include anywhere else, or is the historical data kept in this directory as well? Thanks in advance, Richard. -- Richard Hobbs (Systems Administrator) Toshiba Research Europe Ltd. - Speech Technology Group Web: http://www.toshiba-europe.com/research/ Normal Email: richard.hobbs at crl.toshiba.co.uk Mobile Email: mobile at mongeese.co.uk Tel: +44 1223 376964 Mobile: +44 7811 803377 _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Mar 9 22:44:47 2006 From: jhmartin at toger.us (Jason Martin) Date: Thu, 9 Mar 2006 13:44:47 -0800 Subject: Modifying the TAC.cgi file In-Reply-To: References: Message-ID: <20060309214447.GS7611@mal.toger.us> On Thu, Mar 09, 2006 at 04:13:14PM -0500, Hathaway, Adam B. wrote: > I was wondering how I would go about modifying the tac.cgi file. What I > want to do is create a network bandwidth monitor that displays on the > tac.cgi file itself. I searched around but all I really found was how > to change colors. Any help would be greatly appreciated. tac.cgi is built from cgi/tac.c. If you just need to import an image from some other system, then edit the file and modify the HTML portion to do the IMG SRC in the desired location. What you want is probably in the display_tac_overview function. Edit that then recompile. If you want Nagios to create that BW monitoring image for you,well, that is a much larger task. -Jason Martin -- This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 213 bytes Desc: not available URL: From jgourd at gmail.com Thu Mar 9 22:58:55 2006 From: jgourd at gmail.com (Jonathan Gourd) Date: Thu, 9 Mar 2006 16:58:55 -0500 Subject: check_http -a Question Message-ID: I am defining a service and I am getting stuck. When I define the check command as 'check_http -a foo:bar' I get the following output when starting: ---------BEGIN QUITE----------- Checking services... Error: Service check command 'check_http -a foo:bar' specified in service 'HTTP' for host 'syndb-b' not defined anywhere! ---------END QUOTE------------ Where am I supposed to define this? Thanks, Jonathan Gourd PACS SA The Lahey Clinic -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Mar 9 23:03:08 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 16:03:08 -0600 Subject: Data File Storage Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Richard Hobbs > Sent: Thursday, March 09, 2006 3:45 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Data File Storage > > Hello, > > Assuming I have not changed any default paths, where would the Nagios data > files be held? > > Basically, I'm looking to add directories into our backup, and so far I've > just included "/usr/local/nagios/". Should I include anywhere else, or is > the historical data kept in this directory as well? If you've installed from source, that will be sufficient. To be sure, look at the values for cfg_file, log_file, status_file, comment_file, downtime_file and log_archive_path in nagios.cfg. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 9 23:11:03 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 16:11:03 -0600 Subject: check_http -a Question Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jonathan Gourd > Sent: Thursday, March 09, 2006 3:59 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_http -a Question > > I am defining a service and I am getting stuck. When I define the check > command as 'check_http -a foo:bar' I get the following output when > starting: > > > ---------BEGIN QUITE----------- > Checking services... > Error: Service check command 'check_http -a foo:bar' specified in service > 'HTTP' for host 'syndb-b' not defined anywhere! > ---------END QUOTE------------ > The check_command for a host or service definition is a reference to a command{} definitions command_name, not the direct command line that is run. You either need to hard-code your '-a foo:bar' to the actual command{} definition itself like define command{ command_name check_http command_line $USER1$/check_http $HOSTADDRESS$ -t 45 -a foo:bar } Or pass it as an argument from your service{} definition to a properly configured command{} definition like define command{ command_name check_http command_line $USER1$/check_http $HOSTADDRESS$ -t 45 -a $ARG1$ } define service{ use generic-service host_name somehost service_description MY_HTTP_CHECK retry_check_interval 3 contact_groups whoever check_command check_http!foo:bar } In the above example, 'foo:bar' becomes $ARG1$ and is substituted into the command_line for the command_name check_http. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carlos.de_Sousa at ericsson.com Thu Mar 9 23:18:45 2006 From: Carlos.de_Sousa at ericsson.com (Carlos de Sousa) Date: Thu, 09 Mar 2006 23:18:45 +0100 Subject: event_handlers macro contactemail In-Reply-To: References: Message-ID: <4410A9C5.7020504@ericsson.com> Hi! Thanx for the prompt answer, I realize now that I shouldn't try to fool the system by using obscure ways. BUT ..... If I use the suggested "contact"-path, could u pls explain what is the major difference between a notification and an event? If I already have in production a event-handler script that works fine (except for not using the CONTACTx stuff), would I then disable "event_handler processing" completely and use the contactgroup in a host definition to use a contact that would call the same script as I am using for events? The example I gave before is somewhat shortened, here is what I really use define command { command_name send_snmptrap_host command_line /usr/bin/perl $USER1$/eventhandlers/send_nagiostrap HOST $HOSTSTATE$ $HOSTSTATETYPE$ $HOSTATTEMPT$ $HOSTNAME$#$HOSTADDRESS$#$HOSTALIAS$#$SERVICEDESC$#$USER2$ } Would I still be able to use the above macros through a notification command? Would the macros above contain the exact same information if I used them in a notification command rather than in a event_handler? So basically, If I understood u right, u say that I could do define host { name NOC-MAIN event_handler_enabled 0 register 0 notifications_enabled 1 contact_groups NOC_TRAP } define host { name host1 use NOC-MAIN alias my host1 address xxx.xxx.xxx.xxx check_command check-host-alive } define contactgroup { contactgroup_name NOC_TRAP alias noc trap contact members noc_trap } define contact { contact_name noc_trap alias contact for running traps service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands send_snmptrap_svc host_notification_commands send_snmptrap_host email xx at xx pager some number address1 text1 #address2 Network Security #address3 Network Security #address4 Network Security #address5 Network Security #address6 Network Security } would I loose any functionality at all by not using eventhandlers in favor of notification commands? would appreciate your help Regards Carlos de Sousa Marc Powell wrote: > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Carlos de Sousa >>Sent: Thursday, March 09, 2006 1:02 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] event_handlers macro contactemail >> >>Hi! >> >>I am in real need for having access to the $CONTACTx$ macros in my >>eventhandlers. I am running Nagios V2. >> >>Would I get it to work if I did the following? >> >> >>define command { >> command_name send_snmptrap_host >> command_line /usr/bin/perl >>$USER1$/eventhandlers/send_nagiostrap $ARG1$ $ARG2$ >> >>} >> >>define host { >> name NOC-MAIN >> >> event_handler_enabled 1 ; Host event handler is > > enabled > >> >> register 0 ; DONT REGISTER THIS > > DEFINITION > >> notifications_enabled 0 >> event_handler >>send_snmptrap_host!$CONTACTEMAIL$!$CONTACTPAGER$ >> contact_groups NOC >>} >> > > > No, the $CONTACT*$ macros are not available to event handlers. See the > chart at -- > > http://nagios.sourceforge.net/docs/2_0/macros.html > > > >>Any other suggestion? > > > Why not make a contact whose notification command runs > send_nagiostrap_host and associate them with that host? You could also > build in logic into send_nagiostrap_host to gather that information from > some other source or the nagios config files themselves if the contact > route isn't acceptable to you. > > >>would it work if I put the event_handler keyword in the host >>definition for the host instead of in a template? > > > No, they're just not available to the event_handler subsystem at all. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Carlos de Sousa Ericsson AB Phone: +46 8 56860605 Mail: Carlos.de_Sousa at ericsson.com Disclaimer This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption,interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. -------------- next part -------------- A non-text attachment was scrubbed... Name: Carlos.de_Sousa.vcf Type: text/x-vcard Size: 161 bytes Desc: not available URL: From ton.voon at altinity.com Thu Mar 9 23:23:20 2006 From: ton.voon at altinity.com (Ton Voon) Date: Thu, 9 Mar 2006 22:23:20 +0000 Subject: Security in the cgi In-Reply-To: <302ce8b50603090744o446e77c0tcf81e0a291f19fda@mail.gmail.com> References: <44104460.6030108@vegait.com.br> <302ce8b50603090744o446e77c0tcf81e0a291f19fda@mail.gmail.com> Message-ID: <46F8FE7A-81A9-4015-BBC4-3C0606D30137@altinity.com> On 9 Mar 2006, at 15:44, Jim Perrin wrote: > On 3/9/06, Rafael Bandeira da Costa wrote: >> Alan Maxwell escreveu: >> >> Is it possible to setup the security to allow a login to be able >> acknowledge >> alerts but not be able to disable services and hosts? >> Using nagios 2.0 >> >> > > There is a patch at > http://altinity.blogs.com/dotorg/patches/issue_commands_1.patch that > allows users to view items, but not issue any changes. It seems to > work rather well. Hopefully it or something like it will make it in > the next 2.x update. It looks much nicer than the .htaccess denial > from a user perspective. See the 26 Feb article here > http://altinity.blogs.com/dotorg/nagios/index.html Jim, glad you like the patch. Ethan has committed it into Nagios 3.x, but has not chosen to put it into the 2.x branch. Make sure you let Ethan know if it should be in - if there's a lot of users, then I'm sure he'll reconsider. I'll try and make sure it always applies cleanly to 2.x. However, Alan's request won't work with this patch. He wants a user to be able to acknowledge an alert (which would involve submitting a command) but not disable services/hosts (which is submitting a different command). The patch only says whether a user can submit or not. There's no granularity in the types of commands in Nagios yet. Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mkoponick at redhawk.info Thu Mar 9 23:24:10 2006 From: mkoponick at redhawk.info (Mike Koponick) Date: Thu, 9 Mar 2006 14:24:10 -0800 Subject: help please - SNMP Message-ID: <8C18BAD1F46B2245B0A08BCF1A823DD4109CAD@raptor.redhawk.info> Robert, Here is a brief sample of a check_snmp command that I using to grab the system description. define service { use Sensor-ND hostgroup_name Switches,Routers,Firewalls service_description Check-ND-Show-version check_command check_snmp!sysDescr.0!public register 1 } I do use a template for this one, but it's fairly simple (mostly defaults). When I want to find out what an OID is, or ?? I use snmpwalk to "walk" the MIB of the device. It gives enough information so you will want to start drinking early in the day. ;-) I hope that helped. Mike -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Robert Stewart Sent: Thursday, March 09, 2006 12:26 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] help please - SNMP I'm new to setting up SNMP on nagios. I need some pointers. I have downloaded the mibs that I need but I have never installed them on Suse 10 for nagios 2.0. Could you all tell me how I would get the mibs in place to be used by the ./check_snmp command. Could you all send me an example of the ./check_snmp command that you all use Thank you Robert Stewart SalesEng. E&H Integrated Systems ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From deviousz at gmail.com Thu Mar 9 23:40:43 2006 From: deviousz at gmail.com (Dustin) Date: Thu, 9 Mar 2006 14:40:43 -0800 Subject: scriptalias error In-Reply-To: References: Message-ID: <844950720603091440r629d587exad58e0eccd031fc5@mail.gmail.com> On 3/9/06, Deborah Martin wrote: > Check that the conf.d/nagios.conf file exists first, then ensure its > included in the httpd.conf > (follow other examples that are in there) and then remove any extra nagios > specific lines from > httpd.conf and try /etc/init.d/apache2 configtest (thats what i use - amend > accordingly) > Yes, that helps... thanks for the info. I did in fact find this line in httpd.conf: /etc/init.d/apache2 configtest and verified that the nagios.conf exists in conf.d. > hope that helps. > > But just remember the docs always assume you are building from source (tars > etc) so RPM installs > are bound to be slightly different... Believe it or not, I was not aware that the install method (rpm vs. source) could change the setup procedure. Good info. Thanks! -Dustin ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnosc at hotmail.com Fri Mar 10 01:21:02 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Fri, 10 Mar 2006 10:21:02 +1000 Subject: Authentication Issues Message-ID: Hi There, I have been having problems with authenticating my nagiosadmin user. It keeps prompting me. I have gone through the documentation over and over and did a complete reinstall of RedHat(8), just in case. I have a fresh new install of nagios, but am still recieving the prompt. I checked the error file and recieved this: [Fri Mar 10 10:06:38 2006] [error] [client 192.168.49.5] (13)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswd.users [Fri Mar 10 10:06:38 2006] [error] [client 192.168.49.5] user nagiosadmin not found: /nagios The only thing I have changed this time around is the folder in which the nagios user owns. It was the owner of /home/nagios even though i followed the documentation and used the 'chown nagios.nagios /usr/local/nagios' command. I have also re added the nagiosadmin user again using 'htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin' command. Also have added the following snippet to the httpd.conf file: ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user Alias /nagios /usr/local/nagios/share Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user I am still recieving this error. (BAH!) _________________________________________________________________ Shopping made easy @ tradingpost.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%2F%3Freferrer%3DnmsnHMetagv1&_t=753082530&_r=emailtagline&_m=EXT ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Mar 10 01:31:13 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 18:31:13 -0600 Subject: Authentication Issues Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jody Noscov > Sent: Thursday, March 09, 2006 6:21 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Authentication Issues > > Hi There, > > I have been having problems with authenticating my nagiosadmin user. It > keeps prompting me. I have gone through the documentation over and over > and > did a complete reinstall of RedHat(8), just in case. I have a fresh new > install of nagios, but am still recieving the prompt. > I checked the error file and recieved this: > [Fri Mar 10 10:06:38 2006] [error] [client 192.168.49.5] (13)Permission > denied: Could not open password file: /usr/local/nagios/etc/htpasswd.users ^^^^^^^^^^^^^^^^^^^^^^^^^^ Apache can not read this file either due to filesystem permissions on the file itself or directories above it. The file isn't being accessed by nagios but rather the user that apache is running as (apache? nobody?). You will need to allow sufficient permissions for apache to be able to read the file. If you do not know how to do that, post back the following - ls -l /usr/local/nagios/etc/htpasswd.users ls -l /usr/local | grep nagios ls -l /usr | grep local grep ^User /etc/httpd/conf/httpd.conf grep something /etc/group (where something is the what follows User in the last grep (i.e. apache or nobody)) -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Mar 10 02:07:03 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 19:07:03 -0600 Subject: event_handlers macro contactemail Message-ID: Comments inline... > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Carlos de Sousa > Sent: Thursday, March 09, 2006 4:19 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] event_handlers macro contactemail > > Hi! > > Thanx for the prompt answer, I realize now that > I shouldn't try to fool the system by using obscure > ways. > > BUT ..... > > If I use the suggested "contact"-path, could u > pls explain what is the major difference between > a notification and an event? An event-handler is run for every non-OK check up to max_check_attempts (soft and hard states) and once when the service recovers to an OK state. A notification is launched when non-OK checks reach max_check_attempts (hard state), when a recovery occurs and whenever you have repeat notifications scheduled (if at all). I'm excluding escalations but those could be useful as well. > > If I already have in production a event-handler > script that works fine (except for not using the CONTACTx stuff), > would I then disable "event_handler processing" completely > and use the contactgroup in a host definition to use a contact > that would call the same script as I am using for events? If you did this then the event_handler would be redundant. I don't know what you're really trying to accomplish but a notification is the only way that the CONTACT_* macros are currently available directly from within Nagios. > The example I gave before is somewhat shortened, here is what > I really use > > define command { > command_name send_snmptrap_host > command_line /usr/bin/perl > $USER1$/eventhandlers/send_nagiostrap HOST $HOSTSTATE$ $HOSTSTATETYPE$ > $HOSTATTEMPT$ $HOSTNAME$#$HOSTADDRESS$#$HOSTALIAS$#$SERVICEDESC$#$USER2$ > } > > Would I still be able to use the above macros through a notification > command? I presume you'd be adding $CONTACTEMAIL$ and $CONTACTPAGER$ to the above but the answer is yes. Again, the chart linked below details where each macro is valid. Just look for a Yes in the Service Notifications or Host Notifications column, whichever you are going to use -- http://nagios.sourceforge.net/docs/2_0/macros.html > Would the macros above contain the exact same information if I used > them in a notification command rather than in a event_handler? Yes, with the caveat that they're only run when the check reaches a HARD state so $HOSTSTATETYPE$ would always be HARD and $HOSTATTEMPT$ would always be max_check_attempts for that host (I believe). > So basically, If I understood u right, u say that I could do > [config example removed] Looks workable to me. > would I loose any functionality at all by not using eventhandlers > in favor of notification commands? Some, related to when they are executed as noted above. Whether that's important or not is up to you. From what I've gathered, you're looking for kind of fire-and-forget functionality which is very similar to a notification. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Mar 10 02:18:43 2006 From: marc at ena.com (Marc Powell) Date: Thu, 9 Mar 2006 19:18:43 -0600 Subject: Authentication Issues Message-ID: Please always post on-list so that your experience will be available in the archives for the benefit of future users. > -----Original Message----- > From: Jody Noscov [mailto:jnosc at hotmail.com] > Sent: Thursday, March 09, 2006 6:50 PM > To: Marc Powell > Subject: RE: [Nagios-users] Authentication Issues > > This is what I have > > [root at localhost root]# ls -l /usr/local/nagios/etc/htpasswd.users > -rw------- 1 root root 26 Mar 10 09:57 > /usr/local/nagios/etc/htpasswd.users [chop] > [root at localhost root]# grep apache /etc/group > apache:x:48:nagios > nagcmd:x:501:apache,nagios htpasswd.users is only readable by root. To fix, run as root -- chmod 640 /usr/local/nagios/etc/htpasswd.users chown nagios:nagcmd /usr/local/nagios/etc/htpasswd.users When you add new users or edit the file, do so as the nagios user or verify permissions afterward. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carlos.de_Sousa at ericsson.com Fri Mar 10 02:59:28 2006 From: Carlos.de_Sousa at ericsson.com (Carlos de Sousa) Date: Fri, 10 Mar 2006 02:59:28 +0100 Subject: event_handlers macro contactemail In-Reply-To: References: Message-ID: <4410DD80.9070600@ericsson.com> Thanx again for your answer, I think things are getting clearer now! Actually, it is not a fire-and-forget kind of thing. I started with Nagios V1 a long time ago, and are using the eventhandler to send snmptraps to a TEMIP console. I have developed our own "NAGIOS-MIB" that is integrated into TEMIP (remember this was long before V2 was announced) to Keep the TRAP and TRAP_CLEAR in SYNC, the eventhandler uses a sequence number for the alarm, and the eventhandler keeps a STATE database with seq number, so for example, when I get a UP or OK from Nagios, I lookup the host/service pair in the local DB and send off a CLEAR/RESET trap with the same SEQ number as when SERVICE/HOST went CRITICAL/DOWN. So it's imperative that I always have a matching UP/OK for each DOWN/CRITICAL, that is basically the only states I bother to handle. One of the many MIB variables in the TRAP is a URL, that contains all kind of info, When the NOC people see the alarm in TEMIP, we have a modification so that they get a drop-down menu with the choice to surf to the URL, which will bring up a WEB browser containing alarm instructions (dynamically generated by a CGI I have developed that gets the information for the Instruction thru the URL in the MIB) And that is why I would like to send the CONTACT to be able to present it on the Alarm Inst. WEB page so the NOC knows where to send any questions too as we have different TEAM's that manages different hostgroups We are also doing HEARTBEAT functionality so that TEMIP gets an alarm if the NAGIOS processes are not running on the box, but that is another story. Is there a better way of doing this with Nagios V2? I have seen some references to a NAGIOS MIB for V2, but haven't looked any closer. Would the notification be sufficient to trig the above mentioned states? We have around 600 devices around the world that we monitor from 3 different NAGIOS thats uses my stuff to send all alarms to 1 central TEMIP. Any suggestions? Appreciate any input. Regards Carlos de Sousa Marc Powell wrote: > Comments inline... > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Carlos de Sousa >>Sent: Thursday, March 09, 2006 4:19 PM >>To: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] event_handlers macro contactemail >> >>Hi! >> >>Thanx for the prompt answer, I realize now that >>I shouldn't try to fool the system by using obscure >>ways. >> >>BUT ..... >> >> If I use the suggested "contact"-path, could u >>pls explain what is the major difference between >>a notification and an event? > > > An event-handler is run for every non-OK check up to max_check_attempts > (soft and hard states) and once when the service recovers to an OK > state. A notification is launched when non-OK checks reach > max_check_attempts (hard state), when a recovery occurs and whenever you > have repeat notifications scheduled (if at all). I'm excluding > escalations but those could be useful as well. > > >>If I already have in production a event-handler >>script that works fine (except for not using the CONTACTx stuff), >>would I then disable "event_handler processing" completely >>and use the contactgroup in a host definition to use a contact >>that would call the same script as I am using for events? > > > If you did this then the event_handler would be redundant. I don't know > what you're really trying to accomplish but a notification is the only > way that the CONTACT_* macros are currently available directly from > within Nagios. > > >>The example I gave before is somewhat shortened, here is what >>I really use >> >>define command { >>command_name send_snmptrap_host >>command_line /usr/bin/perl >>$USER1$/eventhandlers/send_nagiostrap HOST $HOSTSTATE$ $HOSTSTATETYPE$ >>$HOSTATTEMPT$ > > $HOSTNAME$#$HOSTADDRESS$#$HOSTALIAS$#$SERVICEDESC$#$USER2$ > >>} >> >>Would I still be able to use the above macros through a notification >>command? > > > I presume you'd be adding $CONTACTEMAIL$ and $CONTACTPAGER$ to the above > but the answer is yes. Again, the chart linked below details where each > macro is valid. Just look for a Yes in the Service Notifications or Host > Notifications column, whichever you are going to use -- > > http://nagios.sourceforge.net/docs/2_0/macros.html > > >>Would the macros above contain the exact same information if I used >>them in a notification command rather than in a event_handler? > > > Yes, with the caveat that they're only run when the check reaches a HARD > state so $HOSTSTATETYPE$ would always be HARD and $HOSTATTEMPT$ would > always be max_check_attempts for that host (I believe). > > >>So basically, If I understood u right, u say that I could do >> > > [config example removed] > > Looks workable to me. > > >>would I loose any functionality at all by not using eventhandlers >>in favor of notification commands? > > > Some, related to when they are executed as noted above. Whether that's > important or not is up to you. From what I've gathered, you're looking > for kind of fire-and-forget functionality which is very similar to a > notification. > > -- > Marc > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Carlos de Sousa Ericsson AB Phone: +46 8 56860605 Mail: Carlos.de_Sousa at ericsson.com Disclaimer This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption,interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. -------------- next part -------------- A non-text attachment was scrubbed... Name: Carlos.de_Sousa.vcf Type: text/x-vcard Size: 161 bytes Desc: not available URL: From jnosc at hotmail.com Fri Mar 10 04:50:15 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Fri, 10 Mar 2006 13:50:15 +1000 Subject: Authentication Issues In-Reply-To: References: Message-ID: Awesome thanks for your help :-) I'm In!! > >Please always post on-list so that your experience will be available in >the archives for the benefit of future users. > > > -----Original Message----- > > From: Jody Noscov [mailto:jnosc at hotmail.com] > > Sent: Thursday, March 09, 2006 6:50 PM > > To: Marc Powell > > Subject: RE: [Nagios-users] Authentication Issues > > > > This is what I have > > > > [root at localhost root]# ls -l /usr/local/nagios/etc/htpasswd.users > > -rw------- 1 root root 26 Mar 10 09:57 > > /usr/local/nagios/etc/htpasswd.users > >[chop] > > > [root at localhost root]# grep apache /etc/group > > apache:x:48:nagios > > nagcmd:x:501:apache,nagios > >htpasswd.users is only readable by root. To fix, run as root -- > >chmod 640 /usr/local/nagios/etc/htpasswd.users >chown nagios:nagcmd /usr/local/nagios/etc/htpasswd.users > >When you add new users or edit the file, do so as the nagios user or >verify permissions afterward. > >-- >Marc > > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ New year, new job ? there's more than 100,00 jobs at SEEK http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau&_t=752315885&_r=Jan05_tagline&_m=EXT ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From richard.gliebe at fhv.at Fri Mar 10 12:16:34 2006 From: richard.gliebe at fhv.at (Richard Gliebe) Date: Fri, 10 Mar 2006 12:16:34 +0100 Subject: snmp - mibs Message-ID: <1141989395.7581.24.camel@localhost.localdomain> Hi, I have to monitor the toner capacity of our HPLaserJets via snmp. The Mibs: prtMarkerSuppliesMaxCapacity: 1.3.6.1.2.1.43.11.1.1.8.1.1 prtMarkerSuppliesLevel: 1.3.6.1.2.1.43.11.1.1.9.1.1 from http://www.oidview.com/mibs/0/Printer-MIB.html works fine for most of our HPLaserJet, but for the _HP LaserJet 5000 Series _HP LaserJet 5100 Series _Xerox Phaser 7300 DT _HP LaserJet 5M Printers does someone know the right mibs for these printers ? thanks in advance Richard -- Richard Gliebe Fachhochschule Vorarlberg GmbH / University for Applied Science Information Services ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xavier at rootshell.be Fri Mar 10 14:35:21 2006 From: xavier at rootshell.be (Xavier Mertens) Date: Fri, 10 Mar 2006 14:35:21 +0100 (CET) Subject: Smallest overview as possible? Message-ID: Hi *, I'm looking for a small overview screen which could be integrated in a frame (on a global monitoring dashboard). I found pdatac.cgi on NagiosExchange but it display a very long TAC page (limited on 280 pixels width) Anybody has another solution? Something displayed in 300x300 should be perfect! Regards, Xavier -- If it works, don't fix it. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Zimmer at oppenheim.de Fri Mar 10 14:58:26 2006 From: Thomas.Zimmer at oppenheim.de (Thomas.Zimmer at oppenheim.de) Date: Fri, 10 Mar 2006 14:58:26 +0100 Subject: AW: Smallest overview as possible? Message-ID: <9A834A8DCEC68648B20701E1CDE109250295ED8A@OKWPMXS01.de.sal-opp.net> Hi Xavier, If you are using windows-clients, the ntray is a fine solution. It sets itself into the windumb taskbar, and alerts with sounds and popup-windows if an error occurs. As far as i know, you can retrieve it from nagios-exchange, and ther should be other quick-overviews and clients in the category "AddOns->Frontends" Greetz, Thomas. Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de -----Urspr?ngliche Nachricht----- Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Xavier Mertens Gesendet: Freitag, 10. M?rz 2006 14:35 An: Nagios Users Betreff: [Nagios-users] Smallest overview as possible? Hi *, I'm looking for a small overview screen which could be integrated in a frame (on a global monitoring dashboard). I found pdatac.cgi on NagiosExchange but it display a very long TAC page (limited on 280 pixels width) Anybody has another solution? Something displayed in 300x300 should be perfect! Regards, Xavier -- If it works, don't fix it. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: Zimmer, Thomas (Produktservices und Betrieb).vcf Type: application/octet-stream Size: 254 bytes Desc: not available URL: From xavier at rootshell.be Fri Mar 10 15:35:10 2006 From: xavier at rootshell.be (Xavier Mertens) Date: Fri, 10 Mar 2006 15:35:10 +0100 (CET) Subject: AW: Smallest overview as possible? In-Reply-To: <9A834A8DCEC68648B20701E1CDE109250295ED8A@OKWPMXS01.de.sal-opp.net> References: <9A834A8DCEC68648B20701E1CDE109250295ED8A@OKWPMXS01.de.sal-opp.net> Message-ID: Hi Thomas, I know ntray, but in this case, the "dashboard" must be web-based :/ Xavier -- "Research is what I'm doing when I don't know what I'm doing." - Wernher Von Braun (1912-1977) On Fri, 10 Mar 2006 Thomas.Zimmer at oppenheim.de wrote: > Hi Xavier, > > If you are using windows-clients, the ntray is a fine solution. It sets > itself into the windumb taskbar, and alerts with sounds and popup-windows if > an error occurs. As far as i know, you can retrieve it from nagios-exchange, > and ther should be other quick-overviews and clients in the category > "AddOns->Frontends" > > Greetz, Thomas. > > Thomas Zimmer > Produktservice & Betrieb > Betrieb & Support > Sal. Oppenheim jr. & Cie., Frankfurt a. Main > Telefon: +49 69 7134 5192 > Internet: http://www.oppenheim.de > E-Mail: thomas.zimmer at oppenheim.de > > > > -----Urspr?ngliche Nachricht----- > Von: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Xavier > Mertens > Gesendet: Freitag, 10. M?rz 2006 14:35 > An: Nagios Users > Betreff: [Nagios-users] Smallest overview as possible? > > > Hi *, > > I'm looking for a small overview screen which could be integrated in a frame > (on a global monitoring dashboard). > > I found pdatac.cgi on NagiosExchange but it display a very long TAC page > (limited on 280 pixels width) > > Anybody has another solution? Something displayed in 300x300 should be > perfect! > > Regards, > Xavier > -- > If it works, don't fix it. > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > From Daniel.Tardy at canson.fr Fri Mar 10 16:03:51 2006 From: Daniel.Tardy at canson.fr (Daniel.Tardy at canson.fr) Date: Fri, 10 Mar 2006 16:03:51 +0100 Subject: Check a telnet on a particular port and launch the dependent procedure In-Reply-To: References: Message-ID: Good morning everybody, I need to do a telnet 10.21211212 22 and check the result. I'm a new user of Nagios and I don't know to tell Nagios to do this telnet and then I don't know how to know the result and send a message or a command depending on this result. Il someone has the know how, tanks a lot to help me. Best regards, Daniel TARDY -------------- next part -------------- An HTML attachment was scrubbed... URL: From gardealuis at gmail.com Fri Mar 10 17:45:27 2006 From: gardealuis at gmail.com (Luis Gardea) Date: Fri, 10 Mar 2006 09:45:27 -0700 Subject: check ldap and oracle Message-ID: <44f056cc0603100845h21c6a43fuea3b1baeace056de@mail.gmail.com> Hi I need install a client in nagios server to monitoring ldap and oracle? Because when I put check_ldap or check_oracle I recived errors Thanks ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From SrvFaucon at cslaval.qc.ca Fri Mar 10 17:59:07 2006 From: SrvFaucon at cslaval.qc.ca (Serveur-Faucon Surveillance) Date: Fri, 10 Mar 2006 11:59:07 -0500 Subject: cluster vs cluster2 vs config suggestions Message-ID: Hi all, Question 1 - Is there a difference between check_cluster and check_cluster2? Question 2 Since the variable $HOSTADDRESS$ is not pass to the check_cluster command and that hosts status are pass in the command, how did you guys configure your stuff for the cluster service? I was thinking about making a "ghost" host , with no notification, with nothing, witch would have multiple cluster services. Something like... define host clusterchecker 127.0.0.1 .... Service cluster-apps{ host_name clusterchecker command check_cluster2..........!server-app1,server-app2,etc } Service cluster-web{ host_name clusterchecker command check_cluster2..................!web1,web2,etc } --------------------------------------------------- Alexandre Racine - Gardien Virtuel - S?curit? Informatique www.gardienvirtuel.com Montr?al, Qu?bec, Canada ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Tero.Ripattila at extremia.fi Fri Mar 10 20:48:30 2006 From: Tero.Ripattila at extremia.fi (Tero Ripattila) Date: Fri, 10 Mar 2006 21:48:30 +0200 Subject: What should submit_check_result look like? Message-ID: <537798008.20060310214830@extremia.fi> Hello folks, I'm a bit confused what should submit_check_result command implementation look like as the one shipped with nagios [1] differs from the one presented in documentation, [2]. [1] #!/bin/sh # SUBMIT_CHECK_RESULT # Written by Ethan Galstad (nagios at nagios.org) # Last Modified: 02-18-2002 # # This script will write a command to the Nagios command # file to cause Nagios to process a passive service check # result. Note: This script is intended to be run on the # same host that is running Nagios. If you want to # submit passive check results from a remote machine, look # at using the nsca addon. # # Arguments: # $1 = host_name (Short name of host that the service is # associated with) # $2 = svc_description (Description of the service) # $3 = return_code (An integer that determines the state # of the service check, 0=OK, 1=WARNING, 2=CRITICAL, # 3=UNKNOWN). # $4 = plugin_output (A text string that should be used # as the plugin output for the service check) # echocmd="/bin/echo" CommandFile="/var/log/nagios/rw/nagios.cmd" # get the current date/time in seconds since UNIX epoch datetime=`date +%s` # create the command line to add to the command file cmdline="[$datetime] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4" # append the command to the end of the command file `$echocmd $cmdline >> $CommandFile` [2] #!/bin/sh # Arguments: # $1 = host_name (Short name of host that the service is # associated with) # $2 = svc_description (Description of the service) # $3 = state_string (A string representing the status of # the given service - "OK", "WARNING", "CRITICAL" # or "UNKNOWN") # $4 = plugin_output (A text string that should be used # as the plugin output for the service checks) # # Convert the state string to the corresponding return code return_code=-1 case "$3" in OK) return_code=0 ;; WARNING) return_code=1 ;; CRITICAL) return_code=2 ;; UNKNOWN) return_code=-1 ;; esac # pipe the service check info into the send_nsca program, which # in turn transmits the data to the nsca daemon on the central # monitoring server /bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/sbin/send_nsca 212.16.101.111 -c /etc/nagios/send_nsca.cfg -- Tero Ripattila ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From estair at ilm.com Fri Mar 10 21:12:15 2006 From: estair at ilm.com (Eli Stair) Date: Fri, 10 Mar 2006 12:12:15 -0800 Subject: Check a telnet on a particular port and launch the dependent procedure In-Reply-To: References: Message-ID: <4411DD9F.5070200@ilm.com> Check google and/or nagiosplug.sourceforge.net, you'll find at least plugins to let you check the SSH banner (if that's all you want to do) and run commands/send output back to the plugin (check_ssh | check_by_ssh). That's assuming you meant ssh and not telnet, if you need telnet I've hacked up a simple Net::Telnet script to do the same things as the ssh plugs. Likely you'll want check_ssh however. /eli Daniel.Tardy at canson.fr wrote: > > Good morning everybody, > I need to do a telnet 10.21211212 22 and check the result. > I'm a new user of Nagios and I don't know to tell Nagios to do this > telnet and then I don't know how to know the result and send a message > or a command depending on this result. > Il someone has the know how, tanks a lot to help me. > Best regards, > Daniel TARDY ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdehnert at caymas.com Fri Mar 10 23:29:02 2006 From: jdehnert at caymas.com (Dehnert James Sr) Date: Fri, 10 Mar 2006 14:29:02 -0800 Subject: Event Handlers In-Reply-To: <4411DD9F.5070200@ilm.com> References: <4411DD9F.5070200@ilm.com> Message-ID: Most of all of the processes and such I monitor are not on the Nagios server. I do want to be able to use event handlers to try and resolve things before I get paged though, so I am wondering if there is a plug-in that can be used through NCSA or NRPE that will allow me to run an event handler script on a remote system. Thanks, Zeke -- mailto:jdehnert at caymas.com James "Zeke" Dehnert Phone: 707 283 5042 Fax: 707 283 5001 -= Eschew Obfuscation =- "Life is racing, everything else is just waiting" Arrested Development ==>> http://www.the-op.com -------------- next part -------------- A non-text attachment was scrubbed... Name: caymas-sig2.gif Type: image/gif Size: 11727 bytes Desc: not available URL: -------------- next part -------------- From marc at ena.com Sat Mar 11 00:03:35 2006 From: marc at ena.com (Marc Powell) Date: Fri, 10 Mar 2006 17:03:35 -0600 Subject: Check a telnet on a particular port and launch the dependent procedure Message-ID: Or check_tcp may be more than sufficient. The OP doesn't explain enough about what he's wanting to do to be sure. Daniel - Run 'check_tcp --help' and see if that suits your needs. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Eli Stair > Sent: Friday, March 10, 2006 2:12 PM > To: Daniel.Tardy at canson.fr > Cc: nagios-users at lists.sourceforge.net; nagios-users- > admin at lists.sourceforge.net > Subject: Re: [Nagios-users] Check a telnet on a particular port and launch > the dependent procedure > > > Check google and/or nagiosplug.sourceforge.net, you'll find at least > plugins to let you check the SSH banner (if that's all you want to do) > and run commands/send output back to the plugin (check_ssh | > check_by_ssh). That's assuming you meant ssh and not telnet, if you > need telnet I've hacked up a simple Net::Telnet script to do the same > things as the ssh plugs. Likely you'll want check_ssh however. > > /eli > > Daniel.Tardy at canson.fr wrote: > > > > Good morning everybody, > > I need to do a telnet 10.21211212 22 and check the result. > > I'm a new user of Nagios and I don't know to tell Nagios to do this > > telnet and then I don't know how to know the result and send a message > > or a command depending on this result. > > Il someone has the know how, tanks a lot to help me. > > Best regards, > > Daniel TARDY > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at bydesignpublishing.com Sat Mar 11 00:16:55 2006 From: jim at bydesignpublishing.com (Jim Rice) Date: Fri, 10 Mar 2006 15:16:55 -0800 Subject: How to check disk space on remote systems Message-ID: <1142032615.30483.255.camel@james.homebydesign.com> I've run check_disk_local but did not find a check_disk_remote command. A cursory search of the archives mentioned check_by_ssh ... I did find get a clear answer. How do I issue the appropriate command? Does the executable need to be installed on the remote system? What else might also need to be there to function properly? Thanks! -- Jim Rice by Design Publishing 11626 N. Tracey Road Hayden, Idaho 83835 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From german at gridshield.net Fri Mar 10 18:40:12 2006 From: german at gridshield.net (German Solis) Date: Fri, 10 Mar 2006 17:40:12 +0000 Subject: How to check disk space on remote systems In-Reply-To: <1142032615.30483.255.camel@james.homebydesign.com> References: <1142032615.30483.255.camel@james.homebydesign.com> Message-ID: <4411B9FC.5010309@gridshield.net> I suggest you to check nrpe. With this, you define your commands in the hosts and you invoke the command like this ( I dont remember exactly). file checkcommands.cfg ..... command check_nrpr!check_my_command .... on the host, in your /etc/nrpe.cfg you have: command{check_my_command}=/urs/lib/nagios/pluguins/whatever_pluging_you_want_to_excecute_and_parameters. Reggards. G.. Jim Rice wrote: >I've run check_disk_local but did not find a check_disk_remote command. > >A cursory search of the archives mentioned check_by_ssh ... >I did find get a clear answer. > >How do I issue the appropriate command? >Does the executable need to be installed on the remote system? >What else might also need to be there to function properly? > >Thanks! > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matisse.enzer at barclaysglobal.com Sat Mar 11 01:08:32 2006 From: matisse.enzer at barclaysglobal.com (Enzer, Matisse BGI SF) Date: Fri, 10 Mar 2006 16:08:32 -0800 Subject: check_ping segmentation fault on Solaris 10 Message-ID: Hmmm. The check_ping plugin dumps core.... Is this a known issue? ~/nagios/libexec: uname -a SunOS rdcuxsrv143 5.10 Generic_118822-20 sun4u sparc SUNW,Sun-Fire-V890 Solaris ~/nagios/libexec: ./check_ping -H localhost -w "99,5%" -c "100,20%" -p 1 Segmentation fault (core dumped) ~/nagios/libexec: And here's the tailend of truss output: 3980: open64("/var/run/name_service_door", O_RDONLY) = 3 3980: fcntl(3, F_SETFD, 0x00000001) = 0 3980: door_info(3, 0xFEBEF7E8) = 0 3980: door_call(3, 0xFFBFC1F8) = 0 3980: brk(0x0002B7E8) = 0 3980: brk(0x0002D7E8) = 0 3980: sigaction(SIGALRM, 0xFFBFE778, 0xFFBFE818) = 0 3980: alarm(10) = 0 3980: fstat64(63, 0xFFBFD978) Err#9 EBADF 3980: fstat64(63, 0xFFBFD820) Err#9 EBADF 3980: ioctl(63, TCGETA, 0xFFBFD904) Err#9 EBADF 3980: Incurred fault #6, FLTBOUNDS %pc = 0xFF1D099C 3980: siginfo: SIGSEGV SEGV_MAPERR addr=0x0002E000 3980: Received signal #11, SIGSEGV [default] 3980: siginfo: SIGSEGV SEGV_MAPERR addr=0x0002E000 This message and any attachments are confidential, proprietary, and may be privileged. If this message was misdirected, Barclays Global Investors (BGI) does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BGI, unless the author is authorized by BGI to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BGI. Although BGI operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asmoore at edge.net Sat Mar 11 01:29:39 2006 From: asmoore at edge.net (Alex Moore) Date: Fri, 10 Mar 2006 18:29:39 -0600 Subject: check_ping segmentation fault on Solaris 10 In-Reply-To: References: Message-ID: <20060310182939.00006052@sws602.mcsun.local> On Fri, 10 Mar 2006 16:08:32 -0800 "Enzer, Matisse BGI SF" wrote: > Hmmm. The check_ping plugin dumps core.... Is this a known issue? > > ~/nagios/libexec: uname -a > SunOS rdcuxsrv143 5.10 Generic_118822-20 sun4u sparc > SUNW,Sun-Fire-V890 Solaris > ~/nagios/libexec: ./check_ping -H localhost -w "99,5%" -c "100,20%" > -p 1 > Segmentation fault (core dumped) > ~/nagios/libexec: I do not know why you are getting SEGV, but here is the output on my workstation. --- [amoore at sws602 ~]$ uname -a SunOS sws602 5.10 Generic_118822-30 sun4u sparc SUNW,Ultra-60 [amoore at sws602 ~]$ /opt/csw/libexec/nagios-plugins/check_ping -H localhost -w "88,5%" -c "100,20%" -p 1 PING OK - Packet loss = 0%, RTA = 0.42 ms [amoore at sws602 ~]$ pkgparam -v CSWnagiosp VERSION VERSION='1.4.2,REV=2006.02.28' --- Alex ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vladimir.smirnov at military-inc.com Sat Mar 11 02:37:38 2006 From: vladimir.smirnov at military-inc.com (Vladimir Smirnov) Date: Fri, 10 Mar 2006 17:37:38 -0800 Subject: URGENT!!! Notifications are not being sent! HELP!!! Message-ID: <6D6559E2F45EED44A9DF53617970FE2B068E5162@sfpmail-3.military-inc.net> I have nagios setup and running. I have contactgroups.cfg setup and basically everything is running. Even the command that sends an email from nagios in the command line works, but from nagios I am not able to receive any email. Please help. I will post any cfg files that you need to help me. Thanks Vladimir -------------- next part -------------- An HTML attachment was scrubbed... URL: From az at whoever.org Sat Mar 11 03:29:30 2006 From: az at whoever.org (Az) Date: Sat, 11 Mar 2006 12:29:30 +1000 Subject: cluster vs cluster2 vs config suggestions In-Reply-To: References: Message-ID: <4412360A.5080104@whoever.org> >Question 1 - Is there a difference between check_cluster and check_cluster2? > > Outwardly, just the way you use them. #2 seems tidier in the way you do it. Inwardly, I would assume #2 does it better but I've not looked into the code of each to confirm this myself. >Question 2 > >Since the variable $HOSTADDRESS$ is not pass to the check_cluster command and that hosts status are pass in the command, how did you guys configure your stuff for the cluster service? > >I was thinking about making a "ghost" host , with no notification, with nothing, witch would have multiple cluster services. Something like... > > There's probably 100 ways to skin this cat. The way we've done these sorts of setups in v1.x (and again when we upgraded to v2) are along the lines of... * A host definition for each _physical_ cluster node (eg ahost01a, ahost01b...). * Add the usual suspects for service checks to each _physical_ (eg local disk, cpu, memory, swap...). * A host definition for the _virtual_ node(s) in the cluster (eg ahost01-print, ahost01-file...). * Add the clustered service checks to the _virtuals_, including a check_cluster one as well (eg only the disks and service checks that relate to that clustered service). This would only work if you have a separate service IP for each of the _virtuals_, and the host names in all cases would depend on how you name your hosts. We name our cluster nodes with the node suffix for this reason (ahost01a and ahost01b are part of a cluster, virtually, called ahost01). The above gets messy when you have, say, 10 services on a 2 node cluster. You end up with 12 host defs, most of which have a single service. A variant is to have a pseudo-virtual node for the entire cluster (eg, physicals ahost01a and ahost01b, and virtual ahost01), and add the clustered services to that virtual. Thus you have only 3 host definitions. The down side is you will need to tweak the command defs as most use $HOSTNAME$ etc for the IP, and this wouldnt necessarily be valid if you have a unique IP for each service the cluster is providing. I guess it depends on how you expect things to appear (that is, what makes more sense in the mind of those who monitor your Nagios instance). ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeffwilliams05 at gmail.com Sat Mar 11 04:11:00 2006 From: jeffwilliams05 at gmail.com (Jeff Williams) Date: Fri, 10 Mar 2006 21:11:00 -0600 Subject: multiple notification/escalation definitions In-Reply-To: <17e351010603080852i7ac012e9jd20ba3f991bf33fa@mail.gmail.com> References: <17e351010603061427x71e0ac71oc7fed5ebd73e6334@mail.gmail.com> <17e351010603080852i7ac012e9jd20ba3f991bf33fa@mail.gmail.com> Message-ID: <17e351010603101911s36a97275meb3fe599136a4da5@mail.gmail.com> On 3/6/06, Jeff Williams wrote: > > I'm wondering if I'm missing something or thinking about this > incorrectly. I have some hosts that have services and their contact > groups already defined like so: > > define service{ > use generic-service > host_name vader > service_description NTP > is_volatile 0 > check_period 24x7 > retry_check_interval 1 > contact_groups oncall,ulsysadmins,dba > notification_interval 5 > notification_period 24x7 > notification_options w,u,c,r > check_command check_ntp > } > > I also have an escalation for this service: > > define serviceescalation{ > host_name vader > service_description NTP > first_notification 2 > last_notification 2 > notification_interval 5 > contact_groups oncall > } > > define serviceescalation{ > host_name vader > service_description NTP > first_notification 3 > last_notification 4 > notification_interval 5 > contact_groups oncall,backup > } > define serviceescalation{ > host_name vader > service_description NTP > first_notification 5 > last_notification 0 > notification_interval 0 > contact_groups oncall,backup > } > > What I'm wondering is if I can add another contact for this service > that gets notified after 30 minutes, but only gets notified once. > Ideally I would like to be able to do this as easily as possible and > for an entire group of servers and for multiple services, if possible. > We are migrating from big brother and while big brother is not nearly > as complex and functional as Nagios, it can be done in big brother > with probably one line. Am I missing something though? Can a service > be defined twice? Or can I define it in an escalation that includes > the entire hostgroup that I want? Thanks in advance. > > Jeff Did my message get through to the list? -------------- next part -------------- An HTML attachment was scrubbed... URL: From RPreston at invacare.com Sat Mar 11 10:01:13 2006 From: RPreston at invacare.com (RPreston at invacare.com) Date: Sat, 11 Mar 2006 04:01:13 -0500 Subject: Rod Preston is out of the office. Message-ID: I will be out of the office starting 03/10/2006 and will not return until 03/15/2006. I will respond to your message when I return. ----------------------------------------- CONFIDENTIALITY NOTICE: The information in this e-mail message and any attachments may contain confidential health and/or other information protected by Federal and Ohio law. Such information is intended only for the individual or entity named above. If you are not the intended recipient, you are hereby notified that any use or disclosure is prohibited by law. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s4nag at no-where.at Sat Mar 11 12:23:28 2006 From: s4nag at no-where.at (Peter Gritsch) Date: Sat, 11 Mar 2006 12:23:28 +0100 Subject: SNMP4Nagios version 0.3 released Message-ID: <200603111223.28275.s4nag@no-where.at> Hi all, today version 0.3 of SNMP4Nagios was published. Major changes are: - Added "Nagios Plugins" style performance data. - Added compile time option "--without-rrd". - Replaced non-portable functions (asprintf(), basename()). - Improved configure output. For known issues with RRDTool please visit http://snmp4nagios.sourceforge.net/requirements.html SNMP4Nagios is a package of Nagios plugins which use SNMP to query hosts. While some of the plugins use standard MIBs, most are designed for vendor specific agents. Unlike other Nagios plugins, they are able to scan hosts for objects which can be monitored. Additionally they can keep performance logs and draw plots of these using Tobias Oetiker's RRDTool (now optionally). Currently devices by Brocade, Cisco, Compaq/HP and Network Appliance as well as computers running Microsoft Windows or Net-SNMP and uninterruptable power supplies are supported. Ciao, Peter -- Peter Gritsch mail: s4nag at no-where.at web: http://snmp4nagios.sourceforge.net/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From az at whoever.org Sun Mar 12 01:26:59 2006 From: az at whoever.org (Az) Date: Sun, 12 Mar 2006 10:26:59 +1000 Subject: Sms message In-Reply-To: References: Message-ID: <44136AD3.2080003@whoever.org> You could always avoid the dialup part (what if your local telephone exchange is dead/lines cut) by using a GSM terminal (like the old Siemens M20). Get two with diffferent carrier SIMs to give yourself redundancy using SMS server tools (http://smstools.meinemullemaus.de/) to drive them. Of course, this just moves your point of failure further down the line... ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deballing at vassar.edu Sun Mar 12 01:47:53 2006 From: deballing at vassar.edu (Derek J. Balling) Date: Sat, 11 Mar 2006 19:47:53 -0500 Subject: Sms message In-Reply-To: <44136AD3.2080003@whoever.org> References: <44136AD3.2080003@whoever.org> Message-ID: <8E976385-99A3-418F-9625-B19EE0A1DC1C@vassar.edu> On Mar 11, 2006, at 7:26 PM, Az wrote: > You could always avoid the dialup part (what if your local > telephone exchange is dead/lines cut) by using a GSM terminal (like > the old Siemens M20). Get two with diffferent carrier SIMs to give > yourself redundancy using SMS server tools (http:// > smstools.meinemullemaus.de/) to drive them. Of course, this just > moves your point of failure further down the line... Does anyone know a good source for an M20 in the US? Or, alternatively, something functionally identical? I'm willing to import it, so long as it'd work on our Cingular GSM network. I'm fairly confident in my ability to convince our Cingular rep to let us put one of their SIM cards in it, etc. Cheers, D -- Derek J. Balling Systems Administrator Vassar College 124 Raymond Ave Box 13 - Computer Center 221 Poughkeepsie, NY 12604 (845) 437-7231 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2423 bytes Desc: not available URL: From john at johnbass.co.uk Sun Mar 12 10:56:41 2006 From: john at johnbass.co.uk (John Bass) Date: Sun, 12 Mar 2006 10:56:41 +0100 (CET) Subject: Status Map In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FE56@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FE56@XCH-SW-42.sw.nos.boeing.com> Message-ID: <20060312095641.B3E5D4F40E3@desire.netways.de> Hi EXT-Fuentes, Well, I hit the same problem of wanting to change the background colour of a host dependant on service status... which I have done.. a few mods to the statusmap.c, works a treat. - John Bass (JohnneyBoy) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=6916 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From john at johnbass.co.uk Sun Mar 12 10:56:53 2006 From: john at johnbass.co.uk (John Bass) Date: Sun, 12 Mar 2006 10:56:53 +0100 (CET) Subject: Status Map In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FE56@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FE56@XCH-SW-42.sw.nos.boeing.com> Message-ID: <20060312095653.6AF424F40E3@desire.netways.de> Hi EXT-Fuentes, Well, I hit the same problem of wanting to change the background colour of a host dependant on service status... which I have done.. a few mods to the statusmap.c, works a treat. - John Bass (JohnneyBoy) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=6916 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Sun Mar 12 13:01:03 2006 From: moshesharon at gmail.com (moshe sharon) Date: Sun, 12 Mar 2006 14:01:03 +0200 Subject: Status Map In-Reply-To: <20060312095653.6AF424F40E3@desire.netways.de> References: <626FC7C6A97381468FB872072AB5DDC801FE56@XCH-SW-42.sw.nos.boeing.com> <20060312095653.6AF424F40E3@desire.netways.de> Message-ID: <88ad29240603120401uae2e481kfc65f545cae6d33f@mail.gmail.com> Hello This adds service problems information for the statusmap. im not sure about nagios 2.0 final but i manage to patch version 1.3 the link: http://www.nagiosexchange.org/Patches_2_0.67.0.html?&tx_netnagext_pi1[p_view]=386 No need for "couple of good books on programming and a few hundred hours of practicing" Moshe Sharon -------------- next part -------------- An HTML attachment was scrubbed... URL: From hvdkooij at vanderkooij.org Sun Mar 12 13:05:22 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sun, 12 Mar 2006 13:05:22 +0100 (CET) Subject: scriptalias error In-Reply-To: <844950720603090850l39067900y6f6457485bbb1d42@mail.gmail.com> References: <844950720603082037g7c147d4dwaae19468bcb40719@mail.gmail.com> <844950720603090850l39067900y6f6457485bbb1d42@mail.gmail.com> Message-ID: On Thu, 9 Mar 2006, Dustin wrote: > Thanks for the reply, but how am I supposed to know this? The setup > docs here say to add those lines to my httpd.conf: > > http://nagios.sourceforge.net/docs/2_0/installweb.html > > Is this outdated documentation that I'm following? No. But you did not install from source. So the rest of the documentation must be not followed blindly either. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Sun Mar 12 13:07:33 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Sun, 12 Mar 2006 13:07:33 +0100 (CET) Subject: Nagios escalations not working In-Reply-To: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C1904@EPI-EXB2.epidirect.epi> References: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C1904@EPI-EXB2.epidirect.epi> Message-ID: On Thu, 9 Mar 2006, Pavel Santos wrote: > Hugo, > > this is my escalations.cfg file: for now > > > define serviceescalation{ > host_name server1 > service_description HTTP > first_notification 3 > last_notification 5 > notification_interval 60 > contact_groups system-manager > } > define serviceescalation{ > host_name server1 > service_description HTTP > first_notification 6 > last_notification 10 > notification_interval 90 > contact_groups system-manager > } Where is the host definition? Escalation do not work untill you have a host defined. PS: Please, don't top post: A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Sun Mar 12 14:01:58 2006 From: jperrin at gmail.com (Jim Perrin) Date: Sun, 12 Mar 2006 08:01:58 -0500 Subject: scriptalias error In-Reply-To: <844950720603091440r629d587exad58e0eccd031fc5@mail.gmail.com> References: <844950720603091440r629d587exad58e0eccd031fc5@mail.gmail.com> Message-ID: <302ce8b50603120501r27b71afbqbde72333fcf00ed@mail.gmail.com> On 3/9/06, Dustin wrote: > On 3/9/06, Deborah Martin wrote: > > Check that the conf.d/nagios.conf file exists first, then ensure its > > included in the httpd.conf > > (follow other examples that are in there) and then remove any extra nagios > > specific lines from > > httpd.conf and try /etc/init.d/apache2 configtest (thats what i use - amend > > accordingly) > > > > Yes, that helps... thanks for the info. I did in fact find this line > in httpd.conf: > > /etc/init.d/apache2 configtest > > and verified that the nagios.conf exists in conf.d. > > > hope that helps. > > > > But just remember the docs always assume you are building from source (tars > > etc) so RPM installs > > are bound to be slightly different... > > Believe it or not, I was not aware that the install method (rpm vs. > source) could change the setup procedure. Good info. For what it's worth, if you look back a couple days in the list, I've done up some rpm tutorials for nagios using dag's repo package. Might be worth a read for you. > Thanks! > -Dustin -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forums at emat.be Sun Mar 12 16:20:31 2006 From: forums at emat.be (js) Date: Sun, 12 Mar 2006 16:20:31 +0100 Subject: WAP pages aren't working with serviceoutput containing html Message-ID: <44143C3F.5030904@emat.be> Hi all, The output of one of my plugin looks like this: Pressure is 12 bar. I don't use urlize to generate this, but instead I programmed my plugin to output this way. In de webinterface of nagios this tells me the status of the service. When clicking on the pluginoutput a page is generated with graphs etc,.... It's all working well within Nagios. But I'm having difficulties with the WAP/WML pages generated by Nagios for this service on my PDA and with the WML plugin for Firefox. It complains with an error like this: XML Parsing Error: not well-formed Location: resource://gre/res/hiddenWindow.html Line Number 12, Column 84: Info:Pressure is 12 bar. ----------------------------------------------------------------------------------^ It seems to indicate that the "=" is a problem? How can I solve or circumvent this problem? Wouldn't it be sensefull that nagios filters out the html tags from the serviceoutput when generating the wap pages? I can't drop this feature because it's needed for my pusposes. Tips, advice and comments are welcome! thanks in advance Jelle ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnosc at hotmail.com Mon Mar 13 01:28:30 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Mon, 13 Mar 2006 10:28:30 +1000 Subject: Problems with the pre-flight check Message-ID: I have managed to start nagios, but it is not monitoring anything due to some problems encountered in the preflight check (which I had commented out to be able to at least start nagios) these problems are: Error: Command 'check-host-alive' has already been defined Error: Could not register command (config file '/usr/local/nagios/etc/minimal.cfg', starting on line 76) Error: Command 'check_local_disk' has already been defined Error: Could not register command (config file '/usr/local/nagios/etc/minimal.cfg', starting on line 92) How do I overcome these? Regards J _________________________________________________________________ mycareer.com.au: http://www.mycareer.com.au/?s_cid=213596 Land the Job ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Mon Mar 13 01:34:30 2006 From: jperrin at gmail.com (Jim Perrin) Date: Sun, 12 Mar 2006 19:34:30 -0500 Subject: Problems with the pre-flight check In-Reply-To: References: Message-ID: <302ce8b50603121634m1a7e2cfeyc21a6a651e86ae2b@mail.gmail.com> > How do I overcome these? You'll need to edit your nagios.cfg. minimal.cfg conflicts with some of the other files. You need to go through the files and check for conflicts. -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MJoyce at ccia.unsw.edu.au Mon Mar 13 02:20:34 2006 From: MJoyce at ccia.unsw.edu.au (Matthew Joyce) Date: Mon, 13 Mar 2006 12:20:34 +1100 Subject: SNMP, Dell Hardware Message-ID: <2A67EA781EC7F949A2AB0A0D07A86C6ABE6F15@mail01.ccia.local> Hi All I'm using Nagios (on Debian Sarge) to monitor our servers and I'm having difficulties getting chack_snmp to work. If I use the command `snmpget -v1 -m /root/DELL_10892.mib -c public myserver powerSupplyStatus.1.1` I get the result : MIB-Dell-10892::powerSupplyStatus.1.1 = INTEGER: ok(3) I'm pretty happy with that, but I need check_snmp to report back to nagios. >From the MIB I can see the following... DellStatus ::= INTEGER { other(1), -- the status of the object is not one of the following: unknown(2), -- the status of the object is unknown -- (not known or monitored) ok(3), -- the status of the object is ok nonCritical(4), -- the status of the object is warning, non-critical critical(5), -- the status of the object is critical (failure) nonRecoverable(6) -- the status of the object is non-recoverable (dead) } So for Nagios I expected the following to work... `./check_snmp -C public -H myserver -o powerSupplyStatus.1.1 -w 4 -c 5:6` results : SNMP CRITICAL - *3* Have I misunderstood how the warning and critical thresholds work ? Can anyone help ? I feel I'm close, if I can crack this I'll be set. thanks Matthew Joyce 02 9382 0051 | IT Manager | Children's Cancer Institute Australia for Medical Research -------------- next part -------------- An HTML attachment was scrubbed... URL: From jnosc at hotmail.com Mon Mar 13 02:22:48 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Mon, 13 Mar 2006 11:22:48 +1000 Subject: Problems with the pre-flight check Message-ID: I have commented out the following in minimal.cfg #define command{ # command_name check_local_disk # command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ # } #define command{ # command_name check-host-alive # command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c #100,100% -p 1 # } This is not going to cause any problems later down the track is it? It is running ok now through the pre-flight check. _________________________________________________________________ Search for local singles online @ Lavalife - Click here http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D21550&_t=21550&_r=endtext&_m=EXT ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Mon Mar 13 04:40:33 2006 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 12 Mar 2006 22:40:33 -0500 (EST) Subject: SNMP, Dell Hardware In-Reply-To: <2A67EA781EC7F949A2AB0A0D07A86C6ABE6F15@mail01.ccia.local> References: <2A67EA781EC7F949A2AB0A0D07A86C6ABE6F15@mail01.ccia.local> Message-ID: On Mon, 13 Mar 2006, Matthew Joyce wrote: > > Hi All > > I'm using Nagios (on Debian Sarge) to monitor our servers and I'm having > difficulties getting chack_snmp to work. > > If I use the command `snmpget -v1 -m /root/DELL_10892.mib -c public > myserver powerSupplyStatus.1.1` > I get the result : MIB-Dell-10892::powerSupplyStatus.1.1 = INTEGER: > ok(3) > > I'm pretty happy with that, but I need check_snmp to report back to > nagios. > >> From the MIB I can see the following... > > DellStatus ::= INTEGER { > other(1), -- the status of the object is not one of > the following: > unknown(2), -- the status of the object is unknown > -- (not known or monitored) > ok(3), -- the status of the object is ok > nonCritical(4), -- the status of the object is warning, > non-critical > critical(5), -- the status of the object is critical > (failure) > nonRecoverable(6) -- the status of the object is > non-recoverable (dead) > } > > So for Nagios I expected the following to work... > > `./check_snmp -C public -H myserver -o powerSupplyStatus.1.1 -w 4 -c > 5:6` > results : SNMP CRITICAL - *3* > > Have I misunderstood how the warning and critical thresholds work ? > Can anyone help ? > > I feel I'm close, if I can crack this I'll be set. > > thanks > which version of plugins? you may want to use "-w 4:6 -c 5:6" (-c will override -w) -- -sg ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MJoyce at ccia.unsw.edu.au Mon Mar 13 04:59:07 2006 From: MJoyce at ccia.unsw.edu.au (Matthew Joyce) Date: Mon, 13 Mar 2006 14:59:07 +1100 Subject: SNMP, Dell Hardware Message-ID: <2A67EA781EC7F949A2AB0A0D07A86C6ABE6F17@mail01.ccia.local> > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, 13 March 2006 2:41 PM > To: Matthew Joyce > Cc: Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] SNMP, Dell Hardware > > On Mon, 13 Mar 2006, Matthew Joyce wrote: > > > > > Hi All > > > > I'm using Nagios (on Debian Sarge) to monitor our servers and I'm > > having difficulties getting chack_snmp to work. > > > > If I use the command `snmpget -v1 -m /root/DELL_10892.mib -c public > > myserver powerSupplyStatus.1.1` I get the result : > > MIB-Dell-10892::powerSupplyStatus.1.1 = INTEGER: > > ok(3) > > > > I'm pretty happy with that, but I need check_snmp to report back to > > nagios. > > > >> From the MIB I can see the following... > > > > DellStatus ::= INTEGER { > > other(1), -- the status of the object is not one of > > the following: > > unknown(2), -- the status of the object is unknown > > -- (not known or monitored) > > ok(3), -- the status of the object is ok > > nonCritical(4), -- the status of the object is warning, > > non-critical > > critical(5), -- the status of the object is critical > > (failure) > > nonRecoverable(6) -- the status of the object is > > non-recoverable (dead) > > } > > > > So for Nagios I expected the following to work... > > > > `./check_snmp -C public -H myserver -o > powerSupplyStatus.1.1 -w 4 -c > > 5:6` results : SNMP CRITICAL - *3* > > > > Have I misunderstood how the warning and critical thresholds work ? > > Can anyone help ? > > > > I feel I'm close, if I can crack this I'll be set. > > > > thanks > > > > which version of plugins? > > you may want to use "-w 4:6 -c 5:6" (-c will override -w) > > > -- > -sg > I tried that, and many other permutations, but I always get either SNMP WARNING or CRITICAL. plugins Verion 1.4 I think I may have to write a wrapper around snmpget. mj ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnosc at hotmail.com Mon Mar 13 06:31:59 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Mon, 13 Mar 2006 15:31:59 +1000 Subject: Correct Syntax?? Message-ID: While attempting to start nagios I am recieving error similar to this one. sh: line 1: /check_ping: No such file or directory Warning: Return code of 127 for check of service 'PING' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists. sh: line 1: /check_disk: No such file or directory I have done some reading on the forums and changed the location to the following so the plugins can be accessed. It doesn't seem to be working either. Am I using the correct syntax for these changes? define command{ command_name check-host-alive command_line $USER1$=/usr/local/nagios/libexec check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1 } Thanx for your help :-) _________________________________________________________________ Shopping made easy @ tradingpost.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%2F%3Freferrer%3DnmsnHMetagv1&_t=753082530&_r=emailtagline&_m=EXT ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnosc at hotmail.com Mon Mar 13 06:57:47 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Mon, 13 Mar 2006 15:57:47 +1000 Subject: Correct Syntax?? In-Reply-To: References: Message-ID: OK so after changing it around a little, I now get this error sh: line 1: =/usr/local/nagios/libexec/check_load: Permission denied Warning: Return code of 126 for check of service 'Current Load' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists. Sorry, Obviously this is for the Check_load file and not the one I stated earlier, as I said though I had a few errors, I was just changing the one that occured first to save time. Is there a command I can run to change the permissions on my libexec folder? Forgive my inexperience with linux. >From: "Jody Noscov" >To: Nagios-users at lists.sourceforge.net >Subject: [Nagios-users] Correct Syntax?? >Date: Mon, 13 Mar 2006 15:31:59 +1000 > >While attempting to start nagios I am recieving error similar to this one. > > > >sh: line 1: /check_ping: No such file or directory >Warning: Return code of 127 for check of service 'PING' on host 'localhost' >was out of bounds. Make sure the plugin you're trying to run actually >exists. >sh: line 1: /check_disk: No such file or directory > >I have done some reading on the forums and changed the location to the >following so the plugins can be accessed. It doesn't seem to be working >either. Am I using the correct syntax for these changes? > > >define command{ > command_name check-host-alive > command_line $USER1$=/usr/local/nagios/libexec check_ping -H >$HOSTADDRESS$ -w 99,99% -c 100,100% -p 1 > } > >Thanx for your help :-) > >_________________________________________________________________ >Shopping made easy @ tradingpost.com.au >http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%2F%3Freferrer%3DnmsnHMetagv1&_t=753082530&_r=emailtagline&_m=EXT > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. ::: Messages without supporting info will risk being >sent to /dev/null _________________________________________________________________ careerone.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fadsfac%2Enet%2Flink%2Easp%3Fcc%3DNWS014%2E19163%2E0%26clk%3D1%26creativeID%3D28927&_t=752722611&_m=EXT ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Mon Mar 13 07:22:49 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 13 Mar 2006 07:22:49 +0100 (CET) Subject: Correct Syntax?? In-Reply-To: References: Message-ID: On Mon, 13 Mar 2006, Jody Noscov wrote: > define command{ > command_name check-host-alive > command_line $USER1$=/usr/local/nagios/libexec check_ping -H > $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1 This can not be right. Either $USER1$ is defined so you do not have to use an absolute path: command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1 Or you need to use the full path to the check: command_line /usr/local/nagios/libexec check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1 But your syntax is not valid. Please refer to this mailinglist archive and the manual for other $USER1$ knowledge. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rod at arwholesalers.com Mon Mar 13 07:23:50 2006 From: rod at arwholesalers.com (rod at arwholesalers.com) Date: Mon, 13 Mar 2006 16:23:50 +1000 Subject: Incorrect command line arguments supplied Message-ID: I'm moving Nagios to a new server. I've installed and set-up as per instructions and its running fine except for all the UNIX check commands that use check_nrpe. They all show the "Incorrect command line arguments supplied" error in status information. System Details: Nagios Server: Fedora Core 4 Nagios v1.2 Plugins v1.30 NRPE v1.8 Monitored Servers: Solaris 8, 9 and RHEL3. Plugins - NetSaint v 1.2.9-4 (also tried v1.3 and 1.4) NRPE v1.5 (also tried v1.8 and v2.4)) I still have the old Nagios server running and the above configuration works fine for all services - Windows, linux and Unix. Pre Flight check shows no errors or warnings. I am running the same configuration on the new server as the old so I just tarred the ETC config files. Checked file permission's are OK. libexec files are executable. Check-ping works fine and interestingly so does check_http, check_dns and check_ftp on my RHEL server. As well there are no problems checking Windows services using check_nt_... The only problem is with the check_nrpe on UNIX. This is my config for zombie process, as an example. All check_nrpe processes give the same error. checkcommands.cfg define command { command_name check_local_procs command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ } services.cfg define service { use generic-service host_name mercury service_description Zombie Processes contact_groups sysadmins check_command check_nrpe!check_zombie_procs } nrpe.cfg command on monitored server.. command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs 5 10 Z I've been hacking around for a week now, re-compiling trying different combos of NRPE and plugins. I even set up Ubuntu server to see if the Problem was Fedora. No Luck. Any ideas would be gratefully accepted Thanks. __________________________ Rod Pudwell IT Systems Support Australian Regional Wholesalers -------------- next part -------------- An HTML attachment was scrubbed... URL: From tony at srishtisoft.com Mon Mar 13 08:24:58 2006 From: tony at srishtisoft.com (Tony John) Date: Mon, 13 Mar 2006 12:54:58 +0530 Subject: Database Problem Message-ID: <44151E4A.4070509@srishtisoft.com> Dear all, I have configured nagios and installed mysql. I got two scripts called loadconfig.pl and loadlogs.pl from nagiosexchange(http://www.nagiosexchange.org/Misc.36.0.html?&tx_netnagext_pi1%5Bp_view%5D=462) site. I ran these scripts successfully and it has loaded the logs into my database. Now my problem is I want to load the logs and configuration into my database dynamically so that whatever changes me or others makes on the config files or whatever comes to the log file has to be updated automatically to my Database. Is there anyway to do this. Waiting for your help. Thanks in advance.. Thanks & Regards Tony John ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bohara at gmail.com Mon Mar 13 14:31:40 2006 From: bohara at gmail.com (Ben O'Hara) Date: Mon, 13 Mar 2006 13:31:40 +0000 Subject: check_apache.pl and apache2 Message-ID: <2b36e660603130531od57d97alb8ed13b141955579@mail.gmail.com> Hi, Ive been using check_apache.pl fro mthe contrib/ folder in the official plugins, ive just installed a couple more webservers and upgraded to apache2, these dont check anymore, it appears the /server-status page has changed layout. Anyone have a copy that works or already updated it to deal with apache2? Thanks in advance Ben -- "A Scientist will earn a living by taking a really difficult problem and spends many years solving it, an engineer earns a living by finding really difficult problems and side stepping them" -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Mon Mar 13 15:58:04 2006 From: marc at ena.com (Marc Powell) Date: Mon, 13 Mar 2006 08:58:04 -0600 Subject: Problems with the pre-flight check Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jody Noscov > Sent: Sunday, March 12, 2006 7:23 PM > To: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Problems with the pre-flight check > > I have commented out the following in minimal.cfg > > #define command{ > # command_name check_local_disk > # command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ > # } > > #define command{ > # command_name check-host-alive > # command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c > #100,100% -p 1 > # } > > This is not going to cause any problems later down the track is it? Probably not. The problem was that you had 2 check_local_disk command definitions and the same for check-host-alive. You can't have two command definitions with the same command_name (nagios wouldn't be able to tell them apart). If the command definitions are identical then it's no big deal to comment one of the duplicates out. If they're different, and you intend to use both versions then you'll need to change the command_name's so that they're unique. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Mar 13 16:13:25 2006 From: marc at ena.com (Marc Powell) Date: Mon, 13 Mar 2006 09:13:25 -0600 Subject: Incorrect command line arguments supplied Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of rod at arwholesalers.com > Sent: Monday, March 13, 2006 12:24 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Incorrect command line arguments supplied > > > I'm moving Nagios to a new server. I've installed and set-up as per > instructions and its running fine except for all the UNIX check commands > that use check_nrpe. > They all show the "Incorrect command line arguments supplied" error in > status information. This error indicates that you are passing incorrect values to the check_nrpe command on your Nagios server. [chop] > > This is my config for zombie process, as an example. All check_nrpe > processes give the same error. > > checkcommands.cfg > define command { > command_name check_local_procs > command_line $USER1$/check_procs -w $ARG1$ - > c $ARG2$ -s $ARG3$ > } It's your check_nrpe command definition that is incorrect somehow. Can you post that? It should look something like the following -- define command{ command_name check_nrpe command_line $USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$ -to 30 } > > services.cfg > define service { > use generic-service > host_name mercury > service_description Zombie Processes > contact_groups sysadmins > check_command > check_nrpe!check_zombie_procs > } -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jay.Brunker at twc.state.tx.us Mon Mar 13 17:11:31 2006 From: Jay.Brunker at twc.state.tx.us (Brunker, Jay) Date: Mon, 13 Mar 2006 10:11:31 -0600 Subject: Nagios install directory Message-ID: <11741698C5E1574E9E0357305D55B47402272A@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> Alrighty, so what's the preferred directory to install Nagios into ? Thanks, JZB Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruce.gilbert at mosaic.com Mon Mar 13 17:13:43 2006 From: bruce.gilbert at mosaic.com (Gilbert, Bruce) Date: Mon, 13 Mar 2006 10:13:43 -0600 Subject: Nagios install directory Message-ID: /usr/local/nagios is my preference ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Brunker, Jay Sent: Monday, March 13, 2006 10:12 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Nagios install directory Alrighty, so what's the preferred directory to install Nagios into ? Thanks, JZB Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jay.Brunker at twc.state.tx.us Mon Mar 13 17:32:16 2006 From: Jay.Brunker at twc.state.tx.us (Brunker, Jay) Date: Mon, 13 Mar 2006 10:32:16 -0600 Subject: Inherited Server Message-ID: <11741698C5E1574E9E0357305D55B47402272D@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> Howdee: I've inherited a server that once had a nagios install on it. The previous owner removed the '/usr/local/nagios' directory, but not all parts apparently of nagios. OK, so how do I go about removing the old nagios install ? ... or ... Do I need to worry about the old bits of nagios ? i.e. Will a new/fresh install just do an overwrite ? I want to make sure I start off with a clean slate. Thanks, JZB Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHATHAWAY at bridgew.edu Mon Mar 13 17:49:18 2006 From: AHATHAWAY at bridgew.edu (Hathaway, Adam B.) Date: Mon, 13 Mar 2006 11:49:18 -0500 Subject: Check_DHCP Message-ID: Should the Check_DHCP script work if the nagios server is statically assigned an IP address? The script was working before but now that I statically assigned an IP it is no longer working. Adam B. Hathaway Network/Telephony Support Specialist Technology Systems & Networking Bridgewater State College Bridgewater, MA 02325 -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Mon Mar 13 18:03:55 2006 From: marc at ena.com (Marc Powell) Date: Mon, 13 Mar 2006 11:03:55 -0600 Subject: Inherited Server Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brunker, Jay > Sent: Monday, March 13, 2006 10:32 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Inherited Server > > > > Howdee: > > I've inherited a server that once had a nagios install on it. > The previous owner removed the '/usr/local/nagios' directory, but not all > parts > apparently of nagios. > > OK, so how do I go about removing the old nagios install ? > > ... or ... Do I need to worry about the old bits of nagios ? > i.e. Will a new/fresh install just do an overwrite ? > > I want to make sure I start off with a clean slate. For a standard source-based install, nagios puts everything except the init script in /usr/local/nagios. If installed via rpm, rpm -e should remove all parts of nagios. If it was installed in a non-standard location only you could know what that was. What parts are you seeing to make you think there are pieces left around? -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Mar 13 18:13:00 2006 From: marc at ena.com (Marc Powell) Date: Mon, 13 Mar 2006 11:13:00 -0600 Subject: Check_DHCP Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Hathaway, Adam B. > Sent: Monday, March 13, 2006 10:49 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check_DHCP > > Should the Check_DHCP script work if the nagios server is statically > assigned an IP address? The script was working before but now that I > statically assigned an IP it is no longer working. Yup. IP assignment on the host machine doesn't matter. You do still need to be on the same broadcast network as your DHCP server though. If you're seeing a specific error (or not even), that's clearly useful to us in helping you. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From askarali at beaconet.net Mon Mar 13 18:21:16 2006 From: askarali at beaconet.net (Askar Ali) Date: Mon, 13 Mar 2006 22:21:16 +0500 Subject: nagios plugin for listen ports Message-ID: <4415AA0C.80506@beaconet.net> Hi list, I'm wondering if there is a plugin for nagios which monitor open ports of a server eg I told him that these ports is legal to be in listen state say 22, 80, 21 and any other port found open generate an alert. I am sure you ppl got my point, all I want to be notify if any extra port found open on a machine. Regards. Askar. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brady.maxwell at gmail.com Mon Mar 13 18:38:09 2006 From: brady.maxwell at gmail.com (Brady Maxwell) Date: Mon, 13 Mar 2006 12:38:09 -0500 Subject: Nagios Training and Certification. Does it exist? Message-ID: <4415AE01.6040609@gmail.com> Hiya everyone, Anyone know of a facility that provides training classes for Nagios implementors and is inside the US? Are there any certifications or plans to develop certification tracks for Nagios engineers? I have been working with Nagios for about a year and have set up several single servers and one multi server distributed system. Work is offering to let me spend some money on training courses so I thought it would be good to learn some more Nagios (or at least get out of the office for a week or two) but have found very little on line about it. Thanks Brady ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From askarali at beaconet.net Mon Mar 13 18:42:04 2006 From: askarali at beaconet.net (Askar Ali) Date: Mon, 13 Mar 2006 22:42:04 +0500 Subject: Nagios Training and Certification. Does it exist? In-Reply-To: <4415AE01.6040609@gmail.com> References: <4415AE01.6040609@gmail.com> Message-ID: <4415AEEC.4060603@beaconet.net> Nagios training, certification sound cool :) love to teach "paid" to these classes. However their is one problem I am outside of US. Askar. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Mon Mar 13 20:06:56 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Mon, 13 Mar 2006 20:06:56 +0100 (CET) Subject: Nagios install directory In-Reply-To: <11741698C5E1574E9E0357305D55B47402272A@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> References: <11741698C5E1574E9E0357305D55B47402272A@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> Message-ID: On Mon, 13 Mar 2006, Brunker, Jay wrote: > Alrighty, so what's the preferred directory to install Nagios into ? /tmp/nagios on Solaris ;-) But as sysadmin you are the one defining where applications live on your system. It pretty much depends on how you laid out your filesystems. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Mon Mar 13 20:37:00 2006 From: jperrin at gmail.com (Jim Perrin) Date: Mon, 13 Mar 2006 14:37:00 -0500 Subject: Nagios install directory In-Reply-To: <11741698C5E1574E9E0357305D55B47402272A@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> References: <11741698C5E1574E9E0357305D55B47402272A@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> Message-ID: <302ce8b50603131137i79b3dd45w794e738358598d12@mail.gmail.com> > Alrighty, so what's the preferred directory to install Nagios into ? I'd say it depends on the system you're using. Ideally you should use or make use of the packaging style for your OS, be it solaris, debian, rhel etc. As previously pointed out, it's admin specific, but I'd amend that to say it should follow the style consistent with other packages on the OS. -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JoeRegular at gov.nl.ca Mon Mar 13 20:56:33 2006 From: JoeRegular at gov.nl.ca (Joe Regular) Date: Mon, 13 Mar 2006 16:26:33 -0330 Subject: Nagios and VMware Message-ID: Does anyone have a plug-in to monitor VMware Esx server and/or services? Jason ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Mar 13 21:04:28 2006 From: marc at ena.com (Marc Powell) Date: Mon, 13 Mar 2006 14:04:28 -0600 Subject: Nagios and VMware Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Joe Regular > Sent: Monday, March 13, 2006 1:57 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios and VMware > > Does anyone have a plug-in to monitor VMware Esx server and/or services? Number 2 hit on Google for "nagios vmware" ;) http://www.nagiosexchange.org/Linux.55.0.html?&tx_netnagext_pi1%5Bp_view %5D=148 -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tcruicksh at gmail.com Mon Mar 13 21:44:41 2006 From: tcruicksh at gmail.com (Tom Cruickshank) Date: Mon, 13 Mar 2006 15:44:41 -0500 Subject: Problems with the pre-flight check In-Reply-To: References: Message-ID: The problem you encountered was probably having checkcommands.cfguncommented in the nagios.cfg file as well as minimal.cfg (they have duplicate commands). I encountered the same thing myself when I set things up. Tom PS: Sorry Marc for having posted just to you. Mis-clicked on the button On 3/13/06, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Jody Noscov > > Sent: Sunday, March 12, 2006 7:23 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Problems with the pre-flight check > > > > I have commented out the following in minimal.cfg > > > > #define command{ > > # command_name check_local_disk > > # command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ > > # } > > > > #define command{ > > # command_name check-host-alive > > # command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% > -c > > #100,100% -p 1 > > # } > > > > This is not going to cause any problems later down the track is it? > > Probably not. The problem was that you had 2 check_local_disk command > definitions and the same for check-host-alive. You can't have two > command definitions with the same command_name (nagios wouldn't be able > to tell them apart). If the command definitions are identical then it's > no big deal to comment one of the duplicates out. If they're different, > and you intend to use both versions then you'll need to change the > command_name's so that they're unique. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zaidthegeek at yahoo.com Mon Mar 13 23:46:34 2006 From: zaidthegeek at yahoo.com (Zaid) Date: Mon, 13 Mar 2006 14:46:34 -0800 (PST) Subject: no notification when host down Message-ID: <20060313224634.42168.qmail@web61125.mail.yahoo.com> I am experiencing a strange issue with host down notification. I currently check host status with http checks. The way I have set it up is such that if a web server goes down it is considered a host down. The problem is that when this happens I dont get an alert even though I have notification enabled. I do see it logged as host down critical in the event log but no alert message sent. Anyone know why this could be happening or is having a similar issue? Here is my host config: define host { host_name web1-app-sf alias App Coloserve-SF address xxx.xx.xx.xx hostgroups ApplicationServers check_command check_http max_check_attempts 3 check_interval 1 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 obsess_over_host 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups Netops notification_interval 2 notification_period 24x7 notification_options d,u,r,f notifications_enabled 1 register 1 } Thanks, Zaid ++------------------------------------------------------------++ If we don't believe in freedom of expression for people we despise, we don't believe in it at all. Chomsky, Noam Zaid's Blog: http://drummergeek.blogspot.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeffwilliams05 at gmail.com Tue Mar 14 00:39:21 2006 From: jeffwilliams05 at gmail.com (Jeff Williams) Date: Mon, 13 Mar 2006 17:39:21 -0600 Subject: notification escalations after state change Message-ID: <17e351010603131539i7c545662kf73fcfff2154d183@mail.gmail.com> Let's say I have a service called x that is at an OK status. Service x has contacts oncall and admins specified in its service definition. In its escalation, service x will notify oncall for notification number 2 and oncall and backup for notifications 3 through 5. If service x goes to a WARNING status and notifies oncall and admins, but then remains in the WARNING status for several days before moving to the CRITICAL status, the notification number is not reset and Nagios will therefore page oncall once about the CRITICAL status and then oncall and backup will each receive 3 more notifications. Is there a way to reset the notification number whenever the state changes? Or is there a way I can compensate for this behavior of Nagios? Thanks. Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at bydesignpublishing.com Tue Mar 14 00:57:42 2006 From: jim at bydesignpublishing.com (Jim Rice) Date: Mon, 13 Mar 2006 15:57:42 -0800 Subject: How to check disk space on remote systems In-Reply-To: <4411B9FC.5010309@gridshield.net> References: <1142032615.30483.255.camel@james.homebydesign.com> <4411B9FC.5010309@gridshield.net> Message-ID: <1142294262.23300.87.camel@james.homebydesign.com> On Fri, 2006-03-10 at 17:40 +0000, German Solis wrote: > I suggest you to check nrpe. With this, you define your commands in > the hosts and you invoke the command like this ( I dont remember exactly). > > file checkcommands.cfg > > ..... > command check_nrpr!check_my_command > .... > > > > on the host, in your /etc/nrpe.cfg you have: > > command{check_my_command}=/urs/lib/nagios/pluguins/whatever_pluging_you_want_to_excecute_and_parameters. > > > Reggards. > > G.. The docs didn't offer much in the way of details. Is there a better source for examples? I can't be the first one to want to run "df" on a remote system. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rod at arwholesalers.com Tue Mar 14 00:45:22 2006 From: rod at arwholesalers.com (Rod Pudwell) Date: Mon, 13 Mar 2006 23:45:22 +0000 (UTC) Subject: Incorrect command line arguments supplied References: Message-ID: Marc Powell ena.com> writes: > It's your check_nrpe command definition that is incorrect somehow. Can > you post that? It should look something like the following -- > > define command{ > command_name check_nrpe > command_line $USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$ -to > 30 > } Marc, I checked the syntax by executing ./check_nrpe ,my check command is below: define command { command_name check_nrpe command_line $USER1$/check_nrpe $HOSTADDRESS$ -p 5666-c $ARG1$ } Even tried typing the full path to check_nrpe executable. What puzzles me is that all my check commands are working fine on old Nagios server which is running on Solaris 9 box. The only difference that I can think of is that the new server is Fedora Core 4. Maybe their is a compatability issue because I compiled the check commands with wrong libraries..??? Also made sure the use external commands switch was enable at compile time. I don't know...I'm just about ready to scrap the lot and biuld another solaris server. At least I know it will work with my current ETC config files. Cheers Rod. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Tue Mar 14 01:15:01 2006 From: jperrin at gmail.com (Jim Perrin) Date: Mon, 13 Mar 2006 19:15:01 -0500 Subject: How to check disk space on remote systems In-Reply-To: <1142294262.23300.87.camel@james.homebydesign.com> References: <1142032615.30483.255.camel@james.homebydesign.com> <4411B9FC.5010309@gridshield.net> <1142294262.23300.87.camel@james.homebydesign.com> Message-ID: <302ce8b50603131615n55552808k84b54d450da57f44@mail.gmail.com> > I can't be the first one to want to run "df" on a remote system. Not at all, but poor documtentation doesn't mean people aren't doing it, it just means they aren't TALKING about doing it. The machines I monitor are all on the same lan, so I use snmp to monitor disk usage. There are plugins for this on nagiosexchange, or you can use check_snmp to do it. -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chertolyas.av at mgsm.ru Thu Mar 9 07:19:34 2006 From: chertolyas.av at mgsm.ru (Andrew V. Chertolyas) Date: Thu, 09 Mar 2006 10:19:34 +0400 Subject: Failover nagios server In-Reply-To: <002b01c6422a$a56b4c50$8ea8d882@438LG01sshi052> References: <002b01c6422a$a56b4c50$8ea8d882@438LG01sshi052> Message-ID: <440FC8F6.9000206@mgsm.ru> Steve Shipway wrote: >>I have a standalone server with nagios running on it. I want >>to tune up an another server, for distributed monitoring. But >>main task is to provide for failover work of allover nagios >>configuration - in case of failure of one of the servers >>another server must provide data collection from all >>monitoring servers. Is there any solutions for it? > > > We have such a setup here. > > I have two Linux servers, each with 2 network cards and one Adaptec > serveraid card. There is an external SCSI disk unit, connected to BOTH > server's SCSI cards, with a pair of disks configured in mirror. The servers > are joined by a crossed ethernet cable on the second network card. The > primary network card of each is on the network. > > I have installed linux-HA on both servers, and have a service group > consisting of a virtual IP, the filesystem on the external disk, and the > nagios service. This is set to failover between servers, with one server > being the primary home with autofailback. > > (Actually, there is also a mysql database on the nagios server, plus the > BigBrother/Nagios gateway and a couple of other services, and the other > server normally runs our MRTG setup on a separate filesystem, but this is > just extra) > > Since the Adaptec Serveraid natively supports this configuration, it works > very well with linux-HA and the failover goes nicely. The only thing to add > is some cleanup code so that, if server1 dies, then server2 picks up the > filesystem and needs to delete any Nagios.cmd pipe that may have been left > lying around before starting. > > This was surprisingly easy to set up, once the Raid config had been done. > Thereis a bitof problem with how to define 'down' -- if the network > interface 1 is down (so people cannot see Nagios) but interface 2 is up (so > the heartbeat still works) should it fail over? I would say no. You should > also send the heartbeat over the crossed ethernet cable, since otherwise a > switch going down would make the 2 servers fight over the services (but > thanks to the serveraid having internal locking, youll never get both > accessing the filesystem at once and corrupting data) > > Steve Thank you! -- WBR, Andrew V. Chertolyas ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Mar 9 08:41:04 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 9 Mar 2006 08:41:04 +0100 (CET) Subject: scriptalias error In-Reply-To: <844950720603082037g7c147d4dwaae19468bcb40719@mail.gmail.com> References: <844950720603082037g7c147d4dwaae19468bcb40719@mail.gmail.com> Message-ID: On Wed, 8 Mar 2006, Dustin wrote: > New user here, just following the documentation to setup on RHEL4. > Installed vi RPM's, getting an error when I restart httpd after I've > added the configuration (modified for my system) to httpd.conf. You should not have added these lines to httpd.conf. Beacause you allready have a valid new config part in ../conf.d/nagios.conf Please familiarize yourself a bit more with the config setup of your apache installation and read the other config files in conf.d as well to see if you have no further duplication. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From list at everywhereinternet.com Tue Mar 14 02:23:00 2006 From: list at everywhereinternet.com (Nick) Date: Tue, 14 Mar 2006 12:23:00 +1100 Subject: Making alarms less sensitive Message-ID: <44161AF4.10002@everywhereinternet.com> Is there any way of making nagios a bit less sensitive to outages? I have it setup monitoring a webserver that will often go away for a few seconds and come back which nagios will quite rightly report on. I just wondered how i'd go about extending the down time before notify to say 10 mins? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmourati at cm.math.uiuc.edu Tue Mar 14 02:38:05 2006 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Mon, 13 Mar 2006 19:38:05 -0600 (CST) Subject: Making alarms less sensitive In-Reply-To: <44161AF4.10002@everywhereinternet.com> References: <44161AF4.10002@everywhereinternet.com> Message-ID: On Tue, 14 Mar 2006, Nick wrote: > Is there any way of making nagios a bit less sensitive to outages? I have it > setup monitoring a webserver that will often go away for a few seconds and > come back which nagios will quite rightly report on. I just wondered how i'd > go about extending the down time before notify to say 10 mins? You'll want to adjust the following paramters for the service definitions in question, with max_check_attempts being the most direct fix to the problem you've presented. max_check_attempts normal_check_interval retry_check_interval ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scotjenkins at gmail.com Tue Mar 14 04:54:07 2006 From: scotjenkins at gmail.com (Scot Jenkins) Date: Mon, 13 Mar 2006 21:54:07 -0600 Subject: How to check disk space on remote systems In-Reply-To: <1142294262.23300.87.camel@james.homebydesign.com> References: <1142032615.30483.255.camel@james.homebydesign.com> <4411B9FC.5010309@gridshield.net> <1142294262.23300.87.camel@james.homebydesign.com> Message-ID: On 3/13/06, Jim Rice wrote: > > The docs didn't offer much in the way of details. > Is there a better source for examples? > > I can't be the first one to want to run "df" on a remote system. > I found this link helpful in setting up NRPE: http://michael.gargantuan.com/nrpe.htm There's also check_by_ssh which comes with the standard nagios-plugins. In either case, you need to install nagios-plugins on the remote systems. scot ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From step-one-too at bdg.centrin.net.id Tue Mar 14 05:56:19 2006 From: step-one-too at bdg.centrin.net.id (stevanus) Date: Tue, 14 Mar 2006 11:56:19 +0700 Subject: nagios SIGSEGV Message-ID: <44164CF3.5090101@bdg.centrin.net.id> Hi, Why nagios shutted down itself when I executed command "service nagios start" on Redhat Enterprise 3? When I executed the init script directly by using /etc/rc.d/init.d/nagios start, I didn't get any problem... Regards, Stevanus ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tony at srishtisoft.com Tue Mar 14 06:04:56 2006 From: tony at srishtisoft.com (Tony John) Date: Tue, 14 Mar 2006 10:34:56 +0530 Subject: Database Usage With Nagios Message-ID: <44164EF8.90409@srishtisoft.com> Dear all, I have configured nagios and installed mysql. I got two scripts called loadconfig.pl and loadlogs.pl from nagiosexchange(http://www.nagiosexchange.org/Misc.36.0.html?&tx_netnagext_pi1%5Bp_view%5D=462) site. I ran these scripts successfully and it has loaded the logs into my database. Now my problem is I want to load the logs and configuration into my database dynamically so that whatever changes me or others makes on the config files or whatever comes to the log file has to be updated automatically to my Database. Is there anyway to do this. I have tried ndoutils from sourceforge.net. But it is not loading the logs. Is it the right choice to use. I want customized tables so that i want to make a web application based on this database. Waiting for your help. Thanks in advance.. Thanks & Regards Tony John ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Tue Mar 14 07:54:31 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 14 Mar 2006 07:54:31 +0100 (CET) Subject: nagios SIGSEGV In-Reply-To: <44164CF3.5090101@bdg.centrin.net.id> References: <44164CF3.5090101@bdg.centrin.net.id> Message-ID: On Tue, 14 Mar 2006, stevanus wrote: > Why nagios shutted down itself when I executed command "service nagios > start" on Redhat Enterprise 3? > When I executed the init script directly by using > /etc/rc.d/init.d/nagios start, I didn't get any problem... Running it twice will not work. By lack of detail about your installation, nagios version, ... That is just about all one can say about it. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Tue Mar 14 08:06:22 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 14 Mar 2006 08:06:22 +0100 (CET) Subject: No resending of questions please (Was: Database Usage With Nagios) In-Reply-To: <44164EF8.90409@srishtisoft.com> References: <44164EF8.90409@srishtisoft.com> Message-ID: On Tue, 14 Mar 2006, Tony John wrote: > I have configured nagios and installed mysql. I got two > scripts called loadconfig.pl and loadlogs.pl from .... Thank you Tony, for rerunning old shows. In general on mailinglist this section applies to unanswered questions: As most questions get sone sort of reply it just does not mean every question gets answered by someone. Resending a question within a day is not the way to go. Give it a week and rephrase a question if there is no reply to a question. And always considere that your particular question might just not have the easy answer you are looking for. If you are in a hurry: hire someone to do the job. Just do not push a free support mechanisme like this mailinglist to the point where regular posters of answers get annoyed and go away because they have had it with all the pushing and resends on the list. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From powo+lists.nagios-users at powo.priv.at Tue Mar 14 09:59:23 2006 From: powo+lists.nagios-users at powo.priv.at (Wolfgang Powisch) Date: Tue, 14 Mar 2006 09:59:23 +0100 Subject: host DOWN if all services CRITICAL Message-ID: <441685EB.9080709@powo.priv.at> Hi, I'd like to have a host-check plugin which considers a host as down if all services are Critical (or unknown). The usual host check command is to ping the hostaddress, but especially for routers it does not mean, the router is down, when only the main-ip-address is not pingable. Does there exist any plugin that checks a host by by the current state if it's services ? mfg -- Wolfgang Powisch www.powo.priv.at ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From julienford at gmail.com Tue Mar 14 10:03:08 2006 From: julienford at gmail.com (Julien Ford) Date: Tue, 14 Mar 2006 10:03:08 +0100 Subject: multiple alerts for the same service Message-ID: <3ec361dd0603140103v2ec1a5c7vefd8166ad70e6c89@mail.gmail.com> Hello, I'm monitoring a log file with the check_log plugin. The plugin tries to find patterns in the log file and if it finds, sends an alert to the nagios server. In nagios this service is volatile,passive and has a "max_check_attempts" to 1. My trouble is when there are two or more alerts for the same service, only the last is show in the web interface and only this one can by acknowledge. Is it possible to show in the web interface all alerts and to acknowledge them independently ? If the last alert is acknowledged is it possible that the service become OK only if there isn't any previous unacknowledged alert ? Thanks. Regards, Julien ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From powo+lists.nagios-users at powo.priv.at Tue Mar 14 12:21:10 2006 From: powo+lists.nagios-users at powo.priv.at (Wolfgang Powisch) Date: Tue, 14 Mar 2006 12:21:10 +0100 Subject: host DOWN if all services CRITICAL In-Reply-To: References: <441685EB.9080709@powo.priv.at> Message-ID: <4416A726.7020702@powo.priv.at> Tomas Macek wrote: > Hi, only Nagios knows the states of all the services of the host, so I > think you cannot program such a plugin, that would know about results of > the other services I assume that it is rather trivial (even since i'm using ndoutils and can lookup the service states in db) to get the service-states out of nagios. I think check_cluster does something like this too, but it's used for a different purpose. What I'm really interested in, is, if there are any dangerous pitfalls I could run in, when I use the service states to determine the host-state. Has anybody ever used something like this ? > > Tomas > > > On Tue, 14 Mar 2006, Wolfgang Powisch wrote: > >> Hi, >> >> I'd like to have a host-check plugin which considers a host as down if >> all services are Critical (or unknown). >> >> The usual host check command is to ping the hostaddress, but especially >> for routers it does not mean, the router is down, when only the >> main-ip-address is not pingable. >> >> Does there exist any plugin that checks a host by by the current state >> if it's services ? >> >> mfg >> -- >> Wolfgang Powisch >> www.powo.priv.at >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. ::: Messages without supporting info will risk >> being sent to /dev/null >> >> >> >> >> >> ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From roland.sorgenfrei at spb.de Tue Mar 14 14:18:53 2006 From: roland.sorgenfrei at spb.de (Roland Sorgenfrei) Date: Tue, 14 Mar 2006 14:18:53 +0100 (CET) Subject: nagios SIGSEGV In-Reply-To: <44164CF3.5090101@bdg.centrin.net.id> References: <44164CF3.5090101@bdg.centrin.net.id> Message-ID: <20060314131853.D15E54F40E3@desire.netways.de> Hi all, I have the same problem after executed ext. command. When I execude the init scipt, nagios started without problems. nagios.log [1141784121] EXTERNAL COMMAND: DEL_ALL_HOST_COMMENTS;XXXXXXX [1141784121] Caught SIGSEGV, shutting down... [1141890524] Nagios 2.0 starting... (PID=14428) [1141890524] LOG VERSION: 2.0 Nagios version : 2.0 Plugins version : 1.4 OS : RH 2.1 roland ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=16270 > Hi, > > Why nagios shutted down itself when I executed command "service nagios > start" on Redhat Enterprise 3? > When I executed the init script directly by using > /etc/rc.d/init.d/nagios start, I didn't get any problem... > > Regards, > > Stevanus > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat =121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Daniel.Tardy at canson.fr Tue Mar 14 16:09:28 2006 From: Daniel.Tardy at canson.fr (Daniel.Tardy at canson.fr) Date: Tue, 14 Mar 2006 16:09:28 +0100 Subject: Check a telnet on a particular port and launch the dependent procedure In-Reply-To: References: Message-ID: Hi everybody With Nagios, I've tried the two manners => But these two manners gave me a message => Connection Refused. But when I run the command manually all is OK. I've tried many manners and always this issue: maually = ok Nagios = bad. Do you have any idea ? Many thanks in advance, Cordialement, Daniel TARDY Tel 33 (0) 4 75 69 88 10 Fax 33 (0) 4 75 69 02 00 Daniel.Tardy at canson.fr http://www.canson.fr http://www.arjowiggins.com "Marc Powell" Envoy? par : nagios-users-admin at lists.sourceforge.net 11/03/2006 00:03 A cc Objet RE: [Nagios-users] Check a telnet on a particular port and launch the dependent procedure Or check_tcp may be more than sufficient. The OP doesn't explain enough about what he's wanting to do to be sure. Daniel - Run 'check_tcp --help' and see if that suits your needs. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Eli Stair > Sent: Friday, March 10, 2006 2:12 PM > To: Daniel.Tardy at canson.fr > Cc: nagios-users at lists.sourceforge.net; nagios-users- > admin at lists.sourceforge.net > Subject: Re: [Nagios-users] Check a telnet on a particular port and launch > the dependent procedure > > > Check google and/or nagiosplug.sourceforge.net, you'll find at least > plugins to let you check the SSH banner (if that's all you want to do) > and run commands/send output back to the plugin (check_ssh | > check_by_ssh). That's assuming you meant ssh and not telnet, if you > need telnet I've hacked up a simple Net::Telnet script to do the same > things as the ssh plugs. Likely you'll want check_ssh however. > > /eli > > Daniel.Tardy at canson.fr wrote: > > > > Good morning everybody, > > I need to do a telnet 10.21211212 22 and check the result. > > I'm a new user of Nagios and I don't know to tell Nagios to do this > > telnet and then I don't know how to know the result and send a message > > or a command depending on this result. > > Il someone has the know how, tanks a lot to help me. > > Best regards, > > Daniel TARDY > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 2214 bytes Desc: not available URL: From marc at ena.com Tue Mar 14 16:27:13 2006 From: marc at ena.com (Marc Powell) Date: Tue, 14 Mar 2006 09:27:13 -0600 Subject: multiple alerts for the same service Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Julien Ford > Sent: Tuesday, March 14, 2006 3:03 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] multiple alerts for the same service > > Hello, > > I'm monitoring a log file with the check_log plugin. > > The plugin tries to find patterns in the log file and > if it finds, sends an alert to the nagios server. In > nagios this service is volatile,passive and has a > "max_check_attempts" to 1. > > My trouble is when there are two or more alerts for > the same service, only the last is show in the web > interface and only this one can by acknowledge. > > Is it possible to show in the web interface all alerts > and to acknowledge them independently ? If the last > alert is acknowledged is it possible that the service > become OK only if there isn't any previous > unacknowledged alert ? You would need to have a unique service definition for each and a way to distinguish them to get close to the above. As far as nagios is concerned, 1 service definition == 1 service and there is no concept of multiple 'flavors' of that service outside of the volatility technique that you are already implementing. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Mar 14 16:32:06 2006 From: marc at ena.com (Marc Powell) Date: Tue, 14 Mar 2006 09:32:06 -0600 Subject: Check a telnet on a particular port and launch the dependent procedure Message-ID: Daniel -- Please don't CC: nagios-users-admin at . That's an administrative e-mail address, not for general posts. Please provide your service and command definitions for this check and exactly how you are testing it from the command line and the results. >From the error, the port you are testing isn't listening or isn't the port you think you're testing. -- Marc > -----Original Message----- > From: Daniel.Tardy at canson.fr [mailto:Daniel.Tardy at canson.fr] > Sent: Tuesday, March 14, 2006 9:09 AM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net; nagios-users- > admin at lists.sourceforge.net > Subject: RE: [Nagios-users] Check a telnet on a particular port and launch > the dependent procedure > > > Hi everybody > > With Nagios, I've tried the two manners => > But these two manners gave me a message => Connection Refused. > But when I run the command manually all is OK. > I've tried many manners and always this issue: maually = ok Nagios = bad. > Do you have any idea ? > Many thanks in advance, > Cordialement, > > Daniel TARDY > > Tel 33 (0) 4 75 69 88 10 > Fax 33 (0) 4 75 69 02 00 > Daniel.Tardy at canson.fr > http://www.canson.fr > http://www.arjowiggins.com > > > > "Marc Powell" > Envoy? par : nagios-users-admin at lists.sourceforge.net > > 11/03/2006 00:03 A > > cc > Objet > RE: [Nagios-users] Check a telnet on a particular port and launch the > dependent procedure > > > > > > > Or check_tcp may be more than sufficient. The OP doesn't explain enough > about what he's wanting to do to be sure. > > Daniel - Run 'check_tcp --help' and see if that suits your needs. > > -- > Marc > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Eli Stair > > Sent: Friday, March 10, 2006 2:12 PM > > To: Daniel.Tardy at canson.fr > > Cc: nagios-users at lists.sourceforge.net; nagios-users- > > admin at lists.sourceforge.net > > Subject: Re: [Nagios-users] Check a telnet on a particular port and > launch > > the dependent procedure > > > > > > Check google and/or nagiosplug.sourceforge.net, you'll find at least > > plugins to let you check the SSH banner (if that's all you want to do) > > and run commands/send output back to the plugin (check_ssh | > > check_by_ssh). That's assuming you meant ssh and not telnet, if you > > need telnet I've hacked up a simple Net::Telnet script to do the same > > things as the ssh plugs. Likely you'll want check_ssh however. > > > > /eli > > > > Daniel.Tardy at canson.fr wrote: > > > > > > Good morning everybody, > > > I need to do a telnet 10.21211212 22 and check the result. > > > I'm a new user of Nagios and I don't know to tell Nagios to do this > > > telnet and then I don't know how to know the result and send a > message > > > or a command depending on this result. > > > Il someone has the know how, tanks a lot to help me. > > > Best regards, > > > Daniel TARDY ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From td3201 at gmail.com Tue Mar 14 16:47:19 2006 From: td3201 at gmail.com (Terry) Date: Tue, 14 Mar 2006 09:47:19 -0600 Subject: Fruity, nag2web, or NagiosWeb?? Message-ID: <8ee061010603140747j76850cf4ndf2df109d271273@mail.gmail.com> Anyone have input on why they use any of the above? I am currently on 1.x but looking to migrate to 2.x soon. Thanks! ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jay.Brunker at twc.state.tx.us Tue Mar 14 16:50:53 2006 From: Jay.Brunker at twc.state.tx.us (Brunker, Jay) Date: Tue, 14 Mar 2006 09:50:53 -0600 Subject: /usr/local/nagios/etc directory not created Message-ID: <11741698C5E1574E9E0357305D55B474022732@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> OK, so I ran make install-init ... no problems ... then I attempted to run 'make commandmode' and Received the error : Make: *** No rule to make target 'install-commandmode'. Stop. I manually create the '/etc/local/nagios/etc' directory with correct permissions ( nagios.nagios) and copied the files from source/nagios/sample-config over to '/usr/local/bin/nagios/etc'. Are there any other files that I should copy to '/usr/local/nagios/etc' before proceeding with the config ? Thanks, JZB Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager -------------- next part -------------- An HTML attachment was scrubbed... URL: From sorin.valcu at net-aptitude.fr Tue Mar 14 17:10:41 2006 From: sorin.valcu at net-aptitude.fr (Sorin VALCU) Date: Tue, 14 Mar 2006 17:10:41 +0100 Subject: SNMP Traps in Nagios Message-ID: <4E13BD0442DACA4D9606CAD98924F09A592746@srv-nap-atlas-1.net-aptitude.fr> Hello I'm trying to use SNMP Traps in Nagios. The SNMP Traps are collected by snmptrapd that passes them to snmptthandler and then to snmptt. Snmptt (via an EXEC command) writes a service status notification in the nagios.cmd file. The problem is that snmptt can not translate the traps received from a cisco catalyst. All OID's in the snmptt.conf file are all numeric values. All the cisco mibs (snmp v1) are present in the /usr/share/snmp/mibs/ directory. There is no snmp.conf file. Here is the output from the snmptt.debug file. Thank you for your help Sorin V Processing file: #snmptt-trap-1142269412443608 Reading trap. Current time: Mon Mar 12 11:00:00 2006 Symbolic trap variable name detected (SNMPv2-MIB::sysUpTime.0). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMPv2-MIB::snmpTrapOID.0). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMPv2-SMI::enterprises.9.2.9.3.1.1.4.1). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (TCP-MIB::tcpConnState.172.18.36.31.80.172.18.36.50.3399). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMPv2-SMI::enterprises.9.2.6.1.1.5.172.18.36.31.80.172.18.36.50.3399). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMPv2-SMI::enterprises.9.2.6.1.1.1.172.18.36.31.80.172.18.36.50.3399). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMPv2-SMI::enterprises.9.2.6.1.1.2.172.18.36.31.80.172.18.36.50.3399). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMPv2-SMI::enterprises.9.2.9.2.1.18.4). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMP-COMMUNITY-MIB::snmpTrapAddress.0). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMP-COMMUNITY-MIB::snmpTrapCommunity.0). Will attempt to translate to a numerical OID Could not translate - will leave as-is Symbolic trap variable name detected (SNMPv2-MIB::snmpTrapEnterprise.0). Will attempt to translate to a numerical OID Could not translate - will leave as-is Items passed from snmptrapd: value 0: testcisco value 1: 123.123.123.123 value 2: SNMPv2-MIB::sysUpTime.0 value 3: 0:5:49:22.74 value 4: SNMPv2-MIB::snmpTrapOID.0 value 5: SNMPv2-SMI::enterprises.9.0.1 value 6: SNMPv2-SMI::enterprises.9.2.9.3.1.1.4.1 value 7: 5 value 8: TCP-MIB::tcpConnState.172.18.36.31.80.172.18.36.50.3399 value 9: established value 10: SNMPv2-SMI::enterprises.9.2.6.1.1.5.172.18.36.31.80.172.18.36.50.3399 value 11: 0:0:00:01.48 value 12: SNMPv2-SMI::enterprises.9.2.6.1.1.1.172.18.36.31.80.172.18.36.50.3399 value 13: 470 value 14: SNMPv2-SMI::enterprises.9.2.6.1.1.2.172.18.36.31.80.172.18.36.50.3399 value 15: 5343 value 16: SNMPv2-SMI::enterprises.9.2.9.2.1.18.4 value 17: value 18: SNMP-COMMUNITY-MIB::snmpTrapAddress.0 value 19: 123.123.123.123 value 20: SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 value 21: public value 22: SNMPv2-MIB::snmpTrapEnterprise.0 value 23: SNMPv2-SMI::enterprises.9 Symbolic trap variable name detected (SNMPv2-SMI::enterprises.9.0.1). Will attempt to translate to a numerical OID Could not translate - will leave as-is Agent IP address was blank, so setting to the same as the host IP address of 123.123.123.123 Agent IP address (123.123.123.123) is the same as the host IP, so copying the host name: testcisco Trap received from comm4e-droite.lotsys.corp: SNMPv2-SMI::enterprises.9.0.1 0: hostname 1: ip address 2: uptime 3: trapname / OID 4: ip address from trap agent 5: trap community string 6: enterprise 0+: passed variables Value 0: testcisco Value 1: 123.123.123.123 Value 2: 0:5:49:22.74 Value 3: SNMPv2-SMI::enterprises.9.0.1 Value 4: 123.123.123.123 Value 5: Value 6: Agent dns name: testcisco Ent Value 0 ($1): SNMPv2-SMI::enterprises.9.2.9.3.1.1.4.1=5 Ent Value 1 ($2): TCP-MIB::tcpConnState.172.18.36.31.80.172.18.36.50.3399=established Ent Value 2 ($3): SNMPv2-SMI::enterprises.9.2.6.1.1.5.172.18.36.31.80.172.18.36.50.3399=0: 0:00:01.48 Ent Value 3 ($4): SNMPv2-SMI::enterprises.9.2.6.1.1.1.172.18.36.31.80.172.18.36.50.3399=47 0 Ent Value 4 ($5): SNMPv2-SMI::enterprises.9.2.6.1.1.2.172.18.36.31.80.172.18.36.50.3399=53 43 Ent Value 5 ($6): SNMPv2-SMI::enterprises.9.2.9.2.1.18.4= Ent Value 6 ($7): SNMP-COMMUNITY-MIB::snmpTrapAddress.0=123.123.123.123 Ent Value 7 ($8): SNMP-COMMUNITY-MIB::snmpTrapCommunity.0=public Ent Value 8 ($9): SNMPv2-MIB::snmpTrapEnterprise.0=SNMPv2-SMI::enterprises.9 Exact match of trap NOT found in EVENT hash table Looking for wildcards in the EVENT hash table Drilling down looking for wildcards in the EVENT hash table SNMPv2-SMI::enterprises.9.0.* Drilling down looking for wildcards in the EVENT hash table SNMPv2-SMI::enterprises.9.* Trap not defined... -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Tue Mar 14 17:26:50 2006 From: marc at ena.com (Marc Powell) Date: Tue, 14 Mar 2006 10:26:50 -0600 Subject: /usr/local/nagios/etc directory not created Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brunker, Jay > Sent: Tuesday, March 14, 2006 9:51 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] /usr/local/nagios/etc directory not created > > > > OK, so I ran make install-init ... no problems ... > then I attempted to run 'make commandmode' and > Received the error : > > Make: *** No rule to make target 'install-commandmode'. Stop. 'make commandmode' is invalid and seems to have been a typo in this e-mail. 'make install-commandmode' _is_ a valid command. Are you sure you did it from the root of the compiled source tree? I don't recall ever hearing of a failure of that command before. > I manually create the '/etc/local/nagios/etc' directory with correct > permissions ( nagios.nagios) and copied the files from > source/nagios/sample-config over to '/usr/local/bin/nagios/etc'. > > Are there any other files that I should copy to '/usr/local/nagios/etc' > before proceeding with the config ? I would recommend just running 'make install-config' from the compiled source tree -- make install-config - This installs *SAMPLE* config files in /usr/local/nagios/etc You'll have to modify these sample files before you can use Nagios. Read the HTML documentation for more info on doing this. Pay particular attention to the docs on object configuration files, as they determine what/how things get monitored! -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Tue Mar 14 18:28:15 2006 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Tue, 14 Mar 2006 09:28:15 -0800 (PST) Subject: SNMP Traps in Nagios In-Reply-To: <4E13BD0442DACA4D9606CAD98924F09A592746@srv-nap-atlas-1.net-aptitude.f r> References: <4E13BD0442DACA4D9606CAD98924F09A592746@srv-nap-atlas-1.net-aptitude.fr> Message-ID: <54507.192.168.128.102.1142357295.squirrel@ssl.monsoonwind.com> I have attached the snmptt.ini that I use. Make sure you have: net_snmp_perl_enable = 1 net_snmp_perl_best_guess = 1 translate_value_oids = 1 translate_log_trap_oid = 1 translate_enterprise_oid_format = 1 translate_trap_oid_format = 1 translate_varname_oid_format = 1 mibs_environment = ALL > Hello > > I'm trying to use SNMP Traps in Nagios. > > The SNMP Traps are collected by snmptrapd that passes them to > snmptthandler and then to snmptt. > > Snmptt (via an EXEC command) writes a service status notification > in the nagios.cmd file. > > The problem is that snmptt can not translate the traps received > from a cisco catalyst. > > All OID's in the snmptt.conf file are all numeric values. > > All the cisco mibs (snmp v1) are present in the > /usr/share/snmp/mibs/ directory. > > There is no snmp.conf file. > > Here is the output from the snmptt.debug file. > > Thank you for your help > > Sorin V -- And, did Guloka think the Ulus were too ugly to save? -Centauri -------------- next part -------------- A non-text attachment was scrubbed... Name: snmptt.ini Type: application/octet-stream Size: 20299 bytes Desc: not available URL: From mkoponick at redhawk.info Tue Mar 14 18:28:28 2006 From: mkoponick at redhawk.info (Mike Koponick) Date: Tue, 14 Mar 2006 09:28:28 -0800 Subject: The best way to test notifications Message-ID: <8C18BAD1F46B2245B0A08BCF1A823DD4109CDD@raptor.redhawk.info> Hello all! I have a need to test notifications on a monthly basis. We have sections of our network that are very quiet; thusly we do not see any alerts from these sites. The way I have been testing notification is shutting down Nagios at the remote end and waiting for the notifications to start/end. It seems crude to me to perform this function in order to get a "test" notification. Anyone have any suggestions or ideas? Is this something that could be in 3.0? Thanks in advance, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From pavel.santos at cyberlockconsulting.com Tue Mar 14 18:29:28 2006 From: pavel.santos at cyberlockconsulting.com (Pavel Santos) Date: Tue, 14 Mar 2006 12:29:28 -0500 Subject: Nagios escalations not working Message-ID: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C190A@EPI-EXB2.epidirect.epi> All, I am still having problems with the notification escalation. The issue is that the alerts are not being escalated to the different contact groups, the alerts are going to all contact groups at the same time. Has anyone gotten this to work? Thanks, Pavel ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Pavel Santos Sent: Thu 3/9/2006 12:26 PM To: Nagios Users Mailinglist; Nagios Users Mailinglist Subject: RE: [Nagios-users] Nagios escalations not working Hugo, this is my escalations.cfg file: for now define serviceescalation{ host_name server1 service_description HTTP first_notification 3 last_notification 5 notification_interval 60 contact_groups system-manager } define serviceescalation{ host_name server1 service_description HTTP first_notification 6 last_notification 10 notification_interval 90 contact_groups system-manager } ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Hugo van der Kooij Sent: Thu 3/9/2006 9:48 AM To: Nagios Users Mailinglist Subject: RE: [Nagios-users] Nagios escalations not working On Thu, 9 Mar 2006, Pavel Santos wrote: > Hugo, > > I'm running Nagios 2.0 on Red Hat version 4 and the client machine is windows 2003 for now, but I could be another Linux or windows 2000 box. We do not care what your client machine is. But we do care about your definitions in nagios config files. You have not shown a bit of that config so there is still very little to go on. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Mar 14 18:31:54 2006 From: jhmartin at toger.us (Jason Martin) Date: Tue, 14 Mar 2006 09:31:54 -0800 Subject: The best way to test notifications In-Reply-To: <8C18BAD1F46B2245B0A08BCF1A823DD4109CDD@raptor.redhawk.info> References: <8C18BAD1F46B2245B0A08BCF1A823DD4109CDD@raptor.redhawk.info> Message-ID: <20060314173154.GJ25220@mal.toger.us> On Tue, Mar 14, 2006 at 09:28:28AM -0800, Mike Koponick wrote: > It seems crude to me to perform this function in order to get a "test" > notification. Anyone have any suggestions or ideas? Is this something > that could be in 3.0? You can echo the necessary external commands into the nagios.cmd file to cause Nagios to believe there is a failure. Look up 'passive check results'. -Jason Martin -- You can't go home again, unless you set $HOME. This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 213 bytes Desc: not available URL: From Jay.Brunker at twc.state.tx.us Tue Mar 14 18:19:54 2006 From: Jay.Brunker at twc.state.tx.us (Brunker, Jay) Date: Tue, 14 Mar 2006 11:19:54 -0600 Subject: Plugin Directory Message-ID: <11741698C5E1574E9E0357305D55B474022734@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> Greetings: YANNG ( Yet Another Nagios Newbie Question ). OK, so my 'make install-commandmode' failed and I manually created a '/usr/local/nagios/etc' filesystem. I copied from source/sample-config to '/usr/local/nagios/etc'. Downloaded and installed the plugins. The thing is ... the plugins install message says to verify that my nagios.cfg file ( hosts.cfg ) file is correct with regards to my plugin directory. OK, so ... I'm assuming that the 'nagios.cfg' file is referring to the 'Plugins' section with: cfg_file=/usr/local/nagios/etc/checkcommands.cfg line. I'm confused. I don't have a '/usr/local/nagios/etc/checkcommands.cfg file in my '/usr/local/nagios/etc' directory. I do have the file in my 'source/template-object' directory though. Aren't the plugins in '/usr/local/nagios/libexec' ? Some help/clarification would be most appreciated here. Thanks, JZB Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager -------------- next part -------------- An HTML attachment was scrubbed... URL: From td3201 at gmail.com Tue Mar 14 18:50:04 2006 From: td3201 at gmail.com (Terry) Date: Tue, 14 Mar 2006 11:50:04 -0600 Subject: The best way to test notifications In-Reply-To: <20060314173154.GJ25220@mal.toger.us> References: <8C18BAD1F46B2245B0A08BCF1A823DD4109CDD@raptor.redhawk.info> <20060314173154.GJ25220@mal.toger.us> Message-ID: <8ee061010603140950q4a09a00bwe19bfbd946611b4b@mail.gmail.com> I set up a test service in nagios. The service checks for the webmin port. Then just set up in cron to shutdown and startup webmin. Leave it shutdown long enough to trigger a notification in nagios. On 3/14/06, Jason Martin wrote: > On Tue, Mar 14, 2006 at 09:28:28AM -0800, Mike Koponick wrote: > > It seems crude to me to perform this function in order to get a "test" > > notification. Anyone have any suggestions or ideas? Is this something > > that could be in 3.0? > You can echo the necessary external commands into the nagios.cmd > file to cause Nagios to believe there is a failure. Look up > 'passive check results'. > > -Jason Martin > -- > You can't go home again, unless you set $HOME. > This message is PGP/MIME signed. > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From estair at ilm.com Tue Mar 14 19:53:02 2006 From: estair at ilm.com (Eli Stair) Date: Tue, 14 Mar 2006 10:53:02 -0800 Subject: multiple alerts for the same service In-Reply-To: <3ec361dd0603140103v2ec1a5c7vefd8166ad70e6c89@mail.gmail.com> References: <3ec361dd0603140103v2ec1a5c7vefd8166ad70e6c89@mail.gmail.com> Message-ID: <4417110E.7080900@ilm.com> The way check_log works is to compare the current log vs. the log at the time the last check was run so that behaviour is "normal"... I don't recall if I changed this or not, but I have the output set to summarize the number of instances matches, and alert based on that value, so the check becomes effectively "this many alerts over this timeperiod". IMO this plugin is really only useful for this method. Extending this in perl to foreach over the search pattern, and generate an alert directly (via the CGI/command file) instead of having the return value return state and Nagios generate the alert directly... is simple (if unorthodox). That's one way I can think of off hand that would let you fire the check at scheduled time intervals, and still have a single alert generated for _each_ entry in the log since the last check. At the same time, it'd be smaller/faster to just use a diff since the last check, vs the entire file (gets bloated/slow with a huge number of hosts, esp. if they go log-happy). /eli Julien Ford wrote: > Hello, > > I'm monitoring a log file with the check_log plugin. > > The plugin tries to find patterns in the log file and > if it finds, sends an alert to the nagios server. In > nagios this service is volatile,passive and has a > "max_check_attempts" to 1. > > My trouble is when there are two or more alerts for > the same service, only the last is show in the web > interface and only this one can by acknowledge. > > Is it possible to show in the web interface all alerts > and to acknowledge them independently ? If the last > alert is acknowledged is it possible that the service > become OK only if there isn't any previous > unacknowledged alert ? > > Thanks. > > Regards, > Julien > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian.masopust at siemens.com Tue Mar 14 19:59:04 2006 From: christian.masopust at siemens.com (Masopust, Christian) Date: Tue, 14 Mar 2006 19:59:04 +0100 Subject: AW: Fruity, nag2web, or NagiosWeb?? References: <8ee061010603140747j76850cf4ndf2df109d271273@mail.gmail.com> Message-ID: <60721B67EAF0994EAFFB561767B700140E3896@nets13ha.ww300.siemens.net> Hello Terry, i had the same question two or three month ago :-)) and then did some tests and finally decided to use fruity. it's now in RC1-state and it works very well here. Chris ________________________________ Von: nagios-users-admin at lists.sourceforge.net im Auftrag von Terry Gesendet: Di 14.03.2006 16:47 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Fruity, nag2web, or NagiosWeb?? Anyone have input on why they use any of the above? I am currently on 1.x but looking to migrate to 2.x soon. Thanks! ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joeregular at gov.nl.ca Tue Mar 14 20:24:37 2006 From: joeregular at gov.nl.ca (Joe Regular) Date: Tue, 14 Mar 2006 15:54:37 -0330 Subject: Any Reason to Update Message-ID: I'm currently running version 2.0b4. Is there any real performance benefits to upgrading to the stable 2.0? Joe ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agalue at sync.com.ve Tue Mar 14 20:33:56 2006 From: agalue at sync.com.ve (Alejandro Galue) Date: Tue, 14 Mar 2006 15:33:56 -0400 Subject: About Event Broker and Nagios Administration Message-ID: <44171AA4.70108@sync.com.ve> Hello, I was reading about Nagios Event Broker (NEB), and there seems to be modules like ndoutils or nagios-db that update a MySQL database with Nagios configuration and event logs data. If I understand this correctly, this means that the NEB module can send data from Nagios to other Applications (a Data Base in this case). Am I right ? I have another question : is it possible for other Applications to send data to Nagios using Event Broker ? : For example will it be possible to configure Nagios using MySQL Tables and then inform to NEB module to apply changes on nagios configuration ? ; or to change the state of a service ? Thanks in Advance, Alejandro. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaeem.chaudhry at fmr.com Tue Mar 14 21:11:39 2006 From: zaeem.chaudhry at fmr.com (Chaudhry, Zaeem) Date: Tue, 14 Mar 2006 15:11:39 -0500 Subject: host.cfg file - help Message-ID: <43C51169756115468E235A12F7A680A304151605@MSGBOSCLD2WIN.DMN1.FMR.COM> Hello, Can I use an IP address instead of a DNS name for hosts in my /usr/local/nagios/etc/servers/hosts.cfg file? Is this the only place where I can define my hosts to be monitored by Nagios? I can ping the host below but am unable to monitor it, even when I use a fully qualified DNS. Curently, my host file looks like this: define host { use host-template host_name 192.168.0.2 alias 192.168.0.2 address 192.168.0.2 } define service { use service-http host_name 192.168.0.2 } I have also tried: define host { use host-template host_name dns.fmr.com alias dns.fmr.com address dns.fmr.com } define service { use service-http host_name dns.fmr.com } Do you see any problems with the above? Thanks, Zaeme. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaeem.chaudhry at fmr.com Tue Mar 14 21:16:32 2006 From: zaeem.chaudhry at fmr.com (Chaudhry, Zaeem) Date: Tue, 14 Mar 2006 15:16:32 -0500 Subject: host.cfg file - help References: <43C51169756115468E235A12F7A680A304151605@MSGBOSCLD2WIN.DMN1.FMR.COM> Message-ID: <43C51169756115468E235A12F7A680A304151607@MSGBOSCLD2WIN.DMN1.FMR.COM> Hello, Can I use an IP address instead of a DNS name for hosts in my /usr/local/nagios/etc/servers/hosts.cfg file? Is this the only place where I can define hosts to be monitored by Nagios? I can ping the host below but cannot monitor it even when I use a fully qualified DNS name for this host. Curently, my host file looks like this: define host { use host-template host_name 192.168.0.2 alias 192.168.0.2 address 192.168.0.2 } define service { use service-http host_name 192.168.0.2 } I have also tried: define host { use host-template host_name dns.fmr.com alias dns.fmr.com address dns.fmr.com } define service { use service-http host_name dns.fmr.com } Do you see any config problems? Thanks, Zaeme. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rstewart at eandhis.com Tue Mar 14 21:30:00 2006 From: rstewart at eandhis.com (Robert Stewart) Date: Tue, 14 Mar 2006 15:30:00 -0500 Subject: nagios db help Message-ID: An HTML attachment was scrubbed... URL: From rtparies at gmail.com Tue Mar 14 21:55:53 2006 From: rtparies at gmail.com (Randy Paries) Date: Tue, 14 Mar 2006 14:55:53 -0600 Subject: Need help to determine what service to use Message-ID: Hello, I have a box that i need to make sure that certian processes are running So in my snmpd.conf i have the setting proc heartbeat so could someone tell me what service i use to monitor this Thanks Randy ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaeem.chaudhry at fmr.com Tue Mar 14 22:10:15 2006 From: zaeem.chaudhry at fmr.com (Chaudhry, Zaeem) Date: Tue, 14 Mar 2006 16:10:15 -0500 Subject: hosts.cfg file - Help Message-ID: <43C51169756115468E235A12F7A680A30492018B@MSGBOSCLD2WIN.DMN1.FMR.COM> Hello, Can I use an IP address instead of a DNS name for hosts in my /usr/local/nagios/etc/servers/hosts.cfg file? Is this the only place where I can define hosts to be monitored by Nagios? I can ping the host below but cannot monitor it even when I use a fully qualified DNS name for this host. Curently, my host file looks like this: define host { use host-template host_name 192.168.0.2 alias 192.168.0.2 address 192.168.0.2 } define service { use service-http host_name 192.168.0.2 } I have also tried: define host { use host-template host_name dns.fmr.com alias dns.fmr.com address dns.fmr.com } define service { use service-http host_name dns.fmr.com } Do you see any config problems? Thanks, Zaeem. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rstewart at eandhis.com Tue Mar 14 22:24:00 2006 From: rstewart at eandhis.com (Robert Stewart) Date: Tue, 14 Mar 2006 16:24:00 -0500 Subject: host status detail page help Message-ID: An HTML attachment was scrubbed... URL: From Ygao at soundbite.com Tue Mar 14 22:24:17 2006 From: Ygao at soundbite.com (Yunsong Gao) Date: Tue, 14 Mar 2006 16:24:17 -0500 Subject: Write a lot more in the Status Information Message-ID: <9303A9A4755F584187871678E54487B60380A8C7@sbmail.soundbite.com> How to set up the parameter to write a lot more into the "Status Information"? Thanks. Yunsong Gao -------------- next part -------------- An HTML attachment was scrubbed... URL: From zaeem.chaudhry at fmr.com Tue Mar 14 22:44:21 2006 From: zaeem.chaudhry at fmr.com (Chaudhry, Zaeem) Date: Tue, 14 Mar 2006 16:44:21 -0500 Subject: Hosts file - help Message-ID: <43C51169756115468E235A12F7A680A30492018D@MSGBOSCLD2WIN.DMN1.FMR.COM> Hello, Can I use an IP address instead of a DNS name for hosts in my /usr/local/nagios/etc/servers/hosts.cfg file? Is this the only place where I can define hosts to be monitored by Nagios? I can ping the host below but cannot monitor it even when I use a fully qualified DNS name for this host. Currently, my host file looks like this: define host { use host-template host_name 192.168.0.2 alias 192.168.0.2 address 192.168.0.2 } define service { use service-http host_name 192.168.0.2 } I have also tried: define host { use host-template host_name dns.fmr.com alias dns.fmr.com address dns.fmr.com } define service { use service-http host_name dns.fmr.com } Do you see any config problems? Thanks, Zaeem. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Tue Mar 14 23:34:47 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 14 Mar 2006 23:34:47 +0100 (CET) Subject: Write a lot more in the Status Information In-Reply-To: <9303A9A4755F584187871678E54487B60380A8C7@sbmail.soundbite.com> References: <9303A9A4755F584187871678E54487B60380A8C7@sbmail.soundbite.com> Message-ID: On Tue, 14 Mar 2006, Yunsong Gao wrote: > How to set up the parameter to write a lot more into the "Status > Information"? Thanks. Please define 'a lot more info' in your question. At present the question is not clear. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shoktai at gmail.com Tue Mar 14 23:42:52 2006 From: shoktai at gmail.com (Toto Capuccino) Date: Tue, 14 Mar 2006 23:42:52 +0100 Subject: Plugin Directory In-Reply-To: <11741698C5E1574E9E0357305D55B474022734@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> References: <11741698C5E1574E9E0357305D55B474022734@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> Message-ID: <619cf3c0603141442s41fad16fs@mail.gmail.com> The plugins are located in the libexec directory but they need to be defined to be used in nagios and it is done in the checkcommands.cfg file and also in the miscommands.cfg file. As you said those file are refernced in nagios.cfg. So you should copy the source template checkcommands.cfg and miscommands.cfgfile to nagios/etc/ 2006/3/14, Brunker, Jay : > > > Greetings: > > YANNG ( Yet Another Nagios Newbie Question ). > > OK, so my 'make install-commandmode' failed and I manually > created a '/usr/local/nagios/etc' filesystem. I copied from > source/sample-config to '/usr/local/nagios/etc'. > > Downloaded and installed the plugins. > > The thing is ... the plugins install message says to verify > that my nagios.cfg file ( hosts.cfg ) file is correct with regards > to my plugin directory. > > OK, so ... I'm assuming that the 'nagios.cfg' file is referring > to the 'Plugins' section with: > cfg_file=/usr/local/nagios/etc/checkcommands.cfg line. > > I'm confused. I don't have a '/usr/local/nagios/etc/checkcommands.cfg file > in my > '/usr/local/nagios/etc' directory. I do have the file in my > 'source/template-object' directory > though. > > Aren't the plugins in '/usr/local/nagios/libexec' ? > > Some help/clarification would be most appreciated here. > > > Thanks, > > JZB > > Jay Brunker > Unix Systems Administrator > Texas Workforce Commission > 101 E. 15th St. > 512-475-2625 Desk Phone > 512-849-4985 Pager > > -- Le bon sens est la chose du monde la mieux partag?e. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Mar 15 00:24:37 2006 From: marc at ena.com (Marc Powell) Date: Tue, 14 Mar 2006 17:24:37 -0600 Subject: host status detail page help Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Robert Stewart > Sent: Tuesday, March 14, 2006 3:24 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] host status detail page help > > I have noticed that that the last check of the host detail page is showing > the data of last month. How do I make it check everyday This is normal. Hosts are never checked unless a service on the host fails. If a service is up, the host _must_ be up. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Mar 15 00:30:38 2006 From: marc at ena.com (Marc Powell) Date: Tue, 14 Mar 2006 17:30:38 -0600 Subject: Write a lot more in the Status Information Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Yunsong Gao > Sent: Tuesday, March 14, 2006 3:24 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Write a lot more in the Status Information > > How to set up the parameter to write a lot more into the "Status > Information"? Thanks. Beyond Hugo van der Kooij's response, current versions of Nagios only accept a single line of output from plugins up to 348 characters. That line can be
formatted to emulate multiline output in the GUI though. Multi-line plugin output is planned for Nagios 3.0. http://www.nagios.org/development/upcoming.php -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From step-one-too at bdg.centrin.net.id Wed Mar 15 04:06:45 2006 From: step-one-too at bdg.centrin.net.id (stevanus) Date: Wed, 15 Mar 2006 10:06:45 +0700 Subject: nagios SIGSEGV In-Reply-To: <20060314131853.D15E54F40E3@desire.netways.de> References: <44164CF3.5090101@bdg.centrin.net.id> <20060314131853.D15E54F40E3@desire.netways.de> Message-ID: <441784C5.6020903@bdg.centrin.net.id> Hi, Just for your information, I've solved the problem. It turned out to be permission problem and caused me bad headache for the previous 2 days :P Regards, Stevanus Roland Sorgenfrei wrote: >Hi all, > > > >I have the same problem after executed ext. command. > >When I execude the init scipt, nagios started without problems. > > > >nagios.log > > > >[1141784121] EXTERNAL COMMAND: DEL_ALL_HOST_COMMENTS;XXXXXXX > >[1141784121] Caught SIGSEGV, shutting down... > >[1141890524] Nagios 2.0 starting... (PID=14428) > >[1141890524] LOG VERSION: 2.0 > > > >Nagios version : 2.0 > >Plugins version : 1.4 > >OS : RH 2.1 > > > >roland > >----------------------- > >This thread is located in the archive at this URL: > >http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi >1[showUid]=16270 > > > > > >>Hi, >> >> > > > > > > >>Why nagios shutted down itself when I executed command "service >> >> > nagios > > > >>start" on Redhat Enterprise 3? >> >> > > > >>When I executed the init script directly by using >> >> > > > >>/etc/rc.d/init.d/nagios start, I didn't get any problem... >> >> > > > > > > >>Regards, >> >> > > > > > > >>Stevanus >> >> > > > > > > > > > >>------------------------------------------------------- >> >> > > > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting >> >> > language > > > >>that extends applications into web and mobile media. Attend the >> >> > live webcast > > > >>and join the prime developer group breaking into this new coding >> >> > territory! > > > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat >> >> >=121642 > > > >>_______________________________________________ >> >> > > > >>Nagios-users mailing list >> >> > > > >>Nagios-users at lists.sourceforge.net >> >> > > > >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> > > > >>::: Please include Nagios version, plugin version (-v) and OS >> >> > when reporting > > > >>any issue. >> >> > > > >>::: Messages without supporting info will risk being sent to /dev/null >> >> > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rtparies at gmail.com Wed Mar 15 09:21:11 2006 From: rtparies at gmail.com (Randy Paries) Date: Wed, 15 Mar 2006 02:21:11 -0600 Subject: Help with making sure a process is running on a snmp box Message-ID: Hello, i am trying to set up nagios to verify the a process called heartbeat is running on a remote box. Here are some details: remote box: RH9 my /etc/snmp/snmpd.conf has the line: #---------------------------------------------------------------------------------- proc heartbeat On my nagios box i have the entry in my services.cfg ------------------------------------------------------------------------------------ define service{ use generic-service ; Name of service template to use host_name springfield service_description smnp proc check is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_snmp_proc!springfield } The error i get is check_snmp_proc: Could not fetch list of processes snmpwalk -v 1 -c public springfield .1.3.6.1.4.1.2021.2 UCD-SNMP-MIB::prIndex.1 = INTEGER: 1 UCD-SNMP-MIB::prNames.1 = STRING: heartbeat UCD-SNMP-MIB::prMin.1 = INTEGER: 0 UCD-SNMP-MIB::prMax.1 = INTEGER: 0 UCD-SNMP-MIB::prCount.1 = INTEGER: 4 UCD-SNMP-MIB::prErrorFlag.1 = INTEGER: 0 UCD-SNMP-MIB::prErrMessage.1 = STRING: UCD-SNMP-MIB::prErrFix.1 = INTEGER: 0 UCD-SNMP-MIB::prErrFixCmd.1 = STRING: can someone please give me some ideas of where to look next Thanks ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthias.eble at mailing.kaufland-informationssysteme.com Wed Mar 15 11:00:20 2006 From: matthias.eble at mailing.kaufland-informationssysteme.com (Matthias Eble) Date: Wed, 15 Mar 2006 11:00:20 +0100 Subject: 2.0 stable stops checking Message-ID: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> hi all! we are experiencing occassional problems with nagios 2.0 stable. The main process was reloaded due to configuration changes yesterday (Mar 14th). since then ps -ef looks like this: nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios -d /opt/nagios/etc/nagios.cfg nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] and nagios stopped to check. Has anyone an idea what could have happened ? The nagios.log and status.dat files have not been updated since then. thanks matthias ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdash at juniper.net Wed Mar 15 14:50:36 2006 From: mdash at juniper.net (Mrutyunjaya Dash) Date: Wed, 15 Mar 2006 19:20:36 +0530 Subject: check_if_by_snmp output Message-ID: <0DB0FFEA6887E349861A3F6B40D71C3AAD0AC2@gaugeboson.jnpr.net> Hi List, I just installed the snmp4nagios with all the required libraries. Now when I am trying to execute the following command, I am getting the output as below. But according to the document, the output should be something in different way. I believe there is something wrong. Can anyone give some idea on this? ./check_if_by_snmp -R /opt/rrdtool/ -T -L -H localhost -i 2 -I eth0 Timeout! Peer = localhost, OID = 1.3.6.1.2.1.2.2.1.7.2 Whereas the output should be in this way as below OK - eth0: I: 1410937 kO, 12672117 Pkt; O: 1339265 kO, 12722878 Pkt |'estimated speed'=100000000 'input octets'=1444800491c 'input packets'=12672117c 'input errors'=0c 'output octets'=1371407644c 'output packets'=12722878c 'output errors'=0c Regards, Mrutyunjaya Dash IT Engineer Juniper Networks Pvt Ltd. Bangalore -------------- next part -------------- An HTML attachment was scrubbed... URL: From liste at publisher.de Wed Mar 15 14:52:11 2006 From: liste at publisher.de (Ulrich Wisser) Date: Wed, 15 Mar 2006 14:52:11 +0100 Subject: check_apache.pl and apache2 In-Reply-To: <2b36e660603130531od57d97alb8ed13b141955579@mail.gmail.com> References: <2b36e660603130531od57d97alb8ed13b141955579@mail.gmail.com> Message-ID: <44181C0B.2060606@publisher.de> Hi, but this is performance check only, no load check. Ulrich -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_apache_perf.pl URL: From bohara at gmail.com Wed Mar 15 15:21:55 2006 From: bohara at gmail.com (Ben O'Hara) Date: Wed, 15 Mar 2006 14:21:55 +0000 Subject: check_apache.pl and apache2 In-Reply-To: <44181C0B.2060606@publisher.de> References: <2b36e660603130531od57d97alb8ed13b141955579@mail.gmail.com> <44181C0B.2060606@publisher.de> Message-ID: <2b36e660603150621r73c94067m3ddeabdea231d203@mail.gmail.com> Cheers Ulrich, That seems to work a treat for what im trying to check Ben On 3/15/06, Ulrich Wisser wrote: > > Hi, > > but this is performance check only, no load check. > > Ulrich > > > #!/usr/bin/perl > # > # (c) 2006 Ulrich Wisser, Relevant Traffic AB > # ulrich.wisser at relevanttraffic.com > # > # Derived work from: > # > # (c)2001 Sebastian Hetze, Linux Information Systems AG > # send bug reports to > # > # Some fixes by Rob. > # > # This program is free software; you can redistribute it and/or > # modify it under the terms of the GNU General Public License > # as published by the Free Software Foundation; version 2 > # of the License > # > # This program is distributed in the hope that it will be useful, > # but WITHOUT ANY WARRANTY; without even the implied warranty > # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > # GNU General Public License for more details. > # > # you should have received a copy of the GNU General Public License > # along with this program (or with Nagios); if not, write to the > # Free Software Foundation, Inc., 59 Temple Place - Suite 330, > # Boston, MA 02111-1307, USA > # > # > # Check apache status information provided by mod_status to find > # out about the load (number of servers working) and the > # performance (average response time for recent requests). > # > use strict; > use LWP::UserAgent; > use URI::URL; > use Getopt::Long; > Getopt::Long::Configure('bundling'); > use vars qw($VERSION); > > $VERSION=0.01; > > my %ERRORS = ('UNKNOWN' , '-1', > 'OK' , '0', > 'WARNING', '1', > 'CRITICAL', '2'); > # > # global default values > # > my $perf_w=500; > my $perf_c=1000; > my $load_w=80; > my $load_c=100; > my $timeout=15; > my $autostring="?auto"; > # > # get command line options the regular way > # > my ($opt_V, $opt_h, $opt_l, $opt_w, $opt_c, $opt_H, $opt_u, $verbose); > GetOptions( > "V" => \$opt_V, "version" => \$opt_V, > "h" => \$opt_h, "help" => \$opt_h, > "v" => \$verbose, "verbose" => \$verbose, > "w=s" => \$opt_w, "warning=s" => \$opt_w, > "c=s" => \$opt_c, "critical=s" => \$opt_c, > "H=s" => \$opt_H, "hostname=s" => \$opt_H, > "u=s" => \$opt_u, "url=s" => \$opt_u > ); > > # > # handle the verbose stuff first > # > if ($opt_V) { > print "\n"; > print "check_apache_perf nagios plugin version $VERSION\n"; > print "\n"; > print "The nagios plugins come with ABSOLUTELY NO WARRANTY. You may > redistribute\n"; > print "copies of the plugins under the terms of the GNU General Public > License.\n"; > print "For more information about these matters, see the file named > COPYING.\n"; > print "\n"; > exit $ERRORS{'UNKNOWN'}; > } > > if ($opt_h) { > print_help(); > exit $ERRORS{'UNKNOWN'}; > } > > # > # now get options the weired way and set the defaults > # if nothing else is provided > # > if (!$opt_H) {print_usage(); exit $ERRORS{'UNKNOWN'}; }; > if (!$opt_u) {print_usage(); exit $ERRORS{'UNKNOWN'}; }; > my $warn = $1 if ($opt_w =~ /([0-9]+)/); > my $alert = $1 if ($opt_c =~ /([0-9]+)/); > if (!$warn) {print_usage(); exit $ERRORS{'UNKNOWN'}; }; > if (!$alert) {print_usage(); exit $ERRORS{'UNKNOWN'}; }; > > > > # > # dont let us wait forever... > # > $SIG{'ALRM'} = sub { > print ("ERROR: No response from HTTP server (alarm)n"); > exit $ERRORS{"UNKNOWN"}; > }; > alarm($timeout); > # > # now we set things up for the real work > # and fire up the request > # > my $ua = new LWP::UserAgent; > my $url = url("http://" . $opt_H . $opt_u . $autostring); > my $req = new HTTP::Request 'GET', $url; > my $res = $ua->request($req); > # > # hopefully we?ve got something usefull > # > if ($res->is_success) { > my ($accesses, $kbytes, $load, $uptime, $rps, $bps, $bpr, $busy, > $idle, $performance, $score); > $performance = "| "; > foreach $_ (split /^/m, $res->content) { > next if /^s*$/; > # > # this is the load checking section > # we parse the whole content, just in case someone > # wants to use this some day in the future > # > if (/^Total Accesses:\s+([0-9.]+)/) { $accesses = > $1; $performance .= "totalaccess=$accesses "; next; } > if (/^Total kBytes:\s+([0-9.]+)/) { $kbytes = > $1; $performance .= "totalkB=".$kbytes." "; next; } > if (/^CPULoad:\s+([0-9.]+)\s+/) { $load = > $1; $performance .= "CPUload=".$load." "; next; } > if (/^CPULoad:\s+[0-9.]+e/) { $load = 'E'; > $performance .= "CPUload=E "; next; } > if (/^Uptime:\s+([0-9.]+)\s+/) { $uptime = > $1; $performance .= "Uptime=$uptime "; next; } > if (/^ReqPerSec:\s+([0-9.]+)\s+/) { $rps = > $1; $performance .= "ReqPerSec=".$rps." "; next; } > if (/^ReqPerSec:\s+[0-9.]+e/) { $rps = 'E'; > $performance .= "ReqPerSec=E "; next; } > if (/^BytesPerSec:\s+([0-9.]+)\s+/) { $bps = > $1; $performance .= "kBytesPerSec=".($bps/1024)." "; next; } > if (/^BytesPerSec:\s+[0-9.]+e/) { $bps = 'E'; > $performance .= "kBytesPerSec=E "; next; } > if (/^BytesPerReq:\s+([0-9.]+)\s+/) { $bpr = > $1; $performance .= "kBytesPerReq=".($bpr/1024)." "; next; } > if (/^ReqPerSec:\s+[0-9.]+e/) { $bpr = 'E'; > $performance .= "kBytesPerReq=E "; next; } > if (/^BusyServers:\s+([0-9.]+)\s+/) { $busy = > $1; $performance .= "BusyServers=".$busy." "; next; } > if (/^BusyWorkers:\s+([0-9.]+)\s+/) { $busy = > $1; $performance .= "BusyServers=".$busy." "; next; } > if (/^IdleServers:\s+([0-9.]+)\s+/) { $idle = > $1; $performance .= "IdleServers=".$idle." "; next; } > if (/^IdleWorkers:\s+([0-9.]+)\s+/) { $idle = > $1; $performance .= "IdleServers=".$idle." "; next; } > if (/^Scoreboard:\s+([CSRWKDLG_.]+)\s+/) { $score = > $1; next; } > print "Unknown Status: $_\n"; > } > # > # now we even parse the whole scoreboard, just for fun > # > my %scores; > $scores{'.'} = 0; # Unused > $scores{'_'} = 0; # Waiting > $scores{'S'} = 0; # Starting > $scores{'R'} = 0; # Reading > $scores{'W'} = 0; # Writing > $scores{'K'} = 0; # Keepalive > $scores{'D'} = 0; # DNS Lookup > $scores{'L'} = 0; # Logging > $scores{'G'} = 0; # Going > $scores{'C'} = 0; # Closing > foreach my $scorepoint (split //m, $score) { $scores{$scorepoint} += > 1; } > $performance .= "unused=$scores{'.'} wait=$scores{'_'} > start=$scores{'S'} read=$scores{'R'} write=$scores{'W'} > keepalive=$scores{'K'} dns=$scores{'D'} log=$scores{'L'} go=$scores{'G'} > close=$scores{'C'}"; > # > # compute return code > # > my $status = 'OK'; > $status = 'WARNING' if($busy > $warn); > $status = 'CRITICAL' if($busy > $alert); > print "HTTPD $status: servers running $busy, idle $idle > $performance\n"; > exit $ERRORS{$status}; > } else { > print "HTTP request failed\n"; > exit $ERRORS{"CRITICAL"}; > } > # > # ok, now we are almost through > # These last subroutines do the things for those that do not > # read source code. > # > sub print_usage () { > print "Usage: $0 [-hV] -H -u -w -c \n"; > } > > sub print_help () { > print "\n"; > print "\n"; > print "check_apache nagios plugin version $VERSION\n"; > print "\n"; > print "The nagios plugins come with ABSOLUTELY NO WARRANTY. You may > redistribute\n"; > print "copies of the plugins under the terms of the GNU General Public > License.\n"; > print "For more information about these matters, see the file named > COPYING.\n"; > print "\n"; > print "Copyright (c) 2001 Sebastian Hetze Linux Information Systems > AG\n"; > print "\n"; > print "\n"; > print "This plugin checks the apache HTTP service on the specified > host.\n"; > print "It uses the mod_status facilities provided by the apache > server.\n"; > print "The monitoring server must be authorized in httpd.conf.\n"; > print "\n"; > print "\n"; > print_usage(); > print "\n"; > print "Options:\n"; > print " -c, --critical=INTEGER\n"; > print " performance level at which a critical message will be > gererated.\n"; > print " -H, --hostname=ADDRESS\n"; > print " host name argument for server.\n"; > print " -h, --help\n"; > print " print detailed help screen.\n"; > print " -u, --url=PATH\n"; > print " location to call mod_status.\n"; > print " -V, --version\n"; > print " print version information.\n"; > print " -w, --warning=INTEGER\n"; > print " performance level at which a warning message will be > gererated.\n"; > print "\n"; > print "\n"; > } > # > # the end > # > > > -- "A Scientist will earn a living by taking a really difficult problem and spends many years solving it, an engineer earns a living by finding really difficult problems and side stepping them" -------------- next part -------------- An HTML attachment was scrubbed... URL: From boinger at tradingtechnologies.com Wed Mar 15 15:56:46 2006 From: boinger at tradingtechnologies.com (jeff vier) Date: Wed, 15 Mar 2006 08:56:46 -0600 Subject: check_ssh_login ? Message-ID: <1142434606.24001.40.camel@chi101100.int.tt.local> I need to check if I can log into a specific account on a system via SSH, but due to the nature of the system (tunneled to a serial console), I am unable to set up a key pair. check_ssh only verifies that the system is answering to SSH requests (which doesn't help me, the serial console host almost certainly responds). check_by_ssh is *close*, but provides no method of passing a password via the command line (which, yes, is a ghetto method of doing things, but you would still have to know the login to the system, and it *is different*), and it requires a remote command to execute. So, before I delve into hacking this functionality into check_by_ssh, does anyone have a solution with existing tools? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part URL: From justin.shore at sktbcs.com Wed Mar 15 17:35:56 2006 From: justin.shore at sktbcs.com (Justin Shore) Date: Wed, 15 Mar 2006 10:35:56 -0600 Subject: Escalation best practices Message-ID: I've just started rolling out escalations at one of my sites using Nagios. I'm not a big escalation buff though. I have a question that I couldn't answer via that docs. Is there any other way of matching up a serviceescalation definition with a service definition other than the service_description value? I use that field for a verbose description of my services (not just SMTP, HTTP, etc). For example I use check_snmp_int to check the state of a serial interface on a router. The service_description field includes the circuit provider's name, circuit ID, support telephone #, and a description of the circuit. All that text is what's used to match the serviceescalation definition to the service definition. I don't know what else we could match on but I'm hopeful that there's something else. Many thanks Justin -- Justin Shore, Network Engineer SKT Business Communication Solutions Office: (316) 265-9555 x3217 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JBilder at bacons.com Wed Mar 15 18:33:34 2006 From: JBilder at bacons.com (Jeffry Bilder) Date: Wed, 15 Mar 2006 11:33:34 -0600 Subject: Service Dependancies Message-ID: I am currently trying to find a way to supress emails about services being down if PING has a problem. Does anyone else have it setup in this manner? For example... A windows machine is not pingable, suppress all other notifications until Ping is accessible again. I am also having an issue with Plugins timing out, or being refused. Is there a setting in nagios to increase the # of checks it can run simultaneously? Thanks, JB ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From markkram at tin.it Wed Mar 15 18:44:43 2006 From: markkram at tin.it (Andrea) Date: Wed, 15 Mar 2006 18:44:43 +0100 Subject: escape bang character in command line Message-ID: <2fcf01c64858$25045280$450314ac@MITS> Hi all, how can i escape bang character in check_command_parameter directive in services.cfg ? The bang character is included in password account, thank Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Mar 15 19:02:03 2006 From: marc at ena.com (Marc Powell) Date: Wed, 15 Mar 2006 12:02:03 -0600 Subject: Service Dependancies Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jeffry Bilder > Sent: Wednesday, March 15, 2006 11:34 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Service Dependancies > > I am currently trying to find a way to supress emails about services > being down if PING has a problem. Does anyone else have it setup in > this manner? For example... > > A windows machine is not pingable, suppress all other notifications > until Ping is accessible again. This is standard behavior if you have a host check_command that returns non-OK when the host is unavailable. http://nagios.sourceforge.net/docs/1_0/networkreachability.html > I am also having an issue with Plugins timing out, or being refused. Is > there a setting in nagios to increase the # of checks it can run > simultaneously? http://nagios.sourceforge.net/docs/1_0/configmain.html#max_concurrent_ch ecks You'll probably be interested in the *_timeout settings there as well. These control the maximum amount of time allowed for each type of action. Bear in mind that each plugin typically has its own timeout value as well. You can see what those are and how to change them by running 'plugin_name --help' and modifying the command definitions that call that plugin appropriately. Finally, you can run '/path/to/nagios -s /path/to/nagios.cfg' to get information about scheduling and recommendations for some settings. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JBilder at bacons.com Wed Mar 15 19:16:13 2006 From: JBilder at bacons.com (Jeffry Bilder) Date: Wed, 15 Mar 2006 12:16:13 -0600 Subject: Service Dependancies Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jeffry Bilder > Sent: Wednesday, March 15, 2006 11:34 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Service Dependancies > > I am currently trying to find a way to supress emails about services > being down if PING has a problem. Does anyone else have it setup in > this manner? For example... > > A windows machine is not pingable, suppress all other notifications > until Ping is accessible again. This is standard behavior if you have a host check_command that returns non-OK when the host is unavailable. http://nagios.sourceforge.net/docs/1_0/networkreachability.html I have read the documentation, and I am using 2.0. I really wish this were the case by default cause I am getting notified that all the services are down when the host cannot be pinging. Please check an example of a host in my hosts.cfg section: define host { host_name S2NA1ROCK alias S2NA1ROCK address 192.168.1.10 parents ROCK-Firewall hostgroups Servers max_check_attempts 10 active_checks_enabled 1 passive_checks_enabled 1 check_period 24x7 obsess_over_host 1 check_freshness 0 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups admins,Server-Administrator notification_interval 0 notification_period 24x7 notification_options d,r notifications_enabled 1 register 1 } Do I have something misconfigured that is still allowing all subsequest services to alert? Thanks so much for all the help! ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Mar 15 19:30:07 2006 From: marc at ena.com (Marc Powell) Date: Wed, 15 Mar 2006 12:30:07 -0600 Subject: Service Dependancies Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jeffry Bilder > Sent: Wednesday, March 15, 2006 12:16 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Service Dependancies > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Jeffry Bilder > > Sent: Wednesday, March 15, 2006 11:34 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Service Dependancies > > > > I am currently trying to find a way to supress emails about services > > being down if PING has a problem. Does anyone else have it setup in > > this manner? For example... > > > > A windows machine is not pingable, suppress all other notifications > > until Ping is accessible again. > > This is standard behavior if you have a host check_command that returns > non-OK when the host is unavailable. > > http://nagios.sourceforge.net/docs/1_0/networkreachability.html > > I have read the documentation, and I am using 2.0. I really wish this > were the case by default cause I am getting notified that all the > services are down when the host cannot be pinging. Please check an > example of a host in my hosts.cfg section: > > define host { > host_name S2NA1ROCK > alias S2NA1ROCK > address 192.168.1.10 > parents ROCK-Firewall > hostgroups Servers > max_check_attempts 10 > active_checks_enabled 1 > passive_checks_enabled 1 > check_period 24x7 > obsess_over_host 1 > check_freshness 0 > event_handler_enabled 1 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > contact_groups admins,Server-Administrator > notification_interval 0 > notification_period 24x7 > notification_options d,r > notifications_enabled 1 > register 1 > } > > Do I have something misconfigured that is still allowing all subsequest > services to alert? Yes, you're missing a check_command for this host. That is required for the behavior you want and with your config above the host itself is never checked. If you're using the sample config files as a base, there is a command definition named check-host-alive that you can use. check_command check-host-alive I would also set max_check_attempts to 1 or 2. You don't need more than that to determine if the host is down and you want host checks to finish as quickly as possible. _All_ other activity stops while hosts are being checked. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rouilj at cs.umb.edu Wed Mar 15 21:44:58 2006 From: rouilj at cs.umb.edu (John P. Rouillard) Date: Wed, 15 Mar 2006 15:44:58 -0500 Subject: check_ssh_login ? In-Reply-To: Your message of "Wed, 15 Mar 2006 08:56:46 CST." <1142434606.24001.40.camel@chi101100.int.tt.local> References: <1142434606.24001.40.camel@chi101100.int.tt.local> Message-ID: <200603152045.k2FKjXQo006200@mx1.cs.umb.edu> In message <1142434606.24001.40.camel at chi101100.int.tt.local>, jeff vier writes: >I need to check if I can log into a specific account on a system via >SSH, but due to the nature of the system (tunneled to a serial console), >I am unable to set up a key pair. Replace your serial consoles with something like a Cyclades that allows use of public keys. >check_by_ssh is *close*, but provides no method of passing a password >via the command line (which, yes, is a ghetto method of doing things, >but you would still have to know the login to the system, and it *is >different*), and it requires a remote command to execute. > >So, before I delve into hacking this functionality into check_by_ssh, I don't think check_by_ssh is going to work since the ssh->serial connection will probably not permit execution of a script and the return of the exit code without a lot of work. Also it has no real interactive support and it should like you need that. >does anyone have a solution with existing tools? An expect wrapper around ssh should do the trick and it can negotiate the login prompt on the serial port as well. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s4nag at no-where.at Wed Mar 15 22:42:43 2006 From: s4nag at no-where.at (Peter Gritsch) Date: Wed, 15 Mar 2006 22:42:43 +0100 Subject: check_if_by_snmp output In-Reply-To: <0DB0FFEA6887E349861A3F6B40D71C3AAD0AC2@gaugeboson.jnpr.net> References: <0DB0FFEA6887E349861A3F6B40D71C3AAD0AC2@gaugeboson.jnpr.net> Message-ID: <200603152242.43758.s4nag@no-where.at> On Wednesday 15 March 2006 14:50, Mrutyunjaya Dash wrote: Hi all, > Hi List, > > I just installed the snmp4nagios with all the required libraries. > Now when I am trying to execute the following command, I am getting > the output as below. But according to the document, the output > should be something in different way. I believe there is something > wrong. Can anyone give some idea on this? > > ./check_if_by_snmp -R /opt/rrdtool/ -T -L -H localhost -i 2 -I eth0 > Timeout! Peer = localhost, OID = 1.3.6.1.2.1.2.2.1.7.2 This indicates a problem with SNMP. Did you set up a default community file? Try snmpwalk -v 2c -c `cat $HOME/.snmp4nagios/community` \ localhost .1.3.6.1.2.1.1 This should return some information about localhost. Otherwise there is likely a problem with either the SNMP agent at localhost or the way communities are configured in SNMP4Nagios. Run the plugin with (additionally) -v -v -v and check the log (usually /var/log/messages) for the debugging messages about the community the plugin uses. > Whereas the output should be in this way as below > > OK - eth0: I: 1410937 kO, 12672117 Pkt; O: 1339265 kO, 12722878 Pkt > > |'estimated speed'=100000000 > > 'input octets'=1444800491c 'input packets'=12672117c 'input > errors'=0c 'output octets'=1371407644c 'output packets'=12722878c > 'output errors'=0c This is the non-default "Nagios Plugins" style. It is enabled at runtime using the command line switch "-N". Therefor your command should be something like ./check_if_by_snmp -R /opt/rrdtool/ -T -L -H localhost -i 2 -I eth0 -N Hope that helps, Peter -- Peter Gritsch mail: s4nag at no-where.at web: http://snmp4nagios.sourceforge.net/ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boinger at tradingtechnologies.com Wed Mar 15 22:44:23 2006 From: boinger at tradingtechnologies.com (jeff vier) Date: Wed, 15 Mar 2006 15:44:23 -0600 Subject: check_ssh_login ? In-Reply-To: <200603152045.k2FKjXQo006200@mx1.cs.umb.edu> References: <200603152045.k2FKjXQo006200@mx1.cs.umb.edu> Message-ID: <1142459063.8119.8.camel@chi100400> On Wed, 2006-03-15 at 15:44 -0500, John P. Rouillard wrote: > In message <1142434606.24001.40.camel at chi101100.int.tt.local>, > jeff vier writes: > >I need to check if I can log into a specific account on a system via > >SSH, but due to the nature of the system (tunneled to a serial console), > >I am unable to set up a key pair. > > Replace your serial consoles with something like a Cyclades that > allows use of public keys. it's an off-site hosted box for a side-project of mine. This isn't enterprise-level stuff (and I can't influence changes directly). > I don't think check_by_ssh is going to work since the ssh->serial > connection will probably not permit execution of a script and the > return of the exit code without a lot of work. Also it has no real > interactive support and it should like you need that. that's a good point. I was envisioning it functioning like, as you said below, an expect wrapper or something similar. In the mean time, I'm forcing myself to be satisfied with just checking that I can connect to the SSH server at all. > >does anyone have a solution with existing tools? > An expect wrapper around ssh should do the trick and it can negotiate > the login prompt on the serial port as well. I don't want to actually log in, I just want to see that I'm prompted for the username with the correct hostname. So, yeah, I think we're on the same page. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part URL: From dschlecht at doit.nv.gov Wed Mar 15 23:51:42 2006 From: dschlecht at doit.nv.gov (David Schlecht) Date: Wed, 15 Mar 2006 23:51:42 +0100 (CET) Subject: Acknowledge issues via e-mail In-Reply-To: <76CF93775035B64589C218D2B034B71EFFF36E@post1.aeso.ca> References: <76CF93775035B64589C218D2B034B71EFFF36E@post1.aeso.ca> Message-ID: <20060315225142.188844F40E3@desire.netways.de> Hi Dany So, Dany, how did your endeavors go? Did you get it working? We're looking for the same solution. Are you willing to share your experience with the list? - David Schlecht (dschl) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=14824 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dany.allard at aeso.ca Thu Mar 16 00:00:40 2006 From: dany.allard at aeso.ca (Dany Allard) Date: Wed, 15 Mar 2006 16:00:40 -0700 Subject: Acknowledge issues via e-mail Message-ID: <8BDF7AA2F8FED84588A2446B0F4FFD87A4B9@post2.aeso.ca> David We are still working on getting it implemented (change control/paperwork). The script that was sent to the list by Terry works well enough on the command line. We are now working on the e-mail parsing piece. Unfortunately due to other priorities this has fallen behind a bit. Once I have the completed solution I will post back to the list. Thanks Dany Allard -----Original Message----- From: David Schlecht [mailto:dschlecht at doit.nv.gov] Sent: Wednesday, March 15, 2006 3:52 PM To: nagios-users at lists.sourceforge.net; td3201 at gmail.com; andrew at profitability.net; Dany Allard; chad.osmond at holburn.com Subject: Re: [Nagios-users] Acknowledge issues via e-mail Hi Dany So, Dany, how did your endeavors go? Did you get it working? We're looking for the same solution. Are you willing to share your= experience with the list? - David Schlecht (dschl) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_p i= 1[showUid]=14824 This message is intended only for the addressee and may contain personal, privileged or confidential information. If you have received this message in error, please notify the sender immediately and delete or destroy this message without making copies or opening any attachments. Any further distribution, duplication or disclosure is prohibited. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dick at uchicago.edu Thu Mar 16 01:19:42 2006 From: dick at uchicago.edu (dick at uchicago.edu) Date: Wed, 15 Mar 2006 18:19:42 -0600 Subject: switch host definition: no IP Message-ID: i want some advice on if and how i should add an IP-less switch into my host definitions. the templates i've found for switches always have an IP associated with them, like so: define host{ use generic-host host_name switch1 alias Switch #1 address 192.168.1.230 check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,u,r contact_groups switch-admins } but my switches do not have an IP associated with them, being setup thusly: (firewall)---(switch1)----(mailserver) 10.9.0.1 | 10.9.0.3 | (wifi AP) 10.9.0.2 in this case, would i want to make a host named switch1 and have it be the parent of the mailserver and wifi AP machines, or should i omit the switch1 host and have firewall be the parent of the two machines behind switch1? i would like to be able to detect if the switch has burned out, not just that the hosts are both down. perhaps my switch is too crappy? thx for reading. cheers, jake ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From MJoyce at ccia.unsw.edu.au Thu Mar 16 02:12:45 2006 From: MJoyce at ccia.unsw.edu.au (Matthew Joyce) Date: Thu, 16 Mar 2006 12:12:45 +1100 Subject: Service dependencies Message-ID: <2A67EA781EC7F949A2AB0A0D07A86C6ABE6F51@mail01.ccia.local> Hi all, I check a lot of window services from linux via snmp. One service is SNMP, if this fails or stops, others will fail. An I going to get a heap of notification for each service ? I've looked at the service dependency section in the docs, and it looks like I need to define a dependency for each service, for each host. That's a lot of defining. Is there any tools available to help manage configurations ? thanks Matthew Joyce 02 9382 0051 | IT Manager | Children's Cancer Institute Australia for Medical Research -------------- next part -------------- An HTML attachment was scrubbed... URL: From td3201 at gmail.com Thu Mar 16 02:49:02 2006 From: td3201 at gmail.com (Terry) Date: Wed, 15 Mar 2006 19:49:02 -0600 Subject: Acknowledge issues via e-mail In-Reply-To: <8BDF7AA2F8FED84588A2446B0F4FFD87A4B9@post2.aeso.ca> References: <8BDF7AA2F8FED84588A2446B0F4FFD87A4B9@post2.aeso.ca> Message-ID: <8ee061010603151749g7d087fb7rbfa606047822430e@mail.gmail.com> Here is my working updated script. - Set up a pop3 account with the same email address as the FROM address of your nagios alerts - When you receive an alert, simply reply to the alert and prepend your password and command to the subject. Like this: foobar ack PROBLEM: server01/Test Service Webmin is CRITICAL You can get fancy and have people specify their name too as the author of the comment if you are in a large environment. Might even do FROM header matching and pass that on as the author if you really feel the need. Also, here is the updated procmail recipe: BODY=`formail -I ""` :0w: | /usr/share/nagios/contrib/processmailcommands.sh "$BODY" Script: #!/usr/bin/perl $commandfile = "/var/log/nagios/rw/nagios.cmd"; $now = `date +%s`; $body = "$ARGV[0]"; chomp $body; $body =~ s/\n//g; $comment = "Remote Acknowledgement"; $author = "remote"; ($password, $action, $crap, $crap, $crap, $crap) = split(/ /,"$body"); ($foo) = $body=~/PROBLEM: (.*\/.*) is/; ($host, $service) = split(/\//,"$foo"); if( $password =~ /(?i)foobar/ ){ if( $action =~ /(?i)ack/ ){ open(F,">>$commandfile") or die ("Cant open"); $output = `/usr/bin/printf "[%lu] ACKNOWLEDGE_SVC_PROBLEM;$host;$service;1;$comment\n" $now`; print F $output; $output = `/usr/bin/printf "[%lu] ADD_SVC_COMMENT;$host;$service;1;$author;$comment\n" $now`; print F $output; close F; } elsif ( $action =~ /(?i)nosvcchk/ ){ open(F,">>$commandfile") or die ("Cant open"); $output = `/usr/bin/printf "[%lu] DISABLE_SVC_CHECK;$host;$service\n" $now`; print F $output; close F; } elsif ( $action =~ /(?i)nosvcnotify/ ){ open(F,">>$commandfile") or die ("Cant open"); $output = `/usr/bin/printf "[%lu] DISABLE_SVC_NOTIFICATIONS;$host;$service\n" $now`; print F $output; close F; } elsif ( $action =~ /(?i)nohostchk/ ){ open(F,">>$commandfile") or die ("Cant open"); $output = `/usr/bin/printf "[%lu] DISABLE_HOST_SVC_CHECKS;$host\n" $now`; print F $output; close F; } } else { exit 1; } On 3/15/06, Dany Allard wrote: > David > > We are still working on getting it implemented (change > control/paperwork). > The script that was sent to the list by Terry works well enough on the > command line. We are now working on the e-mail parsing piece. > Unfortunately due to other priorities this has fallen behind a bit. > Once I have the completed solution I will post back to the list. > > Thanks > > Dany Allard > > -----Original Message----- > From: David Schlecht [mailto:dschlecht at doit.nv.gov] > Sent: Wednesday, March 15, 2006 3:52 PM > To: nagios-users at lists.sourceforge.net; td3201 at gmail.com; > andrew at profitability.net; Dany Allard; chad.osmond at holburn.com > Subject: Re: [Nagios-users] Acknowledge issues via e-mail > > Hi Dany > > > > So, Dany, how did your endeavors go? Did you get it working? > > > > We're looking for the same solution. Are you willing to share your= > experience with the list? > > > > > > - David Schlecht (dschl) > > > > ----------------------- > > This thread is located in the archive at this URL: > > http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_p > i= > 1[showUid]=14824 > > > This message is intended only for the addressee and may contain personal, privileged or confidential information. > If you have received this message in error, please notify the sender immediately and delete or destroy this > message without making copies or opening any attachments. Any further distribution, duplication or disclosure > is prohibited. > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jorge at ccc.uba.ar Thu Mar 16 04:14:52 2006 From: jorge at ccc.uba.ar (Jorge Polinotto) Date: Thu, 16 Mar 2006 00:14:52 -0300 (ART) Subject: statusmap.cgi Message-ID: <1201.200.127.203.72.1142478892.squirrel@webmail.ccc.uba.ar> Hi all! Could anybody compile Nagios with gd library and so on in FreeBSD, either using the tar.gz file or ports as well? I've tried many differents ways but i couldn't get the statusmap.cgi... Thanks to all... Jorge.- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Thu Mar 16 04:34:00 2006 From: jperrin at gmail.com (Jim Perrin) Date: Wed, 15 Mar 2006 22:34:00 -0500 Subject: statusmap.cgi In-Reply-To: <1201.200.127.203.72.1142478892.squirrel@webmail.ccc.uba.ar> References: <1201.200.127.203.72.1142478892.squirrel@webmail.ccc.uba.ar> Message-ID: <302ce8b50603151934u7cf153c9w732c615162596fce@mail.gmail.com> On 3/15/06, Jorge Polinotto wrote: > Hi all! > Could anybody compile Nagios with gd library and so on in FreeBSD, either > using the tar.gz file or ports as well? > I've tried many differents ways but i couldn't get the statusmap.cgi... > Thanks to all... > Jorge.- Which version of nagios? How are you trying to build, and how is it failing? -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Mar 16 07:36:36 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 16 Mar 2006 07:36:36 +0100 (CET) Subject: switch host definition: no IP In-Reply-To: References: Message-ID: On Wed, 15 Mar 2006 dick at uchicago.edu wrote: > (firewall)---(switch1)----(mailserver) > 10.9.0.1 | 10.9.0.3 > | > (wifi AP) > 10.9.0.2 > > in this case, would i want to make a host named switch1 and have it be the > parent of the mailserver and wifi AP machines, or should i omit the switch1 host > and have firewall be the parent of the two machines behind switch1? > > i would like to be able to detect if the switch has burned out, not just that > the hosts are both down. perhaps my switch is too crappy? You can not check an unmanaged switch. It is that simple. ("You can't change the laws of physics captain") The closest you can get is to verify if the interface from the firewall is up and let the firewall be the parent of servers. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hvdkooij at vanderkooij.org Thu Mar 16 07:38:46 2006 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 16 Mar 2006 07:38:46 +0100 (CET) Subject: Service dependencies In-Reply-To: <2A67EA781EC7F949A2AB0A0D07A86C6ABE6F51@mail01.ccia.local> References: <2A67EA781EC7F949A2AB0A0D07A86C6ABE6F51@mail01.ccia.local> Message-ID: On Thu, 16 Mar 2006, Matthew Joyce wrote: > I check a lot of window services from linux via snmp. > One service is SNMP, if this fails or stops, others will fail. > > An I going to get a heap of notification for each service ? > > I've looked at the service dependency section in the docs, and it looks > like I need to define a dependency for each service, for each host. > That's a lot of defining. Not at all. Read the archives for samples of how to use the wildcards in your dependencies definitions. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mdash at juniper.net Thu Mar 16 08:35:04 2006 From: mdash at juniper.net (Mrutyunjaya Dash) Date: Thu, 16 Mar 2006 13:05:04 +0530 Subject: check_if_by_snmp output Message-ID: <0DB0FFEA6887E349861A3F6B40D71C3AAD0B80@gaugeboson.jnpr.net> Hi Gritsch, I tried executing the command but it seems the command is not there in the system. I have installed net-snmp on the system. Can you please let me know whether snmpwalk comes along with net-snmp package or I need to install some other package separately to get the snmpwalk? Regards, Dash ________________________________ From: Gritsch Peter [mailto:peter.gritsch at fh-joanneum.at] Sent: Wednesday, March 15, 2006 7:49 PM To: Mrutyunjaya Dash Subject: AW: [Nagios-users] check_if_by_snmp output Hi Dash! Looks like a problem with SNMP generally. Did you set up a default community file? Try snmpwalk -v 2c -c `cat $HOME/.snmp4nagios/community` \ localhost .1.3.6.1.2.1.1 Unless this returns some information about localhost, there is likely a problem with either the snmp agent @ localhost or the way communities are configured in SNMP4Nagios. Run with -v -v -v and check the log (/var/log/messages usually) for the community the plugin uses. Concerning the "Nagios Plugins" Style output you describe below: Use the command line switch "-N" to get this (i.e. use something like ./check_if_by_snmp -R /opt/rrdtool/ \ -T -L -H localhost -i 2 -I eth0 -N Hope that helps, Peter ________________________________ Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Mrutyunjaya Dash Gesendet: Mittwoch, 15. M?rz 2006 14:51 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] check_if_by_snmp output Hi List, I just installed the snmp4nagios with all the required libraries. Now when I am trying to execute the following command, I am getting the output as below. But according to the document, the output should be something in different way. I believe there is something wrong. Can anyone give some idea on this? ./check_if_by_snmp -R /opt/rrdtool/ -T -L -H localhost -i 2 -I eth0 Timeout! Peer = localhost, OID = 1.3.6.1.2.1.2.2.1.7.2 Whereas the output should be in this way as below OK - eth0: I: 1410937 kO, 12672117 Pkt; O: 1339265 kO, 12722878 Pkt |'estimated speed'=100000000 'input octets'=1444800491c 'input packets'=12672117c 'input errors'=0c 'output octets'=1371407644c 'output packets'=12722878c 'output errors'=0c Regards, Mrutyunjaya Dash IT Engineer Juniper Networks Pvt Ltd. Bangalore -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.borsani at it.net Thu Mar 16 10:30:13 2006 From: m.borsani at it.net (Marco Borsani) Date: Thu, 16 Mar 2006 10:30:13 +0100 Subject: Strange situation.. Message-ID: <009801c648dc$3a872c20$0900d40a@intranet.it.net> Hi all! I prepare a very simple check (called check_fax) that read a text file. If check_fax find an "OK" it will return a status 0, if check_fax find a "CRITICAL" it will return a status 2. Well, when I run manually check_fax (like nagios user or root user) it work correctly (returns 0), but when Nagios run check_fax, it returns a status 2. I try to modify check_fax permissions like: -rwxr-xr-x 1 root sys 654 Mar 16 09:42 check_fax -rwxr-xr-x 1 nagios nagios 654 Mar 16 09:42 check_fax But nothing has been changed. Here it is the check_fax: ---------------------------------------------------------------------- #!/bin/csh # set dir2 = /tmp set STATUS = `cat $dir2/Invio_Rice.log | grep -c OK` if ( "$STATUS" == "1" ) then echo "FAX OK - Invio e ricezione di prova avvenuto" > $dir2/Rice.log echo "FAX OK - Invio e ricezione di prova avvenuto" else echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" > $dir2/Rice.log echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" exit 2 endif exit 0 ------------------------------------------------------------------------ Any idea? Regards Marco Borsani Unix & Monitoring System Administrator Technical Operation Tel. +39 010 4310115 Fax +39 010 4327454 E-mail: m.borsani at IT.net ITnet S.r.l. - Direzione e Coordinamento di WIND Telecomunicazioni S.p.A. Internet Service Provider Sede legale: Via C.G.Viola, 48 - 00148 Roma Dir. Centrale e Amministrativa: Via Pacinotti, 39 16151 Genova (Italy) http://www.it.net mailto:info at IT.net _______________________________________________________________ Altre sedi ITnet: MILANO tel.: +39 02 30114900 info-milano at IT.net ROMA tel.: +39 06 83116707 info-roma at IT.net _______________________________________________________________ ITnet is associated to CIX (Commercial IP eXchange) and RIPE ITnet is associated to AIIP (Associazione Italiana Internet Providers) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Zimmer at oppenheim.de Thu Mar 16 10:45:19 2006 From: Thomas.Zimmer at oppenheim.de (Thomas.Zimmer at oppenheim.de) Date: Thu, 16 Mar 2006 10:45:19 +0100 Subject: AW: Strange situation.. Message-ID: <9A834A8DCEC68648B20701E1CDE109250295EDA3@OKWPMXS01.de.sal-opp.net> What is the logfile-output? Why do you only check 1 occurence of 'OK'? Wouldn?t it be better to the opposite (if possible): ---------------------------------------------------------------------- #!/bin/csh # set dir2 = /tmp set STATUS = `cat $dir2/Invio_Rice.log | grep -c CRITICAL` [or "Error", "Exception" o.s.] if ( "$STATUS" != "0" ) then echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" > $dir2/Rice.log echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" exit 2 else echo "FAX OK - Invio e ricezione di prova avvenuto" > $dir2/Rice.log echo "FAX OK - Invio e ricezione di prova avvenuto" exit 0 endif ------------------------------------------------------------------------ Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de -----Urspr?ngliche Nachricht----- Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Marco Borsani Gesendet: Donnerstag, 16. M?rz 2006 10:30 An: 'NAGIOS' Betreff: [Nagios-users] Strange situation.. Wichtigkeit: Hoch Hi all! I prepare a very simple check (called check_fax) that read a text file. If check_fax find an "OK" it will return a status 0, if check_fax find a "CRITICAL" it will return a status 2. Well, when I run manually check_fax (like nagios user or root user) it work correctly (returns 0), but when Nagios run check_fax, it returns a status 2. I try to modify check_fax permissions like: -rwxr-xr-x 1 root sys 654 Mar 16 09:42 check_fax -rwxr-xr-x 1 nagios nagios 654 Mar 16 09:42 check_fax But nothing has been changed. Here it is the check_fax: ---------------------------------------------------------------------- #!/bin/csh # set dir2 = /tmp set STATUS = `cat $dir2/Invio_Rice.log | grep -c OK` if ( "$STATUS" == "1" ) then echo "FAX OK - Invio e ricezione di prova avvenuto" > $dir2/Rice.log echo "FAX OK - Invio e ricezione di prova avvenuto" else echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" > $dir2/Rice.log echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" exit 2 endif exit 0 ------------------------------------------------------------------------ Any idea? Regards Marco Borsani Unix & Monitoring System Administrator Technical Operation Tel. +39 010 4310115 Fax +39 010 4327454 E-mail: m.borsani at IT.net ITnet S.r.l. - Direzione e Coordinamento di WIND Telecomunicazioni S.p.A. Internet Service Provider Sede legale: Via C.G.Viola, 48 - 00148 Roma Dir. Centrale e Amministrativa: Via Pacinotti, 39 16151 Genova (Italy) http://www.it.net mailto:info at IT.net _______________________________________________________________ Altre sedi ITnet: MILANO tel.: +39 02 30114900 info-milano at IT.net ROMA tel.: +39 06 83116707 info-roma at IT.net _______________________________________________________________ ITnet is associated to CIX (Commercial IP eXchange) and RIPE ITnet is associated to AIIP (Associazione Italiana Internet Providers) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: Zimmer, Thomas (Produktservices und Betrieb).vcf Type: application/octet-stream Size: 254 bytes Desc: not available URL: From m.borsani at it.net Thu Mar 16 10:50:25 2006 From: m.borsani at it.net (Marco Borsani) Date: Thu, 16 Mar 2006 10:50:25 +0100 Subject: R: Strange situation.. In-Reply-To: <9A834A8DCEC68648B20701E1CDE109250295EDA3@OKWPMXS01.de.sal-opp.net> References: <9A834A8DCEC68648B20701E1CDE109250295EDA3@OKWPMXS01.de.sal-opp.net> Message-ID: <00b201c648df$0d22f720$0900d40a@intranet.it.net> The logfile have only one line, that could be: FAX OK or FAX CRITICAL This is the meaning because I only check 1 occurence. -}-----Messaggio originale----- -}Da: nagios-users-admin at lists.sourceforge.net -}[mailto:nagios-users-admin at lists.sourceforge.net] Per conto -}di Thomas.Zimmer at oppenheim.de -}Inviato: gioved? 16 marzo 2006 10.45 -}A: nagios-users at lists.sourceforge.net -}Oggetto: AW: [Nagios-users] Strange situation.. -} -}What is the logfile-output? -} -}Why do you only check 1 occurence of 'OK'? Wouldn?t it be -}better to the opposite (if possible): -}---------------------------------------------------------------------- -}#!/bin/csh -}# -}set dir2 = /tmp -} -}set STATUS = `cat $dir2/Invio_Rice.log | grep -c CRITICAL` -}[or "Error", "Exception" o.s.] -} -}if ( "$STATUS" != "0" ) then -} echo "FAX CRITICAL - Invio e ricezione di prova NON -}avvenuto" > $dir2/Rice.log -} echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" -} exit 2 -}else -} echo "FAX OK - Invio e ricezione di prova avvenuto" > -}$dir2/Rice.log -} echo "FAX OK - Invio e ricezione di prova avvenuto" -} exit 0 -}endif -}-------------------------------------------------------------- -}---------- -} -} -} -}Thomas Zimmer -}Produktservice & Betrieb -}Betrieb & Support -}Sal. Oppenheim jr. & Cie., Frankfurt a. Main -}Telefon: +49 69 7134 5192 -}Internet: http://www.oppenheim.de -}E-Mail: thomas.zimmer at oppenheim.de -} -} -} -}-----Urspr?ngliche Nachricht----- -}Von: nagios-users-admin at lists.sourceforge.net -}[mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag -}von Marco Borsani -}Gesendet: Donnerstag, 16. M?rz 2006 10:30 -}An: 'NAGIOS' -}Betreff: [Nagios-users] Strange situation.. -}Wichtigkeit: Hoch -} -} -}Hi all! -} -}I prepare a very simple check (called check_fax) that read a -}text file. -} -}If check_fax find an "OK" it will return a status 0, if -}check_fax find a "CRITICAL" it will return a status 2. -} -}Well, when I run manually check_fax (like nagios user or root -}user) it work correctly (returns 0), but when Nagios run -}check_fax, it returns a status 2. -} -}I try to modify check_fax permissions like: -}-rwxr-xr-x 1 root sys 654 Mar 16 09:42 check_fax -}-rwxr-xr-x 1 nagios nagios 654 Mar 16 09:42 check_fax -}But nothing has been changed. -} -}Here it is the check_fax: -}---------------------------------------------------------------------- -}#!/bin/csh -}# -}set dir2 = /tmp -} -}set STATUS = `cat $dir2/Invio_Rice.log | grep -c OK` -} -}if ( "$STATUS" == "1" ) then -} echo "FAX OK - Invio e ricezione di prova avvenuto" > -}$dir2/Rice.log -} echo "FAX OK - Invio e ricezione di prova avvenuto" else -} echo "FAX CRITICAL - Invio e ricezione di prova NON -}avvenuto" > $dir2/Rice.log -} echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" -} exit 2 -}endif -} -}exit 0 -}-------------------------------------------------------------- -}---------- -} -}Any idea? -}Regards -} -}Marco Borsani -}Unix & Monitoring System Administrator -}Technical Operation -}Tel. +39 010 4310115 -}Fax +39 010 4327454 -}E-mail: m.borsani at IT.net -} -}ITnet S.r.l. - Direzione e Coordinamento di WIND -}Telecomunicazioni S.p.A. -}Internet Service Provider -}Sede legale: Via C.G.Viola, 48 - 00148 Roma -}Dir. Centrale e Amministrativa: Via Pacinotti, 39 -} 16151 Genova (Italy) -} -}http://www.it.net -}mailto:info at IT.net -}_______________________________________________________________ -}Altre sedi ITnet: -}MILANO tel.: +39 02 30114900 info-milano at IT.net -}ROMA tel.: +39 06 83116707 info-roma at IT.net -}_______________________________________________________________ -}ITnet is associated to CIX (Commercial IP eXchange) and RIPE -}ITnet is associated to AIIP (Associazione Italiana Internet Providers) -} -} -} -} -}------------------------------------------------------- -}This SF.Net email is sponsored by xPML, a groundbreaking -}scripting language -}that extends applications into web and mobile media. Attend -}the live webcast -}and join the prime developer group breaking into this new -}coding territory! -}http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720& -}dat=121642 -}_______________________________________________ -}Nagios-users mailing list -}Nagios-users at lists.sourceforge.net -}https://lists.sourceforge.net/lists/listinfo/nagios-users -}::: Please include Nagios version, plugin version (-v) and OS -}when reporting -}any issue. -}::: Messages without supporting info will risk being sent to /dev/null -} -} ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Thomas.Zimmer at oppenheim.de Thu Mar 16 10:51:05 2006 From: Thomas.Zimmer at oppenheim.de (Thomas.Zimmer at oppenheim.de) Date: Thu, 16 Mar 2006 10:51:05 +0100 Subject: AW: Strange situation.. Message-ID: <9A834A8DCEC68648B20701E1CDE109250295EDA4@OKWPMXS01.de.sal-opp.net> Again.:) What are the logfile-permissions? Thomas Zimmer Produktservice & Betrieb Betrieb & Support Sal. Oppenheim jr. & Cie., Frankfurt a. Main Telefon: +49 69 7134 5192 Internet: http://www.oppenheim.de E-Mail: thomas.zimmer at oppenheim.de -----Urspr?ngliche Nachricht----- Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von Marco Borsani Gesendet: Donnerstag, 16. M?rz 2006 10:30 An: 'NAGIOS' Betreff: [Nagios-users] Strange situation.. Wichtigkeit: Hoch Hi all! I prepare a very simple check (called check_fax) that read a text file. If check_fax find an "OK" it will return a status 0, if check_fax find a "CRITICAL" it will return a status 2. Well, when I run manually check_fax (like nagios user or root user) it work correctly (returns 0), but when Nagios run check_fax, it returns a status 2. I try to modify check_fax permissions like: -rwxr-xr-x 1 root sys 654 Mar 16 09:42 check_fax -rwxr-xr-x 1 nagios nagios 654 Mar 16 09:42 check_fax But nothing has been changed. Here it is the check_fax: ---------------------------------------------------------------------- #!/bin/csh # set dir2 = /tmp set STATUS = `cat $dir2/Invio_Rice.log | grep -c OK` if ( "$STATUS" == "1" ) then echo "FAX OK - Invio e ricezione di prova avvenuto" > $dir2/Rice.log echo "FAX OK - Invio e ricezione di prova avvenuto" else echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" > $dir2/Rice.log echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" exit 2 endif exit 0 ------------------------------------------------------------------------ Any idea? Regards Marco Borsani Unix & Monitoring System Administrator Technical Operation Tel. +39 010 4310115 Fax +39 010 4327454 E-mail: m.borsani at IT.net ITnet S.r.l. - Direzione e Coordinamento di WIND Telecomunicazioni S.p.A. Internet Service Provider Sede legale: Via C.G.Viola, 48 - 00148 Roma Dir. Centrale e Amministrativa: Via Pacinotti, 39 16151 Genova (Italy) http://www.it.net mailto:info at IT.net _______________________________________________________________ Altre sedi ITnet: MILANO tel.: +39 02 30114900 info-milano at IT.net ROMA tel.: +39 06 83116707 info-roma at IT.net _______________________________________________________________ ITnet is associated to CIX (Commercial IP eXchange) and RIPE ITnet is associated to AIIP (Associazione Italiana Internet Providers) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: Zimmer, Thomas (Produktservices und Betrieb).vcf Type: application/octet-stream Size: 254 bytes Desc: not available URL: From christian.masopust at siemens.com Thu Mar 16 10:57:31 2006 From: christian.masopust at siemens.com (Masopust, Christian) Date: Thu, 16 Mar 2006 10:57:31 +0100 Subject: Strange situation.. In-Reply-To: <009801c648dc$3a872c20$0900d40a@intranet.it.net> References: <009801c648dc$3a872c20$0900d40a@intranet.it.net> Message-ID: <60721B67EAF0994EAFFB561767B700140ACC95@nets13ha.ww300.siemens.net> Does your nagios user have read permissions to your Invio_Rice.log? > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Marco Borsani > Sent: Thursday, March 16, 2006 10:30 AM > To: 'NAGIOS' > Subject: [Nagios-users] Strange situation.. > Importance: High > > Hi all! > > I prepare a very simple check (called check_fax) that read a > text file. > > If check_fax find an "OK" it will return a status 0, if > check_fax find a > "CRITICAL" it will return a status 2. > > Well, when I run manually check_fax (like nagios user or root > user) it work > correctly (returns 0), but when Nagios run check_fax, it > returns a status 2. > > I try to modify check_fax permissions like: > -rwxr-xr-x 1 root sys 654 Mar 16 09:42 check_fax > -rwxr-xr-x 1 nagios nagios 654 Mar 16 09:42 check_fax > But nothing has been changed. > > Here it is the check_fax: > ---------------------------------------------------------------------- > #!/bin/csh > # > set dir2 = /tmp > > set STATUS = `cat $dir2/Invio_Rice.log | grep -c OK` > > if ( "$STATUS" == "1" ) then > echo "FAX OK - Invio e ricezione di prova avvenuto" > > $dir2/Rice.log > echo "FAX OK - Invio e ricezione di prova avvenuto" > else > echo "FAX CRITICAL - Invio e ricezione di prova NON > avvenuto" > > $dir2/Rice.log > echo "FAX CRITICAL - Invio e ricezione di prova NON avvenuto" > exit 2 > endif > > exit 0 > -------------------------------------------------------------- > ---------- > > Any idea? > Regards > > Marco Borsani > Unix & Monitoring System Administrator > Technical Operation > Tel. +39 010 4310115 > Fax +39 010 4327454 > E-mail: m.borsani at IT.net > > ITnet S.r.l. - Direzione e Coordinamento di WIND > Telecomunicazioni S.p.A. > Internet Service Provider > Sede legale: Via C.G.Viola, 48 - 00148 Roma > Dir. Centrale e Amministrativa: Via Pacinotti, 39 > 16151 Genova (Italy) > > http://www.it.net > mailto:info at IT.net > _______________________________________________________________ > Altre sedi ITnet: > MILANO tel.: +39 02 30114900 info-milano at IT.net > ROMA tel.: +39 06 83116707 info-roma at IT.net > _______________________________________________________________ > ITnet is associated to CIX (Commercial IP eXchange) and RIPE > ITnet is associated to AIIP (Associazione Italiana Internet Providers) > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language > that extends applications into web and mobile media. Attend > the live webcast > and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720& > dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael.belik at centrum.cz Thu Mar 16 12:28:38 2006 From: michael.belik at centrum.cz (Michael Belik) Date: Thu, 16 Mar 2006 12:28:38 +0100 (CET) Subject: notify-by-snmp=?ISO-8859-1?Q?_?= Message-ID: <20060316112838.ADE264F40E3@desire.netways.de> Hi all, Please help,do you know anybody how do send notify about host and service state to other NMS by snmptrap? I found some about that on this forum, but it is not complete. Thank you very much for help Michael Belik http://www.nagiosexchange.org/nagios-users.34.0.html ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerhard.Lausser at consol.de Thu Mar 16 13:44:20 2006 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Thu, 16 Mar 2006 13:44:20 +0100 Subject: Multiple Nagios instances on one server Message-ID: <01b801c648f7$5b3379e0$a601000a@int.consol.de> Hi all, i made a small HOWTO for those who want to run more than one Nagios servers on a single host. You can find it here: http://people.consol.de/~lausser/nagios/more-than-one-nagios.html Greetings from Munich, Gerhard ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From satish_lsurf at yahoo.com Thu Mar 16 13:45:26 2006 From: satish_lsurf at yahoo.com (satish kumar) Date: Thu, 16 Mar 2006 04:45:26 -0800 (PST) Subject: NRPE: Unable to read output Message-ID: <20060316124526.10768.qmail@web53507.mail.yahoo.com> Hi, I am getting this message when i try to run a perl script on a nagios server requesting via check_nrpe for remote server running with nrpe.The script is on the remote server.Please help me it is immediate. Thanks, Satish --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandeep-n-murthy at telecom.pt Thu Mar 16 14:10:04 2006 From: sandeep-n-murthy at telecom.pt (Sandeep Narasimha Murthy) Date: Thu, 16 Mar 2006 13:10:04 -0000 Subject: Weblogic Message-ID: Hi, I am searching for a script/ plugin for Nagios which monitors BEA Weblogic server and returns information like JVM heap size, number of threads in utilization etc.. Does anyone know of any such scripts/ plugins ?? Thanks in adv, sg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorge at ccc.uba.ar Thu Mar 16 14:14:10 2006 From: jorge at ccc.uba.ar (Jorge Polinotto) Date: Thu, 16 Mar 2006 10:14:10 -0300 (ART) Subject: statusmap.cgi In-Reply-To: <302ce8b50603151934u7cf153c9w732c615162596fce@mail.gmail.com> References: <1201.200.127.203.72.1142478892.squirrel@webmail.ccc.uba.ar> <302ce8b50603151934u7cf153c9w732c615162596fce@mail.gmail.com> Message-ID: <1235.200.127.203.72.1142514850.squirrel@webmail.ccc.uba.ar> Hi Jim... hi all! i'm trying to install version 2.0. When i'm configuring it I get: checking for gdImagePng in -lgd (order 1)... no checking for gdImagePng in -lgd (order 2)... no checking for gdImagePng in -lgd (order 3)... no checking for gdImagePng in -lgd (order 4)... no *** GD, PNG, and/or JPEG libraries could not be located... ********* I got the same error with the tar.gz file or using ports. On my FreeBSD6 i have the following ports installed: jpeg-6b_3 png-1.2.8_3 gd-2.0.33_4,1 The error also says: NOTE: In addition to the gd-devel library, you'll also need to make sure you have the png-devel and jpeg-devel libraries installed on your system. Where I can get this libraries? Thanks for reading me and for your patience... Jorge.- > On 3/15/06, Jorge Polinotto wrote: >> Hi all! >> Could anybody compile Nagios with gd library and so on in FreeBSD, either >> using the tar.gz file or ports as well? >> I've tried many differents ways but i couldn't get the statusmap.cgi... >> Thanks to all... >> Jorge.- > > Which version of nagios? How are you trying to build, and how is it > failing? > > -- > "They that can give up essential liberty to obtain a little temporary > safety deserve neither liberty nor safety'' > Benjamin Franklin 1775 > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martin at andorinha.ist.utl.pt Thu Mar 16 14:51:34 2006 From: martin at andorinha.ist.utl.pt (Jorge Daniel Sequeira Matias) Date: Thu, 16 Mar 2006 13:51:34 +0000 Subject: Bug with escalations in Nagios? Message-ID: <200603161351.34096.martin@andorinha.ist.utl.pt> Hello everyone, I have a problem with host and service escalations in Nagios 2.0. I have upgraded to Nagios 2.0 when I tried to use escalations and thought there was a bug in Nagios 1.2. I'm going to describe the problem: I'd like to escalate the notifications to send only once an SMS about an HOST or SERVICE DOWN, but still have the e-mails being sent periodically. To get things even more complicated I would like that, in some cases, the SMS to sent only in the nightly hours. For start I have built a config using only 24x7 time periods. This way I prepared the following config: (See the results after this sample config) -- start of sample config -- # 'sms-host' host group definition define hostgroup { hostgroup_name sms-host alias SMS Hosts members testhost } define host { host_name testhost alias testhost address 1.2.3.4 check_command check-host-alive active_checks_enabled 1 checks_enabled 1 max_check_attempts 3 check_interval 5 notification_interval 5 contact_groups testhost-email-contacts,testhost-sms-contacts } # Send the first notification to the SMS-Contacts (only when DOWN) define hostescalation { host_name testhost contact_groups testhost-sms-contacts first_notification 1 last_notification 1 notification_interval 5 escalation_period 24x7 escalation_options d } # Send notifications to e-mail contacts periodically since the beginning # of the problem until RECOVERY. define hostescalation { host_name testhost contact_groups testhost-email-contacts first_notification 1 last_notification 0 notification_interval 5 escalation_period 24x7 escalation_options d,u,r } # For the service let's try a different approach # The first notification will use service default "contact_groups" define service { host_name testhost service_description SSH check_command check_ssh max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 5 notification_period 24x7 notification_options c,r contact_groups testhost-email-contacts,testhost-sms-contacts } # The rest of notifications send only to email contacts define serviceescalation { host_name testhost service_description SSH first_notification 2 last_notification 0 notification_interval 5 contact_groups testhost-email-contacts } -- end of sample config -- The Results: For the host config, Nagios doesn't send any notification at all no matter the host status is (DOWN, UNREACHABLE or RECOVERY)! For the service config it sends the first notification to both e-mail and sms contacts and rest of notifications only to e-mail contacts. The service config approach almost does what I need, but doesn't let change the timeperiod of the first notification for the sms contacts without affecting the e-mail contacts too. Of course the notification intervals are short for test purposes only. The problem: Why Nagios doesn't send any notification at all with sample host config? What am I doing wrong? Is there a global variable config that I have missed in documentation that could change escalations behaviour? I have read several times this explanation about escalation and I can't reproduce the same behaviour the document states: http://nagios.sourceforge.net/docs/2_0/escalations.html Thanks in advance for the help! Best Regards, Jorge Matias ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gwcook at arcadis-us.com Thu Mar 16 15:07:50 2006 From: gwcook at arcadis-us.com (Cook, Garry) Date: Thu, 16 Mar 2006 07:07:50 -0700 Subject: switch host definition: no IP Message-ID: <38D6D515FC15924693F2640881AF4620382D8D@corpexbe2.arcadis-us.com> Or define the switch as a device in your configs and give it the IP Address of the firewall interface. Then it could act as the parent to the other two devices. Thanks, Garry -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Hugo van der Kooij Sent: Wednesday, March 15, 2006 11:37 PM To: dick at uchicago.edu Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] switch host definition: no IP On Wed, 15 Mar 2006 dick at uchicago.edu wrote: > (firewall)---(switch1)----(mailserver) > 10.9.0.1 | 10.9.0.3 > | > (wifi AP) > 10.9.0.2 > > in this case, would i want to make a host named switch1 and have it be > the parent of the mailserver and wifi AP machines, or should i omit > the switch1 host and have firewall be the parent of the two machines behind switch1? > > i would like to be able to detect if the switch has burned out, not > just that the hosts are both down. perhaps my switch is too crappy? You can not check an unmanaged switch. It is that simple. ("You can't change the laws of physics captain") The closest you can get is to verify if the interface from the firewall is up and let the firewall be the parent of servers. Hugo. -- I hate duplicates. Just reply to the relevant mailinglist. hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of magicians, for they are subtle and quick to anger. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boinger at tradingtechnologies.com Thu Mar 16 15:09:31 2006 From: boinger at tradingtechnologies.com (jeff vier) Date: Thu, 16 Mar 2006 08:09:31 -0600 Subject: NRPE: Unable to read output In-Reply-To: <20060316124526.10768.qmail@web53507.mail.yahoo.com> References: <20060316124526.10768.qmail@web53507.mail.yahoo.com> Message-ID: <1142518171.8119.24.camel@chi100400> On Thu, 2006-03-16 at 04:45 -0800, satish kumar wrote: > Hi, > > I am getting this message when i try to run a perl script on a nagios > server requesting via check_nrpe for remote server running with > nrpe.The script is on the remote server.Please help me it is > immediate. is it any particular script? The first thing I would do is add " 2>&1" to the end of your command definition in nrpe.cfg. This will echo back stderr, which will tell you what's wrong (with Perl, almost certainly a missing library). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part URL: From heiko.jaberg at innovative-navigation.de Thu Mar 16 15:54:13 2006 From: heiko.jaberg at innovative-navigation.de (Heiko Jaberg) Date: Thu, 16 Mar 2006 15:54:13 +0100 Subject: Problems with check_by_ssh Message-ID: <44197C15.8080005@innovative-navigation.de> Hi, I encounter some problems using check_by_ssh. Im trying to grep some version information from a header file on a remote host. Both of the following command lines generate the desired information when called directly from the shell. But only the second line works when scheduled by Nagios. The second one produces the error "No output". Whats wrong here ? 1.) command_line $USER1$/check_by_ssh -i /export/home/nagios/.ssh/id_rsa -l user -H $HOSTADDRESS$ -C 'if [ -e /usr/local/ACE/VERSION ]; then echo `head -1 /usr/local/ACE/VERSION`; else echo No ACE found; fi' 2.) command_line $USER1$/check_by_ssh -i /export/home/nagios/.ssh/id_rsa -l user -H $HOSTADDRESS$ -C 'head -1 /usr/local/ACE/VERSION' Regards Heiko -- Heiko Jaberg email: Heiko.Jaberg at innovative-navigation.de IN - Innovative Navigation GmbH web: http://www.innovative-navigation.de Leibnizstrasse 11 tel.: +49 7154 807159 D-70806 Kornwestheim fax: +49 7154 807154 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jperrin at gmail.com Thu Mar 16 16:24:17 2006 From: jperrin at gmail.com (Jim Perrin) Date: Thu, 16 Mar 2006 10:24:17 -0500 Subject: POLL: nagios integration with other tools Message-ID: <302ce8b50603160724t4bacc3f1x1bf11c3d1ce9eabf@mail.gmail.com> I've been using nagios heavily for about a year now and have been quite pleased with it. It monitors nearly every aspect of the servers I'm responsible for, but in the interest of never sitting still, I've been looking to see what tools have been integrated with nagios. A post on the rt (bestpractical) mailing list has a patch for 1.x to open rt tickets etc, and I wanted to see what others are doing with customizations. Has anyone combined nagios with an asset management system, bugzilla, etc. How do others on the list work with nagios, and how does it fit into your environment? -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety'' Benjamin Franklin 1775 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boinger at tradingtechnologies.com Thu Mar 16 16:50:46 2006 From: boinger at tradingtechnologies.com (jeff vier) Date: Thu, 16 Mar 2006 09:50:46 -0600 Subject: POLL: nagios integration with other tools In-Reply-To: <302ce8b50603160724t4bacc3f1x1bf11c3d1ce9eabf@mail.gmail.com> References: <302ce8b50603160724t4bacc3f1x1bf11c3d1ce9eabf@mail.gmail.com> Message-ID: <1142524246.8119.33.camel@chi100400> On Thu, 2006-03-16 at 10:24 -0500, Jim Perrin wrote: > I've been using nagios heavily for about a year now and have been > quite pleased with it. It monitors nearly every aspect of the servers > I'm responsible for, but in the interest of never sitting still, I've > been looking to see what tools have been integrated with nagios. A > post on the rt (bestpractical) mailing list has a patch for 1.x to > open rt tickets etc, and I wanted to see what others are doing with > customizations. Has anyone combined nagios with an asset management > system, bugzilla, etc. How do others on the list work with nagios, and > how does it fit into your environment? Let's see. Wrote a new (for me, better) MRTG RRD checker. Notifies on any interface over-threshold (some of our switches have hundreds and hundreds of interfaces - individual watching wouldn't be practical). Integrated support for Trading Technologies' SuperGuardian Agent (This probably doesn't mean much unless you're a derivative market trading firm). minor link-in to an internal asset management system (lets you pull up serial numbers, contract numbers, purchase information, etc, etc). probably some other stuff I've forgotten. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part URL: From djohnson at jsatech.com Thu Mar 16 17:00:43 2006 From: djohnson at jsatech.com (David Johnson) Date: Thu, 16 Mar 2006 10:00:43 -0600 Subject: POLL: nagios integration with other tools In-Reply-To: <1142524246.8119.33.camel@chi100400> References: <1142524246.8119.33.camel@chi100400> Message-ID: <02fd01c64912$d9e80ba0$1e02a8c0@crm.local> We've done little integration, except automatically building the configuration scripts based upon hosts in a database. It is likely we will integrate with Zope soon. I would suggest Zope might be a great environment long run for maintenance. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of jeff vier > Sent: Thursday, March 16, 2006 9:51 AM > To: Jim Perrin > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] POLL: nagios integration with other tools > > On Thu, 2006-03-16 at 10:24 -0500, Jim Perrin wrote: > > I've been using nagios heavily for about a year now and have been > > quite pleased with it. It monitors nearly every aspect of the servers > > I'm responsible for, but in the interest of never sitting still, I've > > been looking to see what tools have been integrated with nagios. A > > post on the rt (bestpractical) mailing list has a patch for 1.x to > > open rt tickets etc, and I wanted to see what others are doing with > > customizations. Has anyone combined nagios with an asset management > > system, bugzilla, etc. How do others on the list work with nagios, and > > how does it fit into your environment? > > Let's see. > > Wrote a new (for me, better) MRTG RRD checker. Notifies on any > interface over-threshold (some of our switches have hundreds and > hundreds of interfaces - individual watching wouldn't be practical). > > Integrated support for Trading Technologies' SuperGuardian Agent (This > probably doesn't mean much unless you're a derivative market trading > firm). > > minor link-in to an internal asset management system (lets you pull up > serial numbers, contract numbers, purchase information, etc, etc). > > probably some other stuff I've forgotten. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 16 17:13:29 2006 From: marc at ena.com (Marc Powell) Date: Thu, 16 Mar 2006 10:13:29 -0600 Subject: Problems with check_by_ssh Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Heiko Jaberg > Sent: Thursday, March 16, 2006 8:54 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problems with check_by_ssh > > Hi, > > I encounter some problems using check_by_ssh. > Im trying to grep some version information from a header file on a > remote host. > > Both of the following command lines generate the desired information > when called > directly from the shell. But only the second line works when scheduled > by Nagios. > The second one produces the error "No output". > > Whats wrong here ? > > > 1.) > command_line $USER1$/check_by_ssh -i /export/home/nagios/.ssh/id_rsa > -l user -H $HOSTADDRESS$ -C 'if [ -e /usr/local/ACE/VERSION ]; then > echo `head -1 /usr/local/ACE/VERSION`; else echo No ACE found; fi' > > 2.) > command_line $USER1$/check_by_ssh -i > /export/home/nagios/.ssh/id_rsa -l user -H $HOSTADDRESS$ -C 'head -1 > /usr/local/ACE/VERSION' While not specifically addressing your question, you're using the check_by_ssh plugin in an unintended manner. It's designed to execute Nagios plugins on remote hosts and simply acts as a proxy for the plugin return code and output. As such, the command you are running must comply with the plugin output standards in order to work correctly with check_by_ssh and Nagios -- http://nagiosplug.sourceforge.net/developer-guidelines.html#PLUGOUTPUT You'll need to pay special attention to exiting with the correct exit code and only 1 line of output (you've got the latter covered). That might change your approach some and negate the need to troubleshoot further. I suspect that you might be encountering a permissions problem related to /usr/local/ACE/VERSION or an environment issue where 'head' isn't in the default path. Try specifying the full path to head. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pavel.santos at cyberlockconsulting.com Thu Mar 16 17:37:09 2006 From: pavel.santos at cyberlockconsulting.com (Pavel Santos) Date: Thu, 16 Mar 2006 11:37:09 -0500 Subject: Notification escalation not working Message-ID: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C190B@EPI-EXB2.epidirect.epi> Hello list, Running Nagios 2.0 on a Red Hat Ent. V4 I am going insane trying to get this escalation to work. The requirement is to escalate service notification after 60 minutes to the system manager contact group and 90 minutes to the Project Manager contact group. I tested the configuration below but it does not seem to work, it will notify all contact groups on the first notification as supposed to escalate the notification to the appropriate group after 60 and 90 minutes as described in my escalation.cfg file. define serviceescalation{ host_name server1 service_description HTTP first_notification 3 last_notification 4 notification_interval 60 contact_groups system-manager } define serviceescalation{ host_name server1 service_description HTTP first_notification 6 last_notification 10 notification_interval 90 contact_groups system-manager,project-manager } Any assistance is appreciated, I looked at the previous posting and the documentation but was unable to find the solution to my problem. Thanks, Pavel ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wgking at shaw.ca Thu Mar 16 17:49:27 2006 From: wgking at shaw.ca (Greg King) Date: Thu, 16 Mar 2006 09:49:27 -0700 Subject: check_ssh_login ? Message-ID: <24d841a24d1cd3.24d1cd324d841a@shaw.ca> I would use the existing remote plugin execution facilities of NRPE with a custom plugin to verify the id. Pseudo code for a "check_valid_uid" would be: valid_id=1 UID=$ARG1 grep $UID /etc/passwd if return_code=0 then valid_id=0 print "User $UID is valid" else print "User $UID is not valid" fi return valid_id There are probably more thorough ways of validing that the id will work than just verifying existence in the /etc/passwd file, but you get the idea. Regards, Greg >Message: 6 >From: jeff vier >To: nagios-users >Date: Wed, 15 Mar 2006 08:56:46 -0600 >Subject: [Nagios-users] check_ssh_login ? >--=-V2oL6qqSss3ngPlX8Yvy >Content-Type: text/plain >Content-Transfer-Encoding: quoted-printable > >I need to check if I can log into a specific account on a system via SSH, but due to >the nature of the system (tunneled to a serial console), I am unable to set up a key >pair. > >check_ssh only verifies that the system is answering to SSH requests (which doesn't >help me, the serial console host almost certainly responds). > >check_by_ssh is *close*, but provides no method of passing a password via the command >line (which, yes, is a ghetto method of doing things, but you would still have to >know the login to the system, and it *is different*), and it requires a remote >command to execute. >So, before I delve into hacking this functionality into check_by_ssh, does anyone >have a solution with existing tools? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jay.Brunker at twc.state.tx.us Thu Mar 16 18:00:49 2006 From: Jay.Brunker at twc.state.tx.us (Brunker, Jay) Date: Thu, 16 Mar 2006 11:00:49 -0600 Subject: dependencies.cfg Message-ID: <11741698C5E1574E9E0357305D55B47402273D@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> Greetings: I'm having some troubles getting nagios to start correctly. On my first attempt to start I received an error due to 'check_host_alive' being defined in a couple of spots ... bigger.cfg and minimal.cfg ... read a post where it was recommended to comment out minimal.cfg in nagios.cfg ... OK ... so far so good. Now, when I attempt to start nagios I get an error due to dependencies.cfg not being readable. The file is owned by nagios.nagios ( 664 ) , but a test of nagios.cfg still gives me a 'cannot read' dependencies.cfg error. Permissions on the directory '/usr/local/nagios/etc': 775 What up with dependencies.cfg ? Any help will be greatly appreciated. Thanks, JZB. Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin at andorinha.ist.utl.pt Thu Mar 16 18:11:30 2006 From: martin at andorinha.ist.utl.pt (Jorge Daniel Sequeira Matias) Date: Thu, 16 Mar 2006 17:11:30 +0000 Subject: Notification escalation not working In-Reply-To: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C190B@EPI-EXB2.epidirect.epi> References: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C190B@EPI-EXB2.epidirect.epi> Message-ID: <200603161711.30576.martin@andorinha.ist.utl.pt> It seems that I' not the only one with problems in using escalations. What notifications are you receiving? Only the first and second? I'm assuming that your service default contact_groups are receiving the first and second notifications because these are not escalated. Jorge Matias On Thursday 16 March 2006 16:37, Pavel Santos wrote: > Hello list, > > Running Nagios 2.0 on a Red Hat Ent. V4 I am going insane trying to get > this escalation to work. The requirement is to escalate service > notification after 60 minutes to the system manager contact group and 90 > minutes to the Project Manager contact group. I tested the configuration > below but it does not seem to work, it will notify all contact groups on > the first notification as supposed to escalate the notification to the > appropriate group after 60 and 90 minutes as described in my escalation.cfg > file. > > > define serviceescalation{ > host_name server1 > service_description HTTP > first_notification 3 > last_notification 4 > notification_interval 60 > contact_groups system-manager > } > define serviceescalation{ > host_name server1 > service_description HTTP > first_notification 6 > last_notification 10 > notification_interval 90 > contact_groups system-manager,project-manager > } > > > Any assistance is appreciated, I looked at the previous posting and the > documentation but was unable to find the solution to my problem. > > Thanks, > > Pavel > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Deborah.Martin at Kognitio.com Thu Mar 16 18:23:08 2006 From: Deborah.Martin at Kognitio.com (Deborah Martin) Date: Thu, 16 Mar 2006 17:23:08 -0000 Subject: dependencies.cfg Message-ID: Have you checked that nagios.cfg is not pointing to another copy of dependencies.cfg elsewhere on your system ? regs, deborah -----Original Message----- From: Brunker, Jay [mailto:Jay.Brunker at twc.state.tx.us] Sent: 16 March 2006 17:01 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] dependencies.cfg Greetings: I'm having some troubles getting nagios to start correctly. On my first attempt to start I received an error due to 'check_host_alive' being defined in a couple of spots ... bigger.cfg and minimal.cfg ... read a post where it was recommended to comment out minimal.cfg in nagios.cfg ... OK ... so far so good. Now, when I attempt to start nagios I get an error due to dependencies.cfg not being readable. The file is owned by nagios.nagios ( 664 ) , but a test of nagios.cfg still gives me a 'cannot read' dependencies.cfg error. Permissions on the directory '/usr/local/nagios/etc': 775 What up with dependencies.cfg ? Any help will be greatly appreciated. Thanks, JZB. Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager ************************************************************************ 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. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From pavel.santos at cyberlockconsulting.com Thu Mar 16 19:35:00 2006 From: pavel.santos at cyberlockconsulting.com (Pavel Santos) Date: Thu, 16 Mar 2006 13:35:00 -0500 Subject: Notification escalation not working Message-ID: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C190C@EPI-EXB2.epidirect.epi> Jorge, My default contact_group is getting the alerts regular first alerts and the contact groups are getting them too. Nagios just not escalation the alerts, it is sending them to all contact groups without using the escalation.cfg file. Do I have to add all the contact groups in the hosts.cfg and services.cfg? Right now, I only have them in the escalation.cfg and services.cfg. Thanks,. Pavel ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Jorge Daniel Sequeira Matias Sent: Thu 3/16/2006 12:11 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Notification escalation not working It seems that I' not the only one with problems in using escalations. What notifications are you receiving? Only the first and second? I'm assuming that your service default contact_groups are receiving the first and second notifications because these are not escalated. Jorge Matias On Thursday 16 March 2006 16:37, Pavel Santos wrote: > Hello list, > > Running Nagios 2.0 on a Red Hat Ent. V4 I am going insane trying to get > this escalation to work. The requirement is to escalate service > notification after 60 minutes to the system manager contact group and 90 > minutes to the Project Manager contact group. I tested the configuration > below but it does not seem to work, it will notify all contact groups on > the first notification as supposed to escalate the notification to the > appropriate group after 60 and 90 minutes as described in my escalation.cfg > file. > > > define serviceescalation{ > host_name server1 > service_description HTTP > first_notification 3 > last_notification 4 > notification_interval 60 > contact_groups system-manager > } > define serviceescalation{ > host_name server1 > service_description HTTP > first_notification 6 > last_notification 10 > notification_interval 90 > contact_groups system-manager,project-manager > } > > > Any assistance is appreciated, I looked at the previous posting and the > documentation but was unable to find the solution to my problem. > > Thanks, > > Pavel > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ktynagios at richard-group.com Thu Mar 16 19:52:05 2006 From: ktynagios at richard-group.com (Kurt Yoder) Date: Thu, 16 Mar 2006 13:52:05 -0500 Subject: "double free or corruption" message Message-ID: <851953F2-AC3F-4716-8D67-DB1AF9F0B474@richard-group.com> Hi list Recently my main nagios process started crashing. After switching it to foreground so I can see what's going on, I found this message after the latest crash: *** glibc detected *** double free or corruption (!prev): 0x080a4820 *** Aborted The main process usually runs several hours before it crashes like this. It seems to have started doing this yesterday, though I can't think of anything significant that I changed on the monitoring server around that time. I'm using Nagios 1.3 (Debian package is 1.3-cvs.20050402-2.sarge.1) and glibc 2.95.4. Can anyone offer any suggestions toward fixing this so it stops crashing? -Kurt ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martin at andorinha.ist.utl.pt Thu Mar 16 20:29:04 2006 From: martin at andorinha.ist.utl.pt (Jorge Daniel Sequeira Matias) Date: Thu, 16 Mar 2006 19:29:04 +0000 Subject: Notification escalation not working In-Reply-To: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C190C@EPI-EXB2.epidirect.epi> References: <1EE2544AB03AD34BAA60E9AA8AF1A8FE6C190C@EPI-EXB2.epidirect.epi> Message-ID: <200603161929.04585.martin@andorinha.ist.utl.pt> On Thursday 16 March 2006 18:35, Pavel Santos wrote: > Jorge, > > My default contact_group is getting the alerts regular first alerts and the > contact groups are getting them too. Nagios just not escalation the > alerts, it is sending them to all contact groups without using the > escalation.cfg file. > > Do I have to add all the contact groups in the hosts.cfg and services.cfg? > Right now, I only have them in the escalation.cfg and services.cfg. > I have one contact_groups entry in each host/service object definition. When a host/service doesn't have any escalation defined it uses the "contact_groups" defined inside its host/service object definition. So, my tip to you is to add a "contact_groups" entry in every host object definition. Of course you can add the "contact_groups" to a host object template definition and then use the template in every host object definition of the same kind. Regards, Jorge Matias ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From EmmettH at Examen.com Thu Mar 16 21:29:51 2006 From: EmmettH at Examen.com (Emmett Hogan) Date: Thu, 16 Mar 2006 12:29:51 -0800 Subject: "check_http --ssl" problem In-Reply-To: <4405D667.7070807@Examen.com> References: <4405D667.7070807@Examen.com> Message-ID: <4419CABF.8020008@Examen.com> Wow...this is a first for me in my dealings with Nagios and the list. Usually, one of the "super smart" folks on this list sees what the problem is in a matter of minutes..but not this time. Has no one else tried to verify ssl certs on a web server which requires STRONG encryption from a nagios server running Redhat v4 x86_64? :-( Anybody have any suggestions? -Emmett Emmett Hogan wrote: > Hi Folks, > > I am having a very strange problem. I am moving nagios to a new server > and updating to V2.0 (from V2.0b1), at the same time upgrading from > nagios-plugins-1.4beta to nagios-plugins-1.4.2. > > The big difference, and I think the source of my problem, is that I am > going from Debian Linux to Redhat Enterprise Linux. > > In a nutshell, "check_http --ssl" doesn't work for our servers which > REQUIRE strong encryption. > > Examples: > > On our OLD Debian machine (everything is great): > > # ./check_http -V > check_http (nagios-plugins 1.4-beta1) 1.79 > > # ./check_http -v -C 60 --ssl www.wellsfargo.com > SSL seeding: OK > OK - Certificate will expire on 08/19/2006 23:59. > > # ./check_http -v -C 60 --ssl my-web-server > SSL seeding: OK > OK - Certificate will expire on 08/14/2011 18:21. > > New Redhat Server: > > # ./check_http -V > check_http (nagios-plugins 1.4.2) 1.81 > > # ./check_http -v -C 60 --ssl www.wellsfargo.com > SSL seeding: OK > OK - Certificate will expire on 08/19/2006 23:59. > > # ./check_http -v -C 120 --ssl my-web-server > SSL seeding: OK > CRITICAL - Cannot retrieve server certificate. > > This happens even if I compile version 1.79 on the Redhat box and try to > run it. So, I figured it must be an ssl library problem...right? > Nope. I grabbed the latest openssl, compiled it, and used it to build > both versions of check_http, and got the exact same problem. > > I receive this error even when checking to make sure the https side is > up and running: > > # ./check_http --ssl -v my-web-server > SSL seeding: OK > CRITICAL - Cannot retrieve server certificate. > > I am pretty sure it has to do with my requirement of strong encryption > within my Apache server, but it works fine with my old setup. > > Has anyone else on the list run into this problem before?? > > Any help would be GREATLY appreciated! > > Thanks, > Emmett > > -- ========= LexisNexis Examen, Inc. ========== Emmett Hogan Senior UNIX Administrator emmetth at examen.com === Outside Counsel Management Solutions === ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zaeem.chaudhry at fmr.com Thu Mar 16 21:46:31 2006 From: zaeem.chaudhry at fmr.com (Chaudhry, Zaeem) Date: Thu, 16 Mar 2006 15:46:31 -0500 Subject: Pre-flight OK, but can't see any hosts - Help Message-ID: <43C51169756115468E235A12F7A680A304920194@MSGBOSCLD2WIN.DMN1.FMR.COM> Hello all, BELOW IS THE OUTPUT FROM PRE-FLIGHT CONFIG COMMAND ON NAGIOS SERVER: ===================================================================== [root at localhost servers]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios 2.0 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 02-07-2006 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 7 services. Checking hosts... Checked 7 hosts. Checking host groups... Checked 1 host groups. Checking service groups... Checked 1 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 22 commands. Checking time periods... Checked 1 time periods. Checking extended host info definitions... Checked 0 extended host info definitions. Checking extended service info definitions... Checked 0 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check =================================================================== When I click on "Host Detail" under "Monitoring" menu on the webserver to check the status of the switches I want to monitor, I don't see any, although I can ping the switches on my network. Below is a snapshot of my "hosts.cfg" file: ================================================================== define host { use firn-host-template host_name 65.91.73.226 alias C29V4FCATFIRNA01 address 65.91.73.226 } define service { use firn-service-http host_name 65.91.73.226 } # IP: 65.91.73.226 define host { use firn-host-template host_name 192.168.0.2 alias C29V4FCATFIRNA02 address 192.168.0.2 } define service { use firn-service-http host_name 192.168.0.2 } # IP: 192.168.0.2 ============================================================== Any idea why this is happening? Thanks, Zaeem. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 16 22:01:57 2006 From: marc at ena.com (Marc Powell) Date: Thu, 16 Mar 2006 15:01:57 -0600 Subject: Pre-flight OK, but can't see any hosts - Help Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chaudhry, Zaeem > Sent: Thursday, March 16, 2006 2:47 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Pre-flight OK, but can't see any hosts - Help > > > Hello all, > > BELOW IS THE OUTPUT FROM PRE-FLIGHT CONFIG COMMAND ON NAGIOS SERVER: > > ===================================================================== > > [root at localhost servers]# /usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg > > Nagios 2.0 > Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) > Last Modified: 02-07-2006 > License: GPL [chop] > > Total Warnings: 0 > Total Errors: 0 > > Things look okay - No serious problems were detected during the > pre-flight check > =================================================================== > > > When I click on "Host Detail" under "Monitoring" menu on the webserver > to check the status of the switches I want to monitor, I don't see any, > although I can ping the switches on my network. You don't see any hosts or services at all? What does show? Do you have authentication enabled in cgi.cfg but haven't yet set up .htaccess? > Below is a snapshot of my "hosts.cfg" file: > > ================================================================== > > define host { > use firn-host-template > host_name 65.91.73.226 > alias C29V4FCATFIRNA01 > address 65.91.73.226 > } > define service { > use firn-service-http > host_name 65.91.73.226 > } Please post the appropriate templates, hostgroup and contact definitions associated with this host/service. Thanks, marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jay.Brunker at twc.state.tx.us Thu Mar 16 23:14:09 2006 From: Jay.Brunker at twc.state.tx.us (Brunker, Jay) Date: Thu, 16 Mar 2006 16:14:09 -0600 Subject: service_notification_commands Message-ID: <11741698C5E1574E9E0357305D55B474022742@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> YANNQ ( Yet Another Nagios Newbie Question ) I'm correcting errors from my pre flight test and I am working on the service_notification_commands errors in 'contacts.cfg' right now. Are there any existing/pre built commands for such things are 'notify-by-email' or 'notify-by-pager' ? OK, so if I need to build my own commands do those definitions go in the 'contacts.cfg' ? ... or would those commands go in a 'commands.cfg' file ? Thanks, JZB Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Mar 16 23:29:23 2006 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 16 Mar 2006 17:29:23 -0500 (EST) Subject: service_notification_commands In-Reply-To: <11741698C5E1574E9E0357305D55B474022742@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> References: <11741698C5E1574E9E0357305D55B474022742@exchg101p.actdc101p.rtdcx101p.twc.state.tx.us> Message-ID: On Thu, 16 Mar 2006, Brunker, Jay wrote: > > > YANNQ ( Yet Another Nagios Newbie Question ) welcome > > I'm correcting errors from my pre flight test and I am working on the > service_notification_commands errors in 'contacts.cfg' > right now. > > Are there any existing/pre built commands for such things are > 'notify-by-email' or 'notify-by-pager' ? > Those should be in miscommands.cfg in the distributions. > OK, so if I need to build my own commands do those definitions go in the > 'contacts.cfg' ? > ... or would those commands go in a 'commands.cfg' file ? > you can create multiple "command" definition files Just point to/include them using cfg_file or cfg_dir pointer in nagios.cfg. > > Thanks, > > > JZB > > > Jay Brunker > Unix Systems Administrator > Texas Workforce Commission > 101 E. 15th St. > 512-475-2625 Desk Phone > 512-849-4985 Pager > > > -- ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Mar 16 23:34:05 2006 From: marc at ena.com (Marc Powell) Date: Thu, 16 Mar 2006 16:34:05 -0600 Subject: service_notification_commands Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brunker, Jay > Sent: Thursday, March 16, 2006 4:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] service_notification_commands > > > > YANNQ ( Yet Another Nagios Newbie Question ) > > I'm correcting errors from my pre flight test and I am working on the > service_notification_commands errors in 'contacts.cfg' > > right now. > > Are there any existing/pre built commands for such things are 'notify-by- > email' or 'notify-by-pager' ? Yes, they're included in the sample config files that you can optionally install at compile time (make install-config). If you don't want to install the sample configs (and they're good examples), you can find the command definitions for these in /path/to/src/nagios-2.0/sample-config/template-object/miscommands.cfg (_not_ miscommands.cfg.in). For hosts - host-notify-by-email host-notify-by-epager For services - notify-by-email notify-by-epager > OK, so if I need to build my own commands do those definitions go in the > 'contacts.cfg' ? > ... or would those commands go in a 'commands.cfg' file ? Generally they'd go in commands.cfg but in reality they can go in any file you define as a cfg_file in nagios.cfg. It's up to you whether you have a single, few or hundreds of cfg_files and how they're organized. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Thu Mar 16 23:33:29 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Thu, 16 Mar 2006 14:33:29 -0800 Subject: where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? Message-ID: <20060316223329.GA7653@mini.alaya.net> I am using the CHANGE_NORMAL_SVC_CHECK_INTERVAL so that if a state of CRITICAL HARD exists longer than the time period covered by retry_check_interval and max_check_attempts nagios will still continue checking the service at an increased interval until it returns to OK. The essence of my external check command, based on the example in the nagios documentation, is: #!/bin/sh OK) now=`date +%s` commandfile='/mnt/ha0/tmon/var/rw/nagios.cmd' printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;$4;$5;90\n" $now > $comm andfile ;; WARNING) ;; UNKNOWN) ;; CRITICAL) case "$2" in SOFT) # now=`date +%s` # commandfile='/mnt/ha0/tmon/var/rw/nagios.cmd' # printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;'$4';$5;15\n" $now > $comm andfile ;; HARD) now=`date +%s` commandfile='/mnt/ha0/tmon/var/rw/nagios.cmd' printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;$4;$5;15\n" $now > $commandfile # echo "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;$4;$5;15\n" $now $commandfile >> /tmp/args.txt ;; esac ;; esac exit 0 I see after max_check_attempts that state to go CRITICAL HARD for the service and then it runs the event_handler which runs the external command: [1142543941] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;test_host;test.html;15 this should set the check_interval to 15 seconds in stead of the default 90 seconds. However, watching the log I see that the checks on the service revert to 90 s. I cannot find ANY documentation nor mention of this command, CHANGE_NORMAL_SVC_CHECK_INTERVAL, anywhere on the users or dev mailing lists, via google, or anywhere else except here: http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=110 At this point I know the command is being run but for whatever reason it appears to not be working. I'm not sure where to get more help with this. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stanglinden at gmail.com Thu Mar 16 15:07:41 2006 From: stanglinden at gmail.com (Mike Linden) Date: Thu, 16 Mar 2006 09:07:41 -0500 Subject: phantom host up messages Message-ID: <703708a60603160607u48c1d039t5c4b438bcd72b18e@mail.gmail.com> Hi, I have a couple systems that have been unplugged and removed from the rack ,yet Nagios still reports a Host UP alert for them from the check_ping process. How is this possible? ***** Nagios ***** Notification Type: RECOVERY Host: csep1039 State: UP Address: csep1039 Info: (No output!) Date/Time: Thu Mar 16 08:56:42 EST 2006 Thanks Mike -- Mike Linden http://linden.linuxps.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Mar 16 23:41:28 2006 From: marc at ena.com (Marc Powell) Date: Thu, 16 Mar 2006 16:41:28 -0600 Subject: phantom host up messages Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mike Linden > Sent: Thursday, March 16, 2006 8:08 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] phantom host up messages > > Hi, > I have a couple systems that have been unplugged and removed from the rack > ,yet Nagios still reports a Host UP alert for them from the check_ping > process. > How is this possible? > > ***** Nagios ***** > > Notification Type: RECOVERY > Host: csep1039 > State: UP > Address: csep1039 > Info: (No output!) > > Date/Time: Thu Mar 16 08:56:42 EST 2006 The plugin/command you are using to check the host is providing no command line output but is still exiting with a code of 0 (successful). Try running the check_command, as the nagios user, exactly as it's defined, from the command line and then 'echo $?'. The results of the echo for a down host should be '2'. Chances are you're going to see some additional error output from ping/check_ping. There was also a suggestion earlier for another issue to add '2>&1' to the end of the check_command definition to redirect error output back to Nagios. If that works as advertised, and I believe it will, that could be informative as well. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Fri Mar 17 00:10:50 2006 From: teng at dataway.com (Tedman Eng) Date: Thu, 16 Mar 2006 15:10:50 -0800 Subject: switch host definition: no IP Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2D34@dw-mail.dataway.com> You can approach monitoring an IP-less unmanaged switch a few ways: 1) Hang a device with and IP address off the switch. This device's sole purpose would be to provide reliable monitorable status through the switch (ie via ping, embedded web server, etc). Such a device would need to be more reliable than the switch, otherwise you're not monitoring the switch for failure, you're monitoring the IP device for failure. For suggestions of very small IP devices for this purpose, see this discussion: http://ask.slashdot.org/article.pl?sid=05/11/07/2111240 2) Monitor link status of some device connected to the switch. Again, this device is standing in for the switch, so you're actually monitoring the connected device, it's ethernet cable, it's ethernet card, and only that one particular switch port. 3) Create a cluster object (ie. check_cluster) that's tied to numerous hosts behind the switch. If all those hosts are out at the same time, then your cluster object would signal a problem, most likely the switch, but it could be your whole computer room went down too. > -----Original Message----- > From: dick at uchicago.edu [mailto:dick at uchicago.edu] > Sent: Wednesday, March 15, 2006 4:20 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] switch host definition: no IP > > > i want some advice on if and how i should add an IP-less > switch into my host > definitions. the templates i've found for switches always > have an IP associated > with them, like so: > > define host{ > use generic-host > host_name switch1 > alias Switch #1 > address 192.168.1.230 > check_command check-host-alive > max_check_attempts 10 > notification_interval 60 > notification_period 24x7 > notification_options d,u,r > contact_groups switch-admins > } > > but my switches do not have an IP associated with them, being > setup thusly: > > (firewall)---(switch1)----(mailserver) > 10.9.0.1 | 10.9.0.3 > | > (wifi AP) > 10.9.0.2 > > in this case, would i want to make a host named switch1 and > have it be the > parent of the mailserver and wifi AP machines, or should i > omit the switch1 host > and have firewall be the parent of the two machines behind switch1? > > i would like to be able to detect if the switch has burned > out, not just that > the hosts are both down. perhaps my switch is too crappy? > > thx for reading. > > cheers, > jake > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language > that extends applications into web and mobile media. Attend > the live webcast > and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720& dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Carlos.de_Sousa at ericsson.com Fri Mar 17 00:23:25 2006 From: Carlos.de_Sousa at ericsson.com (Carlos de Sousa) Date: Fri, 17 Mar 2006 00:23:25 +0100 Subject: Macros CONTACTADDRESSx not in ENV Message-ID: <4419F36D.4080800@ericsson.com> Hi! It seems that the CONTACTADDRESSx macros are not available as environment variables as the CONTACTEMAIL and CONTACTPAGER are. I couln't find anything in the documentation that they wouldn't be. Any reason for that? I know I can use the $CONTACTADDRESSx$ macro in the command_line of misccommands, but it would be nicer to get it from the ENVIRONMENT. Regards Carlos de Sousa Ericsson AB -------------- next part -------------- A non-text attachment was scrubbed... Name: Carlos.de_Sousa.vcf Type: text/x-vcard Size: 161 bytes Desc: not available URL: From rouilj at cs.umb.edu Fri Mar 17 00:23:27 2006 From: rouilj at cs.umb.edu (John P. Rouillard) Date: Thu, 16 Mar 2006 18:23:27 -0500 Subject: where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? In-Reply-To: Your message of "Thu, 16 Mar 2006 14:33:29 PST." <20060316223329.GA7653@mini.alaya.net> References: <20060316223329.GA7653@mini.alaya.net> Message-ID: <200603162323.k2GNNR7N027718@mx1.cs.umb.edu> In message <20060316223329.GA7653 at mini.alaya.net>, prosolutions writes: >I am using the CHANGE_NORMAL_SVC_CHECK_INTERVAL so >that if a state of CRITICAL HARD exists longer than >the time period covered by retry_check_interval and >max_check_attempts nagios will still continue checking >the service at an increased interval until it returns >to OK. > [mangled broken shell script removed] What I saw as a shell script isn't a valid shell script. At the very least it looks like a case statement got chopped off at the top. Also you have a lot of redundant code there. Also there is no standard for the arguments to event handler scripts, including the command definition would have been useful. >I see after max_check_attempts that state to go >CRITICAL HARD for the service and then it runs the >event_handler which runs the external command: > >[1142543941] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;test_host;test.html;15 I assume you mean it sends: [1142543941] CHANGE_NORMAL_SVC_CHECK_INTERVAL;test_host;test.html;15 the inclusion of "EXTERNAL COMMAND:" is a syntax error. If that is actually the command sent, Nagios will ignore the command. What you showed above is the log entry and not what is sent to the command file right? >this should set the check_interval to 15 seconds instead >of the default 90 seconds. However, watching the log I see >that the checks on the service revert to 90 s. What are you seeing in the log that makes you think it's getting reset? If I use: echo "[`date +%s`] CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3" to change the check interval to three minutes, and direct it to the command pipe, I see it take effect and stay in effect. Looking at the Event Log in the web interface shows: [03-16-2006 22:54:25] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3 No other CHANGE_NORMAL_SVC_CHECK_INTERVAL commands occur. If you are seeing another command reset it, maybe something is wacky in the event handler. After the command, /var/log/nagios/retention.dat and /var/log/nagios/object.cache both show: normal_check_interval 3 for the service just as expected. It is normally set to 60 minutes in the configuration files. When you change the check interval, it doesn't force a reschedule of the service with the new interval. I rescheduled from the web interface, but I suspect that a "SCHEDULE_FORCED_HOST_CHECK" command would also do the trick. Then I saw the 3 minute reschedule take effect and stay in effect. >I cannot find ANY documentation nor mention of this command, >CHANGE_NORMAL_SVC_CHECK_INTERVAL, anywhere on the users or dev >mailing lists, via google, or anywhere else except here: > >http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=110 That's the only place I have found it. The source is the only other doc. Also I am using nagios 2.0rc1, so YMMV. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rouilj at cs.umb.edu Fri Mar 17 00:42:13 2006 From: rouilj at cs.umb.edu (John P. Rouillard) Date: Thu, 16 Mar 2006 18:42:13 -0500 Subject: switch host definition: no IP In-Reply-To: Your message of "Thu, 16 Mar 2006 15:10:50 PST." <37ED92F9890FAF4BB947613C66FF8B1A08BB2D34@dw-mail.dataway.com> References: <37ED92F9890FAF4BB947613C66FF8B1A08BB2D34@dw-mail.dataway.com> Message-ID: <200603162342.k2GNgDq0000627@mx1.cs.umb.edu> In message <37ED92F9890FAF4BB947613C66FF8B1A08BB2D34 at dw-mail.dataway.com>, Tedman Eng writes: >You can approach monitoring an IP-less unmanaged switch a few ways: > but my switches do not have an IP associated with them, being > setup thusly: >> From: dick >> >> (firewall)---(switch1)----(mailserver) >> 10.9.0.1 | 10.9.0.3 >> | >> (wifi AP) >> 10.9.0.2 >> >> in this case, would i want to make a host named switch1 and >> have it be the >> parent of the mailserver and wifi AP machines, or should i >[...] >3) Create a cluster object (ie. check_cluster) that's tied to numerous hosts >behind the switch. If all those hosts are out at the same time, then your >cluster object would signal a problem, most likely the switch, but it could >be your whole computer room went down too. Another hack on the cluster object is to use the check_host mode of check_icmp. Create a link to check_icmp called check_host. Use the command: check_host 10.9.0.2 10.9.0.3 as the check_host command for switch1 (and possibly a check_ping service command for switch1). As long as one of the IP addresses to check_host responds, it will returns an ok state. So the switch will be found down only if both the 0.2 and 0.3 hosts are down. Needless to say this works best is 0.2 and 0.3 are on separate power systems/UPS legs so that a power failure doesn't make it look like the switch went down. However if you plug all three devices into the same power plug then it works right. Dick, does switch1 have a serial console that is network accessible (via a terminal server for example) that you could use to probe the switch? Using an expect script to drive an interaction with the switch can also be used as a "ping" operation. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ton.voon at altinity.com Fri Mar 17 00:43:33 2006 From: ton.voon at altinity.com (Ton Voon) Date: Thu, 16 Mar 2006 23:43:33 +0000 Subject: "check_http --ssl" problem In-Reply-To: <4419CABF.8020008@Examen.com> References: <4405D667.7070807@Examen.com> <4419CABF.8020008@Examen.com> Message-ID: On 16 Mar 2006, at 20:29, Emmett Hogan wrote: > Wow...this is a first for me in my dealings with Nagios and the list. > Usually, one of the "super smart" folks on this list sees what the > problem is in a matter of minutes..but not this time. That's a taunt if ever I heard one! Try the plugins snapshot at http://nagiosplug.sourceforge.net/ snapshot. Sean Finney has done some cleanup for SSL connections and I think this is fixed in there. Ton > > Has no one else tried to verify ssl certs on a web server which > requires > STRONG encryption from a nagios server running Redhat v4 x86_64? :-( > > Anybody have any suggestions? > > -Emmett > > Emmett Hogan wrote: >> Hi Folks, >> >> I am having a very strange problem. I am moving nagios to a new >> server >> and updating to V2.0 (from V2.0b1), at the same time upgrading from >> nagios-plugins-1.4beta to nagios-plugins-1.4.2. >> >> The big difference, and I think the source of my problem, is that >> I am >> going from Debian Linux to Redhat Enterprise Linux. >> >> In a nutshell, "check_http --ssl" doesn't work for our servers which >> REQUIRE strong encryption. >> >> Examples: >> >> On our OLD Debian machine (everything is great): >> >> # ./check_http -V >> check_http (nagios-plugins 1.4-beta1) 1.79 >> >> # ./check_http -v -C 60 --ssl www.wellsfargo.com >> SSL seeding: OK >> OK - Certificate will expire on 08/19/2006 23:59. >> >> # ./check_http -v -C 60 --ssl my-web-server >> SSL seeding: OK >> OK - Certificate will expire on 08/14/2011 18:21. >> >> New Redhat Server: >> >> # ./check_http -V >> check_http (nagios-plugins 1.4.2) 1.81 >> >> # ./check_http -v -C 60 --ssl www.wellsfargo.com >> SSL seeding: OK >> OK - Certificate will expire on 08/19/2006 23:59. >> >> # ./check_http -v -C 120 --ssl my-web-server >> SSL seeding: OK >> CRITICAL - Cannot retrieve server certificate. >> >> This happens even if I compile version 1.79 on the Redhat box and >> try to >> run it. So, I figured it must be an ssl library problem...right? >> Nope. I grabbed the latest openssl, compiled it, and used it to >> build >> both versions of check_http, and got the exact same problem. >> >> I receive this error even when checking to make sure the https >> side is >> up and running: >> >> # ./check_http --ssl -v my-web-server >> SSL seeding: OK >> CRITICAL - Cannot retrieve server certificate. >> >> I am pretty sure it has to do with my requirement of strong >> encryption >> within my Apache server, but it works fine with my old setup. >> >> Has anyone else on the list run into this problem before?? >> >> Any help would be GREATLY appreciated! >> >> Thanks, >> Emmett >> http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dick at uchicago.edu Fri Mar 17 01:33:13 2006 From: dick at uchicago.edu (dick at uchicago.edu) Date: Thu, 16 Mar 2006 18:33:13 -0600 Subject: switch host definition: no IP Message-ID: > >Another hack on the cluster object is to use the check_host mode of >check_icmp. Create a link to check_icmp called check_host. Use the >command: > > check_host 10.9.0.2 10.9.0.3 > >as the check_host command for switch1 (and possibly a check_ping >service command for switch1). As long as one of the IP addresses to >check_host responds, it will returns an ok state. So the switch will >be found down only if both the 0.2 and 0.3 hosts are down. Needless to >say this works best is 0.2 and 0.3 are on separate power systems/UPS >legs so that a power failure doesn't make it look like the switch went >down. However if you plug all three devices into the same power plug >then it works right. > >Dick, does switch1 have a serial console that is network accessible >(via a terminal server for example) that you could use to probe the >switch? Using an expect script to drive an interaction with the switch >can also be used as a "ping" operation. > john, the switches in question are total junk "autosensing" switches i grabbed from bestbuy, no serial console for management access. the idea of using the expect script to run checks via a console server is a good one, but i don't have the right equipment. thx for the ideas y'all. i'll try them to see how they work out. i'll post back later if any one of them seems to work best. cheers, jake ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnosc at hotmail.com Fri Mar 17 02:29:37 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Fri, 17 Mar 2006 11:29:37 +1000 Subject: Local host is Down, Couldnotparse arguements Message-ID: Usage: check_ping -H -w ,% -c ,% [-p packets] [-t timeout] [-L] [-4|-6] I am not sure what I need to set the following to -w ,% -c ,% [-p packets] [-t timeout] [-L] [-4|-6] Is there a document in the help files someone could point me to _________________________________________________________________ Shopping made easy @ tradingpost.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingpost%2Ecom%2Eau%2F%3Freferrer%3DnmsnHMetagv1&_t=753082530&_r=emailtagline&_m=EXT ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dmourati at cm.math.uiuc.edu Fri Mar 17 02:37:46 2006 From: dmourati at cm.math.uiuc.edu (Demetri Mouratis) Date: Thu, 16 Mar 2006 19:37:46 -0600 (CST) Subject: Local host is Down, Couldnotparse arguements In-Reply-To: References: Message-ID: On Fri, 17 Mar 2006, Jody Noscov wrote: > Usage: check_ping -H -w ,% -c ,% > [-p packets] [-t timeout] [-L] [-4|-6] > > I am not sure what I need to set the following to > > -w ,% -c ,% > [-p packets] [-t timeout] [-L] [-4|-6] > > Is there a document in the help files someone could point me to Here's how I have my check_ping setup. First, in checkcommands.cfg, I have the following definition: # check_ping command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } Then, in services.cfg, I have the following: define service{ use dev3-service service_description PING hostgroup_name dev3 check_command check_ping!100,20%!200,40% } That's it. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From estair at ilm.com Fri Mar 17 02:48:25 2006 From: estair at ilm.com (Eli Stair) Date: Thu, 16 Mar 2006 17:48:25 -0800 Subject: Service dependencies In-Reply-To: References: <2A67EA781EC7F949A2AB0A0D07A86C6ABE6F51@mail01.ccia.local> Message-ID: <441A1569.4060901@ilm.com> To be fair, one situation where these wildcard template dependencies don't work is when you want to define a number of dependent services that rely on a service on the same host (i.e. not a number of separate services on different hosts that rely on a single (or wildcardable) host/service). I re-wrote my entire config tree with templates at one point, only to find it was wasted effort (in my situation) as I have large numbers of hosts/services all relying on others within the same host, not a single point elsewhere... so they aren't expressible that way. So I've still got megabytes of config files to generate when there's a change, vs. the idea of changing a simple template and having it propagate :( /eli Hugo van der Kooij wrote: > On Thu, 16 Mar 2006, Matthew Joyce wrote: > > >>I check a lot of window services from linux via snmp. >>One service is SNMP, if this fails or stops, others will fail. >> >>An I going to get a heap of notification for each service ? >> >>I've looked at the service dependency section in the docs, and it looks >>like I need to define a dependency for each service, for each host. >>That's a lot of defining. > > > Not at all. Read the archives for samples of how to use the wildcards in > your dependencies definitions. > > Hugo. > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnosc at hotmail.com Fri Mar 17 03:26:57 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Fri, 17 Mar 2006 12:26:57 +1000 Subject: Local host is Down, Couldnotparse arguements In-Reply-To: References: Message-ID: Tried that using the CLI and i get: !200: Event not found Bummer, Is there some documentation somewhere that will show me what I need to put into these arguements? I am also trying to run the Check_load, Check_disk, check_ping all with the same result. Could not parse arguements the Check_users is coming up with no output returned from plugin, However good news is that the check_procs is working fine...hooray something works! I am not that experienced in either linux or nagios, so whatever tips you can give me would be greatly appreciated :-) >From: Demetri Mouratis >To: Jody Noscov >CC: Nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] Local host is Down, Couldnotparse arguements >Date: Thu, 16 Mar 2006 19:37:46 -0600 (CST) > >On Fri, 17 Mar 2006, Jody Noscov wrote: > >>Usage: check_ping -H -w ,% -c ,% >>[-p packets] [-t timeout] [-L] [-4|-6] >> >>I am not sure what I need to set the following to >> >>-w ,% -c ,% >>[-p packets] [-t timeout] [-L] [-4|-6] >> >>Is there a document in the help files someone could point me to > >Here's how I have my check_ping setup. First, in checkcommands.cfg, I have >the following definition: > ># check_ping command definition >define command{ > command_name check_ping > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c >$ARG2$ -p 5 > } > >Then, in services.cfg, I have the following: > >define service{ > use dev3-service > service_description PING > hostgroup_name dev3 > check_command check_ping!100,20%!200,40% > } > >That's it. > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. ::: Messages without supporting info will risk being >sent to /dev/null _________________________________________________________________ realestate.com.au: the biggest address in property http://ninemsn.realestate.com.au ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnosc at hotmail.com Fri Mar 17 03:50:09 2006 From: jnosc at hotmail.com (Jody Noscov) Date: Fri, 17 Mar 2006 12:50:09 +1000 Subject: Local host is Down, Couldnotparse arguements In-Reply-To: References: Message-ID: So Far so good, I just copied the snippet from the checkcommands.cfg file, changed it to suit and wella! Now my Host is up, but I am still having problems with the other commands. >From: Demetri Mouratis >To: Jody Noscov >CC: Nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] Local host is Down, Couldnotparse arguements >Date: Thu, 16 Mar 2006 19:37:46 -0600 (CST) > >On Fri, 17 Mar 2006, Jody Noscov wrote: > >>Usage: check_ping -H -w ,% -c ,% >>[-p packets] [-t timeout] [-L] [-4|-6] >> >>I am not sure what I need to set the following to >> >>-w ,% -c ,% >>[-p packets] [-t timeout] [-L] [-4|-6] >> >>Is there a document in the help files someone could point me to > >Here's how I have my check_ping setup. First, in checkcommands.cfg, I have >the following definition: > ># check_ping command definition >define command{ > command_name check_ping > command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c >$ARG2$ -p 5 > } > >Then, in services.cfg, I have the following: > >define service{ > use dev3-service > service_description PING > hostgroup_name dev3 > check_command check_ping!100,20%!200,40% > } > >That's it. > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. ::: Messages without supporting info will risk being >sent to /dev/null _________________________________________________________________ mycareer.com.au: http://www.mycareer.com.au/?s_cid=213596 Land the Job ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Fri Mar 17 04:06:31 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Thu, 16 Mar 2006 19:06:31 -0800 Subject: where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? In-Reply-To: <200603162323.k2GNNR7N027718@mx1.cs.umb.edu> References: <20060316223329.GA7653@mini.alaya.net> <200603162323.k2GNNR7N027718@mx1.cs.umb.edu> Message-ID: <20060317030214.GA10825@mini.alaya.net> > > [mangled broken shell script removed] > oops yes part of it got chopped. and yes it wasn't elegant - i threw it together to get it to run. it does run - it handles the cases correctly, etc. > What I saw as a shell script isn't a valid shell script. At > the very least it looks like a case statement got chopped > off at the top. Also you have a lot of redundant code there. > > Also there is no standard for the arguments to event handler > scripts, including the command definition would have been > useful. > > >I see after max_check_attempts that state to go > >CRITICAL HARD for the service and then it runs the > >event_handler which runs the external command: > > > >[1142543941] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;test_host;test.html;15 no. sorry i wasn't clear on this. that is what i see in the log file. the command that is run is that which is in the script, namely: printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;$4;$5;15\n" $now > $commandfile this is taken directly from the canonical definition of this command listed at http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=110, which is: #!/bin/sh now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;host1;service1;15\n" $now > $commandfile i see that this differs from what you claim to have succesfully run (see below) > > the inclusion of "EXTERNAL COMMAND:" is a syntax error. If no, that is what the log file showed after the command ran, not what i sent > > >this should set the check_interval to 15 seconds instead > >of the default 90 seconds. However, watching the log I see > >that the checks on the service revert to 90 s. > > What are you seeing in the log that makes you think it's > getting reset? If I use: i am watching the log and timing it and watching how frequently the service checks get run. they run at retry_check_interval up until max_check_attempts gets reached, then, even though the event handler runs the script to execute the CHANGE_NORMAL_SVC_CHECK_INTERVAL command, setting the interval to 15 seconds (same as retry_check_interval), it does not set (i.e. it reverts back to check_interval (90s) > > echo "[`date +%s`] CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3" okay this looks substantially differnt than the cannonical example above. first off instead of [%lu] following the echo/print, you have [`date +%s`] also, i don't see \n `date +%s` > $commandfile at the end of your script. is the date command supposed to go before and after the command? > > to change the check interval to three minutes, and direct it > to the command pipe, I see it take effect and stay in > effect. Looking at the Event Log in the web interface shows: > > [03-16-2006 22:54:25] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3 yep i see an entry just like this: [1142543941] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;test_host;test.html;15 but alas object.cache shows check_interval to still be 90s > > No other CHANGE_NORMAL_SVC_CHECK_INTERVAL commands occur. i agree there are no others > > When you change the check interval, it doesn't force a > reschedule of the service with the new interval. i'm not sure what you mean here. you mean, even though check_interval gets changed, that it must somehow be rescheduled before actually taking effect? > > Also I am using nagios 2.0rc1, so YMMV. > nagios 2.0b3 here. thanks much for your help. i will mess around with the command a bit and if i can get it to work. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at Dest.gov.au Fri Mar 17 05:33:54 2006 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Fri, 17 Mar 2006 15:33:54 +1100 Subject: Nagios-Report-0.002 on CPAN/NagiosExchange. Message-ID: Dear Folks, I am writing to say that Nagios::Report 0.002 has been 'released' and is available at the usual places. This relase fixes a bug, and adds limited charting capability and a weaker alternate interface (provided by the Perl DBD::AnyData module) that allows client code to select the report data with SQL (the small subset that AnyData accepts). 0.002 Fri Mar 17 14:44:36 EST 2006 - fix bug in mkreport() processing of MUNGE_CALLBACK (would not change report values). *** This entailed a change _non_ backward compatible change in the MUNGE_CALLBACK interface. *** Client code that calls the alter->() callback _requires_ changing. *** The alter callback is now called with one parm, a ref to a hash of the field values *** indexed by field name. See examples/ for scripts that have been changed. - added to_dbh() method to allow DBD::AnyData provided use of SQL (simple) on report data - added primitive support for chart templates to excel_dump. The workbook written by Spreadsheet::WriteExcel can contain _one_ (1) chart of the availability data. This project does not scale very well. It provides a limited capability to provide a Data source for processing by Reporting tools such as Excel. This module has probably reached the end of development (some may say it would better have not started) apart from bug fixes. If you are serious about reporting look at the DB NEB modules or Steve Shipways stuff on NagiosExchange. This module provides however, a limited capacity to provide reports in the format beloved by PHBs. Yours sincerely. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rouilj at cs.umb.edu Fri Mar 17 05:51:22 2006 From: rouilj at cs.umb.edu (John P. Rouillard) Date: Thu, 16 Mar 2006 23:51:22 -0500 Subject: where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? In-Reply-To: Your message of "Thu, 16 Mar 2006 19:06:31 PST." <20060317030214.GA10825@mini.alaya.net> References: <20060317030214.GA10825@mini.alaya.net> Message-ID: <200603170451.k2H4pM6N011415@mx1.cs.umb.edu> In message <20060317030214.GA10825 at mini.alaya.net>, prosolutions writes: >no. sorry i wasn't clear on this. that is what i see in the log file. >the command that is run is that which is in the script, namely: > >printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;$4;$5;15\n" $now > $commandfile > >this is taken directly from the canonical definition of this command > [...] >i see that this differs from what you claim to have succesfully run (see > below) >> >this should set the check_interval to 15 seconds instead >> >of the default 90 seconds. However, watching the log I see >> >that the checks on the service revert to 90 s. >> >> What are you seeing in the log that makes you think it's >> getting reset? If I use: > >i am watching the log and timing it and watching how frequently the >service checks get run. they run at retry_check_interval up until >max_check_attempts gets reached, then, even though the event handler >runs the script to execute the CHANGE_NORMAL_SVC_CHECK_INTERVAL command, >setting the interval to 15 seconds (same as retry_check_interval), it >does not set (i.e. it reverts back to check_interval (90s) Hmm, I would expect a timeline something like the following: id time state 1 0 poll fails in state soft failure try number 1 (aka soft 1) 2 15s soft alert 2 3 30s soft alert 3 4 45s hard alert (scheduled with 90 seconds because change of check interval hasn't occurred yet) 5 45s+ event handler called generates CHANGE_NORMAL_SVC_CHECK_INTERVAL 6 135s still hard (but now it schedules using the 15 second timeperiod) 7 150s hard 8 165s hard 9 stays with 15 second interval. If you wanted to have the interval between 4 and 6 be something other than 90 seconds you have to generate a SCHEDULE_FORCED_SVC_CHECK for the date "now + 15 seconds" at line 5 in addition to the change in check interval. >> echo "[`date +%s`] CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3" Printf is POSIX standard, but both my command and the printf produce the same output. Try both and see. If you don't understand why they produce the same output, read the man pages and get a book on shell programming. >okay this looks substantially differnt than the cannonical example >above. first off instead of [%lu] following the echo/print, you have >[`date +%s`] also, i don't see > >\n `date +%s` > $commandfile > >at the end of your script. is the date command supposed to go before >and after the command? No. I am just using shell substitution in the quoted string. Functionally they are equivalent. RTFM for bash, echo, printf, date etc.. >> to change the check interval to three minutes, and direct it >> to the command pipe, I see it take effect and stay in >> effect. Looking at the Event Log in the web interface shows: >> >> [03-16-2006 22:54:25] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3 > >yep i see an entry just like this: > >[1142543941] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;test_host;te >st.html;15 > >but alas object.cache shows check_interval to still be 90s Hmm, maybe a bug in 2.0b3? >> When you change the check interval, it doesn't force a >> reschedule of the service with the new interval. > >i'm not sure what you mean here. you mean, even though check_interval >gets changed, that it must somehow be rescheduled before actually taking >effect? Right. The new schedule won't take effect until the currently scheduled poll is run at the original scheduling interval AFAICT. If you want the new interval to take affect immediately you need to force it with a SCHEDULE_FORCED_SVC_CHECK command. >> Also I am using nagios 2.0rc1, so YMMV. >nagios 2.0b3 here. > >thanks much for your help. i will mess around with the command a bit >and if i can get it to work. Good luck. I'd be interested in seeing what finally works. Also you should check the nagios 2.0 release notes between 2.0b3 and 2.0rc1 and see if there is a reference to this problem. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Fri Mar 17 08:04:29 2006 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Thu, 16 Mar 2006 23:04:29 -0800 Subject: where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? In-Reply-To: <200603170451.k2H4pM6N011415@mx1.cs.umb.edu> References: <20060317030214.GA10825@mini.alaya.net> <200603170451.k2H4pM6N011415@mx1.cs.umb.edu> Message-ID: <20060317070428.GB10825@mini.alaya.net> > > >> echo "[`date +%s`] CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3" > > Printf is POSIX standard, but both my command and the printf produce > the same output. Try both and see. If you don't understand why they > produce the same output, read the man pages and get a book on shell > programming. the issue isn't with the use of printf or echo, but rather the strings which they are printing. also, i know what shell substitution is but am not familiar with the expression [%lu] and had no idea that was equivalent to the output of `date +%s`. what is confusing about your example is that you seem to omit the trailing `date +%s` at the end of your command, as opposed to the provided example: now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;host1;service1;15\n" $now > $commandfile the $now preceeding the redirection to the command file being equivalent to the string returned by `date +%s` this cannonical example is a bit confusing then: why does it have the date at the beginning, i.e. the first [%lu], and then again at the end with $now ? you seem to omit the second date from your command although in your example you also don't echo a newline nor show the redirect which that part I at least assume. > > Right. The new schedule won't take effect until the currently > scheduled poll is run at the original scheduling interval AFAICT. If > you want the new interval to take affect immediately you need to force > it with a SCHEDULE_FORCED_SVC_CHECK command. > thank you for the clarification regarding this. but i am still not seeing the CHANGE_NORMAL_SVC_CHECK_INTERVAL register in objects.cache. i will continue delving into that and then eventually implement SCHEDULE_FORCED_SVC_CHECK as per your suggestion. thanks again for your illuminating help! ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Fri Mar 17 08:16:02 2006 From: m.borsani at it.net (Marco Borsani) Date: Fri, 17 Mar 2006 08:16:02 +0100 Subject: R: Strange situation.. In-Reply-To: <60721B67EAF0994EAFFB561767B700140ACC95@nets13ha.ww300.siemens.net> References: <60721B67EAF0994EAFFB561767B700140ACC95@nets13ha.ww300.siemens.net> Message-ID: <003e01c64992$a69085e0$0900d40a@intranet.it.net> I found the problem. Nagios does not keep nagios user environment (and PATH variable), so it did not find command like "grep" ! I can't believe.... ;-) Regards Marco -}-----Messaggio originale----- -}Da: Masopust, Christian [mailto:christian.masopust at siemens.com] -}Inviato: gioved? 16 marzo 2006 10.58 -}A: Marco Borsani; NAGIOS -}Oggetto: RE: [Nagios-users] Strange situation.. -} -} -}Does your nagios user have read permissions to your Invio_Rice.log? -} -} -} -}> -----Original Message----- -}> From: nagios-users-admin at lists.sourceforge.net -}> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf -}Of Marco -}> Borsani -}> Sent: Thursday, March 16, 2006 10:30 AM -}> To: 'NAGIOS' -}> Subject: [Nagios-users] Strange situation.. -}> Importance: High -}> -}> Hi all! -}> -}> I prepare a very simple check (called check_fax) that read a text -}> file. -}> -}> If check_fax find an "OK" it will return a status 0, if -}check_fax find -}> a "CRITICAL" it will return a status 2. -}> -}> Well, when I run manually check_fax (like nagios user or root -}> user) it work -}> correctly (returns 0), but when Nagios run check_fax, it returns a -}> status 2. -}> -}> I try to modify check_fax permissions like: -}> -rwxr-xr-x 1 root sys 654 Mar 16 09:42 check_fax -}> -rwxr-xr-x 1 nagios nagios 654 Mar 16 09:42 check_fax -}> But nothing has been changed. -}> -}> Here it is the check_fax: -}> -}---------------------------------------------------------------------- -}> #!/bin/csh -}> # -}> set dir2 = /tmp -}> -}> set STATUS = `cat $dir2/Invio_Rice.log | grep -c OK` -}> -}> if ( "$STATUS" == "1" ) then -}> echo "FAX OK - Invio e ricezione di prova avvenuto" > -}> $dir2/Rice.log -}> echo "FAX OK - Invio e ricezione di prova avvenuto" -}> else -}> echo "FAX CRITICAL - Invio e ricezione di prova NON -}avvenuto" -}> > $dir2/Rice.log -}> echo "FAX CRITICAL - Invio e ricezione di prova NON -}avvenuto" -}> exit 2 -}> endif -}> -}> exit 0 -}> -------------------------------------------------------------- -}> ---------- -}> -}> Any idea? -}> Regards -}> -}> Marco Borsani -}> Unix & Monitoring System Administrator Technical Operation -}> Tel. +39 010 4310115 -}> Fax +39 010 4327454 -}> E-mail: m.borsani at IT.net -}> -}> ITnet S.r.l. - Direzione e Coordinamento di WIND Telecomunicazioni -}> S.p.A. -}> Internet Service Provider -}> Sede legale: Via C.G.Viola, 48 - 00148 Roma -}> Dir. Centrale e Amministrativa: Via Pacinotti, 39 -}> 16151 Genova (Italy) -}> -}> http://www.it.net -}> mailto:info at IT.net -}> _______________________________________________________________ -}> Altre sedi ITnet: -}> MILANO tel.: +39 02 30114900 info-milano at IT.net -}> ROMA tel.: +39 06 83116707 info-roma at IT.net -}> _______________________________________________________________ -}> ITnet is associated to CIX (Commercial IP eXchange) and -}RIPE ITnet is -}> associated to AIIP (Associazione Italiana Internet Providers) -}> -}> -}> -}> -}> ------------------------------------------------------- -}> This SF.Net email is sponsored by xPML, a groundbreaking scripting -}> language that extends applications into web and mobile -}media. Attend -}> the live webcast and join the prime developer group -}breaking into this -}> new coding territory! -}> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720& -}> dat=121642 -}> _______________________________________________ -}> Nagios-users mailing list -}> Nagios-users at lists.sourceforge.net -}> https://lists.sourceforge.net/lists/listinfo/nagios-users -}> ::: Please include Nagios version, plugin version (-v) and OS when -}> reporting any issue. -}> ::: Messages without supporting info will risk being sent -}to /dev/null -}> -} ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james at cloud9.co.uk Fri Mar 17 14:43:42 2006 From: james at cloud9.co.uk (James Fidell) Date: Fri, 17 Mar 2006 13:43:42 +0000 Subject: Empty hostgroups Message-ID: <441ABD0E.3060508@cloud9.co.uk> Is there an easy way to make nagios v2 not care if a hostgroup is empty? I'm migrating a live configuration from v1 to v2 at the same time as correcting some errors and adding functionality and have it would be useful to have all the hostgroups in the configuration files before adding all the hosts. Is it liable to cause pain if I change the code to warn about empty hostgroups rather than fail with an error? James ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joseph.petrucci at wachovia.com Fri Mar 17 14:51:37 2006 From: joseph.petrucci at wachovia.com (joseph.petrucci at wachovia.com) Date: Fri, 17 Mar 2006 08:51:37 -0500 Subject: Empty hostgroups In-Reply-To: <441ABD0E.3060508@cloud9.co.uk> References: <441ABD0E.3060508@cloud9.co.uk> Message-ID: only thing I can think of is the same host can be in multiple hostgroups so pick one host already defined and placeit in all empty hostgroups as a placeholder then when you put a host in the hstgroup that actually belongs remove that placeholder. Joe Petrucci Office: 704-383-6089 Cell : 724-462-0443 James Fidell Sent by: nagios-users-admin at lists.sourceforge.net 03/17/2006 08:43 AM To nagios-users at lists.sourceforge.net cc Subject [Nagios-users] Empty hostgroups Is there an easy way to make nagios v2 not care if a hostgroup is empty? I'm migrating a live configuration from v1 to v2 at the same time as correcting some errors and adding functionality and have it would be useful to have all the hostgroups in the configuration files before adding all the hosts. Is it liable to cause pain if I change the code to warn about empty hostgroups rather than fail with an error? James ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00010C52 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Deborah.Martin at Kognitio.com Fri Mar 17 14:58:13 2006 From: Deborah.Martin at Kognitio.com (Deborah Martin) Date: Fri, 17 Mar 2006 13:58:13 -0000 Subject: Empty hostgroups Message-ID: You can also use a wildcard as well. -----Original Message----- From: joseph.petrucci at wachovia.com [mailto:joseph.petrucci at wachovia.com] Sent: 17 March 2006 13:52 To: James Fidell Cc: nagios-users at lists.sourceforge.net; nagios-users-admin at lists.sourceforge.net Subject: Re: [Nagios-users] Empty hostgroups only thing I can think of is the same host can be in multiple hostgroups so pick one host already defined and placeit in all empty hostgroups as a placeholder then when you put a host in the hstgroup that actually belongs remove that placeholder. Joe Petrucci Office: 704-383-6089 Cell : 724-462-0443 James Fidell Sent by: nagios-users-admin at lists.sourceforge.net 03/17/2006 08:43 AM To nagios-users at lists.sourceforge.net cc Subject [Nagios-users] Empty hostgroups Is there an easy way to make nagios v2 not care if a hostgroup is empty? I'm migrating a live configuration from v1 to v2 at the same time as correcting some errors and adding functionality and have it would be useful to have all the hostgroups in the configuration files before adding all the hosts. Is it liable to cause pain if I change the code to warn about empty hostgroups rather than fail with an error? James ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00010C52 ************************************************************************ 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. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From joseph.petrucci at wachovia.com Fri Mar 17 15:30:50 2006 From: joseph.petrucci at wachovia.com (joseph.petrucci at wachovia.com) Date: Fri, 17 Mar 2006 09:30:50 -0500 Subject: Empty hostgroups In-Reply-To: References: Message-ID: I missed that you can use wildcards in the hostname field. thanks that may save me some work in the future. Joe Petrucci Office: 704-383-6089 Cell : 724-462-0443 Deborah Martin 03/17/2006 08:58 AM To "'joseph.petrucci at wachovia.com'" , James Fidell cc nagios-users at lists.sourceforge.net, nagios-users-admin at lists.sourceforge.net Subject RE: [Nagios-users] Empty hostgroups You can also use a wildcard as well. -----Original Message----- From: joseph.petrucci at wachovia.com [mailto:joseph.petrucci at wachovia.com] Sent: 17 March 2006 13:52 To: James Fidell Cc: nagios-users at lists.sourceforge.net; nagios-users-admin at lists.sourceforge.net Subject: Re: [Nagios-users] Empty hostgroups only thing I can think of is the same host can be in multiple hostgroups so pick one host already defined and placeit in all empty hostgroups as a placeholder then when you put a host in the hstgroup that actually belongs remove that placeholder. Joe Petrucci Office: 704-383-6089 Cell : 724-462-0443 James Fidell Sent by: nagios-users-admin at lists.sourceforge.net 03/17/2006 08:43 AM To nagios-users at lists.sourceforge.net cc Subject [Nagios-users] Empty hostgroups Is there an easy way to make nagios v2 not care if a hostgroup is empty? I'm migrating a live configuration from v1 to v2 at the same time as correcting some errors and adding functionality and have it would be useful to have all the hostgroups in the configuration files before adding all the hosts. Is it liable to cause pain if I change the code to warn about empty hostgroups rather than fail with an error? James ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00010C52 ************************************************************************ 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. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *********************************************************************** ForwardSourceID:NT00010C6E -------------- next part -------------- An HTML attachment was scrubbed... URL: From rstory-l at 2006.revelstone.com Fri Mar 17 15:59:51 2006 From: rstory-l at 2006.revelstone.com (Robert Story) Date: Fri, 17 Mar 2006 09:59:51 -0500 Subject: check_if_by_snmp output In-Reply-To: <0DB0FFEA6887E349861A3F6B40D71C3AAD0B80@gaugeboson.jnpr.net> References: <0DB0FFEA6887E349861A3F6B40D71C3AAD0B80@gaugeboson.jnpr.net> Message-ID: <20060317095951.7d5bbc70@aud.vb.futz.org> On Thu, 16 Mar 2006 13:05:04 +0530 Mrutyunjaya wrote: MD> I tried executing the command but it seems the command is not there in the MD> system. I have installed net-snmp on the system. Can you please let me MD> know whether snmpwalk comes along with net-snmp package or I need to MD> install some other package separately to get the snmpwalk? If you installed from source, it should be there. If you are using a RedHat based system and only installed net-snmp, you just have the daemons. The net-snmp-utils package has the user utilities. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Mar 17 16:34:53 2006 From: marc at ena.com (Marc Powell) Date: Fri, 17 Mar 2006 09:34:53 -0600 Subject: Local host is Down, Couldnotparse arguements Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jody Noscov > Sent: Thursday, March 16, 2006 7:30 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Local host is Down, Couldnotparse arguements > > Usage: check_ping -H -w ,% -c ,% > [-p packets] [-t timeout] [-L] [-4|-6] > > I am not sure what I need to set the following to > > -w ,% -c ,% > [-p packets] [-t timeout] [-L] [-4|-6] > > Is there a document in the help files someone could point me to Use 'check_ping --help'. That'll return more verbose help. THRESHOLD is ,% where is the round trip average travel time (ms) which triggers a WARNING or CRITICAL state, and is the percentage of packet loss to trigger an alarm state. The example from Demetri Mouratis should clarify these further. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dschlecht at doit.nv.gov Fri Mar 17 16:36:23 2006 From: dschlecht at doit.nv.gov (David Schlecht) Date: Fri, 17 Mar 2006 16:36:23 +0100 (CET) Subject: e-mail acknowledgements Message-ID: <20060317153623.88BBF4F40E3@desire.netways.de> Hi list I would like to allow our users to send e-mail to the Nagios server to initiate events such as acknowledge notifications, enable/disable notifications, and such. A procmail interface seems like a good solution. I noticed a post from long ago regarding this. Has anyone had any luck implementing such an interface? - David Schlecht (dschl) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dschlecht at doit.nv.gov Fri Mar 17 16:50:20 2006 From: dschlecht at doit.nv.gov (David Schlecht) Date: Fri, 17 Mar 2006 16:50:20 +0100 (CET) Subject: e-mail acknowledgements In-Reply-To: <20060317153623.88BBF4F40E3@desire.netways.de> References: <20060317153623.88BBF4F40E3@desire.netways.de> Message-ID: <20060317155020.DAC5E4F40E3@desire.netways.de> My thanks to Terry and Dany for their input regarding the acknowledgments part of this. - David Schlecht (dschl) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=16416 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Mar 17 16:51:45 2006 From: marc at ena.com (Marc Powell) Date: Fri, 17 Mar 2006 09:51:45 -0600 Subject: e-mail acknowledgements Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of David Schlecht > Sent: Friday, March 17, 2006 9:36 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] e-mail acknowledgements > > Hi list > > > > I would like to allow our users to send e-mail to the Nagios > > server to initiate events such as acknowledge notifications, > > enable/disable notifications, and such. > > > > A procmail interface seems like a good solution. I noticed a > > post from long ago regarding this. > > > > Has anyone had any luck implementing such an interface? There was a post just 2 days ago from Terry with a Subject of "Re: [Nagios-users] Acknowledge issues via e-mail" that included a procmail recipe and a script. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stanglinden at gmail.com Fri Mar 17 15:36:37 2006 From: stanglinden at gmail.com (Mike Linden) Date: Fri, 17 Mar 2006 09:36:37 -0500 Subject: phantom host up messages In-Reply-To: References: Message-ID: <703708a60603170636m6459ad36xaba1363322982e@mail.gmail.com> On 3/16/06, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Mike Linden > > Sent: Thursday, March 16, 2006 8:08 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] phantom host up messages > > > > Hi, > > I have a couple systems that have been unplugged and removed from the > rack > > ,yet Nagios still reports a Host UP alert for them from the check_ping > > process. > > How is this possible? > > > > ***** Nagios ***** > > > > Notification Type: RECOVERY > > Host: csep1039 > > State: UP > > Address: csep1039 > > Info: (No output!) > > > > Date/Time: Thu Mar 16 08:56:42 EST 2006 > > The plugin/command you are using to check the host is providing no > command line output but is still exiting with a code of 0 (successful). > Try running the check_command, as the nagios user, exactly as it's > defined, from the command line and then 'echo $?'. The results of the > echo for a down host should be '2'. Chances are you're going to see some > additional error output from ping/check_ping. > > There was also a suggestion earlier for another issue to add '2>&1' to > the end of the check_command definition to redirect error output back to > Nagios. If that works as advertised, and I believe it will, that could > be informative as well. > > -- > Marc > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Marc, indeed there are other issues here. The check_ping is seg faulting with an error code of 139 ./check_ping -H csep0602 -w 100.0,20% -c 500.0,60% ; echo $? Segmentation fault 139 Which is resulting in a host up message. Do you have any idea why this would occur on a seemingly random basis? I also manually ran the command for other servers, which also resulted in the same output. Thanks Mike -- Mike Linden http://linden.linuxps.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Fri Mar 17 17:29:28 2006 From: marc at ena.com (Marc Powell) Date: Fri, 17 Mar 2006 10:29:28 -0600 Subject: phantom host up messages Message-ID: > -----Original Message----- > From: Mike Linden [mailto:stanglinden at gmail.com] > Sent: Friday, March 17, 2006 8:37 AM > To: Marc Powell > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] phantom host up messages > > > > On 3/16/06, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios- > users- > > admin at lists.sourceforge.net] On Behalf Of Mike Linden > > Sent: Thursday, March 16, 2006 8:08 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] phantom host up messages > > > > Hi, > > I have a couple systems that have been unplugged and removed from > the > rack > > ,yet Nagios still reports a Host UP alert for them from the > check_ping > > process. > > How is this possible? > > > > The plugin/command you are using to check the host is providing no > command line output but is still exiting with a code of 0 > (successful). > Try running the check_command, as the nagios user, exactly as it's > defined, from the command line and then 'echo $?'. The results of > the > echo for a down host should be '2'. Chances are you're going to see > some > additional error output from ping/check_ping. > > Marc, > indeed there are other issues here. > The check_ping is seg faulting with an error code of 139 > > ./check_ping -H csep0602 -w 100.0,20% -c 500.0,60% ; echo $? > Segmentation fault > 139 > > Which is resulting in a host up message. > Do you have any idea why this would occur on a seemingly random basis? I > also manually ran the command for other servers, which also resulted in > the same output. I sure don't. Are you running the latest version of the plugins? What OS are you running on? Maybe that'll trigger recall for someone ;) -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From td3201 at gmail.com Fri Mar 17 17:29:37 2006 From: td3201 at gmail.com (Terry) Date: Fri, 17 Mar 2006 10:29:37 -0600 Subject: 2.0 stable stops checking In-Reply-To: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> References: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> Message-ID: <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> I am seeing this as well. I have services that do not get checked when they are scheduled: Last Check Type: ACTIVE Last Check Time: 03-17-2006 08:50:47 Status Data Age: 0d 1h 37m 51s Next Scheduled Active Check: 03-17-2006 10:09:01 Latency: 342.408 seconds Check Duration: 10.015 seconds Last State Change: 03-16-2006 11:55:02 Current State Duration: 0d 22h 33m 36s It is currently 10:29 and it still hasnt been checked. This is one of many examples. On 3/15/06, Matthias Eble wrote: > hi all! > > we are experiencing occassional problems with nagios 2.0 stable. The > main process was reloaded due to configuration changes yesterday (Mar > 14th). since then ps -ef looks like this: > > nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios > -d /opt/nagios/etc/nagios.cfg > nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] > > and nagios stopped to check. Has anyone an idea what could have happened > ? The nagios.log and status.dat files have not been updated since then. > > thanks > matthias > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From estair at ilm.com Fri Mar 17 19:56:45 2006 From: estair at ilm.com (Eli Stair) Date: Fri, 17 Mar 2006 10:56:45 -0800 Subject: 2.0 stable stops checking In-Reply-To: <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> References: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> Message-ID: <441B066D.5000303@ilm.com> I've been seeing this continuously in 2.0beta/rc/releases. For details on my situation/posts check the devel/users archives, I'm curious if any similarities exist. I haven't gotten acknowledgement/resolution on this either, the only thing I've determined is that (in my case) stopping nagios and restarting with the retention file zeroed resolves the issue 100%. In the case of having an extra nagios process running that can definitely cause this and other issues. In my case that's never been present and thus not the cause... /eli Terry wrote: > I am seeing this as well. I have services that do not get checked > when they are scheduled: > > Last Check Type: ACTIVE > Last Check Time: 03-17-2006 08:50:47 > Status Data Age: 0d 1h 37m 51s > Next Scheduled Active Check: 03-17-2006 10:09:01 > Latency: 342.408 seconds > Check Duration: 10.015 seconds > Last State Change: 03-16-2006 11:55:02 > Current State Duration: 0d 22h 33m 36s > > It is currently 10:29 and it still hasnt been checked. This is one of > many examples. > > On 3/15/06, Matthias Eble > wrote: > >>hi all! >> >>we are experiencing occassional problems with nagios 2.0 stable. The >>main process was reloaded due to configuration changes yesterday (Mar >>14th). since then ps -ef looks like this: >> >>nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios >>-d /opt/nagios/etc/nagios.cfg >>nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] >> >>and nagios stopped to check. Has anyone an idea what could have happened >>? The nagios.log and status.dat files have not been updated since then. >> >>thanks >>matthias >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>that extends applications into web and mobile media. Attend the live webcast >>and join the prime developer group breaking into this new coding territory! >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From td3201 at gmail.com Fri Mar 17 20:22:30 2006 From: td3201 at gmail.com (Terry) Date: Fri, 17 Mar 2006 13:22:30 -0600 Subject: 2.0 stable stops checking In-Reply-To: <441B066D.5000303@ilm.com> References: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> <441B066D.5000303@ilm.com> Message-ID: <8ee061010603171122w2bdcceaema88edf7d99c2e4bd@mail.gmail.com> In just looking at the logs, the status.log is being continuously updated as normal but when checks stop, the nagios.log stops gathering entries as well. On 3/17/06, Eli Stair wrote: > > I've been seeing this continuously in 2.0beta/rc/releases. For details > on my situation/posts check the devel/users archives, I'm curious if any > similarities exist. I haven't gotten acknowledgement/resolution on this > either, the only thing I've determined is that (in my case) stopping > nagios and restarting with the retention file zeroed resolves the issue > 100%. > > In the case of having an extra nagios process running that can > definitely cause this and other issues. In my case that's never been > present and thus not the cause... > > /eli > > Terry wrote: > > I am seeing this as well. I have services that do not get checked > > when they are scheduled: > > > > Last Check Type: ACTIVE > > Last Check Time: 03-17-2006 08:50:47 > > Status Data Age: 0d 1h 37m 51s > > Next Scheduled Active Check: 03-17-2006 10:09:01 > > Latency: 342.408 seconds > > Check Duration: 10.015 seconds > > Last State Change: 03-16-2006 11:55:02 > > Current State Duration: 0d 22h 33m 36s > > > > It is currently 10:29 and it still hasnt been checked. This is one of > > many examples. > > > > On 3/15/06, Matthias Eble > > wrote: > > > >>hi all! > >> > >>we are experiencing occassional problems with nagios 2.0 stable. The > >>main process was reloaded due to configuration changes yesterday (Mar > >>14th). since then ps -ef looks like this: > >> > >>nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios > >>-d /opt/nagios/etc/nagios.cfg > >>nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] > >> > >>and nagios stopped to check. Has anyone an idea what could have happened > >>? The nagios.log and status.dat files have not been updated since then. > >> > >>thanks > >>matthias > >> > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >>that extends applications into web and mobile media. Attend the live webcast > >>and join the prime developer group breaking into this new coding territory! > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >>::: Messages without supporting info will risk being sent to /dev/null > >> > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > > that extends applications into web and mobile media. Attend the live webcast > > and join the prime developer group breaking into this new coding territory! > > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From estair at ilm.com Fri Mar 17 20:34:21 2006 From: estair at ilm.com (Eli Stair) Date: Fri, 17 Mar 2006 11:34:21 -0800 Subject: 2.0 stable stops checking In-Reply-To: <8ee061010603171122w2bdcceaema88edf7d99c2e4bd@mail.gmail.com> References: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> <441B066D.5000303@ilm.com> <8ee061010603171122w2bdcceaema88edf7d99c2e4bd@mail.gmail.com> Message-ID: <441B0F3D.9080206@ilm.com> So you're seeing the scenario where nagios stops _all_ checks altogether? I've had this happen when the nagios parent process dies, and logs to nagios.log to this effect "[1139362901] Caught SIGSEGV, shutting down... ". I was getting these very frequently when I went above some apparent host/service threshhold (went away when I removed about 128 nodes at one point recently). In these cases the CGI's still respond for some reason, which seemed inappropriate... I've also seen the same symptom, but without a well-advertised nagios failure, where the process is still present in memory but checks aren't executed and the CGI's are functional. The third related (and my current bane...) issue is where MOST all checks occur, but some (sometimes large) groups of unrelated actions no longer occur. Host/service checks as a whole seem to be working, but I'll notice that I haven't gotten an alert for something that failed, and then see that whole class of service checks on one hostgroup aren't running anymore... and then start to see the same issue with other checks/actions as well. I'd sure love to just have nagios start working again, as I'm strongly against having to write an external framework for checking various parts of Nagios and alerrt me when it's broken! Alternately, I've always kept up to date on other OS monitor/alert frameworks and still nothing is as extensible as Nagios is (yet). /eli Terry wrote: > In just looking at the logs, the status.log is being continuously > updated as normal but when checks stop, the nagios.log stops gathering > entries as well. > > On 3/17/06, Eli Stair wrote: > >>I've been seeing this continuously in 2.0beta/rc/releases. For details >>on my situation/posts check the devel/users archives, I'm curious if any >>similarities exist. I haven't gotten acknowledgement/resolution on this >>either, the only thing I've determined is that (in my case) stopping >>nagios and restarting with the retention file zeroed resolves the issue >>100%. >> >>In the case of having an extra nagios process running that can >>definitely cause this and other issues. In my case that's never been >>present and thus not the cause... >> >>/eli >> >>Terry wrote: >> >>>I am seeing this as well. I have services that do not get checked >>>when they are scheduled: >>> >>>Last Check Type: ACTIVE >>>Last Check Time: 03-17-2006 08:50:47 >>>Status Data Age: 0d 1h 37m 51s >>>Next Scheduled Active Check: 03-17-2006 10:09:01 >>>Latency: 342.408 seconds >>>Check Duration: 10.015 seconds >>>Last State Change: 03-16-2006 11:55:02 >>>Current State Duration: 0d 22h 33m 36s >>> >>>It is currently 10:29 and it still hasnt been checked. This is one of >>>many examples. >>> >>>On 3/15/06, Matthias Eble >>> wrote: >>> >>> >>>>hi all! >>>> >>>>we are experiencing occassional problems with nagios 2.0 stable. The >>>>main process was reloaded due to configuration changes yesterday (Mar >>>>14th). since then ps -ef looks like this: >>>> >>>>nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios >>>>-d /opt/nagios/etc/nagios.cfg >>>>nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] >>>> >>>>and nagios stopped to check. Has anyone an idea what could have happened >>>>? The nagios.log and status.dat files have not been updated since then. >>>> >>>>thanks >>>>matthias >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>>that extends applications into web and mobile media. Attend the live webcast >>>>and join the prime developer group breaking into this new coding territory! >>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>>::: Messages without supporting info will risk being sent to /dev/null >>>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>that extends applications into web and mobile media. Attend the live webcast >>>and join the prime developer group breaking into this new coding territory! >>>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>::: Messages without supporting info will risk being sent to /dev/null >>> >> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mhennessy at cloud9.net Fri Mar 17 20:37:39 2006 From: mhennessy at cloud9.net (Mark Hennessy) Date: Fri, 17 Mar 2006 14:37:39 -0500 Subject: "Host assumed to be up" message? Message-ID: I have noticed with Nagios 1.3 and earlier, in "Host Detail" if a host is not checked because its services are all up, "Host assumed to be up" is shown. Now with Nagios 2.0, it shows the last check, and lots of those check dates can of course get to be very old. My Nagios users who watch this page are nervous at seeing such an old last check. I need to do one of the following: 1. Restore the old behavior of masking that date if the host is still up and we know this by virtue of the service checks being successful. This may be perhaps done by putting the last successful service check date in that field? 2. Make Nagios check the hosts anyway even if all of the services are working so that date increments. Any ideas? -- Mark Hennessy ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From td3201 at gmail.com Fri Mar 17 20:39:59 2006 From: td3201 at gmail.com (Terry) Date: Fri, 17 Mar 2006 13:39:59 -0600 Subject: 2.0 stable stops checking In-Reply-To: <441B0F3D.9080206@ilm.com> References: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> <441B066D.5000303@ilm.com> <8ee061010603171122w2bdcceaema88edf7d99c2e4bd@mail.gmail.com> <441B0F3D.9080206@ilm.com> Message-ID: <8ee061010603171139h29235dd8x4c34607779844f3b@mail.gmail.com> No, not all checks. I see check_ping processes still firing up: [root at plaut08 etc]# ps xauwwww -H| grep nagios | grep -v grep nagios 26676 11.0 0.1 28620 3852 ? Ssl 13:35 0:11 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 26814 0.0 0.1 28624 3852 ? S 13:36 0:00 /usr/bin/nagios -d /etc/nagios/nagios.cfg nagios 26815 0.0 0.0 4684 640 ? S 13:36 0:00 /usr/lib/nagios/plugins/check_ping -H 172.28.7.59 -w 3000.0,80%% -c 5000.0,100%% -p 15 -t 30 nagios 26816 0.0 0.0 2580 528 ? S 13:36 0:00 /bin/ping -n -U -w 90 -c 15 172.28.7.59 I am seeing the same thing as you where only certain hosts/hostgroups are being checked and then all of a sudden everything stops BUT pings based on above but those checks are not being updated in nagios.log. Very weird. On 3/17/06, Eli Stair wrote: > > So you're seeing the scenario where nagios stops _all_ checks > altogether? I've had this happen when the nagios parent process dies, > and logs to nagios.log to this effect "[1139362901] Caught SIGSEGV, > shutting down... ". I was getting these very frequently when I went > above some apparent host/service threshhold (went away when I removed > about 128 nodes at one point recently). In these cases the CGI's still > respond for some reason, which seemed inappropriate... > > I've also seen the same symptom, but without a well-advertised nagios > failure, where the process is still present in memory but checks aren't > executed and the CGI's are functional. > > The third related (and my current bane...) issue is where MOST all > checks occur, but some (sometimes large) groups of unrelated actions no > longer occur. Host/service checks as a whole seem to be working, but > I'll notice that I haven't gotten an alert for something that failed, > and then see that whole class of service checks on one hostgroup aren't > running anymore... and then start to see the same issue with other > checks/actions as well. > > I'd sure love to just have nagios start working again, as I'm strongly > against having to write an external framework for checking various parts > of Nagios and alerrt me when it's broken! Alternately, I've always kept > up to date on other OS monitor/alert frameworks and still nothing is as > extensible as Nagios is (yet). > > /eli > > > Terry wrote: > > In just looking at the logs, the status.log is being continuously > > updated as normal but when checks stop, the nagios.log stops gathering > > entries as well. > > > > On 3/17/06, Eli Stair wrote: > > > >>I've been seeing this continuously in 2.0beta/rc/releases. For details > >>on my situation/posts check the devel/users archives, I'm curious if any > >>similarities exist. I haven't gotten acknowledgement/resolution on this > >>either, the only thing I've determined is that (in my case) stopping > >>nagios and restarting with the retention file zeroed resolves the issue > >>100%. > >> > >>In the case of having an extra nagios process running that can > >>definitely cause this and other issues. In my case that's never been > >>present and thus not the cause... > >> > >>/eli > >> > >>Terry wrote: > >> > >>>I am seeing this as well. I have services that do not get checked > >>>when they are scheduled: > >>> > >>>Last Check Type: ACTIVE > >>>Last Check Time: 03-17-2006 08:50:47 > >>>Status Data Age: 0d 1h 37m 51s > >>>Next Scheduled Active Check: 03-17-2006 10:09:01 > >>>Latency: 342.408 seconds > >>>Check Duration: 10.015 seconds > >>>Last State Change: 03-16-2006 11:55:02 > >>>Current State Duration: 0d 22h 33m 36s > >>> > >>>It is currently 10:29 and it still hasnt been checked. This is one of > >>>many examples. > >>> > >>>On 3/15/06, Matthias Eble > >>> wrote: > >>> > >>> > >>>>hi all! > >>>> > >>>>we are experiencing occassional problems with nagios 2.0 stable. The > >>>>main process was reloaded due to configuration changes yesterday (Mar > >>>>14th). since then ps -ef looks like this: > >>>> > >>>>nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios > >>>>-d /opt/nagios/etc/nagios.cfg > >>>>nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] > >>>> > >>>>and nagios stopped to check. Has anyone an idea what could have happened > >>>>? The nagios.log and status.dat files have not been updated since then. > >>>> > >>>>thanks > >>>>matthias > >>>> > >>>> > >>>> > >>>>------------------------------------------------------- > >>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >>>>that extends applications into web and mobile media. Attend the live webcast > >>>>and join the prime developer group breaking into this new coding territory! > >>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >>>>_______________________________________________ > >>>>Nagios-users mailing list > >>>>Nagios-users at lists.sourceforge.net > >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >>>>::: Messages without supporting info will risk being sent to /dev/null > >>>> > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >>>that extends applications into web and mobile media. Attend the live webcast > >>>and join the prime developer group breaking into this new coding territory! > >>>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > >>>_______________________________________________ > >>>Nagios-users mailing list > >>>Nagios-users at lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >>>::: Messages without supporting info will risk being sent to /dev/null > >>> > >> > >> > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > > that extends applications into web and mobile media. Attend the live webcast > > and join the prime developer group breaking into this new coding territory! > > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From estair at ilm.com Fri Mar 17 21:00:28 2006 From: estair at ilm.com (Eli Stair) Date: Fri, 17 Mar 2006 12:00:28 -0800 Subject: 2.0 stable stops checking In-Reply-To: <8ee061010603171139h29235dd8x4c34607779844f3b@mail.gmail.com> References: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> <441B066D.5000303@ilm.com> <8ee061010603171122w2bdcceaema88edf7d99c2e4bd@mail.gmail.com> <441B0F3D.9080206@ilm.com> <8ee061010603171139h29235dd8x4c34607779844f3b@mail.gmail.com> Message-ID: <441B155C.10406@ilm.com> Are you in a position to stop services for a minute and check starting up again with the retention.dat file moved out of the way? If you're hesitant you may want to start up another instance of Nagios in parallel for testing it and such. That's sane, but I've proven to myself enough that this is always the case (in _my_ _current_ instance) and just have to do it on the production system when I catch it. I'm real curious to find out if this is the same exact issue/resolution that works for you as well. /eli Terry wrote: > No, not all checks. I see check_ping processes still firing up: > > [root at plaut08 etc]# ps xauwwww -H| grep nagios | grep -v grep > nagios 26676 11.0 0.1 28620 3852 ? Ssl 13:35 0:11 > /usr/bin/nagios -d /etc/nagios/nagios.cfg > nagios 26814 0.0 0.1 28624 3852 ? S 13:36 0:00 > /usr/bin/nagios -d /etc/nagios/nagios.cfg > nagios 26815 0.0 0.0 4684 640 ? S 13:36 0:00 > /usr/lib/nagios/plugins/check_ping -H 172.28.7.59 -w 3000.0,80%% -c > 5000.0,100%% -p 15 -t 30 > nagios 26816 0.0 0.0 2580 528 ? S 13:36 0:00 > /bin/ping -n -U -w 90 -c 15 172.28.7.59 > > > I am seeing the same thing as you where only certain hosts/hostgroups > are being checked and then all of a sudden everything stops BUT pings > based on above but those checks are not being updated in nagios.log. > Very weird. > > On 3/17/06, Eli Stair wrote: > >>So you're seeing the scenario where nagios stops _all_ checks >>altogether? I've had this happen when the nagios parent process dies, >>and logs to nagios.log to this effect "[1139362901] Caught SIGSEGV, >>shutting down... ". I was getting these very frequently when I went >>above some apparent host/service threshhold (went away when I removed >>about 128 nodes at one point recently). In these cases the CGI's still >>respond for some reason, which seemed inappropriate... >> >>I've also seen the same symptom, but without a well-advertised nagios >>failure, where the process is still present in memory but checks aren't >>executed and the CGI's are functional. >> >>The third related (and my current bane...) issue is where MOST all >>checks occur, but some (sometimes large) groups of unrelated actions no >>longer occur. Host/service checks as a whole seem to be working, but >>I'll notice that I haven't gotten an alert for something that failed, >>and then see that whole class of service checks on one hostgroup aren't >>running anymore... and then start to see the same issue with other >>checks/actions as well. >> >>I'd sure love to just have nagios start working again, as I'm strongly >>against having to write an external framework for checking various parts >>of Nagios and alerrt me when it's broken! Alternately, I've always kept >>up to date on other OS monitor/alert frameworks and still nothing is as >>extensible as Nagios is (yet). >> >>/eli >> >> >>Terry wrote: >> >>>In just looking at the logs, the status.log is being continuously >>>updated as normal but when checks stop, the nagios.log stops gathering >>>entries as well. >>> >>>On 3/17/06, Eli Stair wrote: >>> >>> >>>>I've been seeing this continuously in 2.0beta/rc/releases. For details >>>>on my situation/posts check the devel/users archives, I'm curious if any >>>>similarities exist. I haven't gotten acknowledgement/resolution on this >>>>either, the only thing I've determined is that (in my case) stopping >>>>nagios and restarting with the retention file zeroed resolves the issue >>>>100%. >>>> >>>>In the case of having an extra nagios process running that can >>>>definitely cause this and other issues. In my case that's never been >>>>present and thus not the cause... >>>> >>>>/eli >>>> >>>>Terry wrote: >>>> >>>> >>>>>I am seeing this as well. I have services that do not get checked >>>>>when they are scheduled: >>>>> >>>>>Last Check Type: ACTIVE >>>>>Last Check Time: 03-17-2006 08:50:47 >>>>>Status Data Age: 0d 1h 37m 51s >>>>>Next Scheduled Active Check: 03-17-2006 10:09:01 >>>>>Latency: 342.408 seconds >>>>>Check Duration: 10.015 seconds >>>>>Last State Change: 03-16-2006 11:55:02 >>>>>Current State Duration: 0d 22h 33m 36s >>>>> >>>>>It is currently 10:29 and it still hasnt been checked. This is one of >>>>>many examples. >>>>> >>>>>On 3/15/06, Matthias Eble >>>>> wrote: >>>>> >>>>> >>>>> >>>>>>hi all! >>>>>> >>>>>>we are experiencing occassional problems with nagios 2.0 stable. The >>>>>>main process was reloaded due to configuration changes yesterday (Mar >>>>>>14th). since then ps -ef looks like this: >>>>>> >>>>>>nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios >>>>>>-d /opt/nagios/etc/nagios.cfg >>>>>>nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] >>>>>> >>>>>>and nagios stopped to check. Has anyone an idea what could have happened >>>>>>? The nagios.log and status.dat files have not been updated since then. >>>>>> >>>>>>thanks >>>>>>matthias >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>>>>that extends applications into web and mobile media. Attend the live webcast >>>>>>and join the prime developer group breaking into this new coding territory! >>>>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>>>>::: Messages without supporting info will risk being sent to /dev/null >>>>>> >>>>> >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>>>that extends applications into web and mobile media. Attend the live webcast >>>>>and join the prime developer group breaking into this new coding territory! >>>>>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>>>::: Messages without supporting info will risk being sent to /dev/null >>>>> >>>> >>>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>that extends applications into web and mobile media. Attend the live webcast >>>and join the prime developer group breaking into this new coding territory! >>>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>::: Messages without supporting info will risk being sent to /dev/null >>> >> >> > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From td3201 at gmail.com Fri Mar 17 21:09:18 2006 From: td3201 at gmail.com (Terry) Date: Fri, 17 Mar 2006 14:09:18 -0600 Subject: 2.0 stable stops checking In-Reply-To: <441B155C.10406@ilm.com> References: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> <441B066D.5000303@ilm.com> <8ee061010603171122w2bdcceaema88edf7d99c2e4bd@mail.gmail.com> <441B0F3D.9080206@ilm.com> <8ee061010603171139h29235dd8x4c34607779844f3b@mail.gmail.com> <441B155C.10406@ilm.com> Message-ID: <8ee061010603171209j36355d43s731f7066f2920d2a@mail.gmail.com> Ya, I have tried that. The nagios.log is not being updated with everything. I have a ton of INITIAL STATE messages in there from the start but after that there are only 2 service checks in there but my status page says I have 29 OK services with 424 pending. Huge inconsistencies. After all is said and done, all I see in the process list ever are check_ping's for ONLY hosts in 1 hostgroup. Weird. On 3/17/06, Eli Stair wrote: > > Are you in a position to stop services for a minute and check starting > up again with the retention.dat file moved out of the way? If you're > hesitant you may want to start up another instance of Nagios in parallel > for testing it and such. That's sane, but I've proven to myself enough > that this is always the case (in _my_ _current_ instance) and just have > to do it on the production system when I catch it. > > I'm real curious to find out if this is the same exact issue/resolution > that works for you as well. > > /eli > > Terry wrote: > > No, not all checks. I see check_ping processes still firing up: > > > > [root at plaut08 etc]# ps xauwwww -H| grep nagios | grep -v grep > > nagios 26676 11.0 0.1 28620 3852 ? Ssl 13:35 0:11 > > /usr/bin/nagios -d /etc/nagios/nagios.cfg > > nagios 26814 0.0 0.1 28624 3852 ? S 13:36 0:00 > > /usr/bin/nagios -d /etc/nagios/nagios.cfg > > nagios 26815 0.0 0.0 4684 640 ? S 13:36 0:00 > > /usr/lib/nagios/plugins/check_ping -H 172.28.7.59 -w 3000.0,80%% -c > > 5000.0,100%% -p 15 -t 30 > > nagios 26816 0.0 0.0 2580 528 ? S 13:36 0:00 > > /bin/ping -n -U -w 90 -c 15 172.28.7.59 > > > > > > I am seeing the same thing as you where only certain hosts/hostgroups > > are being checked and then all of a sudden everything stops BUT pings > > based on above but those checks are not being updated in nagios.log. > > Very weird. > > > > On 3/17/06, Eli Stair wrote: > > > >>So you're seeing the scenario where nagios stops _all_ checks > >>altogether? I've had this happen when the nagios parent process dies, > >>and logs to nagios.log to this effect "[1139362901] Caught SIGSEGV, > >>shutting down... ". I was getting these very frequently when I went > >>above some apparent host/service threshhold (went away when I removed > >>about 128 nodes at one point recently). In these cases the CGI's still > >>respond for some reason, which seemed inappropriate... > >> > >>I've also seen the same symptom, but without a well-advertised nagios > >>failure, where the process is still present in memory but checks aren't > >>executed and the CGI's are functional. > >> > >>The third related (and my current bane...) issue is where MOST all > >>checks occur, but some (sometimes large) groups of unrelated actions no > >>longer occur. Host/service checks as a whole seem to be working, but > >>I'll notice that I haven't gotten an alert for something that failed, > >>and then see that whole class of service checks on one hostgroup aren't > >>running anymore... and then start to see the same issue with other > >>checks/actions as well. > >> > >>I'd sure love to just have nagios start working again, as I'm strongly > >>against having to write an external framework for checking various parts > >>of Nagios and alerrt me when it's broken! Alternately, I've always kept > >>up to date on other OS monitor/alert frameworks and still nothing is as > >>extensible as Nagios is (yet). > >> > >>/eli > >> > >> > >>Terry wrote: > >> > >>>In just looking at the logs, the status.log is being continuously > >>>updated as normal but when checks stop, the nagios.log stops gathering > >>>entries as well. > >>> > >>>On 3/17/06, Eli Stair wrote: > >>> > >>> > >>>>I've been seeing this continuously in 2.0beta/rc/releases. For details > >>>>on my situation/posts check the devel/users archives, I'm curious if any > >>>>similarities exist. I haven't gotten acknowledgement/resolution on this > >>>>either, the only thing I've determined is that (in my case) stopping > >>>>nagios and restarting with the retention file zeroed resolves the issue > >>>>100%. > >>>> > >>>>In the case of having an extra nagios process running that can > >>>>definitely cause this and other issues. In my case that's never been > >>>>present and thus not the cause... > >>>> > >>>>/eli > >>>> > >>>>Terry wrote: > >>>> > >>>> > >>>>>I am seeing this as well. I have services that do not get checked > >>>>>when they are scheduled: > >>>>> > >>>>>Last Check Type: ACTIVE > >>>>>Last Check Time: 03-17-2006 08:50:47 > >>>>>Status Data Age: 0d 1h 37m 51s > >>>>>Next Scheduled Active Check: 03-17-2006 10:09:01 > >>>>>Latency: 342.408 seconds > >>>>>Check Duration: 10.015 seconds > >>>>>Last State Change: 03-16-2006 11:55:02 > >>>>>Current State Duration: 0d 22h 33m 36s > >>>>> > >>>>>It is currently 10:29 and it still hasnt been checked. This is one of > >>>>>many examples. > >>>>> > >>>>>On 3/15/06, Matthias Eble > >>>>> wrote: > >>>>> > >>>>> > >>>>> > >>>>>>hi all! > >>>>>> > >>>>>>we are experiencing occassional problems with nagios 2.0 stable. The > >>>>>>main process was reloaded due to configuration changes yesterday (Mar > >>>>>>14th). since then ps -ef looks like this: > >>>>>> > >>>>>>nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios > >>>>>>-d /opt/nagios/etc/nagios.cfg > >>>>>>nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] > >>>>>> > >>>>>>and nagios stopped to check. Has anyone an idea what could have happened > >>>>>>? The nagios.log and status.dat files have not been updated since then. > >>>>>> > >>>>>>thanks > >>>>>>matthias > >>>>>> > >>>>>> > >>>>>> > >>>>>>------------------------------------------------------- > >>>>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >>>>>>that extends applications into web and mobile media. Attend the live webcast > >>>>>>and join the prime developer group breaking into this new coding territory! > >>>>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > >>>>>>_______________________________________________ > >>>>>>Nagios-users mailing list > >>>>>>Nagios-users at lists.sourceforge.net > >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >>>>>>::: Messages without supporting info will risk being sent to /dev/null > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>>------------------------------------------------------- > >>>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >>>>>that extends applications into web and mobile media. Attend the live webcast > >>>>>and join the prime developer group breaking into this new coding territory! > >>>>>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > >>>>>_______________________________________________ > >>>>>Nagios-users mailing list > >>>>>Nagios-users at lists.sourceforge.net > >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >>>>>::: Messages without supporting info will risk being sent to /dev/null > >>>>> > >>>> > >>>> > >>> > >>>------------------------------------------------------- > >>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language > >>>that extends applications into web and mobile media. Attend the live webcast > >>>and join the prime developer group breaking into this new coding territory! > >>>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > >>>_______________________________________________ > >>>Nagios-users mailing list > >>>Nagios-users at lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >>>::: Messages without supporting info will risk being sent to /dev/null > >>> > >> > >> > > > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rouilj at cs.umb.edu Fri Mar 17 21:40:48 2006 From: rouilj at cs.umb.edu (John P. Rouillard) Date: Fri, 17 Mar 2006 15:40:48 -0500 Subject: 2.0 stable stops checking In-Reply-To: Your message of "Fri, 17 Mar 2006 11:34:21 PST." <441B0F3D.9080206@ilm.com> References: <441B0F3D.9080206@ilm.com> Message-ID: <200603172040.k2HKemLR023620@mx1.cs.umb.edu> In message <441B0F3D.9080206 at ilm.com>, Eli Stair writes: >So you're seeing the scenario where nagios stops _all_ checks >altogether? I've had this happen when the nagios parent process dies, >and logs to nagios.log to this effect "[1139362901] Caught SIGSEGV, >shutting down... ". I was getting these very frequently when I went >above some apparent host/service threshhold (went away when I removed >about 128 nodes at one point recently). In these cases the CGI's still >respond for some reason, which seemed inappropriate... > >I've also seen the same symptom, but without a well-advertised nagios >failure, where the process is still present in memory but checks aren't >executed and the CGI's are functional. As long as one of the files (forget which one maybe object.dat) exists. The cgi's don't know that nagios has died. The startup rc script clears out the the files when it is shut down so a crash on restart should prevent the CGI's from running but that's it. I modified my version of the script to delete the files before it starts the daemon so a nagios or system crash followed by a "nagios start" (without a "nagios stop") followed by a crash will cause the CGI commands to error out. I tried to create some patches for the cgi's that required the datestamp in the file to be "current", but there is no standard interval for the file to be refreshed. It depends on the polling intervals of services etc so I gave up on that. You can find my ideas in the ML archives if you want. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From estair at ilm.com Fri Mar 17 22:26:05 2006 From: estair at ilm.com (Eli Stair) Date: Fri, 17 Mar 2006 13:26:05 -0800 Subject: 2.0 stable stops checking In-Reply-To: <8ee061010603171209j36355d43s731f7066f2920d2a@mail.gmail.com> References: <4417E5B4.4070801@mailing.kaufland-informationssysteme.com> <8ee061010603170829y2bd8b610p5392765c43fd477b@mail.gmail.com> <441B066D.5000303@ilm.com> <8ee061010603171122w2bdcceaema88edf7d99c2e4bd@mail.gmail.com> <441B0F3D.9080206@ilm.com> <8ee061010603171139h29235dd8x4c34607779844f3b@mail.gmail.com> <441B155C.10406@ilm.com> <8ee061010603171209j36355d43s731f7066f2920d2a@mail.gmail.com> Message-ID: <441B296D.1060902@ilm.com> FYI, my current config. I'm also running Ganglia (gmetad), Cacti (cactid), and a number of other checks/scripts/processes concurrently ( as well as the apache frontend for them). I'm not seeing _any_ issues with other processes on this system. /eli ### Current errors: In addition to unannounced failures of services: status.cgi[32625]: segfault at 0000002a95c8b000 rip 00000036467716e0 rsp 0000007fbffff148 error 4 extinfo.cgi[28957]: segfault at 0000002a95d45000 rip 00000036467716e0 rsp 0000007fbfffecd8 error 4 extinfo.cgi[5263]: segfault at 0000002a956c9000 rip 00000036467716e0 rsp 0000007fbfffed38 error 4 ### System specs: RHEL4.2 x86_64 8GB RAM 2x Opteron 280 GCC 3.4.4 Apache2.0.52 (quite unloaded: free -m: -/+ buffers/cache: 1544 6438 cat /proc/loadavg 1.19 1.22 1.17 1/309 8806 ) ### Config command (compiled native 64-bit): $ ./configure --prefix=/usr/local/nagios --with-nagios-user=root --with-nagios-group=root ## --------- ## ## Platform. ## ## --------- ## hostname = monitor02.lucasfilm.com uname -m = x86_64 uname -r = 2.6.9-22.0.1.ELsmp uname -s = Linux uname -v = #1 SMP Thu Oct 27 14:49:37 CDT 2005 ### Nagios output: ../bin/nagios -v nagios.cfg Nagios 2.0 Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last Modified: 02-07-2006 License: GPL Reading configuration data... Running pre-flight check on configuration data... Warning: Size of service_message struct (528 bytes) is > POSIX-guaranteed atomic write size (512 bytes). Service checks results may get lost or mangled! Checking services... Checked 7397 services. Checking hosts... Checked 754 hosts. Checking host groups... Checked 14 host groups. Checking service groups... Checked 5 service groups. Checking contacts... Checked 6 contacts. Checking contact groups... Warning: Contact group 'swat' is not used in any host/service definitions or host/service escalations! Checked 4 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 6454 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 47 commands. Checking time periods... Checked 4 time periods. Checking extended host info definitions... Checked 461 extended host info definitions. Checking extended service info definitions... Checked 0 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 2 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check Terry wrote: > Ya, I have tried that. The nagios.log is not being updated with > everything. I have a ton of INITIAL STATE messages in there from the > start but after that there are only 2 service checks in there but my > status page says I have 29 OK services with 424 pending. Huge > inconsistencies. > > After all is said and done, all I see in the process list ever are > check_ping's for ONLY hosts in 1 hostgroup. Weird. > > > On 3/17/06, Eli Stair wrote: > >>Are you in a position to stop services for a minute and check starting >>up again with the retention.dat file moved out of the way? If you're >>hesitant you may want to start up another instance of Nagios in parallel >>for testing it and such. That's sane, but I've proven to myself enough >>that this is always the case (in _my_ _current_ instance) and just have >>to do it on the production system when I catch it. >> >>I'm real curious to find out if this is the same exact issue/resolution >>that works for you as well. >> >>/eli >> >>Terry wrote: >> >>>No, not all checks. I see check_ping processes still firing up: >>> >>>[root at plaut08 etc]# ps xauwwww -H| grep nagios | grep -v grep >>>nagios 26676 11.0 0.1 28620 3852 ? Ssl 13:35 0:11 >>>/usr/bin/nagios -d /etc/nagios/nagios.cfg >>>nagios 26814 0.0 0.1 28624 3852 ? S 13:36 0:00 >>>/usr/bin/nagios -d /etc/nagios/nagios.cfg >>>nagios 26815 0.0 0.0 4684 640 ? S 13:36 0:00 >>>/usr/lib/nagios/plugins/check_ping -H 172.28.7.59 -w 3000.0,80%% -c >>>5000.0,100%% -p 15 -t 30 >>>nagios 26816 0.0 0.0 2580 528 ? S 13:36 0:00 >>>/bin/ping -n -U -w 90 -c 15 172.28.7.59 >>> >>> >>>I am seeing the same thing as you where only certain hosts/hostgroups >>>are being checked and then all of a sudden everything stops BUT pings >>>based on above but those checks are not being updated in nagios.log. >>>Very weird. >>> >>>On 3/17/06, Eli Stair wrote: >>> >>> >>>>So you're seeing the scenario where nagios stops _all_ checks >>>>altogether? I've had this happen when the nagios parent process dies, >>>>and logs to nagios.log to this effect "[1139362901] Caught SIGSEGV, >>>>shutting down... ". I was getting these very frequently when I went >>>>above some apparent host/service threshhold (went away when I removed >>>>about 128 nodes at one point recently). In these cases the CGI's still >>>>respond for some reason, which seemed inappropriate... >>>> >>>>I've also seen the same symptom, but without a well-advertised nagios >>>>failure, where the process is still present in memory but checks aren't >>>>executed and the CGI's are functional. >>>> >>>>The third related (and my current bane...) issue is where MOST all >>>>checks occur, but some (sometimes large) groups of unrelated actions no >>>>longer occur. Host/service checks as a whole seem to be working, but >>>>I'll notice that I haven't gotten an alert for something that failed, >>>>and then see that whole class of service checks on one hostgroup aren't >>>>running anymore... and then start to see the same issue with other >>>>checks/actions as well. >>>> >>>>I'd sure love to just have nagios start working again, as I'm strongly >>>>against having to write an external framework for checking various parts >>>>of Nagios and alerrt me when it's broken! Alternately, I've always kept >>>>up to date on other OS monitor/alert frameworks and still nothing is as >>>>extensible as Nagios is (yet). >>>> >>>>/eli >>>> >>>> >>>>Terry wrote: >>>> >>>> >>>>>In just looking at the logs, the status.log is being continuously >>>>>updated as normal but when checks stop, the nagios.log stops gathering >>>>>entries as well. >>>>> >>>>>On 3/17/06, Eli Stair wrote: >>>>> >>>>> >>>>> >>>>>>I've been seeing this continuously in 2.0beta/rc/releases. For details >>>>>>on my situation/posts check the devel/users archives, I'm curious if any >>>>>>similarities exist. I haven't gotten acknowledgement/resolution on this >>>>>>either, the only thing I've determined is that (in my case) stopping >>>>>>nagios and restarting with the retention file zeroed resolves the issue >>>>>>100%. >>>>>> >>>>>>In the case of having an extra nagios process running that can >>>>>>definitely cause this and other issues. In my case that's never been >>>>>>present and thus not the cause... >>>>>> >>>>>>/eli >>>>>> >>>>>>Terry wrote: >>>>>> >>>>>> >>>>>> >>>>>>>I am seeing this as well. I have services that do not get checked >>>>>>>when they are scheduled: >>>>>>> >>>>>>>Last Check Type: ACTIVE >>>>>>>Last Check Time: 03-17-2006 08:50:47 >>>>>>>Status Data Age: 0d 1h 37m 51s >>>>>>>Next Scheduled Active Check: 03-17-2006 10:09:01 >>>>>>>Latency: 342.408 seconds >>>>>>>Check Duration: 10.015 seconds >>>>>>>Last State Change: 03-16-2006 11:55:02 >>>>>>>Current State Duration: 0d 22h 33m 36s >>>>>>> >>>>>>>It is currently 10:29 and it still hasnt been checked. This is one of >>>>>>>many examples. >>>>>>> >>>>>>>On 3/15/06, Matthias Eble >>>>>>> wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>hi all! >>>>>>>> >>>>>>>>we are experiencing occassional problems with nagios 2.0 stable. The >>>>>>>>main process was reloaded due to configuration changes yesterday (Mar >>>>>>>>14th). since then ps -ef looks like this: >>>>>>>> >>>>>>>>nagios 1078 1 12 Mar09 ? 16:49:43 /opt/nagios/bin/nagios >>>>>>>>-d /opt/nagios/etc/nagios.cfg >>>>>>>>nagios 9431 1078 0 Mar14 ? 00:00:00 [nagios] >>>>>>>> >>>>>>>>and nagios stopped to check. Has anyone an idea what could have happened >>>>>>>>? The nagios.log and status.dat files have not been updated since then. >>>>>>>> >>>>>>>>thanks >>>>>>>>matthias >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>------------------------------------------------------- >>>>>>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>>>>>>that extends applications into web and mobile media. Attend the live webcast >>>>>>>>and join the prime developer group breaking into this new coding territory! >>>>>>>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >>>>>>>>_______________________________________________ >>>>>>>>Nagios-users mailing list >>>>>>>>Nagios-users at lists.sourceforge.net >>>>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>>>>>>::: Messages without supporting info will risk being sent to /dev/null >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>------------------------------------------------------- >>>>>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>>>>>that extends applications into web and mobile media. Attend the live webcast >>>>>>>and join the prime developer group breaking into this new coding territory! >>>>>>>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 >>>>>>>_______________________________________________ >>>>>>>Nagios-users mailing list >>>>>>>Nagios-users at lists.sourceforge.net >>>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>>>>>::: Messages without supporting info will risk being sent to /dev/null >>>>>>> >>>>>> >>>>>> >>>>>------------------------------------------------------- >>>>>This SF.Net email is sponsored by xPML, a groundbreaking scripting language >>>>>that extends applications into web and mobile media. Attend the live webcast >>>>>and join the prime developer group breaking into this new coding territory! >>>>>http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>>>::: Messages without supporting info will risk being sent to /dev/null >>>>> >>>> >>>> >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From venugopal.reddy1 at ge.com Sat Mar 18 11:55:43 2006 From: venugopal.reddy1 at ge.com (Reddy, Venugopal (GE Infrastructure, non-ge)) Date: Sat, 18 Mar 2006 16:25:43 +0530 Subject: Nagios-users digest, Vol 1 #3093 - 22 msgs Message-ID: Hi All, Can some body please help me the procedure of uninstalling nagios2.x completely? Thanks Venu -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of nagios-users-request at lists.sourceforge.net Sent: Saturday, March 18, 2006 1:31 AM To: nagios-users at lists.sourceforge.net Subject: Nagios-users digest, Vol 1 #3093 - 22 msgs Send Nagios-users mailing list submissions to nagios-users at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/nagios-users or, via email, send a message with subject or body 'help' to nagios-users-request at lists.sourceforge.net You can reach the person managing the list at nagios-users-admin at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Nagios-users digest..." Today's Topics: 1. Nagios-Report-0.002 on CPAN/NagiosExchange. (Stanley.Hopcroft at Dest.gov.au) 2. Re: where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? (John P. Rouillard) 3. Re: where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? (prosolutions at gmx.net) 4. R: [Nagios-users] Strange situation.. (Marco Borsani) 5. Empty hostgroups (James Fidell) 6. Re: Empty hostgroups (joseph.petrucci at wachovia.com) 7. RE: Empty hostgroups (Deborah Martin) 8. RE: Empty hostgroups (joseph.petrucci at wachovia.com) 9. Re: check_if_by_snmp output (Robert Story) 10. RE: Local host is Down, Couldnotparse arguements (Marc Powell) 11. e-mail acknowledgements (David Schlecht) 12. Re: e-mail acknowledgements (David Schlecht) 13. RE: e-mail acknowledgements (Marc Powell) 14. Re: phantom host up messages (Mike Linden) 15. RE: phantom host up messages (Marc Powell) 16. Re: 2.0 stable stops checking (Terry) 17. Re: 2.0 stable stops checking (Eli Stair) 18. Re: 2.0 stable stops checking (Terry) 19. Re: 2.0 stable stops checking (Eli Stair) 20. "Host assumed to be up" message? (Mark Hennessy) 21. Re: 2.0 stable stops checking (Terry) 22. Re: 2.0 stable stops checking (Eli Stair) --__--__-- Message: 1 Date: Fri, 17 Mar 2006 15:33:54 +1100 From: To: Subject: [Nagios-users] Nagios-Report-0.002 on CPAN/NagiosExchange. Dear Folks, I am writing to say that Nagios::Report 0.002 has been 'released' and is available at the usual places. This relase fixes a bug, and adds limited charting capability and a weaker alternate interface (provided by the Perl DBD::AnyData module) that allows client code to select the report data with SQL (the small subset that AnyData accepts). 0.002 Fri Mar 17 14:44:36 EST 2006 - fix bug in mkreport() processing of MUNGE_CALLBACK (would not change report values). *** This entailed a change _non_ backward compatible change in the MUNGE_CALLBACK interface. *** Client code that calls the alter->() callback _requires_ changing. *** The alter callback is now called with one parm, a ref to a hash of the field values *** indexed by field name. See examples/ for scripts that have been changed. - added to_dbh() method to allow DBD::AnyData provided use of SQL (simple) on report data - added primitive support for chart templates to excel_dump. The workbook written by Spreadsheet::WriteExcel can contain _one_ (1) chart of the availability data. This project does not scale very well. It provides a limited capability to provide a Data source for processing by Reporting tools such as Excel.=20 This module has probably reached the end of development (some may say it would better have not started) apart from bug fixes. If you are serious about reporting look at the DB NEB modules or Steve Shipways stuff on NagiosExchange. This module provides however, a limited capacity to provide reports in the format beloved by PHBs. Yours sincerely. --__--__-- Message: 2 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? Reply-To: rouilj at ieee.org Date: Thu, 16 Mar 2006 23:51:22 -0500 From: "John P. Rouillard" In message <20060317030214.GA10825 at mini.alaya.net>, prosolutions writes: >no. sorry i wasn't clear on this. that is what i see in the log file. >the command that is run is that which is in the script, namely: > >printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;$4;$5;15\n" $now > $commandfile > >this is taken directly from the canonical definition of this command > [...] >i see that this differs from what you claim to have succesfully run (see > below) >> >this should set the check_interval to 15 seconds instead >> >of the default 90 seconds. However, watching the log I see >> >that the checks on the service revert to 90 s. >> >> What are you seeing in the log that makes you think it's >> getting reset? If I use: > >i am watching the log and timing it and watching how frequently the >service checks get run. they run at retry_check_interval up until >max_check_attempts gets reached, then, even though the event handler >runs the script to execute the CHANGE_NORMAL_SVC_CHECK_INTERVAL command, >setting the interval to 15 seconds (same as retry_check_interval), it >does not set (i.e. it reverts back to check_interval (90s) Hmm, I would expect a timeline something like the following: id time state 1 0 poll fails in state soft failure try number 1 (aka soft 1) 2 15s soft alert 2 3 30s soft alert 3 4 45s hard alert (scheduled with 90 seconds because change of check interval hasn't occurred yet) 5 45s+ event handler called generates CHANGE_NORMAL_SVC_CHECK_INTERVAL 6 135s still hard (but now it schedules using the 15 second timeperiod) 7 150s hard 8 165s hard 9 stays with 15 second interval. If you wanted to have the interval between 4 and 6 be something other than 90 seconds you have to generate a SCHEDULE_FORCED_SVC_CHECK for the date "now + 15 seconds" at line 5 in addition to the change in check interval. >> echo "[`date +%s`] CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3" Printf is POSIX standard, but both my command and the printf produce the same output. Try both and see. If you don't understand why they produce the same output, read the man pages and get a book on shell programming. >okay this looks substantially differnt than the cannonical example >above. first off instead of [%lu] following the echo/print, you have >[`date +%s`] also, i don't see > >\n `date +%s` > $commandfile > >at the end of your script. is the date command supposed to go before >and after the command? No. I am just using shell substitution in the quoted string. Functionally they are equivalent. RTFM for bash, echo, printf, date etc.. >> to change the check interval to three minutes, and direct it >> to the command pipe, I see it take effect and stay in >> effect. Looking at the Event Log in the web interface shows: >> >> [03-16-2006 22:54:25] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3 > >yep i see an entry just like this: > >[1142543941] EXTERNAL COMMAND: CHANGE_NORMAL_SVC_CHECK_INTERVAL;test_host;te >st.html;15 > >but alas object.cache shows check_interval to still be 90s Hmm, maybe a bug in 2.0b3? >> When you change the check interval, it doesn't force a >> reschedule of the service with the new interval. > >i'm not sure what you mean here. you mean, even though check_interval >gets changed, that it must somehow be rescheduled before actually taking >effect? Right. The new schedule won't take effect until the currently scheduled poll is run at the original scheduling interval AFAICT. If you want the new interval to take affect immediately you need to force it with a SCHEDULE_FORCED_SVC_CHECK command. >> Also I am using nagios 2.0rc1, so YMMV. >nagios 2.0b3 here. > >thanks much for your help. i will mess around with the command a bit >and if i can get it to work. Good luck. I'd be interested in seeing what finally works. Also you should check the nagios 2.0 release notes between 2.0b3 and 2.0rc1 and see if there is a reference to this problem. -- rouilj John Rouillard ======================================================================== === My employers don't acknowledge my existence much less my opinions. --__--__-- Message: 3 Date: Thu, 16 Mar 2006 23:04:29 -0800 From: prosolutions at gmx.net To: rouilj at ieee.org Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] where to get help with ext. cmd CHANGE_NORMAL_SVC_CHECK_INTERVAL ? Reply-To: prosolutions at gmx.net > > >> echo "[`date +%s`] CHANGE_NORMAL_SVC_CHECK_INTERVAL;tigris;DiskBackupMountCheck;3" > > Printf is POSIX standard, but both my command and the printf produce > the same output. Try both and see. If you don't understand why they > produce the same output, read the man pages and get a book on shell > programming. the issue isn't with the use of printf or echo, but rather the strings which they are printing. also, i know what shell substitution is but am not familiar with the expression [%lu] and had no idea that was equivalent to the output of `date +%s`. what is confusing about your example is that you seem to omit the trailing `date +%s` at the end of your command, as opposed to the provided example: now=`date +%s` commandfile='/usr/local/nagios/var/rw/nagios.cmd' /bin/printf "[%lu] CHANGE_NORMAL_SVC_CHECK_INTERVAL;host1;service1;15\n" $now > $commandfile the $now preceeding the redirection to the command file being equivalent to the string returned by `date +%s` this cannonical example is a bit confusing then: why does it have the date at the beginning, i.e. the first [%lu], and then again at the end with $now ? you seem to omit the second date from your command although in your example you also don't echo a newline nor show the redirect which that part I at least assume. > > Right. The new schedule won't take effect until the currently > scheduled poll is run at the original scheduling interval AFAICT. If > you want the new interval to take affect immediately you need to force > it with a SCHEDULE_FORCED_SVC_CHECK command. > thank you for the clarification regarding this. but i am still not seeing the CHANGE_NORMAL_SVC_CHECK_INTERVAL register in objects.cache. i will continue delving into that and then eventually implement SCHEDULE_FORCED_SVC_CHECK as per your suggestion. thanks again for your illuminating help! --__--__-- Message: 4 From: "Marco Borsani" To: "'NAGIOS'" Subject: R: [Nagios-users] Strange situation.. Date: Fri, 17 Mar 2006 08:16:02 +0100 Organization: ITnet I found the problem. Nagios does not keep nagios user environment (and PATH variable), so it = did not find command like "grep" !=20 I can't believe.... ;-) Regards Marco -}-----Messaggio originale----- -}Da: Masopust, Christian [mailto:christian.masopust at siemens.com]=20 -}Inviato: gioved=EC 16 marzo 2006 10.58 -}A: Marco Borsani; NAGIOS -}Oggetto: RE: [Nagios-users] Strange situation.. -} -} -}Does your nagios user have read permissions to your Invio_Rice.log? -} -} -} -}> -----Original Message----- -}> From: nagios-users-admin at lists.sourceforge.net -}> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf=20 -}Of Marco=20 -}> Borsani -}> Sent: Thursday, March 16, 2006 10:30 AM -}> To: 'NAGIOS' -}> Subject: [Nagios-users] Strange situation.. -}> Importance: High -}>=20 -}> Hi all! -}>=20 -}> I prepare a very simple check (called check_fax) that read a text=20 -}> file. -}>=20 -}> If check_fax find an "OK" it will return a status 0, if=20 -}check_fax find=20 -}> a "CRITICAL" it will return a status 2. -}>=20 -}> Well, when I run manually check_fax (like nagios user or root -}> user) it work -}> correctly (returns 0), but when Nagios run check_fax, it returns a=20 -}> status 2. -}>=20 -}> I try to modify check_fax permissions like: -}> -rwxr-xr-x 1 root sys 654 Mar 16 09:42 check_fax -}> -rwxr-xr-x 1 nagios nagios 654 Mar 16 09:42 check_fax -}> But nothing has been changed. -}>=20 -}> Here it is the check_fax: -}>=20 -}---------------------------------------------------------------------- -}> #!/bin/csh -}> # -}> set dir2 =3D /tmp -}>=20 -}> set STATUS =3D `cat $dir2/Invio_Rice.log | grep -c OK` -}>=20 -}> if ( "$STATUS" =3D=3D "1" ) then -}> echo "FAX OK - Invio e ricezione di prova avvenuto" >=20 -}> $dir2/Rice.log -}> echo "FAX OK - Invio e ricezione di prova avvenuto" -}> else -}> echo "FAX CRITICAL - Invio e ricezione di prova NON=20 -}avvenuto"=20 -}> > $dir2/Rice.log -}> echo "FAX CRITICAL - Invio e ricezione di prova NON=20 -}avvenuto" -}> exit 2 -}> endif -}>=20 -}> exit 0 -}> -------------------------------------------------------------- -}> ---------- -}>=20 -}> Any idea? -}> Regards -}>=20 -}> Marco Borsani =20 -}> Unix & Monitoring System Administrator Technical Operation -}> Tel. +39 010 4310115 -}> Fax +39 010 4327454 -}> E-mail: m.borsani at IT.net -}>=20 -}> ITnet S.r.l. - Direzione e Coordinamento di WIND Telecomunicazioni=20 -}> S.p.A. -}> Internet Service Provider -}> Sede legale: Via C.G.Viola, 48 - 00148 Roma -}> Dir. Centrale e Amministrativa: Via Pacinotti, 39 -}> 16151 Genova (Italy) -}> =09 -}> http://www.it.net =20 -}> mailto:info at IT.net -}> _______________________________________________________________ -}> Altre sedi ITnet: -}> MILANO tel.: +39 02 30114900 info-milano at IT.net -}> ROMA tel.: +39 06 83116707 info-roma at IT.net -}> _______________________________________________________________ -}> ITnet is associated to CIX (Commercial IP eXchange) and=20 -}RIPE ITnet is=20 -}> associated to AIIP (Associazione Italiana Internet Providers) -}>=20 -}>=20 -}>=20 -}>=20 -}> ------------------------------------------------------- -}> This SF.Net email is sponsored by xPML, a groundbreaking scripting=20 -}> language that extends applications into web and mobile=20 -}media. Attend=20 -}> the live webcast and join the prime developer group=20 -}breaking into this=20 -}> new coding territory! -}> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720& -}> dat=3D121642 -}> _______________________________________________ -}> Nagios-users mailing list -}> Nagios-users at lists.sourceforge.net -}> https://lists.sourceforge.net/lists/listinfo/nagios-users -}> ::: Please include Nagios version, plugin version (-v) and OS when=20 -}> reporting any issue. -}> ::: Messages without supporting info will risk being sent=20 -}to /dev/null -}>=20 -} --__--__-- Message: 5 Date: Fri, 17 Mar 2006 13:43:42 +0000 From: James Fidell To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Empty hostgroups Is there an easy way to make nagios v2 not care if a hostgroup is empty? I'm migrating a live configuration from v1 to v2 at the same time as correcting some errors and adding functionality and have it would be useful to have all the hostgroups in the configuration files before adding all the hosts. Is it liable to cause pain if I change the code to warn about empty hostgroups rather than fail with an error? James --__--__-- Message: 6 To: James Fidell Cc: nagios-users at lists.sourceforge.net, nagios-users-admin at lists.sourceforge.net Subject: Re: [Nagios-users] Empty hostgroups From: joseph.petrucci at wachovia.com Date: Fri, 17 Mar 2006 08:51:37 -0500 This is a multipart message in MIME format. --=_alternative 004C232E85257134_= Content-Type: text/plain; charset="US-ASCII" only thing I can think of is the same host can be in multiple hostgroups so pick one host already defined and placeit in all empty hostgroups as a placeholder then when you put a host in the hstgroup that actually belongs remove that placeholder. Joe Petrucci Office: 704-383-6089 Cell : 724-462-0443 James Fidell Sent by: nagios-users-admin at lists.sourceforge.net 03/17/2006 08:43 AM To nagios-users at lists.sourceforge.net cc Subject [Nagios-users] Empty hostgroups Is there an easy way to make nagios v2 not care if a hostgroup is empty? I'm migrating a live configuration from v1 to v2 at the same time as correcting some errors and adding functionality and have it would be useful to have all the hostgroups in the configuration files before adding all the hosts. Is it liable to cause pain if I change the code to warn about empty hostgroups rather than fail with an error? James ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00010C52 --=_alternative 004C232E85257134_= Content-Type: text/html; charset="US-ASCII"
only thing I can think of is the same host can be in multiple hostgroups so pick one host already defined and placeit in all empty hostgroups as a placeholder then when you put a host in the hstgroup that actually belongs remove that placeholder.

Joe Petrucci
Office: 704-383-6089
Cell : 724-462-0443