From breandan at dezendorf.com Thu Oct 1 00:00:08 2009 From: breandan at dezendorf.com (Breandan Dezendorf) Date: Wed, 30 Sep 2009 18:00:08 -0400 Subject: Using Nagios to Scan a Network for Rogue AP's In-Reply-To: <4AC3790A.9060709@googlemail.com> References: <5caea3690909300705ofb2c138g8503cde5421d93cb@mail.gmail.com><4AC36952.7060803@googlemail.com> <5caea3690909300737y7c06e896ya755e23bc77e0611@mail.gmail.com> <24B6509E4191AF44B60A24EAA3B4AD491CAF1E@nuexchg.norwich.edu> <4AC3790A.9060709@googlemail.com> Message-ID: On Sep 30, 2009, at 11:28 AM, Hari Sekhon wrote: > James Pratt wrote: >>>> Thanks for the response. I was thinking of maybe some kind of >>>> plugin >>>> to interface with NMap and NMap modules. Does anything like that >>>> exist? >>>> >> Yes - strangely enough, Marc Powell and I both suggested this same >> plugin/site just yesterday on another thread: >> >> http://ubermonkey.wordpress.com/2006/09/28/nagios-nmap-plugin/ >> > Isn't that for port scanning a given host to detect port changes > rather > than being able to detect entire rogue wifi access points which from > my > exploration of this a year or two ago actually requires wifi sensors > and > equipment at both ends, which is what the (very good) proprietary > solutions do. > > I found that it was mainly the cost that was the biggest inhibitor > with > those systems and management may well take the stance that they simply > don't want to spend that much to close this potential hole. You may want to look at setting up NetDisco . It can do device discovery, and it may be able to help you. I've not looked at it in a few years though. I do have some code laying around to pull all the devices from NetDisco's database and stick them into a Nagios configuration file. If you want it, I'm happy to share. Auto monitoring of network devices always makes me happy. -- Breandan Dezendorf breandan at dezendorf.com bwdezend at gmail.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shon at unwiredbb.com Thu Oct 1 01:06:37 2009 From: shon at unwiredbb.com (Shon Elliott) Date: Wed, 30 Sep 2009 16:06:37 -0700 Subject: Anyone seen this happen: Alert Reports going to 3D Engine?? Message-ID: <43BAB891D6D01742AFDEA3D62DCE9E5D544105@uwbb-cat2.unwiredbb.local> I did a This Year Alert History Report for the Top 25 Report.. after it was done (took like 5-10 minutes to process (lots of data)) it went and loaded the cortana 3D engine.. my report got stuffed into a VRML engine. Has anyone else seen this happen? Here is the command line I used: http://nagios.example.com/nagios/cgi-bin/summary.cgi?report=1&displaytyp e=1&timeperiod=thisyear&smon=9&sday=1&syear=2009&shour=0&smin=0&ssec=0&e mon=9&eday=30&eyear=2009&ehour=24&emin=0&esec=0&hostgroup=all&servicegro up=all&host=all&alerttypes=3&statetypes=3&hoststates=7&servicestates=120 &limit=25 Regards, Shon Elliott Senior Network Engineer unWired Broadband, Inc. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Thu Oct 1 03:23:54 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Wed, 30 Sep 2009 21:23:54 -0400 Subject: How to monitor a windows file using Nagios In-Reply-To: <6872DF21E3D09046BDF172721037F4FB79B840@SBTEXCHANGEDB.sbtdats.com> References: <6872DF21E3D09046BDF172721037F4FB79B840@SBTEXCHANGEDB.sbtdats.com> Message-ID: Hi, It sounds like it is returning the Directory Age and not the Age of the Files in the directory. Check_nt requires a Plugin on the Windows Host, So what plugin is on the Windows Host? Nc_net should allow for testing Modified Date via Check_nc_net of both Files or directorys. Windows will report different values for these, and nc_net has options to choose between these. I do not know how this is implemented through the other Windows Plugins. An alternative if you cannot find a plugin to do it, is to write a VB script then send the results via NSCA, or Fetch usin NRPE. Tony (Author of NC_NEt) On Tue, Sep 29, 2009 at 12:42 AM, Selvakumar A wrote: > Hi, > I would like to know How to monitor a windows file using nagios. I > would like to monitor whether the file is opened or closed,and its size > etc.I checked with check_nt plugin but I got the result what I did not > expect.The output shows the files age as 478years for all files. So anybody > know how to monitor a windows file? Thanks a lot in advance!! > > > > Regards > > A.Selvakumar > > > > This message (including attachments) is confidential and may be privileged. If you have > received it by mistake please notify the sender by return e-mail and delete this message > from your system. You may not copy, disclose or use the contents in any way. SBTPL > does not guarantee integrity of this communication nor is that this communication free of > issues, interceptions or interference. This communication does not create or modify any > contract, and unless otherwise stated, is not intended to be contractually binding. Views > or opinions expressed in this e-mail message are those of the author only. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nadiakheffache at yahoo.fr Thu Oct 1 10:16:56 2009 From: nadiakheffache at yahoo.fr (nadia kheffache) Date: Thu, 1 Oct 2009 08:16:56 +0000 (GMT) Subject: error check_snmp for UPS Message-ID: <378859.91478.qm@web25505.mail.ukl.yahoo.com> Hi, I wont to monitor an ups (onduleur),i use a basic nagios plugin_snmp. but i have these error, i can't get any information about this ups. can you help me please? thank you [nagios at nagios01 libexec]$ ./check_snmp -H UPS-onduleur1 -C public - o .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 .w 185:210 -c 286:999 -l '\Input Voltage\' -u '\Volts\' \Input Voltage\ probl?me - Pas de donn?es re?ues de l'h?te Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] UPS-onduleur1:161 Nadia ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frank.bourdeau at dga.defense.gouv.fr Thu Oct 1 10:37:23 2009 From: frank.bourdeau at dga.defense.gouv.fr (frank.bourdeau at dga.defense.gouv.fr) Date: Thu, 1 Oct 2009 10:37:23 +0200 Subject: RE [spam?] error check_snmp for UPS In-Reply-To: <378859.91478.qm@web25505.mail.ukl.yahoo.com> References: <378859.91478.qm@web25505.mail.ukl.yahoo.com> Message-ID: Hi, Have you test with snmpwalk to see if you UPS onduleur respond ? Is the UPS mib installed on the nagios server ? Frank email: frank.bourdeau at dga.defense.gouv.fr fonction: administrateur syst?mes et r?seaux tel: 0241936560 fax: 0241936681 ETAS - BP 60036 - route de Laval - 49245 AVRILLE CEDEX [ENVOYE PAR INTERNET] nadia kheffache 01/10/2009 10:16 A nagios-users at lists.sourceforge.net cc Objet [spam?] [Nagios-users] error check_snmp for UPS Hi, I wont to monitor an ups (onduleur),i use a basic nagios plugin_snmp. but i have these error, i can't get any information about this ups. can you help me please? thank you [nagios at nagios01 libexec]$ ./check_snmp -H UPS-onduleur1 -C public - o .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 .w 185:210 -c 286:999 -l '\Input Voltage\' -u '\Volts\' \Input Voltage\ probl?me - Pas de donn?es re?ues de l'h?te Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] UPS-onduleur1:161 Nadia ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nadiakheffache at yahoo.fr Thu Oct 1 10:59:17 2009 From: nadiakheffache at yahoo.fr (nadia kheffache) Date: Thu, 1 Oct 2009 08:59:17 +0000 (GMT) Subject: Fw : Re : RE [spam?] error check_snmp for UPS Message-ID: <993588.91444.qm@web25506.mail.ukl.yahoo.com> Hi Franck, I think i have a probleme with my oids, i have the mib file, but i dont'know how to use it to define these oid? i take one in the internet! but how can i use the the mib file? i use this link to monitor my ups: http://wiki.nagios.org/index.php/Howtos:snmp-apc-smart-ups please, how can i use the mib file? the snmpwalk guives me lot of information: [nagios at nagios01 libexec]$ snmpwalk -c public -v 3 -H UPS-onduleur1 IfranIfDescr? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Configuration directives understood: No log handling enabled - turning on stderr logging ? In snmpwalk.conf and snmpwalk.local.conf: ? ? includeRequested? ? ? ???(1|yes|true|0|no|false) ? ? excludeRequested? ? ? ???(1|yes|true|0|no|false) ? ? printStatistics? ? ? ? ? (1|yes|true|0|no|false) ? ? dontCheckOrdering? ? ? ? (1|yes|true|0|no|false) ? ? timeResults? ? ? ? ? ? ? (1|yes|true|0|no|false) ? In snmp.conf and snmp.local.conf: ? ? doDebugging? ? ? ? ? ? ? (1|0) ? ? debugTokens? ? ? ? ? ? ? token[,token...] ? ? logTimestamp? ? ? ? ? ???(1|yes|true|0|no|false) ? ? mibdirs? ? ? ? ? ? ? ? ? [mib-dirs|+mib-dirs|-mib-dirs] ? ? mibs? ? ? ? ? ? ? ? ? ???[mib-tokens|+mib-tokens] ? ? mibfile? ? ? ? ? ? ? ? ? mibfile-to-read ? ? showMibErrors? ? ? ? ? ? (1|yes|true|0|no|false) ? ? strictCommentTerm? ? ? ? (1|yes|true|0|no|false) ? ? mibAllowUnderline? ? ? ? (1|yes|true|0|no|false) ? ? mibWarningLevel? ? ? ? ? integerValue ? ? mibReplaceWithLatest? ???(1|yes|true|0|no|false) ? ? printNumericEnums? ? ? ? (1|yes|true|0|no|false) ? ? printNumericOids? ? ? ???(1|yes|true|0|no|false) ? ? escapeQuotes? ? ? ? ? ???(1|yes|true|0|no|false) ? ? dontBreakdownOids? ? ? ? (1|yes|true|0|no|false) ? ? quickPrinting? ? ? ? ? ? (1|yes|true|0|no|false) ? ? numericTimeticks? ? ? ???(1|yes|true|0|no|false) ? ? oidOutputFormat? ? ? ? ? integerValue ? ? suffixPrinting? ? ? ? ???integerValue ? ? extendedIndex? ? ? ? ? ? (1|yes|true|0|no|false) ? ? printHexText? ? ? ? ? ???(1|yes|true|0|no|false) ? ? printValueOnly? ? ? ? ???(1|yes|true|0|no|false) ? ? dontPrintUnits? ? ? ? ???(1|yes|true|0|no|false) ? ? hexOutputLength? ? ? ? ? integerValue ? ? dumpPacket? ? ? ? ? ? ???(1|yes|true|0|no|false) ? ? reverseEncodeBER? ? ? ???(1|yes|true|0|no|false) > ? ? defaultPort? ? ? ? ? ? ? integerValue ? ? defCommunity? ? ? ? ? ???string ? ? noTokenWarnings? ? ? ? ? (1|yes|true|0|no|false) ? ? noRangeCheck? ? ? ? ? ???(1|yes|true|0|no|false) ? ? persistentDir? ? ? ? ? ? string ? ? tempFilePattern? ? ? ? ? string ? ? noDisplayHint? ? ? ? ? ? (1|yes|true|0|no|false) ? ? 16bitIDs? ? ? ? ? ? ? ???(1|yes|true|0|no|false) ? ? clientaddr? ? ? ? ? ? ???string ? ? serverSendBuf? ? ? ? ? ? integerValue ? ? serverRecvBuf? ? ? ? ? ? integerValue ? ? clientSendBuf? ? ? ? ? ? integerValue ? ? clientRecvBuf? ? ? ? ? ? integerValue ? ? noPersistentLoad? ? ? ???(1|yes|true|0|no|false) ? ? noPersistentSave? ? ? ???(1|yes|true|0|no|false) > ? ? defSecurityModel? ? ? ???string ? ? defSecurityName? ? ? ? ? string ? ? defContext? ? ? ? ? ? ???string ? ? defPassphrase? ? ? ? > ? ? string ? ? defAuthPassphrase? ? ? ? string ? ? defPrivPassphrase? ? ? ? string ? ? defAuthMasterKey? ? ? ???string ? ? defPrivMasterKey? ? ? ???string ? ? defAuthLocalizedKey? ? ? string ? ? defPrivLocalizedKey? ? ? string ? ? defVersion? ? ? ? ? ? ???1|2c|3 ? ? defAuthType? ? ? ? ? ? ? MD5|SHA ? ? defPrivType? ? ? ? ? ? ? DES|AES ? ? defSecurityLevel? ? ? ???noAuthNoPriv|authNoPriv|authPriv ? In snmpapp.conf and snmpapp.local.conf: ? ? engineID? ? ? ? ? ? ? ???string ? ? engineIDType? ? ? ? ? ???num ? ? engineIDNic? ? ? ? ? ? ? string --- En date de?: Jeu 1.10.09, frank.bourdeau at dga.defense.gouv.fr a ?crit?: > > > De: frank.bourdeau at dga.defense.gouv.fr > > > Objet: RE [spam?] [Nagios-users] error check_snmp for > UPS > > ?: "nadia kheffache" > > Cc: nagios-users at lists.sourceforge.net > > Date: Jeudi 1 Octobre 2009, 10h37 > > Hi, > > > > Have you test with snmpwalk to see if you UPS > onduleur > > respond ? Is the > > UPS mib installed on the nagios server ? > > > > Frank > > > > email: frank.bourdeau at dga.defense.gouv.fr > > fonction: administrateur syst?mes et r?seaux > > tel: 0241936560 > > fax: 0241936681 > > ETAS - BP 60036 - route de Laval - 49245 AVRILLE > CEDEX > > [ENVOYE PAR INTERNET] > > > > > > > > nadia kheffache > > > > 01/10/2009 10:16 > > > > A > > nagios-users at lists.sourceforge.net > > cc > > > > Objet > > [spam?] [Nagios-users] error check_snmp for UPS > > > > > > > > > > > > > > > > Hi, > > > > I wont to monitor an ups (onduleur),i use a basic > nagios > > plugin_snmp. > > > > but i have these error, i can't get any information > about > > this ups. > > > > can you help me please? > > > > thank you > > > > [nagios at nagios01 libexec]$ ./check_snmp -H > UPS-onduleur1 -C > > public - o > > .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 .w 185:210 -c > > 286:999? -l '\Input > > Voltage\' -u '\Volts\' > > > > \Input Voltage\ probl?me - Pas de donn?es re?ues > de > > l'h?te > > > > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 > [authpriv] > > > > UPS-onduleur1:161 > > > > > > > > Nadia > > > > > >? > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer > > Conference in SF, CA > > is the only developer event you need to attend this > year. > > Jumpstart your > > developing skills, take BlackBerry mobile applications > to > > market and stay > > ahead of the curve. Join us from November 9-12, 2009. > > Register > > now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) > and > > OS when > > reporting any issue. > > ::: Messages without supporting info will risk being > sent > > to /dev/null > > > > > > > > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Albert.Shih at obspm.fr Thu Oct 1 11:18:53 2009 From: Albert.Shih at obspm.fr (Albert Shih) Date: Thu, 1 Oct 2009 11:18:53 +0200 Subject: disable all authentication Message-ID: <20091001091853.GF75974@obspm.fr> Hi all How can I disable all authentication on Nagios ? (It's not for production, and I known what I'm doing ;-) ) I've put use_authentication=0 default_user_name=guest and put ?*? on authorized_for_system_information=* authorized_for_configuration_information=* authorized_for_system_commands=* authorized_for_all_services=* authorized_for_all_hosts=* authorized_for_all_service_commands=* authorized_for_all_host_commands=* but when I try to access on any ?Service Commands? I've got a message from HAL 9000. If it's not possible to do that, what's the more simple method to do a authentication ? Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex T?l?phone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: Jeu 1 oct 2009 11:14:48 CEST ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From selvakumar.a at europlex.in Thu Oct 1 13:48:55 2009 From: selvakumar.a at europlex.in (Selvakumar A) Date: Thu, 1 Oct 2009 17:18:55 +0530 Subject: How to monitor a linux file opened & closed status using Nagios References: <6872DF21E3D09046BDF172721037F4FB79B840@SBTEXCHANGEDB.sbtdats.com> Message-ID: <6872DF21E3D09046BDF172721037F4FB79B843@SBTEXCHANGEDB.sbtdats.com> Hi, Thanks for your guidance.I followed your instructions.I installed net_nc in windows-XP and I could only get the file's modified time. I am also interested to know about how to monitor a linux file's status whether it is opened or closed and modified etc.I used chech_file_age plugin which gives only the age of the file.Is there any way please help me. Regards A.Selvakumar -----Original Message----- From: Anthony Montibello [mailto:amontibello at gmail.com] Sent: Thu 10/1/2009 6:53 AM To: Selvakumar A Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] How to monitor a windows file using Nagios Hi, It sounds like it is returning the Directory Age and not the Age of the Files in the directory. Check_nt requires a Plugin on the Windows Host, So what plugin is on the Windows Host? Nc_net should allow for testing Modified Date via Check_nc_net of both Files or directorys. Windows will report different values for these, and nc_net has options to choose between these. I do not know how this is implemented through the other Windows Plugins. An alternative if you cannot find a plugin to do it, is to write a VB script then send the results via NSCA, or Fetch usin NRPE. Tony (Author of NC_NEt) On Tue, Sep 29, 2009 at 12:42 AM, Selvakumar A wrote: > Hi, > I would like to know How to monitor a windows file using nagios. I > would like to monitor whether the file is opened or closed,and its size > etc.I checked with check_nt plugin but I got the result what I did not > expect.The output shows the files age as 478years for all files. So anybody > know how to monitor a windows file? Thanks a lot in advance!! > > > > Regards > > A.Selvakumar > > > > This message (including attachments) is confidential and may be privileged. If you have > received it by mistake please notify the sender by return e-mail and delete this message > from your system. You may not copy, disclose or use the contents in any way. SBTPL > does not guarantee integrity of this communication nor is that this communication free of > issues, interceptions or interference. This communication does not create or modify any > contract, and unless otherwise stated, is not intended to be contractually binding. Views > or opinions expressed in this e-mail message are those of the author only. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. You may not copy, disclose or use the contents in any way. SBTPL does not guarantee integrity of this communication nor is that this communication free of issues, interceptions or interference. This communication does not create or modify any contract, and unless otherwise stated, is not intended to be contractually binding. Views or opinions expressed in this e-mail message are those of the author only. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nadiakheffache at yahoo.fr Thu Oct 1 15:39:58 2009 From: nadiakheffache at yahoo.fr (nadia kheffache) Date: Thu, 1 Oct 2009 13:39:58 +0000 (GMT) Subject: RE [spam?] error check_snmp for UPS In-Reply-To: References: Message-ID: <838155.23394.qm@web25508.mail.ukl.yahoo.com> Can you help me please? i have the same error when i execute this commande: command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w $ARG2$:$ARG1$ -c $ARG4$:$ARG3$ -C $ARG5$ -l Temperature -u ?C ./check_snmp -H sensorIP -v 1 -o .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 25:29 -c 30:99 -C public -l Temperature -u ?C Temperature probl?me - Pas de donn?es re?ues de l'h?te Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 1:161 .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 to monitore the temperature in the local server with sensorIP, snmpwalk is ok, i have the same error with the UPS-onduleur thank you --- En date de?: Jeu 1.10.09, frank.bourdeau at dga.defense.gouv.fr a ?crit?: > De: frank.bourdeau at dga.defense.gouv.fr > Objet: RE [spam?] [Nagios-users] error check_snmp for UPS > ?: "nadia kheffache" > Cc: nagios-users at lists.sourceforge.net > Date: Jeudi 1 Octobre 2009, 10h37 > Hi, > > Have you test with snmpwalk to see if you UPS onduleur > respond ? Is the > UPS mib installed on the nagios server ? > > Frank > > email: frank.bourdeau at dga.defense.gouv.fr > fonction: administrateur syst?mes et r?seaux > tel: 0241936560 > fax: 0241936681 > ETAS - BP 60036 - route de Laval - 49245 AVRILLE CEDEX > [ENVOYE PAR INTERNET] > > > > nadia kheffache > > 01/10/2009 10:16 > > A > nagios-users at lists.sourceforge.net > cc > > Objet > [spam?] [Nagios-users] error check_snmp for UPS > > > > > > > > Hi, > > I wont to monitor an ups (onduleur),i use a basic nagios > plugin_snmp. > > but i have these error, i can't get any information about > this ups. > > can you help me please? > > thank you > > [nagios at nagios01 libexec]$ ./check_snmp -H UPS-onduleur1 -C > public - o > .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 .w 185:210 -c > 286:999? -l '\Input > Voltage\' -u '\Volts\' > > \Input Voltage\ probl?me - Pas de donn?es re?ues de > l'h?te > > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] > > UPS-onduleur1:161 > > > > Nadia > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer > Conference in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to > market and stay > ahead of the curve. Join us from November 9-12, 2009. > Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and > OS when > reporting any issue. > ::: Messages without supporting info will risk being sent > to /dev/null > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 1 14:50:17 2009 From: marc at ena.com (Marc Powell) Date: Thu, 1 Oct 2009 07:50:17 -0500 Subject: disable all authentication In-Reply-To: <20091001091853.GF75974@obspm.fr> References: <20091001091853.GF75974@obspm.fr> Message-ID: <4223A026-39B0-4CF5-824F-B5CD17CDE031@ena.com> On Oct 1, 2009, at 4:18 AM, Albert Shih wrote: > Hi all > > How can I disable all authentication on Nagios ? (It's not for > production, > and I known what I'm doing ;-) ) > > I've put > > use_authentication=0 > default_user_name=guest > > and put ?*? on > > authorized_for_system_information=* > authorized_for_configuration_information=* > authorized_for_system_commands=* > authorized_for_all_services=* > authorized_for_all_hosts=* > authorized_for_all_service_commands=* > authorized_for_all_host_commands=* I'm 99% certain wildcards are not supported here. Have you seen in the documentation that they are supported? Use the real user_name 'guest' here. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 1 15:01:13 2009 From: marc at ena.com (Marc Powell) Date: Thu, 1 Oct 2009 08:01:13 -0500 Subject: How to monitor a linux file opened & closed status using Nagios In-Reply-To: <6872DF21E3D09046BDF172721037F4FB79B843@SBTEXCHANGEDB.sbtdats.com> References: <6872DF21E3D09046BDF172721037F4FB79B840@SBTEXCHANGEDB.sbtdats.com> <6872DF21E3D09046BDF172721037F4FB79B843@SBTEXCHANGEDB.sbtdats.com> Message-ID: <5CB2A910-822B-4834-81EE-6BBB10612E0E@ena.com> On Oct 1, 2009, at 6:48 AM, Selvakumar A wrote: > Hi, > Thanks for your guidance.I followed your instructions.I installed > net_nc in windows-XP and I could only get the file's modified time. > I am also interested to know about how to monitor a linux file's > status whether it is opened or closed and modified etc.I used > chech_file_age plugin which gives only the age of the file.Is there > any way please help me. I'm not aware of any plugins that check these. If you decide to write your own plugin, lsof (when run using sudo) will be your friend. 'is opened' - specified file appears in the output of lsof 'is closed' - specified file does not appear in the output of lsof 'is modified' - depends on what you mean by modified. File age may be sufficient but if you want to see if actual changes were made you'll need to create a copy at each run and compare the current with the previous (using cmp or diff, for example). A quick google for 'nagios check lsof' doesn't yield any interesting initial results but you might have luck further in the search results. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srmiller at interbel.net Thu Oct 1 18:09:36 2009 From: srmiller at interbel.net (Scott Miller) Date: Thu, 1 Oct 2009 09:09:36 -0700 Subject: Not sending e-mails In-Reply-To: <838155.23394.qm@web25508.mail.ukl.yahoo.com> References: <838155.23394.qm@web25508.mail.ukl.yahoo.com> Message-ID: <0cab01ca42b1$921e3be0$b65ab3a0$@net> I know this has been hit over and over, and I've read literally everything I could find, but to no avail. I have a newly install of Nagios 3.2.0 on a Fedora Core 8 with Postfix/Dovecot. I have a modified script (postfix mail queue monitor I shared a week or so ago). The only thing Nagios is doing on this box is looking at local services. When I change any threshold so I will go into alarm, it does, but no e-mails get sent out. I can see in my logs the following when something comes into alarm: [1254408621] SERVICE ALERT: localhost;Postfix Mail Queue;CRITICAL;SOFT;1;CRITICAL: Postfix mailq has 14 messages queued for a total of 12492 Kbytes. [1254408651] SERVICE ALERT: localhost;Current Load;OK;SOFT;2;OK - load average: 4.87, 2.73, 1.43 [1254408681] SERVICE ALERT: localhost;Postfix Mail Queue;CRITICAL;SOFT;2;CRITICAL: Postfix mailq has 16 messages queued for a total of 12497 Kbytes. [1254408741] SERVICE ALERT: localhost;Postfix Mail Queue;CRITICAL;SOFT;3;CRITICAL: Postfix mailq has 16 messages queued for a total of 12689 Kbytes. [1254408801] SERVICE ALERT: localhost;Postfix Mail Queue;CRITICAL;HARD;4;CRITICAL: Postfix mailq has 15 messages queued for a total of 12494 Kbytes. [1254408801] SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 messages queued for a total of 12494 Kbytes. [1254408801] SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 messages queued for a total of 12494 Kbytes. Wondering if anyone could double check the pertinent parts of my config? Thanks in advance. Scott Miller contacts.cfg ============ define contact{ contact_name nagiosadmin ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias Nagios Admin ; Full name of user email srmiller at interbel.net ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ****** } define contact{ contact_name nagiosadmin2 ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias Nagios Admin ; Full name of user email xxxxxxx at vzwpix.com ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ****** } define contactgroup{ contactgroup_name admins alias Nagios Administrators members nagiosadmin,nagiosadmin2 } hosts.cfg ========= define hostgroup{ hostgroup_name Postfix Server alias POSTFIX-SERVERS ; Long name of the group members localhost ; Comma separated list of hosts that belong to this group } localhost.cfg ============= define host{ use linux-server ; Name of host template to use ; This host definition will inherit all variables that are defined ; in (or inherited by) the linux-server host template definition. host_name localhost alias localhost address 127.0.0.1 icon_image redhat.jpg } define hostgroup{ hostgroup_name linux-servers ; The name of the hostgroup alias Linux Servers ; Long name of the group members localhost ; Comma separated list of hosts that belong to this group } define service{ use local-service ; Name of service template to use host_name localhost service_description Postfix Mail Queue check_command check_postfix_mailq!5!10 } templates.cfg ============= define contact{ name generic-contact ; The name of this contact template service_notification_period 24x7 ; service notifications can be sent anytime host_notification_period 24x7 ; host notifications can be sent anytime service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events service_notification_commands notify-service-by-email ; send service notifications via email host_notification_commands notify-host-by-email ; send host notifications via email register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE! } define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts notification_period 24x7 ; Send host notifications at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # Linux host definition template - This is NOT a real host, just a template! define host{ name linux-server ; The name of this host template use generic-host ; This template inherits other values from the generic-host template check_period 24x7 ; By default, Linux hosts are checked round the clock check_interval 5 ; Actively check the host every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period 24x7 ; Linux admins hate to be woken up, so we only notify during the day ; Note that the notification_period variable is being overridden from ; the value that is inherited from the generic-host template! notification_interval 30 ; Resend notifications every 2 hours # service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events # host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events notification_options d,u,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 ; The service is not volatile check_period 24x7 ; The service can be checked at any time of the day max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state normal_check_interval 10 ; Check the service every 10 minutes under normal conditions retry_check_interval 2 ; Re-check the service every two minutes until a hard state can be determined contact_groups admins ; Notifications get sent out to everyone in the 'admins' group notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events notification_interval 60 ; Re-notify about service problems every hour notification_period 24x7 ; Notifications can be sent out at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } define service{ name local-service ; The name of this service template use generic-service ; Inherit default values from the generic-service definition max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state normal_check_interval 5 ; Check the service every 5 minutes under normal conditions retry_check_interval 1 ; Re-check the service every minute until a hard state can be determined register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 1 17:36:50 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 01 Oct 2009 08:36:50 -0700 Subject: Not sending e-mails In-Reply-To: <0cab01ca42b1$921e3be0$b65ab3a0$@net> References: <838155.23394.qm@web25508.mail.ukl.yahoo.com> <0cab01ca42b1$921e3be0$b65ab3a0$@net> Message-ID: <4AC4CC92.3020403@hp.com> Scott Miller wrote: > I know this has been hit over and over, and I've read literally everything I > could find, but to no avail. I have a newly install of Nagios 3.2.0 on a > Fedora Core 8 with Postfix/Dovecot. I have a modified script (postfix mail > queue monitor I shared a week or so ago). The only thing Nagios is doing on > this box is looking at local services. When I change any threshold so I > will go into alarm, it does, but no e-mails get sent out. > > I can see in my logs the following when something comes into alarm: > > [1254408621] SERVICE ALERT: localhost;Postfix Mail > Queue;CRITICAL;SOFT;1;CRITICAL: Postfix mailq has 14 messages queued for a > total of 12492 Kbytes. > [1254408651] SERVICE ALERT: localhost;Current Load;OK;SOFT;2;OK - load > average: 4.87, 2.73, 1.43 > [1254408681] SERVICE ALERT: localhost;Postfix Mail > Queue;CRITICAL;SOFT;2;CRITICAL: Postfix mailq has 16 messages queued for a > total of 12497 Kbytes. > [1254408741] SERVICE ALERT: localhost;Postfix Mail > Queue;CRITICAL;SOFT;3;CRITICAL: Postfix mailq has 16 messages queued for a > total of 12689 Kbytes. > [1254408801] SERVICE ALERT: localhost;Postfix Mail > Queue;CRITICAL;HARD;4;CRITICAL: Postfix mailq has 15 messages queued for a > total of 12494 Kbytes. > [1254408801] SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail > Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 > messages queued for a total of 12494 Kbytes. > [1254408801] SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail > Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 > messages queued for a total of 12494 Kbytes. > > Wondering if anyone could double check the pertinent parts of my config? > > Thanks in advance. > > Scott Miller What's in your mail log? Nagios is trying to send notifications using the command you've defined, according to the logs. You haven't provided the definition for that command (notify-service-by-email), but I assume it's trying to send an email. If you're using anything like the example commands that come with Nagios, it is probably using something like "/bin/mail" to send the message, and your mail log would be a good place to look for why it's not being delivered. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at speakopen.org Thu Oct 1 17:54:36 2009 From: nagios at speakopen.org (Kriek Jooste) Date: Thu, 1 Oct 2009 17:54:36 +0200 Subject: getting repeat emails Message-ID: <861e6acd0910010854o69541eaclc697589696853b58@mail.gmail.com> I am sure I am missing something simple, and would like some extra eyes on this. The effect I'm seeing is that when a service is in a state I want to send notifications (e.g. CRITICAL) for, it seems to keep on sending notifications out, every 20 or 30 minutes or so. For example: 2009-9-29 13:36:38 SERVICE NOTIFICATION: kriek-email;kokeyserver;Login Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1065(1000.0) 2009-9-29 14:06:25 SERVICE NOTIFICATION: kriek-email;kokeyserver;Login Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1128(1000.0) 2009-9-29 14:46:33 SERVICE NOTIFICATION: kriek-email;kokeyserver;Login Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1046(1000.0) What I want is for it to notify me only once when it goes from OK to CRITICAL, until the service is OK again. I would have thought this is controlled by notification interval, but here's the service from the objects cache: define service { host_name kokeyserver service_description Login Requests check_period 24x7 check_command service-is-stale contact_groups linux-admins notification_period 24x7 initial_state o check_interval 5.000000 retry_interval 1.000000 max_check_attempts 3 is_volatile 0 parallelize_check 1 active_checks_enabled 0 passive_checks_enabled 1 obsess_over_service 0 event_handler_enabled 1 low_flap_threshold 0.000000 high_flap_threshold 0.000000 flap_detection_enabled 0 flap_detection_options o,w,u,c freshness_threshold 1800 check_freshness 1 notification_options u,w,c,r notifications_enabled 1 notification_interval 10080.000000 first_notification_delay 0.000000 stalking_options n process_perf_data 1 failure_prediction_enabled 1 retain_status_information 1 retain_nonstatus_information 1 } ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srmiller at interbel.net Thu Oct 1 20:28:16 2009 From: srmiller at interbel.net (Scott Miller) Date: Thu, 1 Oct 2009 11:28:16 -0700 Subject: FW: Not sending e-mails Message-ID: <0d8101ca42c4$f176fa10$d464ee30$@net> Scott Miller wrote: >> I know this has been hit over and over, and I've read literally everything I >> could find, but to no avail. I have a newly install of Nagios 3.2.0 on a >> Fedora Core 8 with Postfix/Dovecot. I have a modified script (postfix mail >> queue monitor I shared a week or so ago). The only thing Nagios is doing on >> this box is looking at local services. When I change any threshold so I >> will go into alarm, it does, but no e-mails get sent out. >> >> I can see in my logs the following when something comes into alarm: >> >> [1254408621] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;1;CRITICAL: Postfix mailq has 14 messages queued for a >> total of 12492 Kbytes. >> [1254408651] SERVICE ALERT: localhost;Current Load;OK;SOFT;2;OK - load >> average: 4.87, 2.73, 1.43 >> [1254408681] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;2;CRITICAL: Postfix mailq has 16 messages queued for a >> total of 12497 Kbytes. >> [1254408741] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;3;CRITICAL: Postfix mailq has 16 messages queued for a >> total of 12689 Kbytes. >> [1254408801] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;HARD;4;CRITICAL: Postfix mailq has 15 messages queued for a >> total of 12494 Kbytes. >> [1254408801] SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 >> messages queued for a total of 12494 Kbytes. >> [1254408801] SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 >> messages queued for a total of 12494 Kbytes. >> >> Wondering if anyone could double check the pertinent parts of my config? >> >> Thanks in advance. >> >> Scott Miller > > What's in your mail log? Nagios is trying to send notifications using > the command you've defined, according to the logs. You haven't provided > the definition for that command (notify-service-by-email), but I assume > it's trying to send an email. > > If you're using anything like the example commands that come with > Nagios, it is probably using something like "/bin/mail" to send the > message, and your mail log would be a good place to look for why it's > not being delivered. Sorry - didn't include that from the commands.cfg - Here's what I have. commands.cfg ============ # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } This is the exact same way I have it on another machine running checks for multiple boxes and devices. The only difference, is this server is running Postfix, the other (working) is running Sendmail. In my logs: /var/log/maillog - grep for nagios - there's nothing /var/log/messages shows Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 messages queued for a total of 3326 Kbytes. Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 messages queued for a total of 3326 Kbytes. Looks like it's trying - maybe something in Postfix stoping it? I'll have to do a bit more digging and testing. Scott Miller ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Thu Oct 1 20:01:18 2009 From: mmelin at gmail.com (Martin Melin) Date: Thu, 1 Oct 2009 20:01:18 +0200 Subject: FW: Not sending e-mails In-Reply-To: <0d8101ca42c4$f176fa10$d464ee30$@net> References: <0d8101ca42c4$f176fa10$d464ee30$@net> Message-ID: Try simply copying the command_line for notify-service-by-email and running it in a shell yourself. Or just do: # echo "Hello world" | /bin/mail -s "Test Email" root at localhost On Thu, Oct 1, 2009 at 8:28 PM, Scott Miller wrote: > > Scott Miller wrote: > >> I know this has been hit over and over, and I've read literally > everything I > >> could find, but to no avail. I have a newly install of Nagios 3.2.0 on > a > >> Fedora Core 8 with Postfix/Dovecot. I have a modified script (postfix > mail > >> queue monitor I shared a week or so ago). The only thing Nagios is > doing > on > >> this box is looking at local services. When I change any threshold so I > >> will go into alarm, it does, but no e-mails get sent out. > >> > >> I can see in my logs the following when something comes into alarm: > >> > >> [1254408621] SERVICE ALERT: localhost;Postfix Mail > >> Queue;CRITICAL;SOFT;1;CRITICAL: Postfix mailq has 14 messages queued for > a > >> total of 12492 Kbytes. > >> [1254408651] SERVICE ALERT: localhost;Current Load;OK;SOFT;2;OK - load > >> average: 4.87, 2.73, 1.43 > >> [1254408681] SERVICE ALERT: localhost;Postfix Mail > >> Queue;CRITICAL;SOFT;2;CRITICAL: Postfix mailq has 16 messages queued for > a > >> total of 12497 Kbytes. > >> [1254408741] SERVICE ALERT: localhost;Postfix Mail > >> Queue;CRITICAL;SOFT;3;CRITICAL: Postfix mailq has 16 messages queued for > a > >> total of 12689 Kbytes. > >> [1254408801] SERVICE ALERT: localhost;Postfix Mail > >> Queue;CRITICAL;HARD;4;CRITICAL: Postfix mailq has 15 messages queued for > a > >> total of 12494 Kbytes. > >> [1254408801] SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail > >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 > >> messages queued for a total of 12494 Kbytes. > >> [1254408801] SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail > >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 > >> messages queued for a total of 12494 Kbytes. > >> > >> Wondering if anyone could double check the pertinent parts of my config? > >> > >> Thanks in advance. > >> > >> Scott Miller > > > > What's in your mail log? Nagios is trying to send notifications using > > the command you've defined, according to the logs. You haven't provided > > the definition for that command (notify-service-by-email), but I assume > > it's trying to send an email. > > > > If you're using anything like the example commands that come with > > Nagios, it is probably using something like "/bin/mail" to send the > > message, and your mail log would be a good place to look for why it's > > not being delivered. > > Sorry - didn't include that from the commands.cfg - Here's what I have. > > commands.cfg > ============ > # 'notify-host-by-email' command definition > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > } > > # 'notify-service-by-email' command definition > define command{ > command_name notify-service-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > > This is the exact same way I have it on another machine running checks for > multiple boxes and devices. The only difference, is this server is running > Postfix, the other (working) is running Sendmail. > > In my logs: > /var/log/maillog - grep for nagios - there's nothing > /var/log/messages shows > Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: > nagiosadmin2;localhost;Postfix Mail > Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 > messages queued for a total of 3326 Kbytes. > Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: > nagiosadmin;localhost;Postfix Mail > Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 > messages queued for a total of 3326 Kbytes. > > Looks like it's trying - maybe something in Postfix stoping it? I'll have > to do a bit more digging and testing. > > Scott Miller > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike.saldivar at advocatecreditrepair.com Thu Oct 1 20:02:33 2009 From: mike.saldivar at advocatecreditrepair.com (Michael Saldivar) Date: Thu, 1 Oct 2009 12:02:33 -0600 Subject: FW: Not sending e-mails In-Reply-To: <0d8101ca42c4$f176fa10$d464ee30$@net> References: <0d8101ca42c4$f176fa10$d464ee30$@net> Message-ID: On Thu, Oct 1, 2009 at 12:28 PM, Scott Miller wrote: > > Scott Miller wrote: > > commands.cfg > ============ > # 'notify-host-by-email' command definition > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > } > > # 'notify-service-by-email' command definition > define command{ > command_name notify-service-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > > My Postfix e-mail commands look like this, with slightly different syntax: # NEW 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "Subject:** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/sbin/sendmail $CONTACTEMAIL$ } # NEW 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "Subject:** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/sbin/sendmail $CONTACTEMAIL$ } -- Mike Saldivar Direct Financial Solutions Information Systems Manager Desk: 435-774-8252 Cell: 435-881-3778 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 1 20:14:36 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 01 Oct 2009 11:14:36 -0700 Subject: FW: Not sending e-mails In-Reply-To: <0d8101ca42c4$f176fa10$d464ee30$@net> References: <0d8101ca42c4$f176fa10$d464ee30$@net> Message-ID: <4AC4F18C.9090307@hp.com> Scott Miller wrote: > Scott Miller wrote: > >>> I know this has been hit over and over, and I've read literally >>> > everything I > >>> could find, but to no avail. I have a newly install of Nagios 3.2.0 on a >>> Fedora Core 8 with Postfix/Dovecot. I have a modified script (postfix >>> > mail > >>> queue monitor I shared a week or so ago). The only thing Nagios is doing >>> > on > >>> this box is looking at local services. When I change any threshold so I >>> will go into alarm, it does, but no e-mails get sent out. >>> >>> I can see in my logs the following when something comes into alarm: >>> >>> [1254408621] SERVICE ALERT: localhost;Postfix Mail >>> Queue;CRITICAL;SOFT;1;CRITICAL: Postfix mailq has 14 messages queued for >>> > a > >>> total of 12492 Kbytes. >>> [1254408651] SERVICE ALERT: localhost;Current Load;OK;SOFT;2;OK - load >>> average: 4.87, 2.73, 1.43 >>> [1254408681] SERVICE ALERT: localhost;Postfix Mail >>> Queue;CRITICAL;SOFT;2;CRITICAL: Postfix mailq has 16 messages queued for >>> > a > >>> total of 12497 Kbytes. >>> [1254408741] SERVICE ALERT: localhost;Postfix Mail >>> Queue;CRITICAL;SOFT;3;CRITICAL: Postfix mailq has 16 messages queued for >>> > a > >>> total of 12689 Kbytes. >>> [1254408801] SERVICE ALERT: localhost;Postfix Mail >>> Queue;CRITICAL;HARD;4;CRITICAL: Postfix mailq has 15 messages queued for >>> > a > >>> total of 12494 Kbytes. >>> [1254408801] SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail >>> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 >>> messages queued for a total of 12494 Kbytes. >>> [1254408801] SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail >>> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 >>> messages queued for a total of 12494 Kbytes. >>> >>> Wondering if anyone could double check the pertinent parts of my config? >>> >>> Thanks in advance. >>> >>> Scott Miller >>> >> What's in your mail log? Nagios is trying to send notifications using >> the command you've defined, according to the logs. You haven't provided >> the definition for that command (notify-service-by-email), but I assume >> it's trying to send an email. >> >> If you're using anything like the example commands that come with >> Nagios, it is probably using something like "/bin/mail" to send the >> message, and your mail log would be a good place to look for why it's >> not being delivered. >> > > Sorry - didn't include that from the commands.cfg - Here's what I have. > > commands.cfg > ============ > # 'notify-host-by-email' command definition > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > } > > # 'notify-service-by-email' command definition > define command{ > command_name notify-service-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > > This is the exact same way I have it on another machine running checks for > multiple boxes and devices. The only difference, is this server is running > Postfix, the other (working) is running Sendmail. > > In my logs: > /var/log/maillog - grep for nagios - there's nothing > /var/log/messages shows > Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: > nagiosadmin2;localhost;Postfix Mail > Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 > messages queued for a total of 3326 Kbytes. > Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: > nagiosadmin;localhost;Postfix Mail > Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 > messages queued for a total of 3326 Kbytes. > > Looks like it's trying - maybe something in Postfix stoping it? I'll have > to do a bit more digging and testing. > Look fine. Check your mail logs. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmarzot at marzot.net Thu Oct 1 20:29:08 2009 From: gmarzot at marzot.net (G. S. Marzot) Date: Thu, 01 Oct 2009 14:29:08 -0400 Subject: remote check with no nagios tools at remote node Message-ID: <4AC4F4F4.1080407@marzot.net> Along the lines of probing hosts that may or (more importantly) may not have nagios checks installed... I wonder if there is an ssh (there is often key based logins avail) based check that will run things like 'ps' or 'top' or various shell based commands and parse them to do some sort of health check... thanks for any pointers. -G ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fernando.rocha at opservices.com.br Thu Oct 1 20:21:21 2009 From: fernando.rocha at opservices.com.br (Fernando Rocha) Date: Thu, 1 Oct 2009 15:21:21 -0300 (BRT) Subject: getting repeat emails In-Reply-To: <933458.190601254421189433.JavaMail.root@mail.opservices.com.br> References: <933458.190601254421189433.JavaMail.root@mail.opservices.com.br> Message-ID: <10851180.190621254421281042.JavaMail.root@mail.opservices.com.br> Hi Kriek! If you want just to be notified one time, you must set : notification_interval 0 regards -- Fernando Rocha Analista de Suporte - Opera??o OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org ----- "Kriek Jooste" wrote: > I am sure I am missing something simple, and would like some extra > eyes on this. > > The effect I'm seeing is that when a service is in a state I want to > send notifications (e.g. CRITICAL) for, it seems to keep on sending > notifications out, every 20 or 30 minutes or so. For example: > 2009-9-29 13:36:38 SERVICE NOTIFICATION: > kriek-email;kokeyserver;Login > Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1065(1000.0) > 2009-9-29 14:06:25 SERVICE NOTIFICATION: > kriek-email;kokeyserver;Login > Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1128(1000.0) > 2009-9-29 14:46:33 SERVICE NOTIFICATION: > kriek-email;kokeyserver;Login > Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1046(1000.0) > > What I want is for it to notify me only once when it goes from OK to > CRITICAL, until the service is OK again. > > I would have thought this is controlled by notification interval, but > here's the service from the objects cache: > > define service { > host_name kokeyserver > service_description Login Requests > check_period 24x7 > check_command service-is-stale > contact_groups linux-admins > notification_period 24x7 > initial_state o > check_interval 5.000000 > retry_interval 1.000000 > max_check_attempts 3 > is_volatile 0 > parallelize_check 1 > active_checks_enabled 0 > passive_checks_enabled 1 > obsess_over_service 0 > event_handler_enabled 1 > low_flap_threshold 0.000000 > high_flap_threshold 0.000000 > flap_detection_enabled 0 > flap_detection_options o,w,u,c > freshness_threshold 1800 > check_freshness 1 > notification_options u,w,c,r > notifications_enabled 1 > notification_interval 10080.000000 > first_notification_delay 0.000000 > stalking_options n > process_perf_data 1 > failure_prediction_enabled 1 > retain_status_information 1 > retain_nonstatus_information 1 > } > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, > CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > __________________________________________________ __________________________________________________ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmarzot at marzot.net Thu Oct 1 20:26:05 2009 From: gmarzot at marzot.net (G. S. Marzot) Date: Thu, 01 Oct 2009 14:26:05 -0400 Subject: DHCP hosts In-Reply-To: <4ABB3B57.4020604@googlemail.com> References: <4ABA419B.1030002@marzot.net> <4ABB3B57.4020604@googlemail.com> Message-ID: <4AC4F43D.5010300@marzot.net> Hari Sekhon wrote: > G. S. Marzot wrote: >> Does anyone have a good solution for monitoring DHCP hosts which may >> come and go? I would like to see them in some hostgroup when they are >> active but not generate any alerts when gone... >> >> ideas? >> > > I wrote a plugin for dhcpd which lists hosts that currently have leases: > > http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F1450.html;d=1 > > > -h > Thank you for the pointer to this cool plugin... Unfortunately no solutions to date really fill the bill as the leases are allocated by a router that does not publish them in a way I know how to get... nor can I put anything on the DHCP hosts... they are not under my control... Maybe there is a way to hack into my router and get the lease info... or maybe I need a little daemon that will just go and probe for all possible hosts... I would just like to see an accurate depiction of who is on the net at any given time... maybe this is not something nagios is good at (i.e., dynamic host groups). -G ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boris at unt.edu Thu Oct 1 21:12:14 2009 From: boris at unt.edu (Kurktchiev, Boris) Date: Thu, 1 Oct 2009 14:12:14 -0500 Subject: Notification period 0 Message-ID: Ok so I set all my notification periods to 0 (in both services and hosts) and now I am getting a whole bunch of errors: Error: Notification period '0' specified for service 'ADVAPPS SSH' on host 'advapps.blah' is not defined anywhere! As far as I understood the documentation setting the period to 0 is all that was required... Do I have to do define it anywhere? ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boris at unt.edu Thu Oct 1 21:16:07 2009 From: boris at unt.edu (Kurktchiev, Boris) Date: Thu, 1 Oct 2009 14:16:07 -0500 Subject: Notification period 0 In-Reply-To: References: Message-ID: Aaaand I am an idiot... Disregard this. On 10/1/09 2:12 PM, "Kurktchiev, Boris" wrote: > Ok so I set all my notification periods to 0 (in both services and hosts) > and now I am getting a whole bunch of errors: > Error: Notification period '0' specified for service 'ADVAPPS SSH' on host > 'advapps.blah' is not defined anywhere! > > As far as I understood the documentation setting the period to 0 is all that > was required... Do I have to do define it anywhere? > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lmw94002 at hotmail.com Thu Oct 1 21:20:35 2009 From: lmw94002 at hotmail.com (Mathew Walker) Date: Thu, 1 Oct 2009 15:20:35 -0400 Subject: remote check with no nagios tools at remote node In-Reply-To: <4AC4F4F4.1080407@marzot.net> References: <4AC4F4F4.1080407@marzot.net> Message-ID: i think the plugin you're looking for is CHECK_BY_SSH -- Mat W. - http://www.techadre.com > Date: Thu, 1 Oct 2009 14:29:08 -0400 > From: gmarzot at marzot.net > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] remote check with no nagios tools at remote node > > > > Along the lines of probing hosts that may or (more importantly) may not > have nagios checks installed... I wonder if there is an ssh (there is > often key based logins avail) based check that will run things like 'ps' > or 'top' or various shell based commands and parse them to do some sort > of health check... > > thanks for any pointers. > > -G > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Microsoft brings you a new way to search the web. Try Bing? now http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try bing_1x1 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mgagne at iweb.com Thu Oct 1 21:22:12 2009 From: mgagne at iweb.com (=?ISO-8859-1?Q?Mathieu_Gagn=E9?=) Date: Thu, 01 Oct 2009 15:22:12 -0400 Subject: Notification period 0 In-Reply-To: References: Message-ID: <4AC50164.5080208@iweb.com> On 10/1/09 3:12 PM, Kurktchiev, Boris wrote: > Ok so I set all my notification periods to 0 (in both services and hosts) > and now I am getting a whole bunch of errors: > Error: Notification period '0' specified for service 'ADVAPPS SSH' on host > 'advapps.blah' is not defined anywhere! > > As far as I understood the documentation setting the period to 0 is all that > was required... Do I have to do define it anywhere? notification_interval != notification_period Try "notification_interval 0" instead of "notification_period 0". > notification_interval: This directive is used to define the number of "time units" to wait before re-notifying a contact that this service is still in a non-OK state. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this service - only one problem notification will be sent out. Ref: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service -- Mathieu ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srmiller at interbel.net Thu Oct 1 22:23:12 2009 From: srmiller at interbel.net (Scott Miller) Date: Thu, 1 Oct 2009 13:23:12 -0700 Subject: FW: Not sending e-mails In-Reply-To: References: <0d8101ca42c4$f176fa10$d464ee30$@net> Message-ID: <0e6601ca42d4$ffdcc980$ff965c80$@net> [root at mail4 ~]# echo "Hello world" | /bin/mail -s "Test Email" root at localhost [root at mail4 ~]# /etc/mail/sendmail.cf: line 0: cannot open: No such file or directory [root at mail4 ~]# I'm running postfix - not sure why it's looking for sendmail. From: Martin Melin [mailto:mmelin at gmail.com] Sent: Thursday, October 01, 2009 11:01 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] FW: Not sending e-mails Try simply copying the command_line for notify-service-by-email and running it in a shell yourself. Or just do: # echo "Hello world" | /bin/mail -s "Test Email" root at localhost On Thu, Oct 1, 2009 at 8:28 PM, Scott Miller wrote: Scott Miller wrote: >> I know this has been hit over and over, and I've read literally everything I >> could find, but to no avail. I have a newly install of Nagios 3.2.0 on a >> Fedora Core 8 with Postfix/Dovecot. I have a modified script (postfix mail >> queue monitor I shared a week or so ago). The only thing Nagios is doing on >> this box is looking at local services. When I change any threshold so I >> will go into alarm, it does, but no e-mails get sent out. >> >> I can see in my logs the following when something comes into alarm: >> >> [1254408621] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;1;CRITICAL: Postfix mailq has 14 messages queued for a >> total of 12492 Kbytes. >> [1254408651] SERVICE ALERT: localhost;Current Load;OK;SOFT;2;OK - load >> average: 4.87, 2.73, 1.43 >> [1254408681] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;2;CRITICAL: Postfix mailq has 16 messages queued for a >> total of 12497 Kbytes. >> [1254408741] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;3;CRITICAL: Postfix mailq has 16 messages queued for a >> total of 12689 Kbytes. >> [1254408801] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;HARD;4;CRITICAL: Postfix mailq has 15 messages queued for a >> total of 12494 Kbytes. >> [1254408801] SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 >> messages queued for a total of 12494 Kbytes. >> [1254408801] SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 >> messages queued for a total of 12494 Kbytes. >> >> Wondering if anyone could double check the pertinent parts of my config? >> >> Thanks in advance. >> >> Scott Miller > > What's in your mail log? Nagios is trying to send notifications using > the command you've defined, according to the logs. You haven't provided > the definition for that command (notify-service-by-email), but I assume > it's trying to send an email. > > If you're using anything like the example commands that come with > Nagios, it is probably using something like "/bin/mail" to send the > message, and your mail log would be a good place to look for why it's > not being delivered. Sorry - didn't include that from the commands.cfg - Here's what I have. commands.cfg ============ # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } This is the exact same way I have it on another machine running checks for multiple boxes and devices. The only difference, is this server is running Postfix, the other (working) is running Sendmail. In my logs: /var/log/maillog - grep for nagios - there's nothing /var/log/messages shows Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 messages queued for a total of 3326 Kbytes. Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 messages queued for a total of 3326 Kbytes. Looks like it's trying - maybe something in Postfix stoping it? I'll have to do a bit more digging and testing. Scott Miller ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 1 21:38:58 2009 From: marc at ena.com (Marc Powell) Date: Thu, 1 Oct 2009 14:38:58 -0500 Subject: disable all authentication In-Reply-To: <4223A026-39B0-4CF5-824F-B5CD17CDE031@ena.com> References: <20091001091853.GF75974@obspm.fr> <4223A026-39B0-4CF5-824F-B5CD17CDE031@ena.com> Message-ID: <05E8B003-767D-4E6B-B573-C278914D8E41@ena.com> On Oct 1, 2009, at 7:50 AM, Marc Powell wrote: > > On Oct 1, 2009, at 4:18 AM, Albert Shih wrote: > >> Hi all >> >> How can I disable all authentication on Nagios ? (It's not for >> production, >> and I known what I'm doing ;-) ) >> >> I've put >> >> use_authentication=0 >> default_user_name=guest >> >> and put ?*? on >> >> authorized_for_system_information=* >> authorized_for_configuration_information=* >> authorized_for_system_commands=* >> authorized_for_all_services=* >> authorized_for_all_hosts=* >> authorized_for_all_service_commands=* >> authorized_for_all_host_commands=* > > I'm 99% certain wildcards are not supported here. Have you seen in the > documentation that they are supported? Use the real user_name 'guest' > here. and of course, it's documented in cgi.cfg ;) It is specific to any user authenticated by the web server. Since you've disabled that authentication, REMOTE_USER is null. You still need to specify 'guest' for each of those. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 1 21:57:52 2009 From: marc at ena.com (Marc Powell) Date: Thu, 1 Oct 2009 14:57:52 -0500 Subject: FW: Not sending e-mails In-Reply-To: <0e6601ca42d4$ffdcc980$ff965c80$@net> References: <0d8101ca42c4$f176fa10$d464ee30$@net> <0e6601ca42d4$ffdcc980$ff965c80$@net> Message-ID: On Oct 1, 2009, at 3:23 PM, Scott Miller wrote: > [root at mail4 ~]# echo "Hello world" | /bin/mail -s "Test Email" > root at localhost > [root at mail4 ~]# /etc/mail/sendmail.cf: line 0: cannot open: No such > file or directory > [root at mail4 ~]# > > I?m running postfix ? not sure why it?s looking for sendmail. If this is Redhat/clone, it's because /usr/lib/sendmail ends up being pointed to sendmail. $ ls -al /usr/lib/sendmail lrwxrwxrwx 1 root root 30 Nov 7 2008 /usr/lib/sendmail -> /etc/ alternatives/mta-sendmail $ ls -l /etc/alternatives/mta-sendmail lrwxrwxrwx 1 root root 26 Nov 7 2008 /etc/alternatives/mta-sendmail - > /usr/lib/sendmail.sendmail $ ls -l /usr/lib/sendmail* lrwxrwxrwx 1 root root 30 Nov 7 2008 /usr/lib/sendmail -> /etc/ alternatives/mta-sendmail lrwxrwxrwx 1 root root 24 Nov 7 2008 /usr/lib/sendmail.postfix -> ../ sbin/sendmail.postfix lrwxrwxrwx 1 root root 16 Nov 7 2008 /usr/lib/sendmail.sendmail - > ../sbin/sendmail You can use the 'alternatives' command to view and change this configuration -- # alternatives --display mta mta - status is auto. link currently points to /usr/sbin/sendmail.sendmail /usr/sbin/sendmail.sendmail - priority 90 slave mta-pam: /etc/pam.d/smtp.sendmail slave mta-mailq: /usr/bin/mailq.sendmail slave mta-newaliases: /usr/bin/newaliases.sendmail slave mta-rmail: /usr/bin/rmail.sendmail slave mta-sendmail: /usr/lib/sendmail.sendmail slave mta-mailqman: /usr/share/man/man1/mailq.sendmail.1.gz slave mta-newaliasesman: /usr/share/man/man1/newaliases.sendmail.1.gz slave mta-aliasesman: /usr/share/man/man5/aliases.sendmail.5.gz slave mta-sendmailman: /usr/share/man/man8/sendmail.sendmail.8.gz /usr/sbin/sendmail.postfix - priority 30 slave mta-pam: /etc/pam.d/smtp.postfix slave mta-mailq: /usr/bin/mailq.postfix slave mta-newaliases: /usr/bin/newaliases.postfix slave mta-rmail: /usr/bin/rmail.postfix slave mta-sendmail: /usr/lib/sendmail.postfix slave mta-mailqman: /usr/share/man/man1/mailq.postfix.1.gz slave mta-newaliasesman: /usr/share/man/man1/newaliases.postfix.1.gz slave mta-aliasesman: /usr/share/man/man5/aliases.postfix.5.gz slave mta-sendmailman: /usr/share/man/man1/sendmail.postfix.1.gz Current `best' version is /usr/sbin/sendmail.sendmail. I believe that all you need to do is run 'alternatives --config mta' and choose postfix but I haven't researched this extensively. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Thu Oct 1 21:58:00 2009 From: mmelin at gmail.com (Martin Melin) Date: Thu, 1 Oct 2009 21:58:00 +0200 Subject: FW: Not sending e-mails In-Reply-To: <0e6601ca42d4$ffdcc980$ff965c80$@net> References: <0d8101ca42c4$f176fa10$d464ee30$@net> <0e6601ca42d4$ffdcc980$ff965c80$@net> Message-ID: Looks like your postfix installation isn't really complete since /bin/mail still thinks it's supposed to send using sendmail. On a complete postfix setup you should have a command "sendmail - Postfix to Sendmail compatibility interface" which I believe /bin/mail will use. So the issue here isn't really Nagios-specific, since you're unable to send mail with /bin/mail outside of Nagios as well. If you fix the email setup, Nagios notifications will be delivered just fine, and Postfix setup is too off topic for this list :-) Good luck! On Thu, Oct 1, 2009 at 10:23 PM, Scott Miller wrote: > [root at mail4 ~]# echo "Hello world" | /bin/mail -s "Test Email" > root at localhost > > [root at mail4 ~]# /etc/mail/sendmail.cf: line 0: cannot open: No such file > or directory > > [root at mail4 ~]# > > > > I?m running postfix ? not sure why it?s looking for sendmail. > > > > > > *From:* Martin Melin [mailto:mmelin at gmail.com] > *Sent:* Thursday, October 01, 2009 11:01 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* Re: [Nagios-users] FW: Not sending e-mails > > > > Try simply copying the command_line for notify-service-by-email and running > it in a shell yourself. Or just do: > # echo "Hello world" | /bin/mail -s "Test Email" root at localhost > > On Thu, Oct 1, 2009 at 8:28 PM, Scott Miller > wrote: > > > Scott Miller wrote: > >> I know this has been hit over and over, and I've read literally > everything I > >> could find, but to no avail. I have a newly install of Nagios 3.2.0 on > a > >> Fedora Core 8 with Postfix/Dovecot. I have a modified script (postfix > mail > >> queue monitor I shared a week or so ago). The only thing Nagios is > doing > on > >> this box is looking at local services. When I change any threshold so I > >> will go into alarm, it does, but no e-mails get sent out. > >> > >> I can see in my logs the following when something comes into alarm: > >> > >> [1254408621] SERVICE ALERT: localhost;Postfix Mail > >> Queue;CRITICAL;SOFT;1;CRITICAL: Postfix mailq has 14 messages queued for > a > >> total of 12492 Kbytes. > >> [1254408651] SERVICE ALERT: localhost;Current Load;OK;SOFT;2;OK - load > >> average: 4.87, 2.73, 1.43 > >> [1254408681] SERVICE ALERT: localhost;Postfix Mail > >> Queue;CRITICAL;SOFT;2;CRITICAL: Postfix mailq has 16 messages queued for > a > >> total of 12497 Kbytes. > >> [1254408741] SERVICE ALERT: localhost;Postfix Mail > >> Queue;CRITICAL;SOFT;3;CRITICAL: Postfix mailq has 16 messages queued for > a > >> total of 12689 Kbytes. > >> [1254408801] SERVICE ALERT: localhost;Postfix Mail > >> Queue;CRITICAL;HARD;4;CRITICAL: Postfix mailq has 15 messages queued for > a > >> total of 12494 Kbytes. > >> [1254408801] SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail > >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 > >> messages queued for a total of 12494 Kbytes. > >> [1254408801] SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail > >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 > >> messages queued for a total of 12494 Kbytes. > >> > >> Wondering if anyone could double check the pertinent parts of my config? > >> > >> Thanks in advance. > >> > >> Scott Miller > > > > What's in your mail log? Nagios is trying to send notifications using > > the command you've defined, according to the logs. You haven't provided > > the definition for that command (notify-service-by-email), but I assume > > it's trying to send an email. > > > > If you're using anything like the example commands that come with > > Nagios, it is probably using something like "/bin/mail" to send the > > message, and your mail log would be a good place to look for why it's > > not being delivered. > > Sorry - didn't include that from the commands.cfg - Here's what I have. > > commands.cfg > ============ > # 'notify-host-by-email' command definition > define command{ > command_name notify-host-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > } > > # 'notify-service-by-email' command definition > define command{ > command_name notify-service-by-email > command_line /usr/bin/printf "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > > This is the exact same way I have it on another machine running checks for > multiple boxes and devices. The only difference, is this server is running > Postfix, the other (working) is running Sendmail. > > In my logs: > /var/log/maillog - grep for nagios - there's nothing > /var/log/messages shows > Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: > nagiosadmin2;localhost;Postfix Mail > Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 > messages queued for a total of 3326 Kbytes. > Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: > nagiosadmin;localhost;Postfix Mail > Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 > messages queued for a total of 3326 Kbytes. > > Looks like it's trying - maybe something in Postfix stoping it? I'll have > to do a bit more digging and testing. > > Scott Miller > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srmiller at interbel.net Thu Oct 1 23:53:48 2009 From: srmiller at interbel.net (Scott Miller) Date: Thu, 1 Oct 2009 14:53:48 -0700 Subject: FW: Not sending e-mails In-Reply-To: References: <0d8101ca42c4$f176fa10$d464ee30$@net> <0e6601ca42d4$ffdcc980$ff965c80$@net> Message-ID: <0f4701ca42e1$a8306860$f8913920$@net> I agree - I've found a few other oddities while messing around with Postfix. Gotta fix those first. Thanks, Scott From: Martin Melin [mailto:mmelin at gmail.com] Sent: Thursday, October 01, 2009 12:58 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] FW: Not sending e-mails Looks like your postfix installation isn't really complete since /bin/mail still thinks it's supposed to send using sendmail. On a complete postfix setup you should have a command "sendmail - Postfix to Sendmail compatibility interface" which I believe /bin/mail will use. So the issue here isn't really Nagios-specific, since you're unable to send mail with /bin/mail outside of Nagios as well. If you fix the email setup, Nagios notifications will be delivered just fine, and Postfix setup is too off topic for this list :-) Good luck! On Thu, Oct 1, 2009 at 10:23 PM, Scott Miller wrote: [root at mail4 ~]# echo "Hello world" | /bin/mail -s "Test Email" root at localhost [root at mail4 ~]# /etc/mail/sendmail.cf: line 0: cannot open: No such file or directory [root at mail4 ~]# I'm running postfix - not sure why it's looking for sendmail. From: Martin Melin [mailto:mmelin at gmail.com] Sent: Thursday, October 01, 2009 11:01 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] FW: Not sending e-mails Try simply copying the command_line for notify-service-by-email and running it in a shell yourself. Or just do: # echo "Hello world" | /bin/mail -s "Test Email" root at localhost On Thu, Oct 1, 2009 at 8:28 PM, Scott Miller wrote: Scott Miller wrote: >> I know this has been hit over and over, and I've read literally everything I >> could find, but to no avail. I have a newly install of Nagios 3.2.0 on a >> Fedora Core 8 with Postfix/Dovecot. I have a modified script (postfix mail >> queue monitor I shared a week or so ago). The only thing Nagios is doing on >> this box is looking at local services. When I change any threshold so I >> will go into alarm, it does, but no e-mails get sent out. >> >> I can see in my logs the following when something comes into alarm: >> >> [1254408621] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;1;CRITICAL: Postfix mailq has 14 messages queued for a >> total of 12492 Kbytes. >> [1254408651] SERVICE ALERT: localhost;Current Load;OK;SOFT;2;OK - load >> average: 4.87, 2.73, 1.43 >> [1254408681] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;2;CRITICAL: Postfix mailq has 16 messages queued for a >> total of 12497 Kbytes. >> [1254408741] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;SOFT;3;CRITICAL: Postfix mailq has 16 messages queued for a >> total of 12689 Kbytes. >> [1254408801] SERVICE ALERT: localhost;Postfix Mail >> Queue;CRITICAL;HARD;4;CRITICAL: Postfix mailq has 15 messages queued for a >> total of 12494 Kbytes. >> [1254408801] SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 >> messages queued for a total of 12494 Kbytes. >> [1254408801] SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail >> Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 15 >> messages queued for a total of 12494 Kbytes. >> >> Wondering if anyone could double check the pertinent parts of my config? >> >> Thanks in advance. >> >> Scott Miller > > What's in your mail log? Nagios is trying to send notifications using > the command you've defined, according to the logs. You haven't provided > the definition for that command (notify-service-by-email), but I assume > it's trying to send an email. > > If you're using anything like the example commands that come with > Nagios, it is probably using something like "/bin/mail" to send the > message, and your mail log would be a good place to look for why it's > not being delivered. Sorry - didn't include that from the commands.cfg - Here's what I have. commands.cfg ============ # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } This is the exact same way I have it on another machine running checks for multiple boxes and devices. The only difference, is this server is running Postfix, the other (working) is running Sendmail. In my logs: /var/log/maillog - grep for nagios - there's nothing /var/log/messages shows Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: nagiosadmin2;localhost;Postfix Mail Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 messages queued for a total of 3326 Kbytes. Oct 1 10:53:20 mail4 nagios: SERVICE NOTIFICATION: nagiosadmin;localhost;Postfix Mail Queue;CRITICAL;notify-service-by-email;CRITICAL: Postfix mailq has 13 messages queued for a total of 3326 Kbytes. Looks like it's trying - maybe something in Postfix stoping it? I'll have to do a bit more digging and testing. Scott Miller ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike.saldivar at advocatecreditrepair.com Thu Oct 1 23:03:59 2009 From: mike.saldivar at advocatecreditrepair.com (Michael Saldivar) Date: Thu, 1 Oct 2009 15:03:59 -0600 Subject: FW: Not sending e-mails In-Reply-To: <0f4701ca42e1$a8306860$f8913920$@net> References: <0d8101ca42c4$f176fa10$d464ee30$@net> <0e6601ca42d4$ffdcc980$ff965c80$@net> <0f4701ca42e1$a8306860$f8913920$@net> Message-ID: Did you try the two notification mail commands I sent over? Postfix uses different syntax than what comes in the default Nagios config, and the ones I'm using are from a functional Ubuntu/Postfix setup. It uses Postfix's alias to sendmail instead of the mail command, which doesn't work with Postfix. -Mike On Thu, Oct 1, 2009 at 3:53 PM, Scott Miller wrote: > I agree ? I?ve found a few other oddities while messing around with > Postfix. Gotta fix those first. > > > > Thanks, > > Scott > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srmiller at interbel.net Fri Oct 2 01:02:28 2009 From: srmiller at interbel.net (Scott Miller) Date: Thu, 1 Oct 2009 16:02:28 -0700 Subject: FW: Not sending e-mails In-Reply-To: References: <0d8101ca42c4$f176fa10$d464ee30$@net> <0e6601ca42d4$ffdcc980$ff965c80$@net> <0f4701ca42e1$a8306860$f8913920$@net> Message-ID: <102201ca42eb$3fc89c20$bf59d460$@net> I actually go it to work using your suggestion - I double checked it, and misspelled one word - fixed it, lowered the threshold to alarm, and restarted - got a notification within about 5 min. # NEW 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "Subject:** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/sbin/sendmail.postfix $CONTACTEMAIL$ } # NEW 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/printf "%b" "Subject:** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **\n***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/sbin/sendmail.postfix $CONTACTEMAIL$ Awesome - thanks! http://65.19.234.227:10000 Scott Miller From: mike.saldivar at directfinancialsolutions.com [mailto:mike.saldivar at directfinancialsolutions.com] On Behalf Of Michael Saldivar Sent: Thursday, October 01, 2009 2:04 PM To: Scott Miller Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] FW: Not sending e-mails Did you try the two notification mail commands I sent over? Postfix uses different syntax than what comes in the default Nagios config, and the ones I'm using are from a functional Ubuntu/Postfix setup. It uses Postfix's alias to sendmail instead of the mail command, which doesn't work with Postfix. -Mike On Thu, Oct 1, 2009 at 3:53 PM, Scott Miller wrote: I agree - I've found a few other oddities while messing around with Postfix. Gotta fix those first. Thanks, Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Oct 2 00:10:37 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 01 Oct 2009 15:10:37 -0700 Subject: DHCP hosts In-Reply-To: <4AC4F43D.5010300@marzot.net> References: <4ABA419B.1030002@marzot.net> <4ABB3B57.4020604@googlemail.com> <4AC4F43D.5010300@marzot.net> Message-ID: <4AC528DD.3080900@hp.com> G. S. Marzot wrote: > Thank you for the pointer to this cool plugin... > > Unfortunately no solutions to date really fill the bill as the leases > are allocated by a router that does not publish them in a way I know how > to get... nor can I put anything on the DHCP hosts... they are not under > my control... > > Maybe there is a way to hack into my router and get the lease info... or > maybe I need a little daemon that will just go and probe for all > possible hosts... I would just like to see an accurate depiction of who > is on the net at any given time... maybe this is not something nagios is > good at (i.e., dynamic host groups). Nagios is good at what it does, and it really sounds like this just isn't it. However, I don't see a reason you couldn't hack together a really simple check using a tool that *is* good at this sort of thing (like, say, nmap), and based on the results of that tool, feed the results back to Nagios . ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmarzot at marzot.net Fri Oct 2 00:57:27 2009 From: gmarzot at marzot.net (G. S. Marzot) Date: Thu, 01 Oct 2009 18:57:27 -0400 Subject: remote check with no nagios tools at remote node In-Reply-To: References: <4AC4F4F4.1080407@marzot.net> Message-ID: <4AC533D7.9030307@marzot.net> Mathew Walker wrote: > i think the plugin you're looking for is CHECK_BY_SSH > aybe... except the man page for this shows downloading plugins to be run on the remote host... I am looking for almost zero footprint there or leveraging am ssh login that already exists... the plugin I have in mind (and am pretty sure it does not exist) are things like check_load but where the system info is pulled back to the local host with ssh -c .... check_load_ssh might be a reasonable name for this and all it would require is a key based login on the remote host ... just dreaming out load. thanks, G ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nadiakheffache at yahoo.fr Fri Oct 2 09:50:23 2009 From: nadiakheffache at yahoo.fr (nadia kheffache) Date: Fri, 2 Oct 2009 07:50:23 +0000 (GMT) Subject: error check_snmp for UPS Message-ID: <230991.74234.qm@web25506.mail.ukl.yahoo.com> Hi, Any one can help me to resolve my probleme please? i have the same error when i execute chack_snmp to monitor UPS-onduleur and sensorIP (humidity and temperature server room). ./check_snmp -H UPS-onduleur1 -C public - o .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 -w 185:210 -c 286:999 -l '\Input Voltage\' -u '\Volts\' \Input Voltage\ probleme - No data receved from host (Pas de donn?es re?ues de l'h?te Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] UPS-onduleur1:161 Thank you > Can you help me please? i have the > same error when i execute this commande: > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o > .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w $ARG2$:$ARG1$ -c > $ARG4$:$ARG3$ -C $ARG5$ -l > Temperature -u ?C > > ./check_snmp -H sensorIP -v 1 -o > .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 25:29 -c 30:99 -C > public -l Temperature -u ?C > > Temperature probl?me - Pas de donn?es re?ues de l'h?te > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] > 1:161? .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 > > to monitore the temperature in the local server with > sensorIP, snmpwalk is ok, > > i have the same error with the UPS-onduleur > > thank you > > > --- En date de?: Jeu 1.10.09, frank.bourdeau at dga.defense.gouv.fr > > a ?crit?: > > > De: frank.bourdeau at dga.defense.gouv.fr > > > Objet: RE [spam?] [Nagios-users] error check_snmp for > UPS > > ?: "nadia kheffache" > > Cc: nagios-users at lists.sourceforge.net > > Date: Jeudi 1 Octobre 2009, 10h37 > > Hi, > > > > Have you test with snmpwalk to see if you UPS > onduleur > > respond ? Is the > > UPS mib installed on the nagios server ? > > > > Frank > > > > email: frank.bourdeau at dga.defense.gouv.fr > > fonction: administrateur syst?mes et r?seaux > > tel: 0241936560 > > fax: 0241936681 > > ETAS - BP 60036 - route de Laval - 49245 AVRILLE > CEDEX > > [ENVOYE PAR INTERNET] > > > > > > > > nadia kheffache > > > > 01/10/2009 10:16 > > > > A > > nagios-users at lists.sourceforge.net > > cc > > > > Objet > > [spam?] [Nagios-users] error check_snmp for UPS > > > > > > > > > > > > > > > > Hi, > > > > I wont to monitor an ups (onduleur),i use a basic > nagios > > plugin_snmp. > > > > but i have these error, i can't get any information > about > > this ups. > > > > can you help me please? > > > > thank you > > > > [nagios at nagios01 libexec]$ ./check_snmp -H > UPS-onduleur1 -C > > public - o > > .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 .w 185:210 -c > > 286:999? -l '\Input > > Voltage\' -u '\Volts\' > > > > \Input Voltage\ probl?me - Pas de donn?es re?ues > de > > l'h?te > > > > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 > [authpriv] > > > > UPS-onduleur1:161 > > > > > > > > Nadia > > > > > >? > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer > > Conference in SF, CA > > is the only developer event you need to attend this > year. > > Jumpstart your > > developing skills, take BlackBerry mobile applications > to > > market and stay > > ahead of the curve. Join us from November 9-12, 2009. > > Register > > now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) > and > > OS when > > reporting any issue. > > ::: Messages without supporting info will risk being > sent > > to /dev/null > > > > > > > > > ? ? ? > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer > Conference in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to > market and stay > ahead of the curve. Join us from November 9-12, 2009. > Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > ::: Messages without supporting info will risk being sent > to /dev/null > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Fri Oct 2 10:32:37 2009 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Fri, 02 Oct 2009 09:32:37 +0100 Subject: DHCP hosts In-Reply-To: <4AC528DD.3080900@hp.com> References: <4ABA419B.1030002@marzot.net> <4ABB3B57.4020604@googlemail.com> <4AC4F43D.5010300@marzot.net> <4AC528DD.3080900@hp.com> Message-ID: <4AC5BAA5.7050004@googlemail.com> Morris, Patrick wrote: > G. S. Marzot wrote: >> Thank you for the pointer to this cool plugin... >> >> Unfortunately no solutions to date really fill the bill as the leases >> are allocated by a router that does not publish them in a way I know >> how to get... nor can I put anything on the DHCP hosts... they are >> not under my control... >> >> Maybe there is a way to hack into my router and get the lease info... >> or maybe I need a little daemon that will just go and probe for all >> possible hosts... I would just like to see an accurate depiction of >> who is on the net at any given time... maybe this is not something >> nagios is good at (i.e., dynamic host groups). > > Nagios is good at what it does, and it really sounds like this just > isn't it. > > However, I don't see a reason you couldn't hack together a really > simple check using a tool that *is* good at this sort of thing (like, > say, nmap), and based on the results of that tool, feed the results > back to Nagios . I would say that the best thing to do would be to turn off dhcp on that router and use dhcpd instead. Open and accessible and then you can just use the plugin I wrote... at least I think that would be least amount of work for you to get to working solution. Dhcpd isn't hard and doesn't take long to set up, but I'm not sure on your wording, you mean the hosts aren't under your control or the router isn't under your control to replace the dhcp service with dhcpd? If turning off the dhcp from the router isn't an option then you need to go back to the drawing board, consider how you can access the system, if you have a shell, if you have snmp etc and then come up with another solution using that, possibly custom writing your own plugin to integrate this in to Nagios. -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nick at creativemotiondesign.com Fri Oct 2 12:16:57 2009 From: nick at creativemotiondesign.com (Nick Jennings) Date: Fri, 02 Oct 2009 12:16:57 +0200 Subject: Multiple interfaces on on host (single representation) Message-ID: <4AC5D319.7030904@creativemotiondesign.com> Hi Everyone, I'm setting up Nagios on a new server group, these servers all have 1 public IP and one private (internal network) IP. For the basic "up/down" checks I'd like to ping the public IP, check for the services which is provides, etc. all on the public IP. However for any NRPE stuff, I'd like to bind it to the internal IP address and run all the checks on the local network. The problem is I don't know how to keep from specifying 2 host definitions for each server (ie. an external definition and internal definition). I don't know if it can be done, but I'd like to have one record per server, just for clarity and to avoid confusion. Does this make sense? Can it be done in a reasonable way? Or should I just bite the bullet and make two host definitions per server? Thanks for any help, -Nick -- Nick Jennings Technical Director Creative Motion Design www.creativemotiondesign.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Albert.Shih at obspm.fr Fri Oct 2 13:30:46 2009 From: Albert.Shih at obspm.fr (Albert Shih) Date: Fri, 2 Oct 2009 13:30:46 +0200 Subject: disable all authentication In-Reply-To: <05E8B003-767D-4E6B-B573-C278914D8E41@ena.com> References: <20091001091853.GF75974@obspm.fr> <4223A026-39B0-4CF5-824F-B5CD17CDE031@ena.com> <05E8B003-767D-4E6B-B573-C278914D8E41@ena.com> Message-ID: <20091002113046.GS52241@obspm.fr> Le 01/10/2009 ? 14:38:58-0500, Marc Powell a ?crit > > On Oct 1, 2009, at 7:50 AM, Marc Powell wrote: > > > > > On Oct 1, 2009, at 4:18 AM, Albert Shih wrote: > > > >> Hi all > >> > >> How can I disable all authentication on Nagios ? (It's not for > >> production, > >> and I known what I'm doing ;-) ) > >> > >> I've put > >> > >> use_authentication=0 > >> default_user_name=guest > >> > >> and put ?*? on > >> > >> authorized_for_system_information=* > >> authorized_for_configuration_information=* > >> authorized_for_system_commands=* > >> authorized_for_all_services=* > >> authorized_for_all_hosts=* > >> authorized_for_all_service_commands=* > >> authorized_for_all_host_commands=* > > > > I'm 99% certain wildcards are not supported here. Have you seen in the > > documentation that they are supported? Use the real user_name 'guest' > > here. > > and of course, it's documented in cgi.cfg ;) It is specific to any > user authenticated by the web server. Since you've disabled that > authentication, REMOTE_USER is null. You still need to specify 'guest' > for each of those. Sorry...I've see you second message. Yes it's working with : use_authentication=1 default_user_name=guest authorized_*_=guest I've would never can imagine to put use_authentication to true... Thanks for the help. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex T?l?phone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: Ven 2 oct 2009 13:29:15 CEST ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Albert.Shih at obspm.fr Fri Oct 2 13:28:31 2009 From: Albert.Shih at obspm.fr (Albert Shih) Date: Fri, 2 Oct 2009 13:28:31 +0200 Subject: disable all authentication In-Reply-To: <4223A026-39B0-4CF5-824F-B5CD17CDE031@ena.com> References: <20091001091853.GF75974@obspm.fr> <4223A026-39B0-4CF5-824F-B5CD17CDE031@ena.com> Message-ID: <20091002112831.GR52241@obspm.fr> Le 01/10/2009 ? 07:50:17-0500, Marc Powell a ?crit > > On Oct 1, 2009, at 4:18 AM, Albert Shih wrote: > > > Hi all > > > > How can I disable all authentication on Nagios ? (It's not for > > production, > > and I known what I'm doing ;-) ) > > > > I've put > > > > use_authentication=0 > > default_user_name=guest > > > > and put ?*? on > > > > authorized_for_system_information=* > > authorized_for_configuration_information=* > > authorized_for_system_commands=* > > authorized_for_all_services=* > > authorized_for_all_hosts=* > > authorized_for_all_service_commands=* > > authorized_for_all_host_commands=* > > I'm 99% certain wildcards are not supported here. Have you seen in the > documentation that they are supported? Use the real user_name 'guest' Yes....in the file. > here. but event I put ?guest? it's don't work. I've already got the HAL message. What's the easy way to put some basic authentifcation ? Thanks for the help Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex T?l?phone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: Ven 2 oct 2009 13:27:25 CEST ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Fri Oct 2 14:35:08 2009 From: mmelin at gmail.com (Martin Melin) Date: Fri, 2 Oct 2009 14:35:08 +0200 Subject: Multiple interfaces on on host (single representation) In-Reply-To: <4AC5D319.7030904@creativemotiondesign.com> References: <4AC5D319.7030904@creativemotiondesign.com> Message-ID: Hi, So the problem here is really that you want $HOSTADRESS$ to have the value of the public IP for most of your checks, but want NRPE checks to go to the private IP. The easiest way to set that up for you is that you let $HOSTADRESS$ be the public IP, and add the private IP as either $HOSTNAME$ or $HOSTALIAS$. It won't look great in the CGIs, but you have both of the IPs in your single host definition. Then you simply create or change the check_nrpe command definition to use the correct macro for the -H option. If you'd rather not do the above, depending on the size and volatility of your server park, you could just write a wrapper to check_nrpe that maps the public IP to a private IP from a simple text file. Regards Martin Melin On Fri, Oct 2, 2009 at 12:16 PM, Nick Jennings < nick at creativemotiondesign.com> wrote: > Hi Everyone, > > I'm setting up Nagios on a new server group, these servers all have 1 > public IP and one private (internal network) IP. For the basic "up/down" > checks I'd like to ping the public IP, check for the services which is > provides, etc. all on the public IP. > > However for any NRPE stuff, I'd like to bind it to the internal IP > address and run all the checks on the local network. The problem is I > don't know how to keep from specifying 2 host definitions for each > server (ie. an external definition and internal definition). I don't > know if it can be done, but I'd like to have one record per server, just > for clarity and to avoid confusion. > > Does this make sense? Can it be done in a reasonable way? Or should I > just bite the bullet and make two host definitions per server? > > Thanks for any help, > -Nick > > > -- > Nick Jennings > Technical Director > Creative Motion Design > www.creativemotiondesign.com > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Fri Oct 2 15:04:51 2009 From: pangrazi at gmail.com (Greg Pangrazio) Date: Fri, 2 Oct 2009 08:04:51 -0500 Subject: DHCP hosts In-Reply-To: <4AC5BAA5.7050004@googlemail.com> References: <4ABA419B.1030002@marzot.net> <4ABB3B57.4020604@googlemail.com> <4AC4F43D.5010300@marzot.net> <4AC528DD.3080900@hp.com> <4AC5BAA5.7050004@googlemail.com> Message-ID: If you don't control the router that is handing out DHCP, check to see if it is cisco, I used to have one dump a file with the dhcp leases to an ftp server every time a lease was renewed or granted. You could also get the admin to send you the dhcp logs and use syslog-ng to parse them out and provide you with the leases. Greg Pangrazio pangrazi at gmail.com On Fri, Oct 2, 2009 at 3:32 AM, Hari Sekhon wrote: > Morris, Patrick wrote: >> G. S. Marzot wrote: >>> Thank you for the pointer to this cool plugin... >>> >>> Unfortunately no solutions to date really fill the bill as the leases >>> are allocated by a router that does not publish them in a way I know >>> how to get... nor can I put anything on the DHCP hosts... they are >>> not under my control... >>> >>> Maybe there is a way to hack into my router and get the lease info... >>> or maybe I need a little daemon that will just go and probe for all >>> possible hosts... I would just like to see an accurate depiction of >>> who is on the net at any given time... maybe this is not something >>> nagios is good at (i.e., dynamic host groups). >> >> Nagios is good at what it does, and it really sounds like this just >> isn't it. >> >> However, I don't see a reason you couldn't hack together a really >> simple check using a tool that *is* good at this sort of thing (like, >> say, nmap), and based on the results of that tool, feed the results >> back to Nagios . > > I would say that the best thing to do would be to turn off dhcp on that > router and use dhcpd instead. Open and accessible and then you can just > use the plugin I wrote... at least I think that would be least amount of > work for you to get to working solution. > > Dhcpd isn't hard and doesn't take long to set up, but I'm not sure on > your wording, you mean the hosts aren't under your control or the router > isn't under your control to replace the dhcp service with dhcpd? > > If turning off the dhcp from the router isn't an option then you need to > go back to the drawing board, consider how you can access the system, if > you have a shell, if you have snmp etc and then come up with another > solution using that, possibly custom writing your own plugin to > integrate this in to Nagios. > > -h > > -- > Hari Sekhon > http://www.linkedin.com/in/harisekhon > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mad at b-care.net Fri Oct 2 14:45:01 2009 From: mad at b-care.net (=?ISO-8859-1?Q?Marc-Andr=E9?= Doll) Date: Fri, 02 Oct 2009 14:45:01 +0200 Subject: Multiple interfaces on on host (single representation) In-Reply-To: <4AC5D319.7030904@creativemotiondesign.com> References: <4AC5D319.7030904@creativemotiondesign.com> Message-ID: <1254487501.3474.7.camel@MADness> Le vendredi 02 octobre 2009 ? 12:16 +0200, Nick Jennings a ?crit : > Hi Everyone, > > I'm setting up Nagios on a new server group, these servers all have 1 > public IP and one private (internal network) IP. For the basic "up/down" > checks I'd like to ping the public IP, check for the services which is > provides, etc. all on the public IP. > > However for any NRPE stuff, I'd like to bind it to the internal IP > address and run all the checks on the local network. The problem is I > don't know how to keep from specifying 2 host definitions for each > server (ie. an external definition and internal definition). One solution may be using some custom macros. For example, set the host address to your internal IP and define a custom macro for each host (say _external_address) and instead of passing the $HOSTADDRESS$ macro to your check_commands just pass the $_HOST_EXTERNAL_ADDRESS$ one. This is just a guess. May be users more experimented than me may confirm. > > Thanks for any help, > -Nick > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gtj at addicks.org Fri Oct 2 15:47:34 2009 From: gtj at addicks.org (Glynne Jones) Date: Fri, 2 Oct 2009 14:47:34 +0100 Subject: Failover Monitoring Acks/Comments Message-ID: <173D30F4-1661-49DA-BA49-622936A48860@addicks.org> I'm about to design a failover solution and my client wants to ensure that the slave nagios server is up to date with state of services. Easy, just send it passive updates from the master. However, they want to make sure any service acknowledgements and comments are also sent across to the slave. Has anyone got this configured? Thanks, Glynne ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lscarneiro at veltrac.com.br Fri Oct 2 16:49:58 2009 From: lscarneiro at veltrac.com.br (Leonardo Carneiro) Date: Fri, 02 Oct 2009 11:49:58 -0300 Subject: pnp4nagios over nrpe Message-ID: <4AC61316.3080903@veltrac.com.br> I'm using pnp4nagios in some local services and it's running just fine. now i'm trying to get perfdata from a service running on a remote host, but doing so via nrpe. the command it's a simple shell script that checks how many files exist in a especified folder. When i try to see the graph, the last item show me an error: RRD Database/usr/local/nagios/share/perfdata/gwserver01/MSG_para_o_banco.rrd not found. I now i could be thousand of problems. what i wanna know if is possible to gather this kind of data via nrpe. tks in advance and forgive me for my poor english. -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Log?stica.* lscarneiro at veltrac.com.br http://www.veltrac.com.br /Fone Com.: (43)2105-5601/ /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 2 17:27:51 2009 From: marc at ena.com (Marc Powell) Date: Fri, 2 Oct 2009 10:27:51 -0500 Subject: Failover Monitoring Acks/Comments In-Reply-To: <173D30F4-1661-49DA-BA49-622936A48860@addicks.org> References: <173D30F4-1661-49DA-BA49-622936A48860@addicks.org> Message-ID: <007964C2-9BFD-43E6-917F-31AE41D591F7@ena.com> On Oct 2, 2009, at 8:47 AM, Glynne Jones wrote: > I'm about to design a failover solution and my client wants to ensure > that the slave nagios server is up to date with state of services. > Easy, just send it passive updates from the master. > > However, they want to make sure any service acknowledgements and > comments are also sent across to the slave. Has anyone got this > configured? I do this for Service Acknowledgments. I've written a small perl script that runs out of cron to copy them over. It essentially starts from it's last known position in the log file, looks for ACKNOWLEDGE_SVC_PROBLEM, grabs it, ssh's over to the other host and dumps it into the external command file there. I expect the same could be done for Host Acknowledgements and comments. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Fri Oct 2 17:36:23 2009 From: perldork at webwizarddesign.com (Max) Date: Fri, 2 Oct 2009 11:36:23 -0400 Subject: pnp4nagios over nrpe In-Reply-To: <4AC61316.3080903@veltrac.com.br> References: <4AC61316.3080903@veltrac.com.br> Message-ID: On Fri, Oct 2, 2009 at 10:49 AM, Leonardo Carneiro wrote: > I'm using pnp4nagios in some local services and it's running just fine. > now i'm trying to get perfdata from a service running on a remote host, > but doing so via nrpe. the command it's a simple shell script that > checks how many files exist in a especified folder. > > When i try to see the graph, the last item show me an error: > > RRD > Database/usr/local/nagios/share/perfdata/gwserver01/MSG_para_o_banco.rrd > not found. > > I now i could be thousand of problems. what i wanna know if is possible > to gather this kind of data via nrpe. > > tks in advance and forgive me for my poor english. yes, absolutely NRPE can be used to collect performance data .. does your shell script return performance data as part of it's output? You should see a pipe symbol "|" and then metrics in the output from the script, e,g. "MY-CHECK - OK - Blah blah | 'metric1'=10;90;100 'metric2'=4;80;100'" - Max ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Fri Oct 2 18:06:03 2009 From: mmelin at gmail.com (Martin Melin) Date: Fri, 2 Oct 2009 18:06:03 +0200 Subject: Multiple interfaces on on host (single representation) In-Reply-To: <1254487501.3474.7.camel@MADness> References: <4AC5D319.7030904@creativemotiondesign.com> <1254487501.3474.7.camel@MADness> Message-ID: Of course! Custom macros are of course the best way to do this, not to use HOSTALIAS. Forgot about that in my quick reply :) On Fri, Oct 2, 2009 at 2:45 PM, Marc-Andr? Doll wrote: > Le vendredi 02 octobre 2009 ? 12:16 +0200, Nick Jennings a ?crit : > > Hi Everyone, > > > > I'm setting up Nagios on a new server group, these servers all have 1 > > public IP and one private (internal network) IP. For the basic "up/down" > > checks I'd like to ping the public IP, check for the services which is > > provides, etc. all on the public IP. > > > > However for any NRPE stuff, I'd like to bind it to the internal IP > > address and run all the checks on the local network. The problem is I > > don't know how to keep from specifying 2 host definitions for each > > server (ie. an external definition and internal definition). > > One solution may be using some custom macros. For example, set the host > address to your internal IP and define a custom macro for each host (say > _external_address) and instead of passing the $HOSTADDRESS$ macro to > your check_commands just pass the $_HOST_EXTERNAL_ADDRESS$ one. > > This is just a guess. May be users more experimented than me may > confirm. > > > > > Thanks for any help, > > -Nick > > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GreenmanSE at familysearch.org Fri Oct 2 19:57:54 2009 From: GreenmanSE at familysearch.org (Scott Greenman) Date: Fri, 2 Oct 2009 11:57:54 -0600 Subject: Multiple interfaces on on host (single representation) In-Reply-To: <4AC5D319.7030904@creativemotiondesign.com> References: <4AC5D319.7030904@creativemotiondesign.com> Message-ID: <3679AE44D8C04547A4F3EB83E779056282A76B91F1@MBX01.ldschurch.org> We have a similar situation but in our case we have two IPs per machine and we want to execute checks over both. The way I solved this was to put both IPs, comma-separated, into the 'address' field for the servers. I then wrapped the plugins with a script that would take the list of IPs and execute the check against each IP in turn. This does mean that every check, including host checks, have to use the wrapper script. For your case, using a separate variable is probably a better solution, but thought I'd just give you another option. Scott Greenman Software Developer Family History Department The Church of Jesus Christ of Latter-day Saints www.familysearch.org ________________________________________ From: Nick Jennings [nick at creativemotiondesign.com] Sent: Friday, October 02, 2009 4:16 AM To: Nagios Users Subject: [Nagios-users] Multiple interfaces on on host (single representation) Hi Everyone, I'm setting up Nagios on a new server group, these servers all have 1 public IP and one private (internal network) IP. For the basic "up/down" checks I'd like to ping the public IP, check for the services which is provides, etc. all on the public IP. However for any NRPE stuff, I'd like to bind it to the internal IP address and run all the checks on the local network. The problem is I don't know how to keep from specifying 2 host definitions for each server (ie. an external definition and internal definition). I don't know if it can be done, but I'd like to have one record per server, just for clarity and to avoid confusion. Does this make sense? Can it be done in a reasonable way? Or should I just bite the bullet and make two host definitions per server? Thanks for any help, -Nick -- Nick Jennings Technical Director Creative Motion Design www.creativemotiondesign.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 2 16:58:29 2009 From: m.borsani at it.net (Marco Borsani) Date: Fri, 2 Oct 2009 16:58:29 +0200 Subject: nsclient++ and nrpe commands In-Reply-To: <230991.74234.qm@web25506.mail.ukl.yahoo.com> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> Message-ID: <30907.0522118875$1254512325@news.gmane.org> Hi all I use nsclient++ with standard commands via check_nt, all is ok. Now I need to run some commands/plug-in (like checl_openmanage.exe), but I don't find the correct sintax. Right now I prepare a command inside NSC.ini file like these: command[nsc_openmanage]=c:\nagios\check_openmanage.exe nsc_open=scripts\check_openmanage.exe -v When I try to call it from nagios server with: ./check_nrpe -H IPADDRESS -c nsc_openmanage I receive following error: CHECK_NRPE: Socket timeout after 10 seconds. NSClient++ works correctly with : check_nt -H IPADDRESS -v xxxxxxxx check_nrpe -H IPADDRESS -c CheckCPU -a warn=80 crit=90 time=20m time=10s time=4 My versions are: Nsclient++ = 0.2.7 2007-03-06 Check_nrpe = 2.7.1 May you show me any NSC.ini files ? Any idea? Thanks Marco -----Messaggio originale----- Da: nadia kheffache [mailto:nadiakheffache at yahoo.fr] Inviato: venerd? 2 ottobre 2009 9.50 A: nagios-users at lists.sourceforge.net Oggetto: [Nagios-users] error check_snmp for UPS Hi, Any one can help me to resolve my probleme please? i have the same error when i execute chack_snmp to monitor UPS-onduleur and sensorIP (humidity and temperature server room). ./check_snmp -H UPS-onduleur1 -C public - o .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 -w 185:210 -c 286:999 -l '\Input Voltage\' -u '\Volts\' \Input Voltage\ probleme - No data receved from host (Pas de donn?es re?ues de l'h?te Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] UPS-onduleur1:161 Thank you > Can you help me please? i have the > same error when i execute this commande: > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o > .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w $ARG2$:$ARG1$ -c > $ARG4$:$ARG3$ -C $ARG5$ -l > Temperature -u ?C > > ./check_snmp -H sensorIP -v 1 -o > .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 25:29 -c 30:99 -C > public -l Temperature -u ?C > > Temperature probl?me - Pas de donn?es re?ues de l'h?te > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] > 1:161? .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 > > to monitore the temperature in the local server with > sensorIP, snmpwalk is ok, > > i have the same error with the UPS-onduleur > > thank you > > > --- En date de?: Jeu 1.10.09, frank.bourdeau at dga.defense.gouv.fr > > a ?crit?: > > > De: frank.bourdeau at dga.defense.gouv.fr > > > Objet: RE [spam?] [Nagios-users] error check_snmp for > UPS > > ?: "nadia kheffache" > > Cc: nagios-users at lists.sourceforge.net > > Date: Jeudi 1 Octobre 2009, 10h37 > > Hi, > > > > Have you test with snmpwalk to see if you UPS > onduleur > > respond ? Is the > > UPS mib installed on the nagios server ? > > > > Frank > > > > email: frank.bourdeau at dga.defense.gouv.fr > > fonction: administrateur syst?mes et r?seaux > > tel: 0241936560 > > fax: 0241936681 > > ETAS - BP 60036 - route de Laval - 49245 AVRILLE > CEDEX > > [ENVOYE PAR INTERNET] > > > > > > > > nadia kheffache > > > > 01/10/2009 10:16 > > > > A > > nagios-users at lists.sourceforge.net > > cc > > > > Objet > > [spam?] [Nagios-users] error check_snmp for UPS > > > > > > > > > > > > > > > > Hi, > > > > I wont to monitor an ups (onduleur),i use a basic > nagios > > plugin_snmp. > > > > but i have these error, i can't get any information > about > > this ups. > > > > can you help me please? > > > > thank you > > > > [nagios at nagios01 libexec]$ ./check_snmp -H > UPS-onduleur1 -C > > public - o > > .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 .w 185:210 -c > > 286:999? -l '\Input > > Voltage\' -u '\Volts\' > > > > \Input Voltage\ probl?me - Pas de donn?es re?ues > de > > l'h?te > > > > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 > [authpriv] > > > > UPS-onduleur1:161 > > > > > > > > Nadia > > > > > >? > > > > > ---------------------------------------------------------------------------- -- > > Come build with us! The BlackBerry® Developer > > Conference in SF, CA > > is the only developer event you need to attend this > year. > > Jumpstart your > > developing skills, take BlackBerry mobile applications > to > > market and stay > > ahead of the curve. Join us from November 9-12, 2009. > > Register > > now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) > and > > OS when > > reporting any issue. > > ::: Messages without supporting info will risk being > sent > > to /dev/null > > > > > > > > > ? ? ? > > ---------------------------------------------------------------------------- -- > Come build with us! The BlackBerry® Developer > Conference in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to > market and stay > ahead of the curve. Join us from November 9-12, 2009. > Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > ::: Messages without supporting info will risk being sent > to /dev/null > ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From randy at grouchybastid.com Fri Oct 2 21:35:42 2009 From: randy at grouchybastid.com (Randy Rodriguez) Date: Fri, 02 Oct 2009 12:35:42 -0700 Subject: Service dependency fun Message-ID: <4AC6560E.20301@grouchybastid.com> Hey all. Here's my situation, and my dilemma. I instituted a check of the snmpd process on a group of hosts, all of which do snmp-based checks of other services. I want to institute a dependency such that the snmp checks do not notify if the snmpd check fails. Simple, no? Here's my service dependency cfg: define servicedependency{ hostgroup_name all_servers service_description snmp_svc dependent_service_description snmp_* execution_failure_criteria n notification_failure_criteria c,u } I've also tried it like this: define servicedependency{ hostgroup_name all_servers service_description snmp_svc dependent_servicegroup_name snmp_checks execution_failure_criteria n notification_failure_criteria c,u } and both fail in the same way. The error is Error: Could not expand master services specified in service dependency (config file '/usr/local/nagios/etc/objects/service_dependencies.cfg', starting on line 1) Clearly I'm missing something. Any help appreciated. Nagios 3.0.6, btw. Thanks, -Randy ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mirde at oppy.com Fri Oct 2 21:17:41 2009 From: mirde at oppy.com (Mirza Dedic) Date: Fri, 2 Oct 2009 12:17:41 -0700 Subject: Using Nagios to monitor Exchange 2007 Queues, etc.. ?? Message-ID: I cannot seem to find any solid information with Google.com on how to monitor my Exchange 2007 server, I am interested in knowing the send/receive queues, mainly to know the load at any certain time... On the box, I have NSClient++ installed (0.3.7) and I am already monitoring windows services, disk/memory/cpu; but I would like to have nagios look under the roof of the exchange server, and get me some #s for queue lengths. I guess this would be accomplished by WMI? I have not used WMI with NSClient++ before, does anyone have this setup in their environment for Exchange (or even IIS/ISA)? Please give some examples. Thank you.. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lambert at lambertfam.org Fri Oct 2 22:15:42 2009 From: lambert at lambertfam.org (Scott Lambert) Date: Fri, 2 Oct 2009 15:15:42 -0500 Subject: remote check with no nagios tools at remote node In-Reply-To: <4AC533D7.9030307@marzot.net> References: <4AC4F4F4.1080407@marzot.net> <4AC533D7.9030307@marzot.net> Message-ID: <20091002201542.GA35423@sysmon.tcworks.net> On Thu, Oct 01, 2009 at 06:57:27PM -0400, G. S. Marzot wrote: > Mathew Walker wrote: > > i think the plugin you're looking for is CHECK_BY_SSH > > > > aybe... except the man page for this shows downloading plugins to be run > on the remote host... I am looking for almost zero footprint there or > leveraging am ssh login that already exists... the plugin I have in mind > (and am pretty sure it does not exist) are things like check_load but > where the system info is pulled back to the local host with > > ssh -c .... > > check_load_ssh might be a reasonable name for this and all it would > require is a key based login on the remote host ... check_snmp Or start writing your own.... -- Scott Lambert KC5MLE Unix SysAdmin lambert at lambertfam.org ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stanislas.leveau at ac-caen.fr Fri Oct 2 23:25:36 2009 From: stanislas.leveau at ac-caen.fr (Leveau Stanislas) Date: Fri, 2 Oct 2009 23:25:36 +0200 Subject: pnp4nagios over nrpe In-Reply-To: References: <4AC61316.3080903@veltrac.com.br> Message-ID: <20091002232536.nferwlhhnjy840ww@mel.ac-caen.fr> hi you create a file Fichier check_nrpe.php #check_command check_nrpe!check_users!-w 3 ?c 6 #________0_______________|| #________________1__________________|| #________________________2______________________|| # CUSTOM_TEMPLATE = 1 custom_template with 1 it s for to use the second argument : check_users so you use check_users.php > On Fri, Oct 2, 2009 at 10:49 AM, Leonardo Carneiro > wrote: >> I'm using pnp4nagios in some local services and it's running just fine. >> now i'm trying to get perfdata from a service running on a remote host, >> but doing so via nrpe. the command it's a simple shell script that >> checks how many files exist in a especified folder. >> >> When i try to see the graph, the last item show me an error: >> >> RRD >> Database/usr/local/nagios/share/perfdata/gwserver01/MSG_para_o_banco.rrd >> not found. >> >> I now i could be thousand of problems. what i wanna know if is possible >> to gather this kind of data via nrpe. >> >> tks in advance and forgive me for my poor english. > > yes, absolutely NRPE can be used to collect performance data .. does > your shell script return performance data as part of it's output? You > should see a pipe symbol "|" and then metrics in the output from the > script, e,g. > > "MY-CHECK - OK - Blah blah | 'metric1'=10;90;100 'metric2'=4;80;100'" > > - Max > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lscarneiro at veltrac.com.br Sat Oct 3 13:39:36 2009 From: lscarneiro at veltrac.com.br (Leonardo Carneiro) Date: Sat, 03 Oct 2009 08:39:36 -0300 Subject: pnp4nagios over nrpe In-Reply-To: <20091002232536.nferwlhhnjy840ww@mel.ac-caen.fr> References: <4AC61316.3080903@veltrac.com.br> <20091002232536.nferwlhhnjy840ww@mel.ac-caen.fr> Message-ID: <4AC737F8.9080603@veltrac.com.br> Tks Leveau and Max. Its working now. I had already fixed after max email, and answered the mail only to him by mistake. Leveau Stanislas escreveu: > hi > > you create a file > > Fichier check_nrpe.php > #check_command check_nrpe!check_users!-w 3 ?c 6 > #________0_______________|| > #________________1__________________|| > #________________________2______________________|| > # > CUSTOM_TEMPLATE = 1 > > > custom_template with 1 it s for to use the second argument : check_users > so you use check_users.php > >> On Fri, Oct 2, 2009 at 10:49 AM, Leonardo Carneiro >> wrote: >>> I'm using pnp4nagios in some local services and it's running just fine. >>> now i'm trying to get perfdata from a service running on a remote host, >>> but doing so via nrpe. the command it's a simple shell script that >>> checks how many files exist in a especified folder. >>> >>> When i try to see the graph, the last item show me an error: >>> >>> RRD >>> Database/usr/local/nagios/share/perfdata/gwserver01/MSG_para_o_banco.rrd >>> >>> not found. >>> >>> I now i could be thousand of problems. what i wanna know if is possible >>> to gather this kind of data via nrpe. >>> >>> tks in advance and forgive me for my poor english. >> >> yes, absolutely NRPE can be used to collect performance data .. does >> your shell script return performance data as part of it's output? You >> should see a pipe symbol "|" and then metrics in the output from the >> script, e,g. >> >> "MY-CHECK - OK - Blah blah | 'metric1'=10;90;100 'metric2'=4;80;100'" >> >> - Max >> >> ------------------------------------------------------------------------------ >> >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and >> stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Log?stica.* lscarneiro at veltrac.com.br http://www.veltrac.com.br /Fone Com.: (43)2105-5601/ /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Sat Oct 3 14:10:41 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Sat, 3 Oct 2009 08:10:41 -0400 Subject: Using Nagios to monitor Exchange 2007 Queues, etc.. ?? In-Reply-To: References: Message-ID: Hi, I thought Exchange had some performance counters. Tony (Author of NC_Net) On Fri, Oct 2, 2009 at 3:17 PM, Mirza Dedic wrote: > I cannot seem to find any solid information with Google.com on how to > monitor my Exchange 2007 server, I am interested in knowing the send/receive > queues, mainly to know the load at any certain time... > > On the box, I have NSClient++ installed (0.3.7) and I am already monitoring > windows services, disk/memory/cpu; but I would like to have nagios look > under the roof of the exchange server, and get me some #s for queue lengths. > > I guess this would be accomplished by WMI? I have not used WMI with > NSClient++ before, does anyone have this setup in their environment for > Exchange (or even IIS/ISA)? > > Please give some examples. > > Thank you.. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Sat Oct 3 16:22:20 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Sat, 3 Oct 2009 16:22:20 +0200 Subject: NRPE question In-Reply-To: <2024a9fb0909300736x1118593pa5f31a66c83d1279@mail.gmail.com> References: <2024a9fb0909300736x1118593pa5f31a66c83d1279@mail.gmail.com> Message-ID: <90f6e8270910030722w1e02e738s45631e22cd3fdba3@mail.gmail.com> you could use check_ssh, I suppose, but nrpe is way better -- Groeten, J.Asenjo On Wed, Sep 30, 2009 at 4:36 PM, akp geek wrote: > Hi - > > I have installed nagios on one solaris server(Server1). I would > like to , if I need to check/monitor an other Server ( Server2 ) from > Server1. Do I need to have the NRPE running on the server2? or is there any > other means that I can monitor server2 from server1 using Nagios > > > Regards > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Sat Oct 3 16:21:01 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Sat, 3 Oct 2009 16:21:01 +0200 Subject: nsclient++ and nrpe commands In-Reply-To: <-1928438330302163860@unknownmsgid> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> Message-ID: <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> On Fri, Oct 2, 2009 at 4:58 PM, Marco Borsani wrote: > Hi all > > I use nsclient++ with standard commands via check_nt, all is ok. > > Now I need to run some commands/plug-in (like checl_openmanage.exe), but I > don't find the correct sintax. > > Right now I prepare a command inside NSC.ini file like these: > command[nsc_openmanage]=c:\nagios\check_openmanage.exe > nsc_open=scripts\check_openmanage.exe -v > > When I try to call it from nagios server with: ./check_nrpe -H IPADDRESS -c > nsc_openmanage > I receive following error: CHECK_NRPE: Socket timeout after 10 seconds. > a socket timeout means it could not connect the nrpe port. If you try this nagios at nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01 I (0.3.2.9 2008-05-17) seem to be doing fine... so without any commands to be run, it just checks whether the nrpe service is ok. If you try a not defined command in nsc.ini, like this: nagios at nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01 -c test UNKNOWN: No handler for that command there is no 'test' command defined, so it gives me an UNKNOWN. in your nsc.ini check that the NRPEListener.dll is enabled, the [NRPE] section should look (at least) like this; [NRPE] port=5666 command_timeout=60 allow_arguments=1 socket_timeout=30 and your [NRPE Handlers] section should contain your allowed checks (here only services and disks): nrpe_CheckService=inject checkServiceState CheckAll exclude=SysmonLog nrpe_CheckDriveSize=inject CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED FilterType=REMOTE your nagios server must be allowed to query the nrpe server (check firewall and allowed_hosts settings in nsc.ini) > NSClient++ works correctly with : > check_nt -H IPADDRESS -v xxxxxxxx > check_nrpe -H IPADDRESS -c CheckCPU -a warn=80 crit=90 time=20m time=10s > time=4 > > My versions are: > Nsclient++ = 0.2.7 2007-03-06 > Check_nrpe = 2.7.1 > > May you show me any NSC.ini files ? > > your nsclient++ is quite old, you should try a newer one. For quesions about nsclient++ the proper forum is the one at nsclient.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Sun Oct 4 02:12:21 2009 From: subscription at kkeane.com (Kevin Keane) Date: Sat, 03 Oct 2009 17:12:21 -0700 Subject: Using Nagios to monitor Exchange 2007 Queues, etc.. ?? In-Reply-To: References: Message-ID: <4AC7E865.6050106@kkeane.com> Check out my TNTMonitoringPlugin project on Sourceforge. There is a plugin specifically to monitor Exchange. It handles both Exchange 2003 and Exchange 2007. It does monitor queue lengths as well as a few other factors, but the focus is not really so much on load. Queue length primarily is an indicator of network problems. A long send queue, in particular, tells me that the Internet connection is down, or something along those lines. If you look at the source code for the plugin, you can also see the WMI query used. Mirza Dedic wrote: > I cannot seem to find any solid information with Google.com on how to monitor my Exchange 2007 server, I am interested in knowing the send/receive queues, mainly to know the load at any certain time... > > On the box, I have NSClient++ installed (0.3.7) and I am already monitoring windows services, disk/memory/cpu; but I would like to have nagios look under the roof of the exchange server, and get me some #s for queue lengths. > > I guess this would be accomplished by WMI? I have not used WMI with NSClient++ before, does anyone have this setup in their environment for Exchange (or even IIS/ISA)? > > Please give some examples. > > Thank you.. > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Mon Oct 5 00:35:00 2009 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Mon, 5 Oct 2009 09:35:00 +1100 Subject: escalation for receiving only recovery events? In-Reply-To: <20091004154950.GA5706@norchemlab.com> References: <20091004154950.GA5706@norchemlab.com> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB3E0BD24FFC@off-win2003-01.ausregistrygroup.local> > -----Original Message----- > From: Justin Pryzby [mailto:justinp at norchemlab.com] > Sent: Monday, 5 October 2009 02:50 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] escalation for receiving only recovery events? > > A coworker wants to receive periodic notifies for failing services, > and I want to receive only the first one. I can implement that using > an "inverted" escalation (removing me from the notify list at the 2nd > notification). > > However I *do* want to receive recovery events, even if they're after > the 2nd notification. Is that configuration possible? Two different contact groups, yourself, and 'everyone else'.. In the base check, put both groups, saying you want the options w,c,r. In the escalation, put just everyone else, with options w,c and first_notification of 2+. Or something like that ;) Stuart ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From K.Getchell at kingston.ac.uk Mon Oct 5 01:16:29 2009 From: K.Getchell at kingston.ac.uk (Getchell, Kristoffer M) Date: Mon, 5 Oct 2009 00:16:29 +0100 Subject: Service Definition for Passive Only Reports Message-ID: We have a number of service which I don't want Nagios to actively monitor, instead Nagios will be updated by passive alerts which are generated by the service itself. I've currently got a service definition setup, but haven't figured out how to get the service to not have an active check associated with it without any warnings being issued in the tactical overview page. At the moment what i've done is setup an active check that does nothing and set a long between times check. However, this isn't ideal. Has anyone else setup a passive only service and managed to get the tactical overivew interface to not complain about active checks not being enabled on a specific host/service? Many thanks, Kris This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From selvakumar.a at europlex.in Mon Oct 5 06:36:40 2009 From: selvakumar.a at europlex.in (Selvakumar A) Date: Mon, 5 Oct 2009 10:06:40 +0530 Subject: How to monitor a linux file opened & closedstatus using Nagios References: <6872DF21E3D09046BDF172721037F4FB79B840@SBTEXCHANGEDB.sbtdats.com><6872DF21E3D09046BDF172721037F4FB79B843@SBTEXCHANGEDB.sbtdats.com> <5CB2A910-822B-4834-81EE-6BBB10612E0E@ena.com> Message-ID: <6872DF21E3D09046BDF172721037F4FB79B846@SBTEXCHANGEDB.sbtdats.com> Hi, Thanks a lot.I checked with the "lsof" command.It gives the number of opened files via shell,VI editor.But when I open a file through GNOME text editor the "lsof" command does not give the status of the file opened by GNOME text Editor. It would be fine if a command gives the status of the file opened by gnome text editor. Regards A.Selvakumar Siemens Building Technologies Pvt Ltd Industry Sector, Building Technologies Division, I BT IN SES SYS Robert V Chandran Tower, Fourth Floor, West Wing. #149, Velachery Tambaram Main Road, Pallikaranai, Chennai ? 600 100 Tel: +91(0)4442954312 -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thu 10/1/2009 6:31 PM To: Nagios-Users Mailinglist Subject: Re: [Nagios-users] How to monitor a linux file opened & closedstatus using Nagios On Oct 1, 2009, at 6:48 AM, Selvakumar A wrote: > Hi, > Thanks for your guidance.I followed your instructions.I installed > net_nc in windows-XP and I could only get the file's modified time. > I am also interested to know about how to monitor a linux file's > status whether it is opened or closed and modified etc.I used > chech_file_age plugin which gives only the age of the file.Is there > any way please help me. I'm not aware of any plugins that check these. If you decide to write your own plugin, lsof (when run using sudo) will be your friend. 'is opened' - specified file appears in the output of lsof 'is closed' - specified file does not appear in the output of lsof 'is modified' - depends on what you mean by modified. File age may be sufficient but if you want to see if actual changes were made you'll need to create a copy at each run and compare the current with the previous (using cmp or diff, for example). A quick google for 'nagios check lsof' doesn't yield any interesting initial results but you might have luck further in the search results. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. You may not copy, disclose or use the contents in any way. SBTPL does not guarantee integrity of this communication nor is that this communication free of issues, interceptions or interference. This communication does not create or modify any contract, and unless otherwise stated, is not intended to be contractually binding. Views or opinions expressed in this e-mail message are those of the author only. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From K.Getchell at kingston.ac.uk Mon Oct 5 10:01:34 2009 From: K.Getchell at kingston.ac.uk (Getchell, Kristoffer M) Date: Mon, 5 Oct 2009 09:01:34 +0100 Subject: Service Definition for Passive Only Reports In-Reply-To: References: Message-ID: I should possibly add that we're using Nagios 3.0.6 on SLES 11 if that makes any difference. Cheers, Kris -----Original Message----- From: Getchell, Kristoffer M [mailto:K.Getchell at kingston.ac.uk] Sent: 05 October 2009 00:16 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Service Definition for Passive Only Reports We have a number of service which I don't want Nagios to actively monitor, instead Nagios will be updated by passive alerts which are generated by the service itself. I've currently got a service definition setup, but haven't figured out how to get the service to not have an active check associated with it without any warnings being issued in the tactical overview page. At the moment what i've done is setup an active check that does nothing and set a long between times check. However, this isn't ideal. Has anyone else setup a passive only service and managed to get the tactical overivew interface to not complain about active checks not being enabled on a specific host/service? Many thanks, Kris This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null This email has been scanned for all viruses by the MessageLabs Email Security System. This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Mon Oct 5 10:54:28 2009 From: mmelin at gmail.com (Martin Melin) Date: Mon, 5 Oct 2009 10:54:28 +0200 Subject: Service Definition for Passive Only Reports In-Reply-To: References: Message-ID: Are you using freshness checking? If not, try creating a time period "never" so that the active check is never scheduled. Otherwise you usually just want to set active_checks_enabled to 0 but I guess you don't want the CGIs to show that the checks are disabled? Regards Martin Melin On Mon, Oct 5, 2009 at 10:01 AM, Getchell, Kristoffer M < K.Getchell at kingston.ac.uk> wrote: > I should possibly add that we're using Nagios 3.0.6 on SLES 11 if that > makes any difference. > > Cheers, > > > > > Kris > > > > -----Original Message----- > From: Getchell, Kristoffer M [mailto:K.Getchell at kingston.ac.uk] > Sent: 05 October 2009 00:16 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Service Definition for Passive Only Reports > > We have a number of service which I don't want Nagios to actively monitor, > instead Nagios will be updated by passive alerts which are generated by the > service itself. > > I've currently got a service definition setup, but haven't figured out how > to get the service to not have an active check associated with it without > any warnings being issued in the tactical overview page. At the moment what > i've done is setup an active check that does nothing and set a long between > times check. However, this isn't ideal. > > Has anyone else setup a passive only service and managed to get the > tactical overivew interface to not complain about active checks not being > enabled on a specific host/service? > > Many thanks, > > > > > Kris > > This email has been scanned for all viruses by the MessageLabs Email > Security System. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > This email has been scanned for all viruses by the MessageLabs Email > Security System. > > This email has been scanned for all viruses by the MessageLabs Email > Security System. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From K.Getchell at kingston.ac.uk Mon Oct 5 11:34:11 2009 From: K.Getchell at kingston.ac.uk (Getchell, Kristoffer M) Date: Mon, 5 Oct 2009 10:34:11 +0100 Subject: Service Definition for Passive Only Reports In-Reply-To: References: Message-ID: Martin Thanks! This does exactly what I was hoping for. It seems so obvious now, yet is something I didn't even consider doing! Thanks for your input, you've saved me a lot of time. Cheers, Kris From: Martin Melin [mailto:mmelin at gmail.com] Sent: 05 October 2009 09:54 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Service Definition for Passive Only Reports Are you using freshness checking? If not, try creating a time period "never" so that the active check is never scheduled. Otherwise you usually just want to set active_checks_enabled to 0 but I guess you don't want the CGIs to show that the checks are disabled? Regards Martin Melin On Mon, Oct 5, 2009 at 10:01 AM, Getchell, Kristoffer M wrote: I should possibly add that we're using Nagios 3.0.6 on SLES 11 if that makes any difference. Cheers, Kris -----Original Message----- From: Getchell, Kristoffer M [mailto:K.Getchell at kingston.ac.uk] Sent: 05 October 2009 00:16 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Service Definition for Passive Only Reports We have a number of service which I don't want Nagios to actively monitor, instead Nagios will be updated by passive alerts which are generated by the service itself. I've currently got a service definition setup, but haven't figured out how to get the service to not have an active check associated with it without any warnings being issued in the tactical overview page. ?At the moment what i've done is setup an active check that does nothing and set a long between times check. ?However, this isn't ideal. Has anyone else setup a passive only service and managed to get the tactical overivew interface to not complain about active checks not being enabled on a specific host/service? Many thanks, Kris This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null This email has been scanned for all viruses by the MessageLabs Email Security System. This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null This email has been scanned for all viruses by the MessageLabs Email Security System. This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Mon Oct 5 12:48:57 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Mon, 5 Oct 2009 10:48:57 +0000 Subject: Service dependency fun In-Reply-To: <4AC6560E.20301@grouchybastid.com> References: <4AC6560E.20301@grouchybastid.com> Message-ID: <200910051048.57558.assaf.flatto@ssp-intl.com> On Friday 02 October 2009 19:35:42 Randy Rodriguez wrote: > Hey all. Here's my situation, and my dilemma. I instituted a check of > the snmpd process on a group of hosts, all of which do snmp-based checks > of other services. I want to institute a dependency such that the snmp > checks do not notify if the snmpd check fails. Simple, no? Here's my > service dependency cfg: > > define servicedependency{ > hostgroup_name all_servers > service_description snmp_svc > dependent_service_description snmp_* > execution_failure_criteria n > notification_failure_criteria c,u > } > > I've also tried it like this: > > define servicedependency{ > hostgroup_name all_servers > service_description snmp_svc > dependent_servicegroup_name snmp_checks > execution_failure_criteria n > notification_failure_criteria c,u > } > > and both fail in the same way. The error is > Error: Could not expand master services specified in service dependency > (config file '/usr/local/nagios/etc/objects/service_dependencies.cfg', > starting on line 1) > > Clearly I'm missing something. Any help appreciated. > > Nagios 3.0.6, btw. > > Thanks, > -Randy >From what i can see in your definition , you specified that the dependency is for all your servers , but in you explanation of the problem you say that you defined it on a group , in that group is called all_servers , that is ok , but if not and you are adding the dependency to a server that does not have the snmp checks related to , the load verification will fail . also in the first example of the definitions , " snmp_*" is not a valid parameter , "*" is a standalone all encompassing declaration , you'll need to write each service name manually to include all snmp checks in to the dependency tree. Assaf -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE From m.borsani at it.net Mon Oct 5 12:23:09 2009 From: m.borsani at it.net (Marco Borsani) Date: Mon, 5 Oct 2009 12:23:09 +0200 Subject: R: nsclient++ and nrpe commands In-Reply-To: <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> Message-ID: <9150.61157797954$1254738662@news.gmane.org> I upgrade to nsclient++ 0.3.6.4 but I always receive: UNKNOWN: No handler for that command Marco Da: Natxo Asenjo [mailto:natxo.asenjo at gmail.com] Inviato: sabato 3 ottobre 2009 16.21 A: Marco Borsani Cc: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] nsclient++ and nrpe commands On Fri, Oct 2, 2009 at 4:58 PM, Marco Borsani wrote: Hi all I use nsclient++ with standard commands via check_nt, all is ok. Now I need to run some commands/plug-in (like checl_openmanage.exe), but I don't find the correct sintax. Right now I prepare a command inside NSC.ini file like these: command[nsc_openmanage]=c:\nagios\check_openmanage.exe nsc_open=scripts\check_openmanage.exe -v When I try to call it from nagios server with: ./check_nrpe -H IPADDRESS -c nsc_openmanage I receive following error: CHECK_NRPE: Socket timeout after 10 seconds. a socket timeout means it could not connect the nrpe port. If you try this nagios at nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01 I (0.3.2.9 2008-05-17) seem to be doing fine... so without any commands to be run, it just checks whether the nrpe service is ok. If you try a not defined command in nsc.ini, like this: nagios at nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01 -c test UNKNOWN: No handler for that command there is no 'test' command defined, so it gives me an UNKNOWN. in your nsc.ini check that the NRPEListener.dll is enabled, the [NRPE] section should look (at least) like this; [NRPE] port=5666 command_timeout=60 allow_arguments=1 socket_timeout=30 and your [NRPE Handlers] section should contain your allowed checks (here only services and disks): nrpe_CheckService=inject checkServiceState CheckAll exclude=SysmonLog nrpe_CheckDriveSize=inject CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED FilterType=REMOTE your nagios server must be allowed to query the nrpe server (check firewall and allowed_hosts settings in nsc.ini) NSClient++ works correctly with : check_nt -H IPADDRESS -v xxxxxxxx check_nrpe -H IPADDRESS -c CheckCPU -a warn=80 crit=90 time=20m time=10s time=4 My versions are: Nsclient++ = 0.2.7 2007-03-06 Check_nrpe = 2.7.1 May you show me any NSC.ini files ? your nsclient++ is quite old, you should try a newer one. For quesions about nsclient++ the proper forum is the one at nsclient.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 5 14:12:10 2009 From: marc at ena.com (Marc Powell) Date: Mon, 5 Oct 2009 07:12:10 -0500 Subject: How to monitor a linux file opened & closedstatus using Nagios In-Reply-To: <6872DF21E3D09046BDF172721037F4FB79B846@SBTEXCHANGEDB.sbtdats.com> References: <6872DF21E3D09046BDF172721037F4FB79B840@SBTEXCHANGEDB.sbtdats.com><6872DF21E3D09046BDF172721037F4FB79B843@SBTEXCHANGEDB.sbtdats.com> <5CB2A910-822B-4834-81EE-6BBB10612E0E@ena.com> <6872DF21E3D09046BDF172721037F4FB79B846@SBTEXCHANGEDB.sbtdats.com> Message-ID: <32F37F5D-EA22-4584-8B95-C641CC21DB60@ena.com> On Oct 4, 2009, at 11:36 PM, Selvakumar A wrote: > > Hi, > Thanks a lot.I checked with the "lsof" command.It gives the > number of opened files via shell,VI editor.But when I open a file > through GNOME text editor the "lsof" command does not give the > status of the file opened by GNOME text Editor. > It would be fine if a command gives the status of the file opened by > gnome text editor. I don't use Gnome but I can say that lsof shows every open file on the system. If it's not shown, it's not opened. Perhaps gedit creates a tmp file while editing another file and 'edits' that. Perhaps there's some reliable relation to the name or location of the 'edited' file that you can use as inference. lsof can help you determine that. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Mon Oct 5 14:48:49 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Mon, 5 Oct 2009 14:48:49 +0200 Subject: R: nsclient++ and nrpe commands In-Reply-To: <4529032189346995872@unknownmsgid> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> <4529032189346995872@unknownmsgid> Message-ID: <90f6e8270910050548l369d5591l1901695ce0a8a03f@mail.gmail.com> -- Groeten, J.Asenjo On Mon, Oct 5, 2009 at 12:23 PM, Marco Borsani wrote: > I upgrade to nsclient++ 0.3.6.4 but I always receive: > > > > UNKNOWN: No handler for that command > if you read my last message you see the answer to that error ... ps: after any modification to the nsc.ini file, I assume you restart the nsclientpp service, obviously. Marco > natxo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Oct 5 15:23:41 2009 From: m.borsani at it.net (Marco Borsani) Date: Mon, 5 Oct 2009 15:23:41 +0200 Subject: R: R: nsclient++ and nrpe commands In-Reply-To: <90f6e8270910050548l369d5591l1901695ce0a8a03f@mail.gmail.com> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> <4529032189346995872@unknownmsgid> <90f6e8270910050548l369d5591l1901695ce0a8a03f@mail.gmail.com> Message-ID: <15612.7789909535$1254749460@news.gmane.org> Excuse me , I did not wrote the real error message I am receiving. I run from nagios server: ./check_nrpe -H -c disk0 And receive this: 'check_openmanage.exe' is not recognized as an internal or external command, operable program or batch file. The nsc.ini file there are all the parameters you suggested me and the command ?disk0? is defined: disk0=scripts\Disk0.bat If you run Disk0.bat in MSdos shell, it works correctly. Is has only one raw (@check_openmanage.exe -v | find "Physical Disk 0:0") In the nsclientlog we read: 2009-10-05 15:22:09: error:modules\NRPEListener\NRPEListener.cpp:263: The command (disk0) returned an invalid return code: 255 I always restart nsclientpp when I modified the NSC.ini file. Regards Marco Da: Natxo Asenjo [mailto:natxo.asenjo at gmail.com] Inviato: luned? 5 ottobre 2009 14.49 A: Nagios Users Mailinglist Oggetto: Re: [Nagios-users] R: nsclient++ and nrpe commands -- Groeten, J.Asenjo On Mon, Oct 5, 2009 at 12:23 PM, Marco Borsani wrote: I upgrade to nsclient++ 0.3.6.4 but I always receive: UNKNOWN: No handler for that command if you read my last message you see the answer to that error ... ps: after any modification to the nsc.ini file, I assume you restart the nsclientpp service, obviously. Marco natxo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at medin.name Mon Oct 5 16:15:08 2009 From: michael at medin.name (Michael Medin) Date: Mon, 05 Oct 2009 16:15:08 +0200 Subject: R: nsclient++ and nrpe commands In-Reply-To: <009401ca45a5$d8d79d50$8a86d7f0$@borsani@it.net> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> <009401ca45a5$d8d79d50$8a86d7f0$@borsani@it.net> Message-ID: <4AC9FF6C.6020307@medin.name> Hello, There is a guide for how to set things up (via NRPE) here: http://nsclient.org/nscp/wiki/doc/usage/nagios/nrpe // Michael Medin Marco Borsani wrote: > > I upgrade to nsclient++ 0.3.6.4 but I always receive: > > > > UNKNOWN: No handler for that command > > > > Marco > > > > *Da:* Natxo Asenjo [mailto:natxo.asenjo at gmail.com] > *Inviato:* sabato 3 ottobre 2009 16.21 > *A:* Marco Borsani > *Cc:* nagios-users at lists.sourceforge.net > *Oggetto:* Re: [Nagios-users] nsclient++ and nrpe commands > > > > On Fri, Oct 2, 2009 at 4:58 PM, Marco Borsani > wrote: > > Hi all > > I use nsclient++ with standard commands via check_nt, all is ok. > > Now I need to run some commands/plug-in (like checl_openmanage.exe), but I > don't find the correct sintax. > > Right now I prepare a command inside NSC.ini file like these: > command[nsc_openmanage]=c:\nagios\check_openmanage.exe > nsc_open=scripts\check_openmanage.exe -v > > When I try to call it from nagios server with: ./check_nrpe -H > IPADDRESS -c > nsc_openmanage > I receive following error: CHECK_NRPE: Socket timeout after 10 seconds. > > > a socket timeout means it could not connect the nrpe port. > > If you try this > > nagios at nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01 > I (0.3.2.9 2008-05-17) seem to be doing fine... > > so without any commands to be run, it just checks whether the nrpe > service is ok. > > If you try a not defined command in nsc.ini, like this: > nagios at nagios:/usr/local/nagios/libexec$ ./check_nrpe -H winxp01 -c test > UNKNOWN: No handler for that command > > there is no 'test' command defined, so it gives me an UNKNOWN. > > in your nsc.ini check that the NRPEListener.dll is enabled, the [NRPE] > section should look (at least) like this; > > [NRPE] > > port=5666 > > command_timeout=60 > > allow_arguments=1 > > socket_timeout=30 > > and your [NRPE Handlers] section should contain your allowed checks > (here only services and disks): > > nrpe_CheckService=inject checkServiceState CheckAll exclude=SysmonLog > > nrpe_CheckDriveSize=inject CheckDriveSize MinWarn=10% MinCrit=5% > CheckAll FilterType=FIXED FilterType=REMOTE > > > your nagios server must be allowed to query the nrpe server (check > firewall and allowed_hosts settings in nsc.ini) > > > > NSClient++ works correctly with : > check_nt -H IPADDRESS -v xxxxxxxx > check_nrpe -H IPADDRESS -c CheckCPU -a warn=80 crit=90 time=20m > time=10s > time=4 > > My versions are: > Nsclient++ = 0.2.7 2007-03-06 > Check_nrpe = 2.7.1 > > May you show me any NSC.ini files ? > > > your nsclient++ is quite old, you should try a newer one. For quesions > about nsclient++ the proper forum is the one at nsclient.org > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neufpas at gmail.com Mon Oct 5 17:01:48 2009 From: neufpas at gmail.com (Noel Platzke) Date: Mon, 5 Oct 2009 11:01:48 -0400 Subject: capturing $LONGSERVICEOUPUT$ from custom plugins Message-ID: <96c54e8b0910050801v62dd6c45oe969a80890328e23@mail.gmail.com> I have a custom plugin that prints a small bit of data when it exits but for some reason it's not being captured by nagios. I read that there's a 4k byte limit but the data I'm printing is very very small, only a few lines so I shouldn't be hitting that limit. I altered the script to write the data to an external file and it works fine. Nagios just isn't capturing it for some reason. Is there some specific format the data needs to be in for it to be picked up? Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 5 17:33:25 2009 From: marc at ena.com (Marc Powell) Date: Mon, 5 Oct 2009 10:33:25 -0500 Subject: capturing $LONGSERVICEOUPUT$ from custom plugins In-Reply-To: <96c54e8b0910050801v62dd6c45oe969a80890328e23@mail.gmail.com> References: <96c54e8b0910050801v62dd6c45oe969a80890328e23@mail.gmail.com> Message-ID: <6D2A1AB8-FAC4-4A32-A91B-F087516126B8@ena.com> On Oct 5, 2009, at 10:01 AM, Noel Platzke wrote: > I have a custom plugin that prints a small bit of data when it exits > but for some reason it's not being captured by nagios. Captured where? I.E. where/how are you looking for it? > I read that there's a 4k byte limit but the data I'm printing is > very very small, only a few lines so I shouldn't be hitting that > limit. I altered the script to write the data to an external file > and it works fine. Nagios just isn't capturing it for some reason. > Is there some specific format the data needs to be in for it to be > picked up? Any ideas? There's no special format except for plain-text only and only output to STDOUT is captured (a normal echo or print). $SERVICEOUTPUT$ will contain the first line of text and $LONGSERVICEOUTPUT$ will contain anything after the first newline character. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 5 18:04:43 2009 From: marc at ena.com (Marc Powell) Date: Mon, 5 Oct 2009 11:04:43 -0500 Subject: capturing $LONGSERVICEOUPUT$ from custom plugins In-Reply-To: <96c54e8b0910050845u72057af4ma097c44b0def710c@mail.gmail.com> References: <96c54e8b0910050801v62dd6c45oe969a80890328e23@mail.gmail.com> <6D2A1AB8-FAC4-4A32-A91B-F087516126B8@ena.com> <96c54e8b0910050845u72057af4ma097c44b0def710c@mail.gmail.com> Message-ID: Please always respond on list. More below -- On Oct 5, 2009, at 10:45 AM, Noel Platzke wrote: > I'm looking for it to be captured in the $LONGSERVICEOUTPUT$ macro. > Where else would it be? That will capture anything after the first line of text but if you're looking for it as part of a host notification (or elsewhere it's not supported), you're not going to find it. That's what I meant by 'where/ how are you looking for it'. > All I'm doing is writing plaintext output to stdout but for some > reason nagios isn't picking it up. If I run the script by hand it > prints to stdout. If I change the output to a file it writes to the > file fine. But if the script is invoked by nagios it never sees the > output. Does $SERVICEOUTPUT$ capture the first line of output of your script? If not, you probably need to provide more specific detail about nagios version, how you're calling your plugin from nagios (command{} definition, etc) and specifically how it's providing it's output for nagios to capture. The assumption to this point is that nagios is calling the plugin directly. Other methods can yield different results. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neufpas at gmail.com Mon Oct 5 18:10:24 2009 From: neufpas at gmail.com (Noel Platzke) Date: Mon, 5 Oct 2009 12:10:24 -0400 Subject: capturing $LONGSERVICEOUPUT$ from custom plugins In-Reply-To: References: <96c54e8b0910050801v62dd6c45oe969a80890328e23@mail.gmail.com> <6D2A1AB8-FAC4-4A32-A91B-F087516126B8@ena.com> <96c54e8b0910050845u72057af4ma097c44b0def710c@mail.gmail.com> Message-ID: <96c54e8b0910050910w55a98df2hb2588366c56cfd2c@mail.gmail.com> The custom plugin is being called via the check_by_ssh plugin and $SERVICEOUTPUT$ is captured just fine. If I run it by hand it gives the expected results. On Mon, Oct 5, 2009 at 12:04 PM, Marc Powell wrote: > Please always respond on list. More below -- > > On Oct 5, 2009, at 10:45 AM, Noel Platzke wrote: > > I'm looking for it to be captured in the $LONGSERVICEOUTPUT$ macro. Where >> else would it be? >> > > That will capture anything after the first line of text but if you're > looking for it as part of a host notification (or elsewhere it's not > supported), you're not going to find it. That's what I meant by 'where/how > are you looking for it'. > > All I'm doing is writing plaintext output to stdout but for some reason >> nagios isn't picking it up. If I run the script by hand it prints to stdout. >> If I change the output to a file it writes to the file fine. But if the >> script is invoked by nagios it never sees the output. >> > > Does $SERVICEOUTPUT$ capture the first line of output of your script? If > not, you probably need to provide more specific detail about nagios version, > how you're calling your plugin from nagios (command{} definition, etc) and > specifically how it's providing it's output for nagios to capture. The > assumption to this point is that nagios is calling the plugin directly. > Other methods can yield different results. > > -- > Marc > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Mon Oct 5 18:37:40 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Mon, 5 Oct 2009 18:37:40 +0200 Subject: R: R: nsclient++ and nrpe commands In-Reply-To: <-2424743085573608826@unknownmsgid> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> <4529032189346995872@unknownmsgid> <90f6e8270910050548l369d5591l1901695ce0a8a03f@mail.gmail.com> <-2424743085573608826@unknownmsgid> Message-ID: <90f6e8270910050937t7e864a45kb87c79cb2eebede7@mail.gmail.com> On Mon, Oct 5, 2009 at 3:23 PM, Marco Borsani wrote: > Excuse me , I did not wrote the real error message I am receiving. > > > > I run from nagios server: > > ./check_nrpe -H -c disk0 > > And receive this: > > 'check_openmanage.exe' is not recognized as an internal or external > command, operable program or batch file. > ok, so the bat file disk0 is being executed. Try setting the full path to check_openmanage.exe in the bat file because apparently it is not in the path of your windows session. > The nsc.ini file there are all the parameters you suggested me and the > command ?disk0? is defined: > > disk0=scripts\Disk0.bat > > If you run Disk0.bat in MSdos shell, it works correctly. > > Is has only one raw (@check_openmanage.exe -v | find "Physical Disk 0:0") > > > > In the nsclientlog we read: > > 2009-10-05 15:22:09: error:modules\NRPEListener\NRPEListener.cpp:263: The > command (disk0) returned an invalid return code: 255 > you need to return valid error levels that nagios understand: 0 is 0k, 1 is warning, 2 is critical and 3 is unknown. Otherwise nagios does not know what to do with them. > > I always restart nsclientpp when I modified the NSC.ini file. > > good, just checking ;-) natxo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neufpas at gmail.com Mon Oct 5 18:54:26 2009 From: neufpas at gmail.com (Noel Platzke) Date: Mon, 5 Oct 2009 12:54:26 -0400 Subject: capturing $LONGSERVICEOUPUT$ from custom plugins In-Reply-To: <96c54e8b0910050910w55a98df2hb2588366c56cfd2c@mail.gmail.com> References: <96c54e8b0910050801v62dd6c45oe969a80890328e23@mail.gmail.com> <6D2A1AB8-FAC4-4A32-A91B-F087516126B8@ena.com> <96c54e8b0910050845u72057af4ma097c44b0def710c@mail.gmail.com> <96c54e8b0910050910w55a98df2hb2588366c56cfd2c@mail.gmail.com> Message-ID: <96c54e8b0910050954p4fa122c3o33b8ea6cb0d70d1@mail.gmail.com> Problem solved. It had to do with nsca. When the script was executed from one of the slave servers it never passed the output back to the master. I updated my nsca script and it works fine now. On Mon, Oct 5, 2009 at 12:10 PM, Noel Platzke wrote: > The custom plugin is being called via the check_by_ssh plugin and > $SERVICEOUTPUT$ is captured just fine. If I run it by hand it gives the > expected results. > > > > > On Mon, Oct 5, 2009 at 12:04 PM, Marc Powell wrote: > >> Please always respond on list. More below -- >> >> On Oct 5, 2009, at 10:45 AM, Noel Platzke wrote: >> >> I'm looking for it to be captured in the $LONGSERVICEOUTPUT$ macro. Where >>> else would it be? >>> >> >> That will capture anything after the first line of text but if you're >> looking for it as part of a host notification (or elsewhere it's not >> supported), you're not going to find it. That's what I meant by 'where/how >> are you looking for it'. >> >> All I'm doing is writing plaintext output to stdout but for some reason >>> nagios isn't picking it up. If I run the script by hand it prints to stdout. >>> If I change the output to a file it writes to the file fine. But if the >>> script is invoked by nagios it never sees the output. >>> >> >> Does $SERVICEOUTPUT$ capture the first line of output of your script? If >> not, you probably need to provide more specific detail about nagios version, >> how you're calling your plugin from nagios (command{} definition, etc) and >> specifically how it's providing it's output for nagios to capture. The >> assumption to this point is that nagios is calling the plugin directly. >> Other methods can yield different results. >> >> -- >> Marc >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mirde at oppy.com Mon Oct 5 19:11:29 2009 From: mirde at oppy.com (Mirza Dedic) Date: Mon, 5 Oct 2009 10:11:29 -0700 Subject: Using Nagios to monitor Exchange 2007 Queues, etc.. ?? In-Reply-To: <4AC7E865.6050106@kkeane.com> References: <4AC7E865.6050106@kkeane.com> Message-ID: Hi Kevin, I have downloaded your TNT plugins 1.2.4-x64 for my x64 Win2003 R2, however when I try to run something like "check_exchange" from the command prompt to see any output I get... C:\NSClient\tnt_plugins_1.2.4-x64>check_exchange.exe The system cannot execute the specified program. Any idea why this is happening? Thanks. -----Original Message----- From: Kevin Keane [mailto:subscription at kkeane.com] Sent: October/03/2009 5:12 PM Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Using Nagios to monitor Exchange 2007 Queues, etc.. ?? Check out my TNTMonitoringPlugin project on Sourceforge. There is a plugin specifically to monitor Exchange. It handles both Exchange 2003 and Exchange 2007. It does monitor queue lengths as well as a few other factors, but the focus is not really so much on load. Queue length primarily is an indicator of network problems. A long send queue, in particular, tells me that the Internet connection is down, or something along those lines. If you look at the source code for the plugin, you can also see the WMI query used. Mirza Dedic wrote: > I cannot seem to find any solid information with Google.com on how to monitor my Exchange 2007 server, I am interested in knowing the send/receive queues, mainly to know the load at any certain time... > > On the box, I have NSClient++ installed (0.3.7) and I am already monitoring windows services, disk/memory/cpu; but I would like to have nagios look under the roof of the exchange server, and get me some #s for queue lengths. > > I guess this would be accomplished by WMI? I have not used WMI with NSClient++ before, does anyone have this setup in their environment for Exchange (or even IIS/ISA)? > > Please give some examples. > > Thank you.. > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Albert.Shih at obspm.fr Mon Oct 5 19:18:14 2009 From: Albert.Shih at obspm.fr (Albert Shih) Date: Mon, 5 Oct 2009 19:18:14 +0200 Subject: The reason of commands.cfg. Message-ID: <20091005171814.GF81005@obspm.fr> Hi all, I would like to known why (just the historic reason) in nagios we split the definition of the macros and the definition of a service ? For example : When we want to monitor a pop service we create define command { command_name check_pops command_line /usr/lib/nagios/plugins/check_spop -H $ARG1$ } and another define service { host_name my_pop_server use generic-service service_description POP check_command check_pops!my_ip_of_pop_server } Why not in one ligne with something like define service { host_name my_pop_server use generic-service service_description POP check_command /usr/lib/nagios/plugins/check_spop -H my_pop_server } Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex T?l?phone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: Lun 5 oct 2009 19:18:01 CEST ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neufpas at gmail.com Mon Oct 5 19:34:30 2009 From: neufpas at gmail.com (Noel Platzke) Date: Mon, 5 Oct 2009 13:34:30 -0400 Subject: The reason of commands.cfg. In-Reply-To: <20091005171814.GF81005@obspm.fr> References: <20091005171814.GF81005@obspm.fr> Message-ID: <96c54e8b0910051034k285f3558uf4765699bcb3c667@mail.gmail.com> Say we have a bunch of servers that need multiple checks that do an HTTP GET on different URIs and look for a specific string in the response. Isn't it easier to maintain a single command that takes a few arguments than having to constantly define a new command that does basically the same thing for each service check? And if down the road someday HTTP becomes HTTPS you only need to edit one configuration. On Mon, Oct 5, 2009 at 1:18 PM, Albert Shih wrote: > Hi all, > > I would like to known why (just the historic reason) in nagios we split the > definition of the macros and the definition of a service ? For example : > > When we want to monitor a pop service we create > > define command { > command_name check_pops > command_line /usr/lib/nagios/plugins/check_spop -H $ARG1$ > } > > and another > > define service { > host_name my_pop_server > use generic-service > service_description POP > check_command check_pops!my_ip_of_pop_server > } > > Why not in one ligne with something like > > > define service { > host_name my_pop_server > use generic-service > service_description POP > check_command /usr/lib/nagios/plugins/check_spop > -H my_pop_server > } > > > Regards. > > > -- > Albert SHIH > SIO batiment 15 > Observatoire de Paris Meudon > 5 Place Jules Janssen > 92195 Meudon Cedex > T?l?phone : 01 45 07 76 26/06 86 69 95 71 > Heure local/Local time: > Lun 5 oct 2009 19:18:01 CEST > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Mon Oct 5 20:41:07 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Mon, 5 Oct 2009 14:41:07 -0400 Subject: Auto housekeeping for nagios-3.2.0 Message-ID: <6db4a4200910051141l2b759151ne7a98abbbf689632@mail.gmail.com> All, are there any auto housekeeping done on nagios? After I have updated my nagios installation to 3.2.0. I am seeing nightly performance issue around midnight to 2:30 am. Please advise on this. Nagios-3.2.0 ndoutils-1.4b8 Check Execution Time: 0.00 sec60.01 sec0.247 sec Check Latency:0.00 sec25.73 sec1.518 sec Percent State Change:0.00%24.21%0.06% Check Execution Time: 0.01 sec30.01 sec0.595 sec Check Latency:0.00 sec712.08 sec6.423 sec Percent State Change:0.00%50.00%0.13% -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at baerconsult.com Mon Oct 5 20:43:20 2009 From: matt at baerconsult.com (Matt Baer) Date: Mon, 5 Oct 2009 13:43:20 -0500 (CDT) Subject: Monitoring Open Ports In-Reply-To: <21566A3D-7CCC-43F6-826E-291628BE1E2B@ena.com> References: <21566A3D-7CCC-43F6-826E-291628BE1E2B@ena.com> Message-ID: <653790117.61254768194755.JavaMail.MattBaer@BueesMBP.local> For the most part, this works. However, the problem is that it requires that ALL open ports be accepted as parameters. I want to specify the ports to check. For example, if port 8081 is open, it may not always be open, then I get the stupid notification. I don't want to monitor port 8081, I want to monitor 25,80,110,143, etc. ----- Original Message ----- From: "Marc Powell" To: "Nagios-Users Mailinglist" Sent: Tuesday, September 29, 2009 3:27:09 PM GMT -06:00 US/Canada Central Subject: Re: [Nagios-users] Monitoring Open Ports On Sep 29, 2009, at 2:51 PM, Matt Baer wrote: > Is there a way that Nagios can monitor open ports, even if there > isn't anything listening on the destination? I'd like to monitor my > open ports on my firewall JUST to make sure they're open. I would > just specify the port with the normal Nagios command and point it at > my public IP address, but obviously, the check will fail unless > something is listening on the other end. Basically I want to port > scan specific ports. Any ideas? A quick google for 'nagios nmap' yields this result that looks promising -- http://ubermonkey.wordpress.com/2006/09/28/nagios-nmap-plugin/ -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Mon Oct 5 21:09:17 2009 From: jpratt at norwich.edu (James Pratt) Date: Mon, 5 Oct 2009 15:09:17 -0400 Subject: Monitoring Open Ports In-Reply-To: <653790117.61254768194755.JavaMail.MattBaer@BueesMBP.local> References: <21566A3D-7CCC-43F6-826E-291628BE1E2B@ena.com> <653790117.61254768194755.JavaMail.MattBaer@BueesMBP.local> Message-ID: <24B6509E4191AF44B60A24EAA3B4AD491CB879@nuexchg.norwich.edu> Well, look on the bright side - It's not that big of a perl script - you can likely modify it to suit your specific need(s). :) >> -----Original Message----- >> From: Matt Baer [mailto:matt at baerconsult.com] >> Sent: Monday, October 05, 2009 2:43 PM >> To: nagios-users >> Subject: Re: [Nagios-users] Monitoring Open Ports >> >> For the most part, this works. However, the problem is that it requires that ALL >> open ports be accepted as parameters. I want to specify the ports to check. For >> example, if port 8081 is open, it may not always be open, then I get the stupid >> notification. I don't want to monitor port 8081, I want to monitor 25,80,110,143, >> etc. >> >> ----- Original Message ----- >> From: "Marc Powell" >> To: "Nagios-Users Mailinglist" >> Sent: Tuesday, September 29, 2009 3:27:09 PM GMT -06:00 US/Canada Central >> Subject: Re: [Nagios-users] Monitoring Open Ports >> >> >> On Sep 29, 2009, at 2:51 PM, Matt Baer wrote: >> >> > Is there a way that Nagios can monitor open ports, even if there isn't >> > anything listening on the destination? I'd like to monitor my open >> > ports on my firewall JUST to make sure they're open. I would just >> > specify the port with the normal Nagios command and point it at my >> > public IP address, but obviously, the check will fail unless something >> > is listening on the other end. Basically I want to port scan specific >> > ports. Any ideas? >> >> A quick google for 'nagios nmap' yields this result that looks promising -- >> >> http://ubermonkey.wordpress.com/2006/09/28/nagios-nmap-plugin/ >> >> -- >> Marc >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA is the only >> developer event you need to attend this year. Jumpstart your developing skills, take >> BlackBerry mobile applications to market and stay ahead of the curve. Join us from >> November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any >> issue. >> ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 5 21:27:06 2009 From: marc at ena.com (Marc Powell) Date: Mon, 5 Oct 2009 14:27:06 -0500 Subject: Monitoring Open Ports In-Reply-To: <24B6509E4191AF44B60A24EAA3B4AD491CB879@nuexchg.norwich.edu> References: <21566A3D-7CCC-43F6-826E-291628BE1E2B@ena.com> <653790117.61254768194755.JavaMail.MattBaer@BueesMBP.local> <24B6509E4191AF44B60A24EAA3B4AD491CB879@nuexchg.norwich.edu> Message-ID: <57F28101-680C-45D2-88CA-D38D9C02D49B@ena.com> On Oct 5, 2009, at 2:09 PM, James Pratt wrote: > Well, look on the bright side - It's not that big of a perl script - > you can likely modify it to suit your specific need(s). :) and it appears to be a very very trivial change to boot (but will break some functionality without further changes)... If the OP only cares about the functionality of the plugin to check the open/closed status of listed ports, he can simply change @nmap_raw = `$nmap_path -P0 -p1-65535 $scan_address`; to @nmap_raw = `$nmap_path -P0 -p$allowed_ports $scan_address`; You can expect this to break other functionality of the plugin like full host scans, etc, but I believe that this is what the OP is looking for given this further information. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike-ward at utc.edu Mon Oct 5 22:59:59 2009 From: mike-ward at utc.edu (Michael Ward) Date: Mon, 5 Oct 2009 16:59:59 -0400 Subject: Windows SNMP service crashing during Nagios monitoring Message-ID: I've got two Windows 2003 Dell servers with OSMA installed being monitored via SNMP (public read string) by Nagios that have the SNMP service sporadically stop. My other servers are working fine with the same monitoring setup. The error report to be sent to Microsoft contains: szAppName : snmp.exe szAppVer : 5.2.3790.3959 szModName : ntdll.dll szModVer : 5.2.3790.4455 offset : 000417df Any insight would be appreciated. Thanks mjw Michael Ward, Ed.D UT Chattanooga - ARCS, IT Security 735 Vine Street UTC ARCS Dept 4324 Chattanooga, TN 37403 423-425-4764 FAX:423-425-4362 ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Tue Oct 6 00:46:05 2009 From: subscription at kkeane.com (Kevin Keane) Date: Mon, 05 Oct 2009 15:46:05 -0700 Subject: Using Nagios to monitor Exchange 2007 Queues, etc.. ?? In-Reply-To: References: <4AC7E865.6050106@kkeane.com> Message-ID: <4ACA772D.3020803@kkeane.com> I've heard occasional reports of that happening. A couple things to check: - Make sure you applied all the latest updates and patches to Windows (not just the critical or important ones that are installed automatically, but also the optional ones). The plugin depends on some recent versions of Windows libraries. Note: you do NOT need IE 8, Silverlight or the like if you want to keep those off your servers. - Try and download the Visual C++ redistributables. For the 32-bit version, go to http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en. The link to the 64 bit version is at the bottom of that page. - Re-download the plugin. It could have been corrupted. - Check that there are no permission issues. I hope that helps! Regards, Kevin Mirza Dedic wrote: > Hi Kevin, > > I have downloaded your TNT plugins 1.2.4-x64 for my x64 Win2003 R2, however when I try to run something like "check_exchange" from the command prompt to see any output I get... > > C:\NSClient\tnt_plugins_1.2.4-x64>check_exchange.exe > The system cannot execute the specified program. > > Any idea why this is happening? > > Thanks. > > -----Original Message----- > From: Kevin Keane [mailto:subscription at kkeane.com] > Sent: October/03/2009 5:12 PM > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Using Nagios to monitor Exchange 2007 Queues, etc.. ?? > > Check out my TNTMonitoringPlugin project on Sourceforge. There is a > plugin specifically to monitor Exchange. It handles both Exchange 2003 > and Exchange 2007. It does monitor queue lengths as well as a few other > factors, but the focus is not really so much on load. Queue length > primarily is an indicator of network problems. A long send queue, in > particular, tells me that the Internet connection is down, or something > along those lines. > > If you look at the source code for the plugin, you can also see the WMI > query used. > > Mirza Dedic wrote: > >> I cannot seem to find any solid information with Google.com on how to monitor my Exchange 2007 server, I am interested in knowing the send/receive queues, mainly to know the load at any certain time... >> >> On the box, I have NSClient++ installed (0.3.7) and I am already monitoring windows services, disk/memory/cpu; but I would like to have nagios look under the roof of the exchange server, and get me some #s for queue lengths. >> >> I guess this would be accomplished by WMI? I have not used WMI with NSClient++ before, does anyone have this setup in their environment for Exchange (or even IIS/ISA)? >> >> Please give some examples. >> >> Thank you.. >> >> > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to > Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or > proprietary information. Please be advised that the unauthorized use or > disclosure of the information is strictly prohibited. The information > herein is intended only for use by the intended recipient(s) named > above. If you have received this transmission in error, please notify > the sender immediately and permanently delete the e-mail and any copies, > printouts or attachments thereof. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike-ward at utc.edu Tue Oct 6 02:48:59 2009 From: mike-ward at utc.edu (Michael Ward) Date: Mon, 5 Oct 2009 20:48:59 -0400 Subject: Windows SNMP service crashing during Nagios monitoring In-Reply-To: <884bae280910051739t1ead8832q6fcaad83f1021baf@mail.gmail.com> References: <884bae280910051739t1ead8832q6fcaad83f1021baf@mail.gmail.com> Message-ID: I've played the netstat game on windows, and like you, I'm not a windows admin either (as my primary). Gimme a *nix, syslog, and gdb anyday... I've also looked at that TechNet article....... Thanks On Oct 5, 2009, at 8:39 PM, Jake wrote: > On Mon, Oct 5, 2009 at 4:59 PM, Michael Ward > wrote: >> I've got two Windows 2003 Dell servers with OSMA installed being >> monitored via SNMP (public read string) by Nagios that have the SNMP >> service sporadically stop. My other servers are working fine with >> the >> same monitoring setup. The error report to be sent to Microsoft >> contains: >> >> szAppName : snmp.exe szAppVer : 5.2.3790.3959 szModName : >> ntdll.dll >> szModVer : 5.2.3790.4455 offset : 000417df > > Does the service stop or does it just stop responding? > > I found this guide that might help: > http://support.microsoft.com/kb/888798 (didn't help me too much) > > We have Windows servers stop responding to snmp gets all of the time > and haven't been able to find a cause. The servers are varied: 32-bit, > 64-bit, Dell, HP. I have all but given up since i'm not a Windows > admin, but if someone found the answer you'd be the hero to about 10 > admins where I work. > > > -- > Jake Paulus > JakePaulus at gmail.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Tue Oct 6 05:57:29 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Mon, 05 Oct 2009 20:57:29 -0700 Subject: Windows SNMP service crashing during Nagios monitoring In-Reply-To: References: <884bae280910051739t1ead8832q6fcaad83f1021baf@mail.gmail.com> Message-ID: <4ACAC029.8070200@hp.com> Michael Ward wrote: > I've played the netstat game on windows, and like you, I'm not a > windows admin either (as my primary). Gimme a *nix, syslog, and gdb > anyday... > > I've also looked at that TechNet article....... > > > Thanks > > On Oct 5, 2009, at 8:39 PM, Jake wrote: > > >> On Mon, Oct 5, 2009 at 4:59 PM, Michael Ward >> wrote: >> >>> I've got two Windows 2003 Dell servers with OSMA installed being >>> monitored via SNMP (public read string) by Nagios that have the SNMP >>> service sporadically stop. My other servers are working fine with >>> the >>> same monitoring setup. The error report to be sent to Microsoft >>> contains: >>> >>> szAppName : snmp.exe szAppVer : 5.2.3790.3959 szModName : >>> ntdll.dll >>> szModVer : 5.2.3790.4455 offset : 000417df >>> >> Does the service stop or does it just stop responding? >> >> I found this guide that might help: >> http://support.microsoft.com/kb/888798 (didn't help me too much) >> >> We have Windows servers stop responding to snmp gets all of the time >> and haven't been able to find a cause. The servers are varied: 32-bit, >> 64-bit, Dell, HP. I have all but given up since i'm not a Windows >> admin, but if someone found the answer you'd be the hero to about 10 >> admins where I work. >> >> >> -- >> Jake Paulus >> JakePaulus at gmail.com >> The SNMP service on Windows sucks. Hard. That said, if you set up something to check it on a regular basis, you can tell if it's working or not. And then if that thing just happens to have functionality to handle events, and can connect to the Windows box and restart the service, the problem pretty much solves itself. Now, if there was only a system capable of monitoring things and firing off even handlers when it detects a problem... ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Tue Oct 6 06:14:11 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Tue, 6 Oct 2009 04:14:11 +0000 Subject: nagios time event error Message-ID: <6db4a4200910052114g14f8d320l98cb751289705e5@mail.gmail.com> All, I am seeing the following error. I saw some issues mentioned about this on version 2. Can anyone advise on this. Thanks [Sun Oct 4 02:00:57 2009];Warning: A system time change of 0d 1h 19m 53s (forwards in time) has been detected. Compensating... [Mon Oct 5 02:01:56 2009];Warning: A system time change of 0d 2h 29m 29s (forwards in time) has been detected. Compensating... [Tue Oct 6 00:01:49 2009];Warning: A system time change of 0d 0h 23m 1s (forwards in time) has been detected. Compensating... -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Tue Oct 6 08:28:14 2009 From: m.borsani at it.net (Marco Borsani) Date: Tue, 6 Oct 2009 08:28:14 +0200 Subject: R: R: R: nsclient++ and nrpe commands In-Reply-To: <90f6e8270910050937t7e864a45kb87c79cb2eebede7@mail.gmail.com> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> <4529032189346995872@unknownmsgid> <90f6e8270910050548l369d5591l1901695ce0a8a03f@mail.gmail.com> <-2424743085573608826@unknownmsgid> <90f6e8270910050937t7e864a45kb87c79cb2eebede7@mail.gmail.com> Message-ID: <42141.7180485607$1254810829@news.gmane.org> Hi I setted the full path (C:\program files\....) in this way, tha batch did not work at all . I try also to put an ?@exit 0? at the end of ths script, notting changed. Any other ideas ? Marco Da: Natxo Asenjo [mailto:natxo.asenjo at gmail.com] Inviato: luned? 5 ottobre 2009 18.38 A: Nagios Users Mailinglist Oggetto: Re: [Nagios-users] R: R: nsclient++ and nrpe commands On Mon, Oct 5, 2009 at 3:23 PM, Marco Borsani wrote: Excuse me , I did not wrote the real error message I am receiving. I run from nagios server: ./check_nrpe -H -c disk0 And receive this: 'check_openmanage.exe' is not recognized as an internal or external command, operable program or batch file. ok, so the bat file disk0 is being executed. Try setting the full path to check_openmanage.exe in the bat file because apparently it is not in the path of your windows session. The nsc.ini file there are all the parameters you suggested me and the command ?disk0? is defined: disk0=scripts\Disk0.bat If you run Disk0.bat in MSdos shell, it works correctly. Is has only one raw (@check_openmanage.exe -v | find "Physical Disk 0:0") In the nsclientlog we read: 2009-10-05 15:22:09: error:modules\NRPEListener\NRPEListener.cpp:263: The command (disk0) returned an invalid return code: 255 you need to return valid error levels that nagios understand: 0 is 0k, 1 is warning, 2 is critical and 3 is unknown. Otherwise nagios does not know what to do with them. I always restart nsclientpp when I modified the NSC.ini file. good, just checking ;-) natxo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ojan at gfi.fr Tue Oct 6 11:41:18 2009 From: ojan at gfi.fr (Olivier JAN) Date: Tue, 06 Oct 2009 11:41:18 +0200 Subject: Nagios 3.0 French Documentation Message-ID: <20091006114118.uva4b356gwgcgks8@intra.expertise-online.net> Hi list, Just a quick note to let you know that the Nagios 3.x French Documentation has been released today. There is a html and pdf editions generated from the docbook xml version. It's far from perfect but the french nagios community will support this edition and necessary corrections will be made. You can find those versions and also an english pdf version (generated from docbook xml) at http://doc.nagios-fr.org/ Links are under the "docs disponibles" menu in the right corner The docbook xml code source can be found at http://forge.nagios-fr.org/ Share and enjoy ! -- Olivier JAN http://www.nagios-fr.org/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Tue Oct 6 13:46:58 2009 From: martyn at chetnet.co.uk (Martyn) Date: Tue, 6 Oct 2009 12:46:58 +0100 Subject: Lots of Nagios Processes Message-ID: Not sure what went off with this server last night but my processes log below shows lots of Nagios entries, does any know why this would happen and how I could prevent it in future Thanks all root 1 0 0 May25 ? 00:00:35 init [3] root 2 1 0 May25 ? 00:00:00 [migration/0] root 3 1 0 May25 ? 00:00:02 [ksoftirqd/0] root 4 1 0 May25 ? 00:00:00 [watchdog/0] root 5 1 0 May25 ? 00:00:00 [events/0] root 6 1 0 May25 ? 00:00:00 [khelper] root 7 1 0 May25 ? 00:00:00 [kthread] root 10 7 0 May25 ? 00:00:12 [kblockd/0] root 11 7 0 May25 ? 00:00:00 [kacpid] root 113 7 0 May25 ? 00:00:00 [cqueue/0] root 116 7 0 May25 ? 00:00:00 [khubd] root 118 7 0 May25 ? 00:00:00 [kseriod] root 177 7 0 May25 ? 00:06:57 [kswapd0] root 178 7 0 May25 ? 00:00:00 [aio/0] root 331 7 0 May25 ? 00:00:00 [kpsmoused] root 354 7 0 May25 ? 00:00:00 [ata/0] root 355 7 0 May25 ? 00:00:00 [ata_aux] root 358 7 0 May25 ? 00:00:00 [scsi_eh_0] root 359 7 0 May25 ? 00:00:00 [scsi_eh_1] root 360 7 0 May25 ? 00:00:12 [kjournald] root 380 7 0 May25 ? 00:00:00 [kauditd] root 406 1 0 May25 ? 00:00:00 /sbin/udevd -d root 1061 7 0 May25 ? 00:00:00 [hda_codec] root 1310 7 0 May25 ? 00:00:00 [kmpathd/0] root 1316 7 0 May25 ? 00:00:00 [kmirrord] root 1337 7 0 May25 ? 00:00:00 [kjournald] root 1339 7 0 May25 ? 00:04:27 [kjournald] root 1341 7 0 May25 ? 00:04:52 [kjournald] root 1465 1 0 May25 ? 00:00:06 cpuspeed -d -n root 1752 1 0 May25 ? 00:00:00 klogd -x rpc 1781 1 0 May25 ? 00:00:00 portmap root 1799 1 0 May25 ? 00:00:00 rpc.statd root 1806 1 0 May25 ? 00:00:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -start /usr/libexec/courier-authlib/authdaemond root 1807 1806 0 May25 ? 00:00:00 /usr/libexec/courier-authlib/authdaemond root 1831 1807 0 May25 ? 00:00:00 /usr/libexec/courier-authlib/authdaemond root 1832 1807 0 May25 ? 00:00:00 /usr/libexec/courier-authlib/authdaemond root 1833 1807 0 May25 ? 00:00:00 /usr/libexec/courier-authlib/authdaemond root 1834 1807 0 May25 ? 00:00:00 /usr/libexec/courier-authlib/authdaemond root 1835 1807 0 May25 ? 00:00:00 /usr/libexec/courier-authlib/authdaemond root 1838 1 0 May25 ? 00:00:00 rpc.idmapd dbus 1850 1 0 May25 ? 00:00:00 dbus-daemon --system root 1858 1 0 May25 ? 00:00:00 hcid: processing events root 1864 1 0 May25 ? 00:00:00 /usr/sbin/sdpd root 1883 1 0 May25 ? 00:00:00 [krfcommd] root 1916 1 0 May25 ? 00:03:14 pcscd root 1933 1 0 May25 ? 00:00:00 /usr/bin/hidd --server root 1945 1 0 May25 ? 00:00:06 automount root 1961 1 0 May25 ? 00:00:00 /usr/sbin/acpid root 1977 1 0 May25 ? 00:00:53 /usr/sbin/sshd root 2167 1 0 May25 ? 00:01:13 /usr/libexec/postfix/master postfix 2176 2167 0 May25 ? 00:00:43 qmgr -l -t fifo -u root 2177 1 0 May25 ? 00:00:00 gpm -m /dev/input/mice -t exps2 root 2199 1 0 May25 ? 00:00:02 /usr/sbin/httpd-matrixsa root 2209 1 0 May25 ? 00:00:03 crond xfs 2229 1 0 May25 ? 00:00:00 xfs -droppriv -daemon root 2244 1 0 May25 ? 00:00:00 /usr/sbin/atd root 2252 1 0 May25 ? 00:00:32 /usr/bin/python /usr/sbin/yum-updatesd avahi 2261 1 0 May25 ? 00:00:02 avahi-daemon: running [qx4.local] avahi 2262 2261 0 May25 ? 00:00:00 avahi-daemon: chroot helper process haldaemo 2270 1 0 May25 ? 00:00:06 hald root 2271 2270 0 May25 ? 00:00:00 hald-runner haldaemo 2277 2271 0 May25 ? 00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket root 2278 2271 0 May25 ? 00:00:00 /usr/libexec/hald-addon-cpufreq haldaemo 2284 2271 0 May25 ? 00:00:00 hald-addon-keyboard: listening on /dev/input/event2 haldaemo 2287 2271 0 May25 ? 00:00:00 hald-addon-keyboard: listening on /dev/input/event0 ntp 2331 1 0 May25 ? 00:00:03 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g root 2388 1 0 May25 tty1 00:00:00 /sbin/mingetty tty1 root 2389 1 0 May25 tty2 00:00:00 /sbin/mingetty tty2 root 2393 1 0 May25 tty3 00:00:00 /sbin/mingetty tty3 root 2396 1 0 May25 tty4 00:00:00 /sbin/mingetty tty4 root 2399 1 0 May25 tty5 00:00:00 /sbin/mingetty tty5 root 2423 1 0 May25 tty6 00:00:00 /sbin/mingetty tty6 root 9728 7 0 Jul22 ? 00:01:44 [pdflush] root 2876 1 0 Aug11 ? 00:01:54 xinetd -stayalive -pidfile /var/run/xinetd.pid root 3606 1 0 Sep23 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid --log-error=/var/log/mysqld.log mysql 3642 3606 0 Sep23 ? 01:16:11 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/home/data --user=mysql --pid-file=/var/run/mysqld/mysql root 16677 7 0 Sep29 ? 00:00:08 [pdflush] root 27558 1 0 Oct03 ? 00:00:03 /sbin/syslogd -m 0 apache 2427 2199 0 Oct04 ? 00:00:00 /usr/sbin/httpd-matrixsa apache 2428 2199 0 Oct04 ? 00:00:00 /usr/sbin/httpd-matrixsa root 2434 1 0 Oct04 ? 00:00:00 cupsd root 2453 1 0 Oct04 ? 00:00:46 python2 MatrixSALaunch.py ThreadedAppServer admin 5399 5398 0 Oct05 ? 00:00:00 /usr/libexec/openssh/sftp-server nagios 6668 1 0 Oct05 ? 00:00:00 ./SCREEN nagios 6669 6668 0 Oct05 pts/0 00:00:00 /bin/bash nagios 6686 6669 0 Oct05 pts/0 00:00:00 /bin/bash nagios 6691 6686 0 Oct05 pts/0 00:00:13 ./update 500 postfix 5791 2167 0 08:35 ? 00:00:00 pickup -l -t fifo -u nagios 9064 6691 0 08:59 pts/0 00:00:01 ./update 500 nagios 9192 6691 0 09:00 pts/0 00:00:01 ./update 500 nagios 9324 6691 0 09:01 pts/0 00:00:01 ./update 500 nagios 9384 6691 0 09:01 pts/0 00:00:01 ./update 500 nagios 9425 6691 0 09:02 pts/0 00:00:01 ./update 500 nagios 9426 6691 0 09:02 pts/0 00:00:01 ./update 500 nagios 9437 6691 0 09:02 pts/0 00:00:01 ./update 500 nagios 9440 6691 0 09:02 pts/0 00:00:01 ./update 500 nagios 9456 6691 0 09:02 pts/0 00:00:01 ./update 500 nagios 9470 6691 0 09:02 pts/0 00:00:01 ./update 500 nagios 9480 6691 0 09:02 pts/0 00:00:00 ./update 500 nagios 9494 6691 0 09:02 pts/0 00:00:01 ./update 500 nagios 9587 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9588 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9589 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9590 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9592 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9593 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9594 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9595 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9596 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9597 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9599 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9601 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9602 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9603 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9604 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9606 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9618 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9619 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9620 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9622 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9623 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9624 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9664 6691 0 09:03 pts/0 00:00:02 ./update 500 nagios 9666 6691 0 09:03 pts/0 00:00:02 ./update 500 nagios 9667 6691 0 09:03 pts/0 00:00:02 ./update 500 nagios 9668 6691 0 09:03 pts/0 00:00:02 ./update 500 nagios 9669 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9671 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9673 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9685 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9686 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9689 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9690 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9692 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9693 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9694 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9695 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9696 6691 0 09:03 pts/0 00:00:00 ./update 500 nagios 9697 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9698 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9709 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9711 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9712 6691 0 09:03 pts/0 00:00:02 ./update 500 nagios 9714 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9716 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9717 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9719 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9720 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9723 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9724 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9732 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9734 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9737 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9739 6691 0 09:03 pts/0 00:00:01 ./update 500 nagios 9792 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9795 6691 0 09:04 pts/0 00:00:00 ./update 500 nagios 9796 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9797 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9812 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9813 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9814 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9823 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9824 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9825 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9826 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9827 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9828 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9829 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9830 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9831 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9832 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9842 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9845 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9849 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9851 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9870 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9871 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9873 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9880 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9884 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9887 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9890 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9891 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9894 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9896 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9897 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9901 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9902 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9903 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9905 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9906 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9907 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9908 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9913 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9916 6691 0 09:04 pts/0 00:00:01 ./update 500 nagios 9924 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9925 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9926 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9927 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9928 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9929 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9930 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9931 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9932 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9933 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9934 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9935 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9936 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9937 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9941 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9942 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9943 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9944 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9945 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9946 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9947 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9949 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9952 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9955 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9965 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9969 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9970 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9971 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9972 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9976 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9977 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9978 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9979 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9980 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9981 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9982 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9984 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9985 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9986 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9987 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9988 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9993 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9995 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9996 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9997 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 9998 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10002 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10005 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10011 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10012 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10014 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10015 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10016 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10025 6691 0 09:05 pts/0 00:00:01 ./update 500 nagios 10029 6691 0 09:06 pts/0 00:00:01 ./update 500 nagios 10031 6691 0 09:06 pts/0 00:00:01 ./update 500 nagios 10032 6691 0 09:06 pts/0 00:00:01 ./update 500 nagios 10039 6691 0 09:06 pts/0 00:00:01 ./update 500 nagios 10040 6691 0 09:06 pts/0 00:00:01 ./update 500 nagios 10062 6691 0 09:06 pts/0 00:00:01 ./update 500 nagios 10065 6691 0 09:06 pts/0 00:00:01 ./update 500 nagios 10087 6691 0 09:07 pts/0 00:00:01 ./update 500 nagios 10090 6691 0 09:07 pts/0 00:00:01 ./update 500 nagios 10132 6691 0 09:07 pts/0 00:00:02 ./update 500 nagios 10179 6691 0 09:08 pts/0 00:00:01 ./update 500 nagios 10181 6691 0 09:08 pts/0 00:00:01 ./update 500 nagios 10184 6691 0 09:08 pts/0 00:00:02 ./update 500 nagios 10185 6691 0 09:08 pts/0 00:00:01 ./update 500 nagios 10188 6691 0 09:08 pts/0 00:00:01 ./update 500 nagios 10189 6691 0 09:08 pts/0 00:00:01 ./update 500 nagios 10191 6691 0 09:08 pts/0 00:00:02 ./update 500 nagios 10194 6691 0 09:08 pts/0 00:00:00 ./update 500 nagios 10196 6691 0 09:08 pts/0 00:00:00 ./update 500 nagios 10211 6691 0 09:08 pts/0 00:00:01 ./update 500 nagios 10212 6691 0 09:08 pts/0 00:00:01 ./update 500 nagios 10214 6691 0 09:08 pts/0 00:00:00 ./update 500 nagios 10215 6691 0 09:08 pts/0 00:00:00 ./update 500 nagios 10220 6691 0 09:08 pts/0 00:00:00 ./update 500 nagios 10236 6691 0 09:08 pts/0 00:00:00 ./update 500 nagios 10237 6691 0 09:08 pts/0 00:00:00 ./update 500 nagios 10239 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10251 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10254 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10263 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10300 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10304 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10305 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10306 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10309 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10310 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10311 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10312 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10314 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10315 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10316 6691 0 09:09 pts/0 00:00:00 ./update 500 nagios 10320 6691 0 09:09 pts/0 00:00:00 ./update 500 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 6 14:20:25 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Oct 2009 07:20:25 -0500 Subject: Lots of Nagios Processes In-Reply-To: References: Message-ID: <9C120EA7-7681-4989-B6D1-7FFC1E6D6D1B@ena.com> On Oct 6, 2009, at 6:46 AM, Martyn wrote: > Not sure what went off with this server last night but my processes > log below shows lots of Nagios entries, does any know why this would > happen and how I could prevent it in future > nagios 10314 6691 0 09:09 pts/0 00:00:00 ./update 500 > nagios 10315 6691 0 09:09 pts/0 00:00:00 ./update 500 > nagios 10316 6691 0 09:09 pts/0 00:00:00 ./update 500 > nagios 10320 6691 0 09:09 pts/0 00:00:00 ./update 500 What is 'update 500'? That's not a normal part of nagios and something you must have created/installed. It looks like the problem is with that program, not nagios. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Tue Oct 6 13:54:15 2009 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Tue, 6 Oct 2009 12:54:15 +0100 Subject: plugin for AIX6 In-Reply-To: <4AC0ABA1.3010201@aei.ca> References: <397730.28485.qm@web25503.mail.ukl.yahoo.com> <4AC0ABA1.3010201@aei.ca> Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF30142B6C2C561@MAIL06.curamsoftware.com> Sorry this is so late (was on holidays), but has anyone got check_aix_ram.pl or check_aix_ram working remotely. check_aix_ram uses svmon that wont work as the nagios user, and check_aix_ram.pl throws parse errors. Im seeing this on AIX6 and AIX5.3 B -----Original Message----- From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] Sent: 28 September 2009 13:27 To: nadia kheffache; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] plugin for AIX6 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 28/09/09 08:09 AM, nadia kheffache wrote: > I have successfuly installaled the plugins after install libraryc++-devel. Was that the fix for the plugin compilation? Is so I might add that to the FAQ on nagiosplugins.org. It would be very nice if you could post details on what you did to install the missing dependencies (I have absolutely no knowledge of AIX...) Thank you - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKwKuS6dZ+Kt5BchYRAgnmAJ9oZxS9PWrvc5D+rltzB6kw0wOazwCg88UZ 9/IyrwMHlhkM6JF7WsyTNjQ= =Bsl6 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lscarneiro at veltrac.com.br Tue Oct 6 14:59:01 2009 From: lscarneiro at veltrac.com.br (Leonardo Carneiro) Date: Tue, 06 Oct 2009 09:59:01 -0300 Subject: bandwidth measurement Message-ID: <4ACB3F15.9000602@veltrac.com.br> is there an easy and simple way to monitor the bandwidth use on a interface in a given moment, just like the 'iptraf' packet does, but without that fancy interface (just text output on the shell)? or do i have to use snmp? tks in advance -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Log?stica.* lscarneiro at veltrac.com.br http://www.veltrac.com.br /Fone Com.: (43)2105-5601/ /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zarrelli at linux.it Tue Oct 6 15:23:24 2009 From: zarrelli at linux.it (Giorgio Zarrelli) Date: Tue, 6 Oct 2009 15:23:24 +0200 (CEST) Subject: bandwidth measurement In-Reply-To: <4ACB3F15.9000602@veltrac.com.br> References: <4ACB3F15.9000602@veltrac.com.br> Message-ID: <7019.89.119.149.126.1254835404.squirrel@picard.linux.it> Hi, the easy way is using SNMP. I just released a plugin to measure bandwidth with SNMP v.3, crypted and authenticated: http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F3210.html;d=1 check_bandwidth_snmp.tgz Giorgio > is there an easy and simple way to monitor the bandwidth use on a > interface in a given moment, just like the 'iptraf' packet does, but > without that fancy interface (just text output on the shell)? or do i > have to use snmp? > > tks in advance > -- > > *Leonardo de Souza Carneiro* > *Veltrac - Tecnologia em Log?stica.* > lscarneiro at veltrac.com.br > http://www.veltrac.com.br > /Fone Com.: (43)2105-5601/ > /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ > /Londrina- PR/ > /Cep: 86015-010/ > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.huth at tmr.net Tue Oct 6 15:29:31 2009 From: a.huth at tmr.net (Alex Huth) Date: Tue, 6 Oct 2009 15:29:31 +0200 Subject: cgi Authentication safeguard Message-ID: <20091006132931.GM5556@borusse.nordpark> Hi! I have put the nagios server behind a Webserver which is doing clientside certification, Password authentication and a ProxPassReverse to the really nagios server. The nagios server allows only the first webserver to contact him. Also the firewall/DMZ restricts the acces to the nagios. That's enough security, so i have disabled the authentication for the nagios webserver and the cgi's. Everythings works, so far so good. But now i can't make a reschedule for any servicecheck. How can i solve this without reactivating the authentication? thx Alex ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lscarneiro at veltrac.com.br Tue Oct 6 15:33:36 2009 From: lscarneiro at veltrac.com.br (Leonardo Carneiro) Date: Tue, 06 Oct 2009 10:33:36 -0300 Subject: bandwidth measurement In-Reply-To: <7019.89.119.149.126.1254835404.squirrel@picard.linux.it> References: <4ACB3F15.9000602@veltrac.com.br> <7019.89.119.149.126.1254835404.squirrel@picard.linux.it> Message-ID: <4ACB4730.4080501@veltrac.com.br> Grazie Giorgio, i'll give a try. Giorgio Zarrelli escreveu: > Hi, > > the easy way is using SNMP. I just released a plugin to measure bandwidth > with SNMP v.3, crypted and authenticated: > > http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F3210.html;d=1 > > check_bandwidth_snmp.tgz > > Giorgio > > > >> is there an easy and simple way to monitor the bandwidth use on a >> interface in a given moment, just like the 'iptraf' packet does, but >> without that fancy interface (just text output on the shell)? or do i >> have to use snmp? >> >> tks in advance >> -- >> >> *Leonardo de Souza Carneiro* >> *Veltrac - Tecnologia em Log?stica.* >> lscarneiro at veltrac.com.br >> http://www.veltrac.com.br >> /Fone Com.: (43)2105-5601/ >> /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ >> /Londrina- PR/ >> /Cep: 86015-010/ >> >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> > > > > -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Log?stica.* lscarneiro at veltrac.com.br http://www.veltrac.com.br /Fone Com.: (43)2105-5601/ /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Tue Oct 6 15:39:19 2009 From: mmelin at gmail.com (Martin Melin) Date: Tue, 6 Oct 2009 15:39:19 +0200 Subject: Lots of Nagios Processes In-Reply-To: <9C120EA7-7681-4989-B6D1-7FFC1E6D6D1B@ena.com> References: <9C120EA7-7681-4989-B6D1-7FFC1E6D6D1B@ena.com> Message-ID: Yeah, the "nagios" part just means that the nagios user spawned "./update 500". My guess is that you have a check command defined that calls "./update", maybe the 500 is some kind of timeout? Check your command config file. Regards Martin Melin On Tue, Oct 6, 2009 at 2:20 PM, Marc Powell wrote: > > On Oct 6, 2009, at 6:46 AM, Martyn wrote: > > > Not sure what went off with this server last night but my processes > > log below shows lots of Nagios entries, does any know why this would > > happen and how I could prevent it in future > > > nagios 10314 6691 0 09:09 pts/0 00:00:00 ./update 500 > > nagios 10315 6691 0 09:09 pts/0 00:00:00 ./update 500 > > nagios 10316 6691 0 09:09 pts/0 00:00:00 ./update 500 > > nagios 10320 6691 0 09:09 pts/0 00:00:00 ./update 500 > > What is 'update 500'? That's not a normal part of nagios and something > you must have created/installed. It looks like the problem is with > that program, not nagios. > > -- > Marc > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 6 15:50:04 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Oct 2009 08:50:04 -0500 Subject: cgi Authentication safeguard In-Reply-To: <20091006132931.GM5556@borusse.nordpark> References: <20091006132931.GM5556@borusse.nordpark> Message-ID: On Oct 6, 2009, at 8:29 AM, Alex Huth wrote: > How can i solve this without reactivating the authentication? Edit cgi.cfg. Set use_authentication=1 default_user_name=somename # a name that is an authorized contact for all hosts/services or is authorized_for_* further in cgi.cfg authorized_for_*=somename # enable these options that you deem appropriate -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.huth at tmr.net Tue Oct 6 16:08:23 2009 From: a.huth at tmr.net (Alex Huth) Date: Tue, 6 Oct 2009 16:08:23 +0200 Subject: cgi Authentication safeguard In-Reply-To: References: <20091006132931.GM5556@borusse.nordpark> Message-ID: <20091006140823.GN5556@borusse.nordpark> Thx Marc! * Marc Powell schrieb: > > On Oct 6, 2009, at 8:29 AM, Alex Huth wrote: > > > How can i solve this without reactivating the authentication? > > Edit cgi.cfg. Set > use_authentication=1 > default_user_name=somename # a name that is an authorized contact for > all hosts/services or is authorized_for_* further in cgi.cfg > authorized_for_*=somename # enable these options that you deem > appropriate > > -- > Marc > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike-ward at utc.edu Tue Oct 6 16:22:25 2009 From: mike-ward at utc.edu (Michael Ward) Date: Tue, 6 Oct 2009 10:22:25 -0400 Subject: Windows script for checking SNMP status Message-ID: <08588845-C3DD-4F75-B0EE-CA8F3B689ECF@utc.edu> Since I couldn't figure out why SNMP on Windows was crashing on some boxes (OSMA, Dell Servers) but not others, I munged someone's script to check to see if SNMP is stopped and if so, run it. I put this is a text file called check-snmp.cmd @echo off setlocal rem http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_24010267.html set service=SNMP set state=STOPPED for /F "tokens=3 delims=: " %%H in ('sc \\. query "%service%" ^| findstr " STATE"') do ( if /I "%%H" == "%state%" ( echo %date%,%time%,%%H net start snmp ) ) mjw ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From howard.allison at pva.sozvers.at Tue Oct 6 14:58:59 2009 From: howard.allison at pva.sozvers.at (Howard Allison) Date: Tue, 6 Oct 2009 14:58:59 +0200 Subject: Antwort: Re: plugin for AIX6 In-Reply-To: <86E8DA9E18BC2344BD0218BF23C88DF30142B6C2C561@MAIL06.curamsoftware.com> References: <397730.28485.qm@web25503.mail.ukl.yahoo.com> <4AC0ABA1.3010201@aei.ca> <86E8DA9E18BC2344BD0218BF23C88DF30142B6C2C561@MAIL06.curamsoftware.com> Message-ID: Don't know exactly what you want to monitor - but you could use something like: MEM_REAL=`vmstat | grep System | cut -d" " -f4 | cut -d"=" -f2 | sed -e s/MB//g` MEM_FREE=`vmstat | tail -1 | awk '{print $4}'` MEM_FREE=`echo "$MEM_FREE * 4096" | bc` MEM_REAL=`echo "$MEM_REAL * 1048576" | bc` to get the mem values.... and : MEM_PCTUSED=$(bc -l << EOF scale=2 ($MEM_FREE / $MEM_REAL) * 100 EOF ) to get percentage used... Howard "Brian O'Mahony" wrote on 06.10.2009 13:54:15: > "Brian O'Mahony" > 06.10.2009 14:42 > > An > > Thomas Guyot-Sionnest , nadia kheffache > , "nagios-users at lists.sourceforge.net" > > > Kopie > > Thema > > Re: [Nagios-users] plugin for AIX6 > > Sorry this is so late (was on holidays), but has anyone got > check_aix_ram.pl or check_aix_ram working remotely. > > check_aix_ram uses svmon that wont work as the nagios user, and > check_aix_ram.pl throws parse errors. > > Im seeing this on AIX6 and AIX5.3 > > B > > -----Original Message----- > From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca] > Sent: 28 September 2009 13:27 > To: nadia kheffache; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] plugin for AIX6 > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 28/09/09 08:09 AM, nadia kheffache wrote: > > I have successfuly installaled the plugins after install libraryc+ +-devel. > > Was that the fix for the plugin compilation? Is so I might add that to > the FAQ on nagiosplugins.org. > > It would be very nice if you could post details on what you did to > install the missing dependencies (I have absolutely no knowledge of AIX...) > > Thank you > > - -- > Thomas > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFKwKuS6dZ+Kt5BchYRAgnmAJ9oZxS9PWrvc5D+rltzB6kw0wOazwCg88UZ > 9/IyrwMHlhkM6JF7WsyTNjQ= > =Bsl6 > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > The information in this email is confidential and may be legally privileged. > It is intended solely for the addressee. Access to this email by anyone else > is unauthorized. If you are not the intended recipient, any disclosure, > copying, distribution or any action taken or omitted to be taken in reliance > on it, is prohibited and may be unlawful. If you are not the intended > addressee please contact the sender and dispose of this e-mail. Thank you. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------------------- VERTRAULICHKEIT: Diese Nachricht ist ausschlie?lich f?r denjenigen bestimmt, an den sie adressiert ist und kann vertrauliche Informationen enthalten. Falls Sie nicht der Empf?nger dieser Nachricht sind, weisen wir Sie darauf hin, dass die unberechtigte Weitergabe oder Verwendung sowie das unberechtigte Verteilen oder Kopieren dieser Nachricht strikt untersagt sind. Falls Sie diese Nachricht irrt?mlich erhalten haben, vernichten Sie sie bitte sofort. CONFIDENTIALITY: This message is intended only for the use of the individuality or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure. If you are not the intended recipient you are notified that any dissemination, distribution, use or copying of this communication is strictly prohibited. If you received this message in error, please immediately destroy this message. -------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From new2nagios at gmail.com Tue Oct 6 18:31:51 2009 From: new2nagios at gmail.com (Emily) Date: Tue, 6 Oct 2009 12:31:51 -0400 Subject: bgp monitoring (check_bgp_neighbors) command syntax assistance Message-ID: <6b8437bc0910060931v672a0183l7b5a4b7d3a3293e3@mail.gmail.com> Hello, I am attempting to use this check_bgp_neighbors command which was recommended however my manual execution gives this output: [root at dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C public -n 157.130.57.129 -n 65.205.26.197 Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1 expr: syntax error Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1 expr: syntax error ./check_bgp_neighbors: line 107: [: -ge: unary operator expected Failed: status:12 prefixes: sent:1466115 received:1475079[root at dns libexec]# [root at dns libexec]# perhaps my syntax is flawed as I don't know why I am getting this "Failed object" error, the usage of the command is below, I would really appreciate any help with my syntax for the above command: [root at dns libexec]# more check_bgp_neighbors #!/bin/bash # Written By: Scott McCarty # Created: 2/2008 # Description: Used to collect counters for bgp and also status and number of pr efixes in memory # License: This nagios plugin comes with ABSOLUTELY NO WARRANTY. You may redistr ibute copies of # the plugins under the terms of the GNU General Public License. For more inform ation about these # matters, see the GNU General Public License. # Version: 1.0 # Varialbles debug=0 sent_threshold=1 received_threshold=5 prefixes_threshold=240000 current_received=0 current_sent=0 last_received=0 last_sent=0 total_prefixes=0 total_status=0 min_status=0 total_sent=0 total_received=0 neighbors="" community="" hostname="" usage="Usage: $0 -H -C -n -n neighbor2 [...]" Emily -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Tue Oct 6 18:46:35 2009 From: martyn at chetnet.co.uk (Martyn) Date: Tue, 6 Oct 2009 17:46:35 +0100 Subject: Lots of Nagios Processes In-Reply-To: References: Message-ID: Thanks both for your replies, will look into o that process what ever it is _____ From: Martin Melin [mailto:mmelin at gmail.com] Sent: 06 October 2009 14:39 To: Nagios-Users Mailinglist Subject: Re: [Nagios-users] Lots of Nagios Processes Yeah, the "nagios" part just means that the nagios user spawned "./update 500". My guess is that you have a check command defined that calls "./update", maybe the 500 is some kind of timeout? Check your command config file. Regards Martin Melin On Tue, Oct 6, 2009 at 2:20 PM, Marc Powell wrote: On Oct 6, 2009, at 6:46 AM, Martyn wrote: > Not sure what went off with this server last night but my processes > log below shows lots of Nagios entries, does any know why this would > happen and how I could prevent it in future > nagios 10314 6691 0 09:09 pts/0 00:00:00 ./update 500 > nagios 10315 6691 0 09:09 pts/0 00:00:00 ./update 500 > nagios 10316 6691 0 09:09 pts/0 00:00:00 ./update 500 > nagios 10320 6691 0 09:09 pts/0 00:00:00 ./update 500 What is 'update 500'? That's not a normal part of nagios and something you must have created/installed. It looks like the problem is with that program, not nagios. -- Marc ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Tue Oct 6 18:51:39 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Tue, 6 Oct 2009 18:51:39 +0200 Subject: R: R: R: nsclient++ and nrpe commands In-Reply-To: <5438346808353003323@unknownmsgid> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> <4529032189346995872@unknownmsgid> <90f6e8270910050548l369d5591l1901695ce0a8a03f@mail.gmail.com> <-2424743085573608826@unknownmsgid> <90f6e8270910050937t7e864a45kb87c79cb2eebede7@mail.gmail.com> <5438346808353003323@unknownmsgid> Message-ID: <90f6e8270910060951x581e1604iaea5d393e6b5161d@mail.gmail.com> hi, could you post your nsc.ini and bat files, please? sanitize as necessary (do not post passwords ;-) ) -- Groeten, J.Asenjo On Tue, Oct 6, 2009 at 8:28 AM, Marco Borsani wrote: > Hi > > > > I setted the full path (C:\program files\....) in this way, tha batch did > not work at all . > > > > I try also to put an ?@exit 0? at the end of ths script, notting changed. > > > > Any other ideas ? > > > > Marco > > > > *Da:* Natxo Asenjo [mailto:natxo.asenjo at gmail.com] > *Inviato:* luned? 5 ottobre 2009 18.38 > *A:* Nagios Users Mailinglist > *Oggetto:* Re: [Nagios-users] R: R: nsclient++ and nrpe commands > > > > On Mon, Oct 5, 2009 at 3:23 PM, Marco Borsani wrote: > > Excuse me , I did not wrote the real error message I am receiving. > > > > I run from nagios server: > > ./check_nrpe -H -c disk0 > > And receive this: > > 'check_openmanage.exe' is not recognized as an internal or external > command, operable program or batch file. > > ok, so the bat file disk0 is being executed. Try setting the full path to > check_openmanage.exe in the bat file because apparently it is not in the > path of your windows session. > > > The nsc.ini file there are all the parameters you suggested me and the > command ?disk0? is defined: > > disk0=scripts\Disk0.bat > > If you run Disk0.bat in MSdos shell, it works correctly. > > Is has only one raw (@check_openmanage.exe -v | find "Physical Disk 0:0") > > > > In the nsclientlog we read: > > 2009-10-05 15:22:09: error:modules\NRPEListener\NRPEListener.cpp:263: The > command (disk0) returned an invalid return code: 255 > > > you need to return valid error levels that nagios understand: 0 is 0k, 1 is > warning, 2 is critical and 3 is unknown. Otherwise nagios does not know what > to do with them. > > > > > I always restart nsclientpp when I modified the NSC.ini file. > > good, just checking ;-) > > natxo > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Tue Oct 6 19:00:44 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Tue, 6 Oct 2009 19:00:44 +0200 Subject: Windows SNMP service crashing during Nagios monitoring In-Reply-To: <4ACAC029.8070200@hp.com> References: <884bae280910051739t1ead8832q6fcaad83f1021baf@mail.gmail.com> <4ACAC029.8070200@hp.com> Message-ID: <90f6e8270910061000r26106c57g71cff3f75b8b2de7@mail.gmail.com> On Tue, Oct 6, 2009 at 5:57 AM, Morris, Patrick wrote: > > > The SNMP service on Windows sucks. Hard. I have no problems at all monitoring our windows. servers through SNMP. Could you ellaborate a bit further this statement? We have a mix of hp and fujitsu hardware and monitoring the hardware with snmp just works under windows as under linux or esx. Maybe we are just lucky :) natxo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike-ward at utc.edu Tue Oct 6 19:11:38 2009 From: mike-ward at utc.edu (Michael Ward) Date: Tue, 6 Oct 2009 13:11:38 -0400 Subject: Potential solution found for SNMP crashes on Windows 2003 Dell OSMA Message-ID: <8634F5F1-68BE-40CC-87CD-14E325CF575B@utc.edu> Turns out both boxes were running Server Administrator 5.4.0. Dell has released 5.4.0.1 to patch this problem. I hope this will fix it. mjw ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neufpas at gmail.com Tue Oct 6 19:21:17 2009 From: neufpas at gmail.com (Noel Platzke) Date: Tue, 6 Oct 2009 13:21:17 -0400 Subject: notifications not being sent on host down/unreachable Message-ID: <96c54e8b0910061021j255145aej19f4fa77c6aa771@mail.gmail.com> I have a nagios setup consisting of 2 distributed servers and one master using nsca. I'm having an issue where notifications aren't being sent for hosts going down or becoming unreachable but I see them in that state in the GUI and the logs. If a service check fails the notification is sent fine but if the whole box dies I'm never seeing a host down/unreachable alert. In fact there is no notification listed in the notification history so it seems to be a config issue. But I've looked through all of the configs multiple times and just can't figure this out. My host, service and contacts are defined with the following templates: define host{ name standard-host max_check_attempts 3 check_interval 15 retry_interval 5 check_command check-host-alive check_period 24x7 notifications_enabled 1 retain_status_information 1 retain_nonstatus_information 1 contacts ops notification_interval 15 notification_period 24x7 check_freshness 1 freshness_threshold 300 register 0 } define service{ name standard-service max_check_attempts 3 check_interval 5 retry_interval 3 check_period 24x7 notification_interval 10 notification_period 24x7 notification_options u,c,r contacts ops register 0 check_freshness 1 freshness_threshold 300 } define contact{ name standard-contact host_notifications_enabled 1 service_notifications_enabled 1 host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r service_notification_options c,u,r host_notification_commands host-notify-by-email service_notification_commands notify-by-email-verbose register 0 } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 6 19:53:12 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Oct 2009 12:53:12 -0500 Subject: notifications not being sent on host down/unreachable In-Reply-To: <96c54e8b0910061021j255145aej19f4fa77c6aa771@mail.gmail.com> References: <96c54e8b0910061021j255145aej19f4fa77c6aa771@mail.gmail.com> Message-ID: On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote: > My host, service and contacts are defined with the following > templates: > > define host{ > name standard-host > max_check_attempts 3 > check_interval 15 > retry_interval 5 > check_command check-host-alive > check_period 24x7 > notifications_enabled 1 > retain_status_information 1 > retain_nonstatus_information 1 > contacts ops > notification_interval 15 > notification_period 24x7 > check_freshness 1 > freshness_threshold 300 > register 0 > } Hello, This is just a template and not a complete host definition. In fact, they were all just templates and missing critical pieces of information or may have parts that are overridden in the full definition. You should post the entire definition for the host, contact group and contact as found in objects.cache. At first glance, you don't specify any notification_options for the host. With Nagios-3, this will mean that all states will result in a notification but under 2.x I believe that behavior is different. I'd go ahead and specify the specific states to you want to receive notifications for. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 6 20:20:00 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Oct 2009 13:20:00 -0500 Subject: bgp monitoring (check_bgp_neighbors) command syntax assistance In-Reply-To: <6b8437bc0910060931v672a0183l7b5a4b7d3a3293e3@mail.gmail.com> References: <6b8437bc0910060931v672a0183l7b5a4b7d3a3293e3@mail.gmail.com> Message-ID: <54F0B558-B386-4251-A830-D6FF7F681037@ena.com> On Oct 6, 2009, at 11:31 AM, Emily wrote: > Hello, I am attempting to use this check_bgp_neighbors command which > was recommended however my manual execution gives this output: > > [root at dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C > public -n 157.130.57.129 -n 65.205.26.197 > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1 > expr: syntax error > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1 > expr: syntax error > ./check_bgp_neighbors: line 107: [: -ge: unary operator expected > Failed: status:12 prefixes: sent:1466115 received:1475079[root at dns > libexec]# > [root at dns libexec]# > perhaps my syntax is flawed as I don't know why I am getting this > "Failed object" error, the usage of the command is below, I would > really appreciate any help with my syntax for the above command: I just played around with the script. Try running it again. I saw similar errors on the first run but subsequent runs were better (it creates a temp file to keep track of sends/receives). It also expects at least 2 minutes (and possibly 5 minutes) between runs in order to see sufficient messages sent/received. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Tue Oct 6 20:20:43 2009 From: jpratt at norwich.edu (James Pratt) Date: Tue, 6 Oct 2009 14:20:43 -0400 Subject: bgp monitoring (check_bgp_neighbors) command syntaxassistance In-Reply-To: <6b8437bc0910060931v672a0183l7b5a4b7d3a3293e3@mail.gmail.com> References: <6b8437bc0910060931v672a0183l7b5a4b7d3a3293e3@mail.gmail.com> Message-ID: <24B6509E4191AF44B60A24EAA3B4AD491CBB46@nuexchg.norwich.edu> >> -----Original Message----- >> From: Emily [mailto:new2nagios at gmail.com] >> Sent: Tuesday, October 06, 2009 12:32 PM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] bgp monitoring (check_bgp_neighbors) command >> syntaxassistance >> >> Hello, I am attempting to use this check_bgp_neighbors command which was >> recommended however my manual execution gives this output: >> >> [root at dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C public -n >> 157.130.57.129 -n 65.205.26.197 >> Error in packet >> Reason: (noSuchName) There is no such variable name in this MIB. >> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1 >> expr: syntax error >> Error in packet >> Reason: (noSuchName) There is no such variable name in this MIB. >> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1 >> expr: syntax error >> ./check_bgp_neighbors: line 107: [: -ge: unary operator expected >> Failed: status:12 prefixes: sent:1466115 received:1475079[root at dns libexec]# >> [root at dns libexec]# >> >> perhaps my syntax is flawed as I don't know why I am getting this "Failed object" >> error, the usage of the command is below, I would really appreciate any help with my >> syntax for the above command: >> I think your syntax is ok, as it's not line 107 that its actually failing on, it's the two OID lookup(s) on the router - it's not able to see them via snmpwalk in the script... The shell script itself is inserting those last two "neighbor" IP addresses into the snmpwalk call(s) as part of the specific OID's, so it could definitely be a typo or something - can you try to manually run snmpwalk against the router to troubleshoot it further? Cheers, james ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neufpas at gmail.com Tue Oct 6 20:22:40 2009 From: neufpas at gmail.com (Noel Platzke) Date: Tue, 6 Oct 2009 14:22:40 -0400 Subject: notifications not being sent on host down/unreachable In-Reply-To: References: <96c54e8b0910061021j255145aej19f4fa77c6aa771@mail.gmail.com> Message-ID: <96c54e8b0910061122i6e28b705hab25258285fed80@mail.gmail.com> I included the template because the actual host definitions only include the server specific information. I'm not overriding anything. For example... define host{ use standard-host host_name server1 hostgroups +servers alias server1 address server1.domain.com } The same goes for contacts everything else. On Tue, Oct 6, 2009 at 1:53 PM, Marc Powell wrote: > > On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote: > > > My host, service and contacts are defined with the following > > templates: > > > > define host{ > > name standard-host > > max_check_attempts 3 > > check_interval 15 > > retry_interval 5 > > check_command check-host-alive > > check_period 24x7 > > notifications_enabled 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > contacts ops > > notification_interval 15 > > notification_period 24x7 > > check_freshness 1 > > freshness_threshold 300 > > register 0 > > } > > Hello, > > This is just a template and not a complete host definition. In fact, > they were all just templates and missing critical pieces of > information or may have parts that are overridden in the full > definition. You should post the entire definition for the host, > contact group and contact as found in objects.cache. At first glance, > you don't specify any notification_options for the host. With > Nagios-3, this will mean that all states will result in a notification > but under 2.x I believe that behavior is different. I'd go ahead and > specify the specific states to you want to receive notifications for. > > -- > Marc > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neufpas at gmail.com Tue Oct 6 20:38:20 2009 From: neufpas at gmail.com (Noel Platzke) Date: Tue, 6 Oct 2009 14:38:20 -0400 Subject: notifications not being sent on host down/unreachable In-Reply-To: <96c54e8b0910061122i6e28b705hab25258285fed80@mail.gmail.com> References: <96c54e8b0910061021j255145aej19f4fa77c6aa771@mail.gmail.com> <96c54e8b0910061122i6e28b705hab25258285fed80@mail.gmail.com> Message-ID: <96c54e8b0910061138x412748a9hcb59f64b9d1b31eb@mail.gmail.com> So this is working now but I'm not sure why. I deleted the objects.cache file and restarted and got a host down alert as soon as nagios came up. On a whim I deleted the cache file and restarted nagios and it sent out a host down alert. I didn't change anything else. On Tue, Oct 6, 2009 at 2:22 PM, Noel Platzke wrote: > I included the template because the actual host definitions only include > the server specific information. I'm not overriding anything. For example... > > define host{ > use standard-host > host_name server1 > hostgroups +servers > alias server1 > address server1.domain.com > } > > > The same goes for contacts everything else. > > > On Tue, Oct 6, 2009 at 1:53 PM, Marc Powell wrote: > >> >> On Oct 6, 2009, at 12:21 PM, Noel Platzke wrote: >> >> > My host, service and contacts are defined with the following >> > templates: >> > >> > define host{ >> > name standard-host >> > max_check_attempts 3 >> > check_interval 15 >> > retry_interval 5 >> > check_command check-host-alive >> > check_period 24x7 >> > notifications_enabled 1 >> > retain_status_information 1 >> > retain_nonstatus_information 1 >> > contacts ops >> > notification_interval 15 >> > notification_period 24x7 >> > check_freshness 1 >> > freshness_threshold 300 >> > register 0 >> > } >> >> Hello, >> >> This is just a template and not a complete host definition. In fact, >> they were all just templates and missing critical pieces of >> information or may have parts that are overridden in the full >> definition. You should post the entire definition for the host, >> contact group and contact as found in objects.cache. At first glance, >> you don't specify any notification_options for the host. With >> Nagios-3, this will mean that all states will result in a notification >> but under 2.x I believe that behavior is different. I'd go ahead and >> specify the specific states to you want to receive notifications for. >> >> -- >> Marc >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 6 21:28:50 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Oct 2009 14:28:50 -0500 Subject: notifications not being sent on host down/unreachable In-Reply-To: <96c54e8b0910061138x412748a9hcb59f64b9d1b31eb@mail.gmail.com> References: <96c54e8b0910061021j255145aej19f4fa77c6aa771@mail.gmail.com> <96c54e8b0910061122i6e28b705hab25258285fed80@mail.gmail.com> <96c54e8b0910061138x412748a9hcb59f64b9d1b31eb@mail.gmail.com> Message-ID: <1F44F62F-4E65-4514-AC7F-60C516981DA5@ena.com> On Oct 6, 2009, at 1:38 PM, Noel Platzke wrote: > So this is working now but I'm not sure why. I deleted the > objects.cache file and restarted and got a host down alert as soon > as nagios came up. This tells me that nagios wasn't running with the configuration you thought it was (unless you also deleted status.dat, which may have settings overrides your object definitions). Seeing what was in objects.cache (and status.dat) might have explained the issue. > On Tue, Oct 6, 2009 at 2:22 PM, Noel Platzke > wrote: > I included the template because the actual host definitions only > include the server specific information. I'm not overriding > anything. For example... Then you should tell us this at the least. We're not mind readers and when you provide something that is incomplete, with no comment that it's known incomplete and why, we have to assume you don't know what you gave us. ;) IMHO, you (as in anyone reporting problems) should provide *all* related information for any problem regardless of what bits you think are needed. Usually the problem is not in what you know you need, but in what you don't know you need. =) -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From new2nagios at gmail.com Tue Oct 6 21:29:14 2009 From: new2nagios at gmail.com (Emily) Date: Tue, 6 Oct 2009 15:29:14 -0400 Subject: bgp monitoring (check_bgp_neighbors) command syntaxassistance In-Reply-To: <24B6509E4191AF44B60A24EAA3B4AD491CBB46@nuexchg.norwich.edu> References: <6b8437bc0910060931v672a0183l7b5a4b7d3a3293e3@mail.gmail.com> <24B6509E4191AF44B60A24EAA3B4AD491CBB46@nuexchg.norwich.edu> Message-ID: <6b8437bc0910061229r272328d1m6df1b35ee26ad77f@mail.gmail.com> Well I was able to do an smpwalk on my router - of course trying to find the correct OID might be a problem... Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1 I could only do a search up to 1.3.6.1.4.1.9.9, if I included 187 I got an error on an invalid OID I am wondering if anyone else is using the check_bgp_neighbors script sucessfully? I did a search on the OID from my error and this is what it generated... iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1) cisco(9) ciscoMgmt(9) Search the OID On Tue, Oct 6, 2009 at 2:20 PM, James Pratt wrote: > > > >> -----Original Message----- > >> From: Emily [mailto:new2nagios at gmail.com] > >> Sent: Tuesday, October 06, 2009 12:32 PM > >> To: nagios-users at lists.sourceforge.net > >> Subject: [Nagios-users] bgp monitoring (check_bgp_neighbors) command > >> syntaxassistance > >> > >> Hello, I am attempting to use this check_bgp_neighbors command which > was > >> recommended however my manual execution gives this output: > >> > >> [root at dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C > public -n > >> 157.130.57.129 -n 65.205.26.197 > >> Error in packet > >> Reason: (noSuchName) There is no such variable name in this MIB. > >> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1 > >> expr: syntax error > >> Error in packet > >> Reason: (noSuchName) There is no such variable name in this MIB. > >> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1 > >> expr: syntax error > >> ./check_bgp_neighbors: line 107: [: -ge: unary operator expected > >> Failed: status:12 prefixes: sent:1466115 received:1475079[root at dns > libexec]# > >> [root at dns libexec]# > >> > >> perhaps my syntax is flawed as I don't know why I am getting this > "Failed object" > >> error, the usage of the command is below, I would really appreciate > any help with my > >> syntax for the above command: > >> > > I think your syntax is ok, as it's not line 107 that its actually > failing on, it's the two OID lookup(s) on the router - it's not able to > see them via snmpwalk in the script... > > The shell script itself is inserting those last two "neighbor" IP > addresses into the snmpwalk call(s) as part of the specific OID's, so it > could definitely be a typo or something - can you try to manually run > snmpwalk against the router to troubleshoot it further? > > Cheers, > james > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robin.brown at uconn.edu Tue Oct 6 21:49:42 2009 From: robin.brown at uconn.edu (Brown, Robin) Date: Tue, 6 Oct 2009 15:49:42 -0400 Subject: bgp monitoring (check_bgp_neighbors) command syntaxassistance In-Reply-To: <6b8437bc0910061229r272328d1m6df1b35ee26ad77f@mail.gmail.com> References: <6b8437bc0910061229r272328d1m6df1b35ee26ad77f@mail.gmail.com> Message-ID: Perhaps your router does not support that mib. Check here and see if your image supports it: http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=+1.3.6.1.4.1.9.9.187.1.2.4.1.1&translate=Translate&submitValue=SUBMIT&submitClicked=true There is a link to check if your image supports the mib. -Robin On 10/6/09 3:29 PM, "Emily" wrote: Well I was able to do an smpwalk on my router - of course trying to find the correct OID might be a problem... Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1 I could only do a search up to 1.3.6.1.4.1.9.9, if I included 187 I got an error on an invalid OID I am wondering if anyone else is using the check_bgp_neighbors script sucessfully? I did a search on the OID from my error and this is what it generated... iso(1) identified-organization(3) dod(6) internet(1) private(4) enterprise(1) cisco(9) ciscoMgmt(9) Search the OID On Tue, Oct 6, 2009 at 2:20 PM, James Pratt wrote: >> -----Original Message----- >> From: Emily [mailto:new2nagios at gmail.com] >> Sent: Tuesday, October 06, 2009 12:32 PM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] bgp monitoring (check_bgp_neighbors) command >> syntaxassistance >> >> Hello, I am attempting to use this check_bgp_neighbors command which was >> recommended however my manual execution gives this output: >> >> [root at dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C public -n >> 157.130.57.129 -n 65.205.26.197 >> Error in packet >> Reason: (noSuchName) There is no such variable name in this MIB. >> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1 >> expr: syntax error >> Error in packet >> Reason: (noSuchName) There is no such variable name in this MIB. >> Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1 >> expr: syntax error >> ./check_bgp_neighbors: line 107: [: -ge: unary operator expected >> Failed: status:12 prefixes: sent:1466115 received:1475079[root at dns libexec]# >> [root at dns libexec]# >> >> perhaps my syntax is flawed as I don't know why I am getting this "Failed object" >> error, the usage of the command is below, I would really appreciate any help with my >> syntax for the above command: >> I think your syntax is ok, as it's not line 107 that its actually failing on, it's the two OID lookup(s) on the router - it's not able to see them via snmpwalk in the script... The shell script itself is inserting those last two "neighbor" IP addresses into the snmpwalk call(s) as part of the specific OID's, so it could definitely be a typo or something - can you try to manually run snmpwalk against the router to troubleshoot it further? Cheers, james ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TGFurnish at herffjones.com Tue Oct 6 22:42:14 2009 From: TGFurnish at herffjones.com (Furnish, Trever G) Date: Tue, 6 Oct 2009 16:42:14 -0400 Subject: notify by telephone call? Message-ID: Can anyone whose already done this point me in the right direction for sending out notifications by reading the alerts into a phone call? The hard part isn't the text-to-speech (I'm assuming I can just use festival for that), or even a pre-recorded message. What's proving to be the hard part for me is figuring out how to reliably make a phone call. We have an existing VoIP phone system, including Cisco routers I could connect to using SIP... if I could find a good command-line SIP calling tool. I also don't want to create a notification method that causes Nagios to back up on notifications. The existing notification methods allow Nagios to quickly hand off notifications to other daemons that ensure reliable delivery (QuickPage, which is wonderful for sending SMS via TAP gateways, and sendmail, which of course handles sending out notifications by email). But I don't want to get distracted by this -- if I could just find a good command-line "place-a-call-and-play-some-audio-into-it" tool, I could wrap it easily in enough scripting to make it reliable. So far I've found notes on using vgetty (and I'm still reading through those), and I've found notes on doing this with Asterisk (but I don't have Asterisk and I hope it's an unneeded level of complexity). There are lots of graphical sip clients available, but I haven't found any others to use from the command-line yet. Suggestions? -- Trever Furnish, tgfurnish at herffjones.com Herff Jones, Inc. Systems Engineer Phone: 317.612.3519 Any sufficiently advanced technology is indistinguishable from Unix. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mirde at oppy.com Tue Oct 6 23:57:09 2009 From: mirde at oppy.com (Mirza Dedic) Date: Tue, 6 Oct 2009 14:57:09 -0700 Subject: Tweaking Nagios Performance (Checks/Notifications) Message-ID: I recently finished moving Nagios from a Virtual machine to bare-bone hardware, on a PowerEdge retired machine (dual-core, 4GB ram, raid-5 10k RPM HDs). My goal is to have a 1 minute window between when a host/service goes down and the time that I receive a message that it is down. We are monitoring a total of 347 Services and 82 Hosts, mainly using the plug-ins below: - Check_by_ssh - Check_nt (NSClient++ for Win32) - Check_http - Check_ping - Check_esx3 - Check_mysql Below are my "performance info" for the current setup: Time Frame Services Checked <= 1 minute 65 (18.7%) <= 5 minutes 300 (86.5%) <= 15 minutes 347 (100.0%) <= 1 hour 347 (100.0%) Since program start 347 (100.0%) Metric Min. Max. Average Check Execution Time 0.01 sec 21.91 sec 1.603 sec Check Latency 0.00 sec 0.00 sec 0.164 sec Percent State Change 0.00% 0.00% 0.00% Services Passively Checked Time Frame Services Checked <= 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% Hosts Actively Checked Time Frame Hosts Checked <= 1 minute 0 (0.0%) <= 5 minutes 78 (95.1%) <= 15 minutes 82 (100.0%) <= 1 hour 82 (100.0%) Since program start 82 (100.0%) Metric Min. Max. Average Check Execution Time 0.29 sec 4.03 sec 2.483 sec Check Latency 0.15 sec 0.78 sec 0.565 sec Percent State Change 0.00% 0.00% 0.00% Hosts Passively Checked Time Frame Hosts Checked <= 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% When I restart Nagios and monitoring the box, the total CPU consumption does not spike past 10%, so I would like to squeeze the checks tighter to use the additional resource available. Below is my nagios.cfg for current setup: Can anyone suggest some changes that I could do to achieve the results wanted? # MERLIN BROKER MODULE broker_module=/usr/local/nagios/addons/merlin/merlin.so /usr/local/nagios/addons/merlin/merlin.conf log_file=/usr/local/nagios/var/nagios.log # localhost cfg_file=/usr/local/nagios/etc/localhost.cfg # Locations cfg_dir=/usr/local/nagios/etc/locations # Devices cfg_dir=/usr/local/nagios/etc/devices # Objects cfg_dir=/usr/local/nagios/etc/objects # OBJECT CACHE FILE object_cache_file=/usr/local/nagios/var/objects.cache # PRE-CACHED OBJECT FILE precached_object_file=/usr/local/nagios/var/objects.precache # RESOURCE FILE resource_file=/usr/local/nagios/etc/resource.cfg # STATUS FILE status_file=/usr/local/nagios/var/status.dat # STATUS FILE UPDATE INTERVAL status_update_interval=5 # NAGIOS USER nagios_user=nagios # NAGIOS GROUP nagios_group=nagios # EXTERNAL COMMAND OPTION check_external_commands=1 # EXTERNAL COMMAND CHECK INTERVAL command_check_interval=-1 # EXTERNAL COMMAND FILE command_file=/usr/local/nagios/var/rw/nagios.cmd # EXTERNAL COMMAND BUFFER SLOTS external_command_buffer_slots=4096 # LOCK FILE lock_file=/usr/local/nagios/var/nagios.lock # TEMP FILE temp_file=/usr/local/nagios/var/nagios.tmp # TEMP PATH temp_path=/tmp # EVENT BROKER OPTIONS event_broker_options=-1 # LOG ROTATION METHOD log_rotation_method=d # LOG ARCHIVE PATH log_archive_path=/usr/local/nagios/var/archives # LOGGING OPTIONS use_syslog=1 # NOTIFICATION LOGGING OPTION log_notifications=1 # SERVICE RETRY LOGGING OPTION log_service_retries=1 # HOST RETRY LOGGING OPTION log_host_retries=1 # EVENT HANDLER LOGGING OPTION log_event_handlers=1 # INITIAL STATES LOGGING OPTION log_initial_states=1 # EXTERNAL COMMANDS LOGGING OPTION log_external_commands=1 # PASSIVE CHECKS LOGGING OPTION log_passive_checks=1 # SERVICE INTER-CHECK DELAY METHOD service_inter_check_delay_method=s # MAXIMUM SERVICE CHECK SPREAD max_service_check_spread=5 # SERVICE CHECK INTERLEAVE FACTOR service_interleave_factor=s # HOST INTER-CHECK DELAY METHOD host_inter_check_delay_method=s # MAXIMUM HOST CHECK SPREAD max_host_check_spread=3 # MAXIMUM CONCURRENT SERVICE CHECKS max_concurrent_checks=0 # HOST AND SERVICE CHECK REAPER FREQUENCY check_result_reaper_frequency=10 # MAX CHECK RESULT REAPER TIME max_check_result_reaper_time=30 # CHECK RESULT PATH check_result_path=/usr/local/nagios/var/spool/checkresults # MAX CHECK RESULT FILE AGE max_check_result_file_age=3600 # CACHED HOST CHECK HORIZON cached_host_check_horizon=10 # CACHED SERVICE CHECK HORIZON cached_service_check_horizon=10 # ENABLE PREDICTIVE HOST DEPENDENCY CHECKS enable_predictive_host_dependency_checks=1 # ENABLE PREDICTIVE SERVICE DEPENDENCY CHECKS enable_predictive_service_dependency_checks=1 # SOFT STATE DEPENDENCIES soft_state_dependencies=0 #time_change_threshold=900 # AUTO-RESCHEDULING OPTION auto_reschedule_checks=0 # AUTO-RESCHEDULING INTERVAL auto_rescheduling_interval=30 # AUTO-RESCHEDULING WINDOW auto_rescheduling_window=180 # SLEEP TIME sleep_time=0.25 # TIMEOUT VALUES service_check_timeout=30 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 # RETAIN STATE INFORMATION retain_state_information=0 # STATE RETENTION FILE state_retention_file=/usr/local/nagios/var/retention.dat # RETENTION DATA UPDATE INTERVAL retention_update_interval=5 # USE RETAINED PROGRAM STATE use_retained_program_state=0 # USE RETAINED SCHEDULING INFO use_retained_scheduling_info=0 # This mask determines what host attributes are not retained retained_host_attribute_mask=0 # This mask determines what service attributes are not retained retained_service_attribute_mask=0 # These two masks determine what process attributes are not retained. # There are two masks, because some process attributes have host and service # options. For example, you can disable active host checks, but leave active # service checks enabled. retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 # These two masks determine what contact attributes are not retained. # There are two masks, because some contact attributes have host and # service options. For example, you can disable host notifications for # a contact, but leave service notifications enabled for them. retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 # INTERVAL LENGTH interval_length=60 # CHECK FOR UPDATES check_for_updates=0 # BARE UPDATE CHECK bare_update_check=0 # AGGRESSIVE HOST CHECKING OPTION use_aggressive_host_checking=0 # SERVICE CHECK EXECUTION OPTION execute_service_checks=1 # PASSIVE SERVICE CHECK ACCEPTANCE OPTION accept_passive_service_checks=1 # HOST CHECK EXECUTION OPTION execute_host_checks=1 # PASSIVE HOST CHECK ACCEPTANCE OPTION accept_passive_host_checks=1 # NOTIFICATIONS OPTION enable_notifications=1 # EVENT HANDLER USE OPTION enable_event_handlers=1 # PROCESS PERFORMANCE DATA OPTION process_performance_data=1 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata # HOST AND SERVICE PERFORMANCE DATA FILES host_perfdata_file=/tmp/host-perfdata service_perfdata_file=/tmp/service-perfdata # HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$ service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$ # HOST AND SERVICE PERFORMANCE DATA FILE MODES host_perfdata_file_mode=a service_perfdata_file_mode=a # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL host_perfdata_file_processing_interval=0 service_perfdata_file_processing_interval=0 # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS host_perfdata_file_processing_command=process-host-perfdata-file service_perfdata_file_processing_command=process-service-perfdata-file # OBSESS OVER SERVICE CHECKS OPTION obsess_over_services=0 # OBSESSIVE COMPULSIVE SERVICE PROCESSOR COMMAND #ocsp_command=somecommand # OBSESS OVER HOST CHECKS OPTION obsess_over_hosts=0 # OBSESSIVE COMPULSIVE HOST PROCESSOR COMMAND #ochp_command=somecommand # TRANSLATE PASSIVE HOST CHECKS OPTION translate_passive_host_checks=0 # PASSIVE HOST CHECKS ARE SOFT OPTION passive_host_checks_are_soft=0 # ORPHANED HOST/SERVICE CHECK OPTIONS check_for_orphaned_services=1 check_for_orphaned_hosts=1 # SERVICE FRESHNESS CHECK OPTION check_service_freshness=1 # SERVICE FRESHNESS CHECK INTERVAL service_freshness_check_interval=60 # HOST FRESHNESS CHECK OPTION check_host_freshness=1 # HOST FRESHNESS CHECK INTERVAL host_freshness_check_interval=60 # ADDITIONAL FRESHNESS THRESHOLD LATENCY additional_freshness_latency=15 # FLAP DETECTION OPTION enable_flap_detection=1 # FLAP DETECTION THRESHOLDS FOR HOSTS AND SERVICES low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # DATE FORMAT OPTION date_format=us # TIMEZONE OFFSET #use_timezone=US/Mountain #use_timezone=Australia/Brisbane # P1.PL FILE LOCATION p1_file=/usr/local/nagios/bin/p1.pl # EMBEDDED PERL INTERPRETER OPTION enable_embedded_perl=0 # EMBEDDED PERL USAGE OPTION use_embedded_perl_implicitly=0 # ILLEGAL OBJECT NAME CHARACTERS illegal_object_name_chars=' # ILLEGAL MACRO OUTPUT CHARACTERS illegal_macro_output_chars=' # REGULAR EXPRESSION MATCHING use_regexp_matching=0 # "TRUE" REGULAR EXPRESSION MATCHING use_true_regexp_matching=0 # ADMINISTRATOR EMAIL/PAGER ADDRESSES admin_email=mirde at oppy.com admin_pager=mirde at oppy.com # DAEMON CORE DUMP OPTION daemon_dumps_core=1 # LARGE INSTALLATION TWEAKS OPTION use_large_installation_tweaks=0 # ENABLE ENVIRONMENT MACROS enable_environment_macros=1 # CHILD PROCESS MEMORY OPTION #free_child_process_memory=1 # CHILD PROCESS FORKING BEHAVIOR #child_processes_fork_twice=1 # DEBUG LEVEL debug_level=-1 # DEBUG VERBOSITY debug_verbosity=1 # DEBUG FILE debug_file=/usr/local/nagios/var/nagios.debug # MAX DEBUG FILE SIZE max_debug_file_size=1000000 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Wed Oct 7 03:18:20 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Tue, 06 Oct 2009 21:18:20 -0400 Subject: bgp monitoring (check_bgp_neighbors) command syntax assistance In-Reply-To: <6b8437bc0910060931v672a0183l7b5a4b7d3a3293e3@mail.gmail.com> References: <6b8437bc0910060931v672a0183l7b5a4b7d3a3293e3@mail.gmail.com> Message-ID: <4ACBEC5C.1010502@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/10/09 12:31 PM, Emily wrote: > Hello, I am attempting to use this check_bgp_neighbors command which was > recommended however my manual execution gives this output: > > [root at dns libexec]# ./check_bgp_neighbors -H Core-RTR1-MiddleT -C public > -n 157.130.57.129 -n 65.205.26.197 > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.157.130.57.129.1.1 > expr: syntax error > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: .1.3.6.1.4.1.9.9.187.1.2.4.1.1.65.205.26.197.1.1 > expr: syntax error > ./check_bgp_neighbors: line 107: [: -ge: unary operator expected > Failed: status:12 prefixes: sent:1466115 received:1475079[root at dns libexec]# > [root at dns libexec]# > perhaps my syntax is flawed as I don't know why I am getting this > "Failed object" error, the usage of the command is below, I would really > appreciate any help with my syntax for the above command: Are you trying it against Cisco router? This appears to be a Cisco proprietary MIB and it would be evry unlikely that any other brand of router support it. If it's a Cisco, make sure it support the CISCO-BGP4-MIB. Otherwise, I'm afraid you'll have to check with your vendor on how to monitor it with SNMP and write your own script or use check_snmp to monitor it. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKy+xc6dZ+Kt5BchYRAkl/AKCvRtMrInHjTklH4Lr7KV9QLhozmgCgorur t7D26ZgJxL1H4ZFXUw+dr2A= =SAd+ -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Wed Oct 7 03:57:51 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 7 Oct 2009 01:57:51 +0000 Subject: Using Nagios to monitor Exchange 2007 Queues, etc.. ?? In-Reply-To: <4ACA772D.3020803@kkeane.com> References: <4AC7E865.6050106@kkeane.com> <4ACA772D.3020803@kkeane.com> Message-ID: <6db4a4200910061857h698997b1s69493a9923f6d9f8@mail.gmail.com> Here is a great doc for monitoring windows services. Hope this helps http://nagioswiki.com/wiki/index.php/Nagios_Checks_for_Exchange_Server_200x On Mon, Oct 5, 2009 at 10:46 PM, Kevin Keane wrote: > I've heard occasional reports of that happening. A couple things to check: > > - Make sure you applied all the latest updates and patches to Windows > (not just the critical or important ones that are installed > automatically, but also the optional ones). The plugin depends on some > recent versions of Windows libraries. Note: you do NOT need IE 8, > Silverlight or the like if you want to keep those off your servers. > - Try and download the Visual C++ redistributables. For the 32-bit > version, go to > > http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en > . > The link to the 64 bit version is at the bottom of that page. > - Re-download the plugin. It could have been corrupted. > - Check that there are no permission issues. > > I hope that helps! > > Regards, > > Kevin > > Mirza Dedic wrote: > > Hi Kevin, > > > > I have downloaded your TNT plugins 1.2.4-x64 for my x64 Win2003 R2, > however when I try to run something like "check_exchange" from the command > prompt to see any output I get... > > > > C:\NSClient\tnt_plugins_1.2.4-x64>check_exchange.exe > > The system cannot execute the specified program. > > > > Any idea why this is happening? > > > > Thanks. > > > > -----Original Message----- > > From: Kevin Keane [mailto:subscription at kkeane.com] > > Sent: October/03/2009 5:12 PM > > Cc: 'nagios-users at lists.sourceforge.net' > > Subject: Re: [Nagios-users] Using Nagios to monitor Exchange 2007 Queues, > etc.. ?? > > > > Check out my TNTMonitoringPlugin project on Sourceforge. There is a > > plugin specifically to monitor Exchange. It handles both Exchange 2003 > > and Exchange 2007. It does monitor queue lengths as well as a few other > > factors, but the focus is not really so much on load. Queue length > > primarily is an indicator of network problems. A long send queue, in > > particular, tells me that the Internet connection is down, or something > > along those lines. > > > > If you look at the source code for the plugin, you can also see the WMI > > query used. > > > > Mirza Dedic wrote: > > > >> I cannot seem to find any solid information with Google.com on how to > monitor my Exchange 2007 server, I am interested in knowing the send/receive > queues, mainly to know the load at any certain time... > >> > >> On the box, I have NSClient++ installed (0.3.7) and I am already > monitoring windows services, disk/memory/cpu; but I would like to have > nagios look under the roof of the exchange server, and get me some #s for > queue lengths. > >> > >> I guess this would be accomplished by WMI? I have not used WMI with > NSClient++ before, does anyone have this setup in their environment for > Exchange (or even IIS/ISA)? > >> > >> Please give some examples. > >> > >> Thank you.. > >> > >> > > -- > > Kevin Keane > > Owner > > The NetTech > > Find the Uncommon: Expert Solutions for a Network You Never Have to > > Think About > > > > Office: 866-642-7116 > > http://www.4nettech.com > > > > This e-mail and attachments, if any, may contain confidential and/or > > proprietary information. Please be advised that the unauthorized use or > > disclosure of the information is strictly prohibited. The information > > herein is intended only for use by the intended recipient(s) named > > above. If you have received this transmission in error, please notify > > the sender immediately and permanently delete the e-mail and any copies, > > printouts or attachments thereof. > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9-12, 2009. Register > now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think > About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or > proprietary information. Please be advised that the unauthorized use or > disclosure of the information is strictly prohibited. The information herein > is intended only for use by the intended recipient(s) named above. If you > have received this transmission in error, please notify the sender > immediately and permanently delete the e-mail and any copies, printouts or > attachments thereof. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Wed Oct 7 04:02:48 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 7 Oct 2009 02:02:48 +0000 Subject: error check_snmp for UPS In-Reply-To: <230991.74234.qm@web25506.mail.ukl.yahoo.com> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> Message-ID: <6db4a4200910061902k588f0f3fved2a187a630b6d6@mail.gmail.com> Who is the manufacturer for you Upses. There are bunch of good Ups check you can find in nagiosexchange website. Most of them are written for APC and Liebert. The snmp for upses are well defined. You can write quick perl or shell script to monitor these. http://www.oidview.com/mibs/0/UPS-MIB.html On Fri, Oct 2, 2009 at 7:50 AM, nadia kheffache wrote: > Hi, > > Any one can help me to resolve my probleme please? > i have the same error when i execute chack_snmp to monitor UPS-onduleur and > sensorIP (humidity and temperature server room). > > ./check_snmp -H UPS-onduleur1 -C public - o > .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 -w 185:210 -c 286:999 -l '\Input > Voltage\' -u '\Volts\' > > \Input Voltage\ probleme - No data receved from host (Pas de donn?es re?ues > de l'h?te > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] > UPS-onduleur1:161 > > Thank you > > > > Can you help me please? i have the > > same error when i execute this commande: > > > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o > > .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w $ARG2$:$ARG1$ -c > > $ARG4$:$ARG3$ -C $ARG5$ -l > > Temperature -u ?C > > > > ./check_snmp -H sensorIP -v 1 -o > > .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 25:29 -c 30:99 -C > > public -l Temperature -u ?C > > > > Temperature probl?me - Pas de donn?es re?ues de l'h?te > > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] > > 1:161 .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 > > > > to monitore the temperature in the local server with > > sensorIP, snmpwalk is ok, > > > > i have the same error with the UPS-onduleur > > > > thank you > > > > > > --- En date de : Jeu 1.10.09, frank.bourdeau at dga.defense.gouv.fr > > > > a ?crit : > > > > > De: frank.bourdeau at dga.defense.gouv.fr > > > > > Objet: RE [spam?] [Nagios-users] error check_snmp for > > UPS > > > ?: "nadia kheffache" > > > Cc: nagios-users at lists.sourceforge.net > > > Date: Jeudi 1 Octobre 2009, 10h37 > > > Hi, > > > > > > Have you test with snmpwalk to see if you UPS > > onduleur > > > respond ? Is the > > > UPS mib installed on the nagios server ? > > > > > > Frank > > > > > > email: frank.bourdeau at dga.defense.gouv.fr > > > fonction: administrateur syst?mes et r?seaux > > > tel: 0241936560 > > > fax: 0241936681 > > > ETAS - BP 60036 - route de Laval - 49245 AVRILLE > > CEDEX > > > [ENVOYE PAR INTERNET] > > > > > > > > > > > > nadia kheffache > > > > > > 01/10/2009 10:16 > > > > > > A > > > nagios-users at lists.sourceforge.net > > > cc > > > > > > Objet > > > [spam?] [Nagios-users] error check_snmp for UPS > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > I wont to monitor an ups (onduleur),i use a basic > > nagios > > > plugin_snmp. > > > > > > but i have these error, i can't get any information > > about > > > this ups. > > > > > > can you help me please? > > > > > > thank you > > > > > > [nagios at nagios01 libexec]$ ./check_snmp -H > > UPS-onduleur1 -C > > > public - o > > > .1.3.6.1.4.1.4555.1.1.1.1.6.2.1.1.17 .w 185:210 -c > > > 286:999 -l '\Input > > > Voltage\' -u '\Volts\' > > > > > > \Input Voltage\ probl?me - Pas de donn?es re?ues > > de > > > l'h?te > > > > > > Commande: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 > > [authpriv] > > > > > > UPS-onduleur1:161 > > > > > > > > > > > > Nadia > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Come build with us! The BlackBerry® Developer > > > Conference in SF, CA > > > is the only developer event you need to attend this > > year. > > > Jumpstart your > > > developing skills, take BlackBerry mobile applications > > to > > > market and stay > > > ahead of the curve. Join us from November 9-12, 2009. > > > Register > > > now! > > > http://p.sf.net/sfu/devconf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) > > and > > > OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being > > sent > > > to /dev/null > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer > > Conference in SF, CA > > is the only developer event you need to attend this year. > > Jumpstart your > > developing skills, take BlackBerry mobile applications to > > market and stay > > ahead of the curve. Join us from November 9-12, 2009. > > Register now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > > to /dev/null > > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Wed Oct 7 04:05:30 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 7 Oct 2009 02:05:30 +0000 Subject: escalation for receiving only recovery events? In-Reply-To: <8CEF048B9EC83748B1517DC64EA130FB3E0BD24FFC@off-win2003-01.ausregistrygroup.local> References: <20091004154950.GA5706@norchemlab.com> <8CEF048B9EC83748B1517DC64EA130FB3E0BD24FFC@off-win2003-01.ausregistrygroup.local> Message-ID: <6db4a4200910061905g50b93da7w89d0d6c714f9671f@mail.gmail.com> The best solution would be service escalation or host escalation feature of nagios. http://books.google.com/books?id=Iujcg9s3BKMC&pg=PA262&lpg=PA262&dq=service+escalation+nagios&source=bl&ots=Ppge7Pp9sa&sig=slpkoN27AccERQP5l0b1tvJy4p4&hl=en&ei=UPfLSryoG8atlAeC-pniBQ&sa=X&oi=book_result&ct=result&resnum=6#v=onepage&q=service%20escalation%20nagios&f=false On Sun, Oct 4, 2009 at 10:35 PM, Stuart Browne < stuart.browne at ausregistry.com.au> wrote: > > -----Original Message----- > > From: Justin Pryzby [mailto:justinp at norchemlab.com] > > Sent: Monday, 5 October 2009 02:50 > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] escalation for receiving only recovery events? > > > > A coworker wants to receive periodic notifies for failing services, > > and I want to receive only the first one. I can implement that using > > an "inverted" escalation (removing me from the notify list at the 2nd > > notification). > > > > However I *do* want to receive recovery events, even if they're after > > the 2nd notification. Is that configuration possible? > > Two different contact groups, yourself, and 'everyone else'.. > > In the base check, put both groups, saying you want the options w,c,r. In > the escalation, put just everyone else, with options w,c and > first_notification of 2+. > > Or something like that ;) > > Stuart > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Oct 7 05:04:28 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Tue, 06 Oct 2009 20:04:28 -0700 Subject: Tweaking Nagios Performance (Checks/Notifications) In-Reply-To: References: Message-ID: <4ACC053C.1070902@hp.com> Mirza Dedic wrote: > > I recently finished moving Nagios from a Virtual machine to bare-bone > hardware, on a PowerEdge retired machine (/dual-core, 4GB ram, raid-5 > 10k RPM HDs/). My goal is to have a 1 minute window between when a > host/service goes down and the time that I receive a message that it > is down. > > > > We are monitoring a total of *347 Services and 82 Hosts*, mainly > using the plug-ins below: > > > > - Check_by_ssh > > - Check_nt (NSClient++ for Win32) > > - Check_http > > - Check_ping > > - Check_esx3 > > - Check_mysql > > > If you're using Nagios 3, just enable active hostchecks with a 1-minute check interval. With your low latencies, you'll be good to go. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Oct 7 05:12:12 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Tue, 06 Oct 2009 20:12:12 -0700 Subject: Tweaking Nagios Performance (Checks/Notifications) In-Reply-To: References: Message-ID: <4ACC070C.3010903@hp.com> Mirza Dedic wrote: > > I recently finished moving Nagios from a Virtual machine to bare-bone > hardware, on a PowerEdge retired machine (/dual-core, 4GB ram, raid-5 > 10k RPM HDs/). My goal is to have a 1 minute window between when a > host/service goes down and the time that I receive a message that it > is down. > > > > We are monitoring a total of *347 Services and 82 Hosts*, mainly > using the plug-ins below: > > > > - Check_by_ssh > > - Check_nt (NSClient++ for Win32) > > - Check_http > > - Check_ping > > - Check_esx3 > > - Check_mysql > > > > Below are my ?performance info? for the current setup: > > > > *Time Frame* > > > > *Services Checked* > > *<= 1 minute* > > > > *65 (18.7%)* > > *<= 5 minutes* > > > > *300 (86.5%)* > > <= 15 minutes > > > > 347 (100.0%) > > <= 1 hour > > > > 347 (100.0%) > > Since program start > > > > 347 (100.0%) > > > > *Metric* > > > > *Min.* > > > > *Max.* > > > > *Average* > > Check Execution Time > > > > 0.01 sec > > > > 21.91 sec > > > > 1.603 sec > > Check Latency > > > > 0.00 sec > > > > 0.00 sec > > > > 0.164 sec > > Percent State Change > > > > 0.00% > > > > 0.00% > > > > 0.00% > > *Services Passively Checked* > > > > *Time Frame* > > > > *Services Checked* > > <= 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% > > *Hosts Actively Checked* > > *Time Frame* > > > > *Hosts Checked* > > <= 1 minute > > > > 0 (0.0%) > > <= 5 minutes > > > > 78 (95.1%) > > <= 15 minutes > > > > 82 (100.0%) > > <= 1 hour > > > > 82 (100.0%) > > Since program start > > > > 82 (100.0%) > > > > *Metric* > > > > *Min.* > > > > *Max.* > > > > *Average* > > Check Execution Time > > > > 0.29 sec > > > > 4.03 sec > > > > 2.483 sec > > Check Latency > > > > 0.15 sec > > > > 0.78 sec > > > > 0.565 sec > > Percent State Change > > > > 0.00% > > > > 0.00% > > > > 0.00% > > > > *Hosts Passively Checked* > > *Time Frame* > > > > *Hosts Checked* > > <= 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% > > > > > Oops, just realized you said "host/service," and not just "host." > # MAXIMUM SERVICE CHECK SPREAD > > > > max_service_check_spread=5 Here you're telling Nagios to spread stuff out over a 5-unit interval. If you're shooting for 1 minute, this should be 1. > # MAXIMUM SERVICE CHECK SPREAD > > > > max_service_check_spread=5 5 at a time probably won't get you there in a minute. I've had good luck setting this to the number of hosts I have. > # MAXIMUM HOST CHECK SPREAD > > > > max_host_check_spread=3 Ditto. > # HOST AND SERVICE CHECK REAPER FREQUENCY > > > > check_result_reaper_frequency=10 > > > > # MAX CHECK RESULT REAPER TIME > > > > max_check_result_reaper_time=30 Set these much lower. I use 2. > # SLEEP TIME > > > > sleep_time=0.25 .1 will cram your checks closer together. Also, you may want to look at the tuning recommendations in the Nagios docs. It looks like you're not doing the basic recommended stuff like using RAM disks, etc., all of which help and are very well documented. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 7 06:20:20 2009 From: marc at ena.com (Marc Powell) Date: Tue, 6 Oct 2009 23:20:20 -0500 Subject: Tweaking Nagios Performance (Checks/Notifications) In-Reply-To: References: Message-ID: On Oct 6, 2009, at 4:57 PM, Mirza Dedic wrote: > I recently finished moving Nagios from a Virtual machine to bare- > bone hardware, on a PowerEdge retired machine (dual-core, 4GB ram, > raid-5 10k RPM HDs). My goal is to have a 1 minute window between > when a host/service goes down and the time that I receive a message > that it is down. If you really want a 1 minute window then that means that you'll either have to check multiple times per minute (max_check_attempts>1, interval_length<60) or check only once and trust that as definitive (max_check_attempts=1, interval_length=60). You'll probably want to re- visit the plugin timeouts, both in nagios.cfg and any that are directly supported by the plugins themselves. If you go with the multiple checks per minute path, you'll need to change the value of interval_length in nagios.cfg and every other *_interval, both in nagios.cfg and in your host/service/notification definitions since they are simply multiples of interval_length. Be prepared for false-positives unless things are perfect all the time. I expect you'll see alerts for non service affecting things such as slower ssh logins on busy machines or high RTA or maybe some packet loss as routers get busy and de-prioritize ICMP traffic. The more frequently you check, the more likely you are to encounter those types of things. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Wed Oct 7 08:40:20 2009 From: m.borsani at it.net (Marco Borsani) Date: Wed, 7 Oct 2009 08:40:20 +0200 Subject: R: R: R: R: nsclient++ and nrpe commands In-Reply-To: <90f6e8270910060951x581e1604iaea5d393e6b5161d@mail.gmail.com> References: <230991.74234.qm@web25506.mail.ukl.yahoo.com> <-1928438330302163860@unknownmsgid> <90f6e8270910030721n1211b738j41873a215ee8531e@mail.gmail.com> <4529032189346995872@unknownmsgid> <90f6e8270910050548l369d5591l1901695ce0a8a03f@mail.gmail.com> <-2424743085573608826@unknownmsgid> <90f6e8270910050937t7e864a45kb87c79cb2eebede7@mail.gmail.com> <5438346808353003323@unknownmsgid> <90f6e8270910060951x581e1604iaea5d393e6b5161d@mail.gmail.com> Message-ID: <4567.0157684528$1254897939@news.gmane.org> Solved. There were two problems: - In the command file, there was an command without absolute path (but it is in the same folder of command file, and that folder was setted like ?script_dir? in the NSC.ini) - The variable ?script_dir? in the NSC.ini is totally useless L Now my problem is understand how to manipulate the output like I do in unix (shell scripting), because I don?t know an equivalent command in DOS like AWK ?!?!? Regards for all suggestions , were very useful for me. Marco Da: Natxo Asenjo [mailto:natxo.asenjo at gmail.com] Inviato: marted? 6 ottobre 2009 18.52 A: Nagios Users Mailinglist Oggetto: Re: [Nagios-users] R: R: R: nsclient++ and nrpe commands hi, could you post your nsc.ini and bat files, please? sanitize as necessary (do not post passwords ;-) ) -- Groeten, J.Asenjo On Tue, Oct 6, 2009 at 8:28 AM, Marco Borsani wrote: Hi I setted the full path (C:\program files\....) in this way, tha batch did not work at all . I try also to put an ?@exit 0? at the end of ths script, notting changed. Any other ideas ? Marco Da: Natxo Asenjo [mailto:natxo.asenjo at gmail.com] Inviato: luned? 5 ottobre 2009 18.38 A: Nagios Users Mailinglist Oggetto: Re: [Nagios-users] R: R: nsclient++ and nrpe commands On Mon, Oct 5, 2009 at 3:23 PM, Marco Borsani wrote: Excuse me , I did not wrote the real error message I am receiving. I run from nagios server: ./check_nrpe -H -c disk0 And receive this: 'check_openmanage.exe' is not recognized as an internal or external command, operable program or batch file. ok, so the bat file disk0 is being executed. Try setting the full path to check_openmanage.exe in the bat file because apparently it is not in the path of your windows session. The nsc.ini file there are all the parameters you suggested me and the command ?disk0? is defined: disk0=scripts\Disk0.bat If you run Disk0.bat in MSdos shell, it works correctly. Is has only one raw (@check_openmanage.exe -v | find "Physical Disk 0:0") In the nsclientlog we read: 2009-10-05 15:22:09: error:modules\NRPEListener\NRPEListener.cpp:263: The command (disk0) returned an invalid return code: 255 you need to return valid error levels that nagios understand: 0 is 0k, 1 is warning, 2 is critical and 3 is unknown. Otherwise nagios does not know what to do with them. I always restart nsclientpp when I modified the NSC.ini file. good, just checking ;-) natxo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ales.Rikovsky at upol.cz Wed Oct 7 09:08:16 2009 From: Ales.Rikovsky at upol.cz (=?windows-1252?Q?=22Ale=9A_R=28=EDkovsk=FD_=28UP=29=22?=) Date: Wed, 07 Oct 2009 09:08:16 +0200 Subject: SAP monitoring In-Reply-To: <4ACB4730.4080501@veltrac.com.br> References: <4ACB3F15.9000602@veltrac.com.br> <7019.89.119.149.126.1254835404.squirrel@picard.linux.it> <4ACB4730.4080501@veltrac.com.br> Message-ID: <4ACC3E60.8090302@upol.cz> Hello, can anyone help me please with SAP monitoring via Nagios. My problem description can be foundin the link bellow. I haven't reached the solution yet and I desperately need to monitor SAP availability (without CCMS running on the SAP machine side). Thanks, Ales http://markmail.org/message/jmjeddrzguzm2ekb -- Ales Rikovsky, CVT UP +420 585631826 Ales.Rikovsky at upol.cz Biskupske nam. 1 771 11 Olomouc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Leif.Hoppe at hartrodt.com Wed Oct 7 16:03:49 2009 From: Leif.Hoppe at hartrodt.com (DE/HAM Hoppe, Leif) Date: Wed, 7 Oct 2009 16:03:49 +0200 Subject: monitor windows service with "$" Message-ID: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> Hi List, I currently configure the monitoring of some windows services. Just one service is having some problems. I looked in the registry for the "real" name of the service. It's like "service$DB" When I now try to check this service, I get the following: nagios at nagios:~> /usr/local/nagios/libexec/check_nt -H 10.2.30.190 -p 12489 -v SERVICESTATE -l "service$DB" service: Not found It looks like it cuts off everything behind the $. Anybody have an idea? Nagios 3.0.6 Plugins 1.4.14 Client: NSClient++ 0.3.6 Best regards from Hamburg Leif Leif Hoppe IT department System Administrator _____________________________________ a. hartrodt (GmbH & Co) KG H?gerdamm 35 20097 Hamburg Tel.: (+49 40) 23 90 - 170 Fax: (+49 40) 23 90 - 394 Mobile: (+49 172) 166 032 6 E-Mail: leif.hoppe at hartrodt.com Internet: www.hartrodt.com _____________________________________ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From K.Getchell at kingston.ac.uk Wed Oct 7 16:14:26 2009 From: K.Getchell at kingston.ac.uk (Getchell, Kristoffer M) Date: Wed, 7 Oct 2009 15:14:26 +0100 Subject: Sharing Check Results between Systems Message-ID: At present we have two main machines rooms, with each machine room running an instance of Nagios 3.0.6 that monitors machines close by. This setup works well, however to get an overview of the entire network we need to check in two locations - not ideal. What we want is a way to share information between the Nagios systems. To achieve this we've developed some management tools to allow us to synchronise the configuration of both Nagios systems. As part of the synchronisation process, services/hosts are set to be actively checked by their closest Nagios system and passively monitored by all others. Again, this works well but, at present we've no useful way of pushing the results of active checks to the other Nagios systems. Furthermore if a problem is acknowledge (or downtime scheduled) on one Nagios system, this is not copied to the other machines. To address these issues I've thought of the following: 1) Setup event handlers which will be enabled on active checks and used to push results from the Nagios system performing the active checks to all other Nagios systems. 2) Setup a long running service that parses the Nagios log files on each host and replicates any events between systems. As far as I can tell a combination of options 1 and 2 would provide what we're looking for, but I'm concerned that I might be missing something. Has anyone else tried to develop a similar setup? If so, what approaches did you take? Cheers, Kris This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Wed Oct 7 16:16:34 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 7 Oct 2009 10:16:34 -0400 Subject: monitor windows service with "$" In-Reply-To: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> References: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> Message-ID: <6db4a4200910070716n199d2cf6jfea23ef09d469a1d@mail.gmail.com> What happens if you do the following? /usr/local/nagios/libexec/check_nt -H 10.2.30.190 -p 12489 -v SERVICESTATE -l "service\$DB" On Wed, Oct 7, 2009 at 10:03 AM, DE/HAM Hoppe, Leif wrote: > Hi List, > > I currently configure the monitoring of some windows services. > Just one service is having some problems. > > I looked in the registry for the "real" name of the service. It's like > "service$DB" > When I now try to check this service, I get the following: > > nagios at nagios:~> /usr/local/nagios/libexec/check_nt -H 10.2.30.190 -p > 12489 -v SERVICESTATE -l "service$DB" > service: Not found > > It looks like it cuts off everything behind the $. > Anybody have an idea? > > Nagios 3.0.6 > Plugins 1.4.14 > Client: NSClient++ 0.3.6 > > Best regards from Hamburg > Leif > > Leif Hoppe > IT department > System Administrator > _____________________________________ > a. hartrodt (GmbH & Co) KG > H?gerdamm 35 > 20097 Hamburg > Tel.: (+49 40) 23 90 - 170 > Fax: (+49 40) 23 90 - 394 > Mobile: (+49 172) 166 032 6 > E-Mail: leif.hoppe at hartrodt.com > Internet: www.hartrodt.com > _____________________________________ > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 7 16:39:55 2009 From: marc at ena.com (Marc Powell) Date: Wed, 7 Oct 2009 09:39:55 -0500 Subject: monitor windows service with "$" In-Reply-To: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> References: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> Message-ID: <37D34087-1672-43B3-BFC2-A67C937F02B7@ena.com> On Oct 7, 2009, at 9:03 AM, DE/HAM Hoppe, Leif wrote: > nagios at nagios:~> /usr/local/nagios/libexec/check_nt -H 10.2.30.190 - > p 12489 -v SERVICESTATE -l "service$DB" > service: Not found > > It looks like it cuts off everything behind the $. > Anybody have an idea? I expect that the shell is interpreting $DB as a shell variable. Try using 'service$DB' or "service\$DB". $ echo "service$DB" service $ echo 'service$DB' service$DB $ echo "service\$DB" service$DB -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From spookza at gmail.com Wed Oct 7 16:47:13 2009 From: spookza at gmail.com (Spook ZA) Date: Wed, 7 Oct 2009 16:47:13 +0200 Subject: monitor windows service with "$" In-Reply-To: <6db4a4200910070716n199d2cf6jfea23ef09d469a1d@mail.gmail.com> References: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> <6db4a4200910070716n199d2cf6jfea23ef09d469a1d@mail.gmail.com> Message-ID: <50b83a660910070747w639735fn68607576b5ecb4@mail.gmail.com> On Wed, Oct 7, 2009 at 10:03 AM, DE/HAM Hoppe, Leif wrote: >> >> Hi List, >> >> I currently configure the monitoring of some windows services. >> Just one service is having some problems. >> >> I looked in the registry for the "real" name of the service. It's like "service$DB" >> When I now try to check this service, I get the following: >> >> nagios at nagios:~> /usr/local/nagios/libexec/check_nt -H 10.2.30.190 -p 12489 -v SERVICESTATE -l "service$DB" >> ?service: Not found >> I did an dirty hack / wrapper to get round this problem. I called it: /usr/lib64/nagios/plugins/msauxdb.sh and used it to check things like MSSQL$BKUPEXEC Nagios uses $ to interpret arguments to commands. So I only pass BKUPEXEC in and let the wrapper add the MSSQL$ Remember to replace lib64 with lib if you are using a 32bit operating system or replace it the entire path with the path where your nagios plugins are installed. #!/bin/bash pushd /usr/lib64/nagios/plugins >/dev/null if [ $# -lt 2 ]; then ? echo Invalid Parameters - use $0 HOSTADDRESS database [... database] ? exit 2 fi PARAMS='' DATABASES=`echo $* |cut -f2- -d\ ` for DATABASE in $DATABASES; do ? PARAMS="$PARAMS,MSSQL\$$DATABASE" done PARAMS=`echo $PARAMS |sed -e s/^\,//` OUTPUT=`./check_nt -H $1 -p 12489 -s l3tm3ch3ck -v SERVICESTATE -l $PARAMS` RETVAL=$? popd >/dev/null echo $OUTPUT exit $RETVAL If anyone has a better idea I would be interested to know, but as for now, this works for me. Regards, Andrew. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GreenmanSE at familysearch.org Wed Oct 7 16:47:00 2009 From: GreenmanSE at familysearch.org (Scott Greenman) Date: Wed, 7 Oct 2009 08:47:00 -0600 Subject: Sharing Check Results between Systems In-Reply-To: References: Message-ID: <3679AE44D8C04547A4F3EB83E779056282A76B91F7@MBX01.ldschurch.org> We copy check results between systems for redundancy purposes. Rather than using an event handler, we use the Obsessive Compulsive functionality. In the nagios.cfg file, I set the following: obsess_over_services=1 ocsp_command=send_to_backup_nagios_server obsess_over_hosts=1 ochp_command=send_to_backup_nagios_server The send_to_backup_nagios_server command then sends the results to the other server. This doesn't handle synchronizing the downtime or acknowledgments. We're not currently doing that, though there was a recent post where I think someone posted a script for parsing the logs and sending these to another server. Scott Greenman Software Developer Family History Department The Church of Jesus Christ of Latter-day Saints ________________________________________ From: Getchell, Kristoffer M [K.Getchell at kingston.ac.uk] Sent: Wednesday, October 07, 2009 8:14 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Sharing Check Results between Systems At present we have two main machines rooms, with each machine room running an instance of Nagios 3.0.6 that monitors machines close by. This setup works well, however to get an overview of the entire network we need to check in two locations - not ideal. What we want is a way to share information between the Nagios systems. To achieve this we've developed some management tools to allow us to synchronise the configuration of both Nagios systems. As part of the synchronisation process, services/hosts are set to be actively checked by their closest Nagios system and passively monitored by all others. Again, this works well but, at present we've no useful way of pushing the results of active checks to the other Nagios systems. Furthermore if a problem is acknowledge (or downtime scheduled) on one Nagios system, this is not copied to the other machines. To address these issues I've thought of the following: 1) Setup event handlers which will be enabled on active checks and used to push results from the Nagios system performing the active checks to all other Nagios systems. 2) Setup a long running service that parses the Nagios log files on each host and replicates any events between systems. As far as I can tell a combination of options 1 and 2 would provide what we're looking for, but I'm concerned that I might be missing something. Has anyone else tried to develop a similar setup? If so, what approaches did you take? Cheers, Kris This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 7 16:47:33 2009 From: marc at ena.com (Marc Powell) Date: Wed, 7 Oct 2009 09:47:33 -0500 Subject: Sharing Check Results between Systems In-Reply-To: References: Message-ID: On Oct 7, 2009, at 9:14 AM, Getchell, Kristoffer M wrote: > 1) Setup event handlers which will be enabled on active checks and > used to push results from the Nagios system performing the active > checks to all other Nagios systems. The Distributed Monitoring documentation will be useful to you here. This is pretty standard fare. > 2) Setup a long running service that parses the Nagios log files on > each host and replicates any events between systems. I've done something similar but for a single specific event (service acknowledgments), and one-way only. It works but you'll have to be careful that you do not create a loop between the two machines in your case. I'm not quite sure how you'd be able to distinguish, from nagios.log, between a command initiated from the web interface and a command initiated from the remote machine. A better alternative would be to just designate one of them as the master that everyone uses for command entry, IMHO. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 7 17:03:32 2009 From: marc at ena.com (Marc Powell) Date: Wed, 7 Oct 2009 10:03:32 -0500 Subject: monitor windows service with "$" In-Reply-To: <50b83a660910070747w639735fn68607576b5ecb4@mail.gmail.com> References: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> <6db4a4200910070716n199d2cf6jfea23ef09d469a1d@mail.gmail.com> <50b83a660910070747w639735fn68607576b5ecb4@mail.gmail.com> Message-ID: <2B99CD98-2FF0-422E-871B-972B7CC7A0E1@ena.com> On Oct 7, 2009, at 9:47 AM, Spook ZA wrote: >>> nagios at nagios:~> /usr/local/nagios/libexec/check_nt -H 10.2.30.190 >>> -p 12489 -v SERVICESTATE -l "service$DB" >>> service: Not found >>> > I did an dirty hack / wrapper to get round this problem. You didn't need to AFAIK. > I called it: /usr/lib64/nagios/plugins/msauxdb.sh and used it to check > things like MSSQL$BKUPEXEC > Nagios uses $ to interpret arguments to commands. Note that he's running this from the shell directly. Nagios isn't doing anything to it at all; no macro parsing etc... To prevent nagios from trying to parse the $ as the start of a macro from within the command{} definition, use $$ ('service$$DB' or 'MSSQL$$BKUPEXEC' in your case). -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinp at norchemlab.com Wed Oct 7 17:11:52 2009 From: justinp at norchemlab.com (Justin Pryzby) Date: Wed, 7 Oct 2009 08:11:52 -0700 Subject: monitor windows service with "$" In-Reply-To: <37D34087-1672-43B3-BFC2-A67C937F02B7@ena.com> References: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> <37D34087-1672-43B3-BFC2-A67C937F02B7@ena.com> Message-ID: <20091007151152.GA26734@norchemlab.com> On Wed, Oct 07, 2009 at 09:39:55AM -0500, Marc Powell wrote: > > It looks like it cuts off everything behind the $. > > Anybody have an idea? > > I expect that the shell is interpreting $DB as a shell variable. Try > using 'service$DB' or "service\$DB". Also NRPE requires $ to be spelled $$ to be interpretted literally. Justin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From K.Getchell at kingston.ac.uk Wed Oct 7 17:02:58 2009 From: K.Getchell at kingston.ac.uk (Getchell, Kristoffer M) Date: Wed, 7 Oct 2009 16:02:58 +0100 Subject: Sharing Check Results between Systems In-Reply-To: References: Message-ID: Marc Thanks for your response. The only reason I was looking at two way sync was because at present both Nagios systems are checked by our team as each shows something different. If both systems were to be synchronised then there's nothing stopping us using just a single machine and replicating between the two. Cheers, Kris -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: 07 October 2009 15:48 To: nagios List Subject: Re: [Nagios-users] Sharing Check Results between Systems On Oct 7, 2009, at 9:14 AM, Getchell, Kristoffer M wrote: > 1) Setup event handlers which will be enabled on active checks and > used to push results from the Nagios system performing the active > checks to all other Nagios systems. The Distributed Monitoring documentation will be useful to you here. This is pretty standard fare. > 2) Setup a long running service that parses the Nagios log files on > each host and replicates any events between systems. I've done something similar but for a single specific event (service acknowledgments), and one-way only. It works but you'll have to be careful that you do not create a loop between the two machines in your case. I'm not quite sure how you'd be able to distinguish, from nagios.log, between a command initiated from the web interface and a command initiated from the remote machine. A better alternative would be to just designate one of them as the master that everyone uses for command entry, IMHO. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null This email has been scanned for all viruses by the MessageLabs Email Security System. This email has been scanned for all viruses by the MessageLabs Email Security System. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bertinelli.massimo at ansa.it Wed Oct 7 17:36:16 2009 From: bertinelli.massimo at ansa.it (Bertinelli Massimo) Date: Wed, 7 Oct 2009 17:36:16 +0200 Subject: R: monitor windows service with "$" In-Reply-To: <20091007151152.GA26734@norchemlab.com> References: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan><37D34087-1672-43B3-BFC2-A67C937F02B7@ena.com> <20091007151152.GA26734@norchemlab.com> Message-ID: Try with "check_nt" service"$$" with check_nrpe work fine for me.. Max -----Messaggio originale----- Da: Justin Pryzby [mailto:justinp at norchemlab.com] Inviato: mercoled? 7 ottobre 2009 17.12 A: nagios-users at lists.sourceforge.net Oggetto: Re: [Nagios-users] monitor windows service with "$" On Wed, Oct 07, 2009 at 09:39:55AM -0500, Marc Powell wrote: > > It looks like it cuts off everything behind the $. > > Anybody have an idea? > > I expect that the shell is interpreting $DB as a shell variable. Try > using 'service$DB' or "service\$DB". Also NRPE requires $ to be spelled $$ to be interpretted literally. Justin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TGFurnish at herffjones.com Wed Oct 7 18:34:55 2009 From: TGFurnish at herffjones.com (Furnish, Trever G) Date: Wed, 7 Oct 2009 12:34:55 -0400 Subject: notify by telephone call? In-Reply-To: <75306ce10910061843t7ff790dfue01250d74c4023c2@mail.gmail.com> References: <75306ce10910061843t7ff790dfue01250d74c4023c2@mail.gmail.com> Message-ID: Thanks, Peter. That one's on my short list, but I'm not that familiar with SIP in the first place, so I'm also pursuing the vgetty (voice modem) approach. > -----Original Message----- > From: Peter Grace [mailto:pete.grace at gmail.com] > Sent: Tuesday, October 06, 2009 9:44 PM > To: Furnish, Trever G > Subject: Re: [Nagios-users] notify by telephone call? > > Pjsip project has a curses client, pjsua. May be what you're looking > for. > > On 10/6/09, Furnish, Trever G wrote: > > Can anyone whose already done this point me in the right direction > for > > sending out notifications by reading the alerts into a phone call? > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TGFurnish at herffjones.com Wed Oct 7 18:38:13 2009 From: TGFurnish at herffjones.com (Furnish, Trever G) Date: Wed, 7 Oct 2009 12:38:13 -0400 Subject: notify by telephone call? In-Reply-To: <6db4a4200910061852k55067c66pf64f10ff797cf95f@mail.gmail.com> References: <6db4a4200910061852k55067c66pf64f10ff797cf95f@mail.gmail.com> Message-ID: Thanks, Shadih. I agree with you that it's not a great idea (although with enough work and loving care, I think pagerduty.com is likely to be a hit), and I don't relish the idea of leaving voicemail messages for folks, but I'm going to at least give it a shot. I will also continue sending email notifications for every alert. I learned long ago that even for text paging, it's always best to send an email copy of every text page -- it helps greatly to avoid folks blaming Nagios when the real problem is their carrier. Any other suggestions from anyone? -- Trever ---------------------------------------------------------------- From: shadih rahman [mailto:shadhin71 at gmail.com] Sent: Tuesday, October 06, 2009 9:52 PM To: Furnish, Trever G Subject: Re: [Nagios-users] notify by telephone call? Twinkle has a command line and it should be easy to handle via script.? However I have to say making a phone call for notification is not a good idea.? People miss call all the time.? Paging is much more reliable then placing a call..? That is just my two cents On Tue, Oct 6, 2009 at 8:42 PM, Furnish, Trever G wrote: Can anyone whose already done this point me in the right direction for sending out notifications by reading the alerts into a phone call? The hard part isn't the text-to-speech (I'm assuming I can just use festival for that), or even a pre-recorded message. What's proving to be the hard part for me is figuring out how to reliably make a phone call. ?We have an existing VoIP phone system, including Cisco routers I could connect to using SIP... if I could find a good command-line SIP calling tool. I also don't want to create a notification method that causes Nagios to back up on notifications. ?The existing notification methods allow Nagios to quickly hand off notifications to other daemons that ensure reliable delivery (QuickPage, which is wonderful for sending SMS via TAP gateways, and sendmail, which of course handles sending out notifications by email). ?But I don't want to get distracted by this -- if I could just find a good command-line "place-a-call-and-play-some-audio-into-it" tool, I could wrap it easily in enough scripting to make it reliable. So far I've found notes on using vgetty (and I'm still reading through those), and I've found notes on doing this with Asterisk (but I don't have Asterisk and I hope it's an unneeded level of complexity). ?There are lots of graphical sip clients available, but I haven't found any others to use from the command-line yet. Suggestions? -- Trever Furnish, tgfurnish at herffjones.com Herff Jones, Inc. Systems Engineer Phone: 317.612.3519 Any sufficiently advanced technology is indistinguishable from Unix. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Cordially, Shadhin Rahman ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Albert.Shih at obspm.fr Wed Oct 7 19:35:58 2009 From: Albert.Shih at obspm.fr (Albert Shih) Date: Wed, 7 Oct 2009 19:35:58 +0200 Subject: The reason of commands.cfg. In-Reply-To: <96c54e8b0910051034k285f3558uf4765699bcb3c667@mail.gmail.com> References: <20091005171814.GF81005@obspm.fr> <96c54e8b0910051034k285f3558uf4765699bcb3c667@mail.gmail.com> Message-ID: <20091007173558.GF33218@obspm.fr> Le 05/10/2009 ? 13:34:30-0400, Noel Platzke a ?crit Thanks for you answer. > Say we have a bunch of servers that need multiple checks that do an HTTP GET on > different URIs and look for a specific string in the response. Isn't it easier > to maintain a single command that takes a few arguments than having to > constantly define a new command that does basically the same thing for each > service check? And if down the road someday HTTP becomes HTTPS you only need to > edit one configuration. You mean they are no other reason like perfomance (register like object) ? or security reason ? Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex T?l?phone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: Mer 7 oct 2009 19:34:58 CEST ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 7 22:12:31 2009 From: marc at ena.com (Marc Powell) Date: Wed, 7 Oct 2009 15:12:31 -0500 Subject: The reason of commands.cfg. In-Reply-To: <20091007173558.GF33218@obspm.fr> References: <20091005171814.GF81005@obspm.fr> <96c54e8b0910051034k285f3558uf4765699bcb3c667@mail.gmail.com> <20091007173558.GF33218@obspm.fr> Message-ID: <570F1527-6A41-4F7B-8D54-CAAD9659B9B2@ena.com> On Oct 7, 2009, at 12:35 PM, Albert Shih wrote: > Le 05/10/2009 ? 13:34:30-0400, Noel Platzke a ?crit > Thanks for you answer. > > >> Say we have a bunch of servers that need multiple checks that do an >> HTTP GET on >> different URIs and look for a specific string in the response. >> Isn't it easier >> to maintain a single command that takes a few arguments than having >> to >> constantly define a new command that does basically the same thing >> for each >> service check? And if down the road someday HTTP becomes HTTPS you >> only need to >> edit one configuration. > > You mean they are no other reason like perfomance (register like > object) ? > or security reason ? While there may be arguments for both, the flexibility available just due to the implementation of command definitions is more than enough reason for their existence. Nagios 1.x and Netsaint had support for specifying raw command lines in the host and service definitions but it was dropped after those versions. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Oct 7 23:04:18 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Wed, 7 Oct 2009 14:04:18 -0700 Subject: Windows SNMP service crashing during Nagios monitoring In-Reply-To: <90f6e8270910061000r26106c57g71cff3f75b8b2de7@mail.gmail.com> References: <884bae280910051739t1ead8832q6fcaad83f1021baf@mail.gmail.com> <4ACAC029.8070200@hp.com> <90f6e8270910061000r26106c57g71cff3f75b8b2de7@mail.gmail.com> Message-ID: <20091007210418.GI8569@bakgwai.americas.hpqcorp.net> On Tue, 06 Oct 2009, Natxo Asenjo wrote: > On Tue, Oct 6, 2009 at 5:57 AM, Morris, Patrick > wrote: > > > The SNMP service on Windows sucks. Hard. > > I have no problems at all monitoring our windows. servers through SNMP. Could you ellaborate a bit further this statement? > > We have a mix of hp and fujitsu hardware and monitoring the hardware with snmp just works under windows as under linux or esx. > > Maybe we are just lucky :) It may just be the boxes I've dealt with, but I've had the same stability issues with it mentioned by a few other people here. My experience has been that it's not hard to lock it up. YMM(AAD)V ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Oct 7 23:09:44 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Wed, 7 Oct 2009 14:09:44 -0700 Subject: notify by telephone call? In-Reply-To: References: <6db4a4200910061852k55067c66pf64f10ff797cf95f@mail.gmail.com> Message-ID: <20091007210944.GJ8569@bakgwai.americas.hpqcorp.net> On Wed, 07 Oct 2009, Furnish, Trever G wrote: > Thanks, Shadih. I agree with you that it's not a great idea (although with enough work and loving care, I think pagerduty.com is likely to be a hit), and I don't relish the idea of leaving voicemail messages for folks, but I'm going to at least give it a shot. I will also continue sending email notifications for every alert. > > I learned long ago that even for text paging, it's always best to send an email copy of every text page -- it helps greatly to avoid folks blaming Nagios when the real problem is their carrier. I know it's a bit old-fashioned, but I've had a lot of luck with a good ol' voice modem and a POTS line. If there's one thing modems can do reliably, it's make a phone call. A combination of vgetty and Festival really does work pretty well, assuming you can find a working voice modem these days. On the downside, picking up the phone and night and hearing that robotic voice saying "Nagios Nagios..." is just no fun at all. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Leif.Hoppe at hartrodt.com Thu Oct 8 10:34:07 2009 From: Leif.Hoppe at hartrodt.com (DE/HAM Hoppe, Leif) Date: Thu, 8 Oct 2009 10:34:07 +0200 Subject: monitor windows service with "$" In-Reply-To: <2B99CD98-2FF0-422E-871B-972B7CC7A0E1@ena.com> References: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> <6db4a4200910070716n199d2cf6jfea23ef09d469a1d@mail.gmail.com> <50b83a660910070747w639735fn68607576b5ecb4@mail.gmail.com> <2B99CD98-2FF0-422E-871B-972B7CC7A0E1@ena.com> Message-ID: <7C2C9D8B57E8144DB9A65851D781E1343AE5808491@DC01MBX.ah.lan> \$DB works for me in the shell. When I try to check "service$$DB" in nagios now, I get: "Status Information: service: Not found" So he ignores everything after and including the $. Idea? -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Mittwoch, 7. Oktober 2009 17:04 To: Nagios Users Subject: Re: [Nagios-users] monitor windows service with "$" On Oct 7, 2009, at 9:47 AM, Spook ZA wrote: >>> nagios at nagios:~> /usr/local/nagios/libexec/check_nt -H 10.2.30.190 >>> -p 12489 -v SERVICESTATE -l "service$DB" >>> service: Not found >>> > I did an dirty hack / wrapper to get round this problem. You didn't need to AFAIK. > I called it: /usr/lib64/nagios/plugins/msauxdb.sh and used it to check > things like MSSQL$BKUPEXEC > Nagios uses $ to interpret arguments to commands. Note that he's running this from the shell directly. Nagios isn't doing anything to it at all; no macro parsing etc... To prevent nagios from trying to parse the $ as the start of a macro from within the command{} definition, use $$ ('service$$DB' or 'MSSQL$$BKUPEXEC' in your case). -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From greg.lindstrom at novasyshealth.com Wed Oct 7 21:28:48 2009 From: greg.lindstrom at novasyshealth.com (Greg Lindstrom) Date: Wed, 7 Oct 2009 14:28:48 -0500 Subject: Adding a link to error messages Message-ID: Hello, I'm running Nagios on a Gentoo system and would like to know if I can add a link to my custom monitors so users could click to our department wiki for a description of the problem as well as how to resolve them. That is, I'd like to have my custom module return a link in the "error" text and have that link be "clickable" from the Nagios screens. Thanks, --greg ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Oct 8 11:45:53 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 8 Oct 2009 09:45:53 +0000 Subject: Adding a link to error messages In-Reply-To: References: Message-ID: <200910080945.53719.assaf.flatto@ssp-intl.com> you may want to check the use of one of these macros : $HOSTACTIONURL$ , $HOSTNOTESURL$ , $HOSTNOTES$ http://nagios.telecity1.uk.ssp/docs/macrolist.html Assaf On Wednesday 07 October 2009 19:28:48 Greg Lindstrom wrote: > Hello, > > I'm running Nagios on a Gentoo system and would like to know if I can > add a link to my custom monitors so users could click to our > department wiki for a description of the problem as well as how to > resolve them. That is, I'd like to have my custom module return a > link in the "error" text and have that link be "clickable" from the > Nagios screens. > > Thanks, > --greg > > > --------------------------------------------------------------------------- >--- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is > the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Leif.Hoppe at hartrodt.com Thu Oct 8 10:55:47 2009 From: Leif.Hoppe at hartrodt.com (DE/HAM Hoppe, Leif) Date: Thu, 8 Oct 2009 10:55:47 +0200 Subject: monitor windows service with "$" In-Reply-To: <7C2C9D8B57E8144DB9A65851D781E1343AE5808491@DC01MBX.ah.lan> References: <7C2C9D8B57E8144DB9A65851D781E1343AE5808464@DC01MBX.ah.lan> <6db4a4200910070716n199d2cf6jfea23ef09d469a1d@mail.gmail.com> <50b83a660910070747w639735fn68607576b5ecb4@mail.gmail.com> <2B99CD98-2FF0-422E-871B-972B7CC7A0E1@ena.com> <7C2C9D8B57E8144DB9A65851D781E1343AE5808491@DC01MBX.ah.lan> Message-ID: <7C2C9D8B57E8144DB9A65851D781E1343AE5808493@DC01MBX.ah.lan> Ok, I got the solution, just the ' was missing. Now it looks like: check_nt!SERVICESTATE! -l 'service$$DB' and works :) Thanks to all. -----Original Message----- From: DE/HAM Hoppe, Leif [mailto:Leif.Hoppe at hartrodt.com] Sent: Donnerstag, 8. Oktober 2009 10:34 To: Nagios Users Subject: Re: [Nagios-users] monitor windows service with "$" \$DB works for me in the shell. When I try to check "service$$DB" in nagios now, I get: "Status Information: service: Not found" So he ignores everything after and including the $. Idea? -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Mittwoch, 7. Oktober 2009 17:04 To: Nagios Users Subject: Re: [Nagios-users] monitor windows service with "$" On Oct 7, 2009, at 9:47 AM, Spook ZA wrote: >>> nagios at nagios:~> /usr/local/nagios/libexec/check_nt -H 10.2.30.190 >>> -p 12489 -v SERVICESTATE -l "service$DB" >>> service: Not found >>> > I did an dirty hack / wrapper to get round this problem. You didn't need to AFAIK. > I called it: /usr/lib64/nagios/plugins/msauxdb.sh and used it to check > things like MSSQL$BKUPEXEC > Nagios uses $ to interpret arguments to commands. Note that he's running this from the shell directly. Nagios isn't doing anything to it at all; no macro parsing etc... To prevent nagios from trying to parse the $ as the start of a macro from within the command{} definition, use $$ ('service$$DB' or 'MSSQL$$BKUPEXEC' in your case). -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike-ward at utc.edu Thu Oct 8 15:45:13 2009 From: mike-ward at utc.edu (Michael Ward) Date: Thu, 8 Oct 2009 09:45:13 -0400 Subject: SNMP Patch for Dell OpenManager 5.4.0 Message-ID: Here's the link to fix the SNMP crashing on Dell Servers running OSMA 5.4.0 http://support.dell.com/support/downloads/download.aspx?c=us&l=en&s=gen&releaseid=R186284&SystemID=PWE_1950&servicetag=&os=WNET&osl=en&deviceid=2954&devlib=0&typecnt=0&vercnt=4&catid=-1&impid=-1&formatcnt=1&libid=36&fileid=255568 mjw ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Thu Oct 8 15:55:01 2009 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Thu, 8 Oct 2009 09:55:01 -0400 Subject: monitor nfs share on windows Message-ID: <7f62d2420910080655y5bbdf723idaeef19dd8e9493@mail.gmail.com> I'm trying to check for the size of an nfs share that is accessible from a windows host. The windows host is running NSClient++ but there are a number of problems here. First, the share isn't persistently mapped so at a minimum, I'd have to write a .bat warpper that first mapped it to a letter then ran the disk check. Second, to test this, I mapped the drive to M: then ran on my nagios server check_nt -H ... -p 12489 -s ... -v USEDDISKSPACE -l M -w 80 -c 90 but I got a segfault So I tried another tactic. Install, turned on snmp on the windows host. Mapped the drive to H and tried check_win_snmp_disk.pl $HOSTADDRESS$ $community 6 80 90 I did get information back. The % usage appears correct but the sizes are way off (Gig vs Terabyte). Can I trust the percentages from the above? Is the above script limited in size to Gigabytes? Is there a better/easier way to pull down this info? I tried an snmpwalk but couldn't find anything useful. Otherwise, I'd just call it directly with an snmpget TIA ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From darose at darose.net Thu Oct 8 17:13:15 2009 From: darose at darose.net (David Rosenstrauch) Date: Thu, 08 Oct 2009 11:13:15 -0400 Subject: Adding a link to error messages In-Reply-To: References: Message-ID: <4ACE018B.9010600@darose.net> On 10/07/2009 03:28 PM, Greg Lindstrom wrote: > Hello, > > I'm running Nagios on a Gentoo system and would like to know if I can > add a link to my custom monitors so users could click to our > department wiki for a description of the problem as well as how to > resolve them. That is, I'd like to have my custom module return a > link in the "error" text and have that link be "clickable" from the > Nagios screens. > > Thanks, > --greg We've done this. Here's how: 1) have your plugin output HTML 2) edit your /etc/nagios/cgi.cfg file, and set escape_html_tags=0 to prevent Nagios from stripping out the HTML that your plugin is generating HTH, DR ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TGFurnish at herffjones.com Thu Oct 8 17:16:42 2009 From: TGFurnish at herffjones.com (Furnish, Trever G) Date: Thu, 8 Oct 2009 11:16:42 -0400 Subject: notify by telephone call? In-Reply-To: <20091007210944.GJ8569@bakgwai.americas.hpqcorp.net> References: <6db4a4200910061852k55067c66pf64f10ff797cf95f@mail.gmail.com> <20091007210944.GJ8569@bakgwai.americas.hpqcorp.net> Message-ID: > -----Original Message----- > From: Morris, Patrick [mailto:patrick.morris at hp.com] > Sent: Wednesday, October 07, 2009 5:10 PM > To: Furnish, Trever G > Cc: shadih rahman; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] notify by telephone call? > > On Wed, 07 Oct 2009, Furnish, Trever G wrote: > > > Thanks, Shadih. I agree with you that it's not a great idea > (although with enough work and loving care, I think pagerduty.com is > likely to be a hit), and I don't relish the idea of leaving voicemail > messages for folks, but I'm going to at least give it a shot. I will > also continue sending email notifications for every alert. > > > > I learned long ago that even for text paging, it's always best to > send an email copy of every text page -- it helps greatly to avoid > folks blaming Nagios when the real problem is their carrier. > > I know it's a bit old-fashioned, but I've had a lot of luck with a good > ol' voice modem and a POTS line. If there's one thing modems can do > reliably, it's make a phone call. > > A combination of vgetty and Festival really does work pretty well, > assuming you can find a working voice modem these days. > > On the downside, picking up the phone and night and hearing that > robotic > voice saying "Nagios Nagios..." is just no fun at all. You wouldn't happen to be able to share any of your scripts in that area, would you, Patrick? I found this post: http://forums.athighway.com/index.php?topic=2161.msg6786 ...and this one: http://www.lckdanny.com/blog/?mode=viewid&post_id=96 ...both of which seem to handle the specific task of sending a single notification via phone call. Once I get that far, then I'm going to have to figure out how to separate Nagios from the reliable-delivery portion of the process -- I don't want Nagios waiting on phone calls to connect. I'm thinking I'd have it just write each notification as a queue file, then have some other script handle watching the queue, performing a few retries per message as needed, warning when there are problems, etc. This is the model taken when using qpage -- Nagios' part of the work is very quick, and the qpage daemon handles the actual delivery, which is slow. -- Trever ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From TGFurnish at herffjones.com Thu Oct 8 17:30:17 2009 From: TGFurnish at herffjones.com (Furnish, Trever G) Date: Thu, 8 Oct 2009 11:30:17 -0400 Subject: The reason of commands.cfg. In-Reply-To: <570F1527-6A41-4F7B-8D54-CAAD9659B9B2@ena.com> References: <20091005171814.GF81005@obspm.fr><96c54e8b0910051034k285f3558uf4765699bcb3c667@mail.gmail.com><20091007173558.GF33218@obspm.fr> <570F1527-6A41-4F7B-8D54-CAAD9659B9B2@ena.com> Message-ID: > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Wednesday, October 07, 2009 4:13 PM > To: nagios List > Subject: Re: [Nagios-users] The reason of commands.cfg. > > > On Oct 7, 2009, at 12:35 PM, Albert Shih wrote: > > > Le 05/10/2009 ? 13:34:30-0400, Noel Platzke a ?crit > > Thanks for you answer. > > > > > >> Say we have a bunch of servers that need multiple checks that do an > >> HTTP GET on > >> different URIs and look for a specific string in the response. > >> Isn't it easier > >> to maintain a single command that takes a few arguments than having > >> to > >> constantly define a new command that does basically the same thing > >> for each > >> service check? And if down the road someday HTTP becomes HTTPS you > >> only need to > >> edit one configuration. > > > > You mean they are no other reason like perfomance (register like > > object) ? > > or security reason ? > > > While there may be arguments for both, the flexibility available just > due to the implementation of command definitions is more than enough > reason for their existence. Nagios 1.x and Netsaint had support for > specifying raw command lines in the host and service definitions but > it was dropped after those versions. > > -- > Marc And besides, there's nothing stopping you from doing what you want. I regularly set up generic commands for each plugin. Then I default to using those generics, and I don't make more specific commands unless I notice a bunch of repetition in my usage. For example, here's a generic check_http: define command{ command_name generic_check_http command_line /usr/lib/nagios/plugins/check_http $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ } Then just pretend generic_check_http is actually check_http, and use it as you would on the command-line. I do kind of wish a generic command for each plugin would simply be included in the default Nagios config files. Even better would be if there were a /usr/lib/Nagios/plugins/plugin_commands.d/ directory, and each plugin could drop its own set of default commands in there, so that the whole directory could just be included in nagios.cfg. Each plugin could define a command with its own name: cat /usr/lib/Nagios/plugins/plugin_commands.d/check_http.cfg define command{ command_name check_http command_line /usr/lib/nagios/plugins/check_http $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ } ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 9 08:22:45 2009 From: m.borsani at it.net (Marco Borsani) Date: Fri, 9 Oct 2009 08:22:45 +0200 Subject: nsclienti++ : Failed to peek buffer: 109: The pipe has been ended. Message-ID: <15578.9448916495$1255069862@news.gmane.org> Hi . Often I read this error in the nsc.ini. In the web (http://nsclient.org/nscp/discussion/message/872) I found a procedure to modify a checkbox in the nsclientpp service (Allow service to interact with desktop) but it did not fix the problem. Any idea ? Regards Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 9 12:29:13 2009 From: richard.gliebe at fhv.at (Richard Gliebe) Date: Fri, 09 Oct 2009 12:29:13 +0200 Subject: send short SMS Notifications Message-ID: <4ACF1079.6030604@fhv.at> Hi all, is there a way to cut an SMS Notification Text from: NNTP OK - 0.144 second response time on port 119 [201 localnews.DOMAIN.TLD InterNetNews NNRP server INN 2.3.4 (20020620 prerelease) ready (no posting).] to NNTP OK - 0.144 second response time on port 119 We ware running nagios-2.3 on a FreeBSD 6.1-RC Box I know this installation is really old ;-) My next step is the Upgrade to FreeBSD 7.2-STABLE with nagios-3.0.6 from ports. thanks Richard -- Richard Gliebe Information Services Fachhochschule Vorarlberg GmbH / University for Applied Science Hochschulstrasse 1 A-6850 Dornbirn T: +43 5572 792 2207 M: richard.gliebe at fhv.at W: www.fhv.at FN 165415 h, LG Feldkirch ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Fri Oct 9 13:44:24 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Fri, 9 Oct 2009 11:44:24 +0000 Subject: send short SMS Notifications In-Reply-To: <4ACF1079.6030604@fhv.at> References: <4ACF1079.6030604@fhv.at> Message-ID: <200910091144.24235.assaf.flatto@ssp-intl.com> Hello If memory serves me right the sms command uses cut command to limit the sms to 140 characters : #define command{ # command_name notify-service-by-SMS # command_line /bin/echo "$HOSTNAME$-$SERVICEDESC$:$NOTIFICATIONTYPE$:$SHORTDATETIME$: $SERVICEOUTPUT$" | /usr/bin/cut -b 1-140 | /usr/bin/sms_clie # } if you want it shorter , yo can either remove the unwanted macros or make the SMS short with the cut command however , how will you know to which host/service is the recovery referring to ? or at what time did the recovery occur ?? Assaf On Friday 09 October 2009 10:29:13 Richard Gliebe wrote: > Hi all, > > is there a way to cut an SMS Notification Text from: > > NNTP OK - 0.144 second response time on port 119 [201 > localnews.DOMAIN.TLD InterNetNews NNRP server INN 2.3.4 (20020620 > prerelease) ready (no posting).] > > to > > NNTP OK - 0.144 second response time on port 119 > > We ware running nagios-2.3 on a FreeBSD 6.1-RC Box > > I know this installation is really old ;-) > > My next step is the Upgrade to FreeBSD 7.2-STABLE with nagios-3.0.6 from > ports. > > thanks > Richard -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 9 14:51:21 2009 From: marc at ena.com (Marc Powell) Date: Fri, 9 Oct 2009 07:51:21 -0500 Subject: send short SMS Notifications In-Reply-To: <4ACF1079.6030604@fhv.at> References: <4ACF1079.6030604@fhv.at> Message-ID: On Oct 9, 2009, at 5:29 AM, Richard Gliebe wrote: > Hi all, > > is there a way to cut an SMS Notification Text from: > > NNTP OK - 0.144 second response time on port 119 [201 > localnews.DOMAIN.TLD InterNetNews NNRP server INN 2.3.4 (20020620 > prerelease) ready (no posting).] > > to > > NNTP OK - 0.144 second response time on port 119 Modify your notification command to insert sed into it to chop off the part you don't like. I don't know exactly what you're using but generally it'll look like -- echo "NNTP OK - 0.144 second response time on port 119 [201 some really long text]" | /bin/ sed 's/\[.*//' | /some/command/to/send/SMS -- marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Fri Oct 9 15:02:53 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Fri, 9 Oct 2009 15:02:53 +0200 Subject: nsclienti++ : Failed to peek buffer: 109: The pipe has been ended. In-Reply-To: <-6146259989628483038@unknownmsgid> References: <-6146259989628483038@unknownmsgid> Message-ID: <90f6e8270910090602n2d68a800q9567fc6374e73c2e@mail.gmail.com> I think you will be much better helped at the nsclient++ forum than here. This is the nagios forum ;-) -- Groeten, J.Asenjo On Fri, Oct 9, 2009 at 8:22 AM, Marco Borsani wrote: > Hi . > > > > Often I read this error in the nsc.ini. > > In the web (http://nsclient.org/nscp/discussion/message/872) I found a > procedure to modify a checkbox in the nsclientpp service (Allow service to > interact with desktop) but it did not fix the problem. > > > > Any idea ? > > Regards > > > > Marco > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Sat Oct 10 03:07:02 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Fri, 09 Oct 2009 21:07:02 -0400 Subject: monitor nfs share on windows In-Reply-To: <7f62d2420910080655y5bbdf723idaeef19dd8e9493@mail.gmail.com> References: <7f62d2420910080655y5bbdf723idaeef19dd8e9493@mail.gmail.com> Message-ID: <4ACFDE36.5050204@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/10/09 09:55 AM, dave stern - e-mail.pluribus.unum wrote: > I'm trying to check for the size of an nfs share that is accessible > from a windows host. > The windows host is running NSClient++ but there are a number of problems here. > > First, the share isn't persistently mapped so at a minimum, I'd have > to write a .bat > warpper that first mapped it to a letter then ran the disk check. > Second, to test this, > I mapped the drive to M: then ran on my nagios server > check_nt -H ... -p 12489 -s ... -v USEDDISKSPACE -l M -w 80 -c 90 > but I got a segfault I can't really help with it, but it seems odd that you're trying to monitor it from Windows rather than from the NFS server itself. I guess that's could be a NAS, but even if it is can't you use snmp on it? Come NAS have shell access too... > So I tried another tactic. Install, turned on snmp on the windows > host. Mapped the > drive to H and tried > check_win_snmp_disk.pl $HOSTADDRESS$ $community 6 80 90 > I did get information back. The % usage appears correct but the sizes are > way off (Gig vs Terabyte). Are you sure the numbers are not disk or filesystem blocks? you would have to multiply them by a certain number to get the right value... There's probably a program out them that monitor Windows disks either as a local script (you can run it under NRPE_NT) or using snmp; you should start looking on NagiosExchange (which I believe is MonitoringExchange now...). > Can I trust the percentages from the above? Is the above script limited in > size to Gigabytes? Is there a better/easier way to pull down this info? > > I tried an snmpwalk but couldn't find anything useful. Otherwise, I'd just > call it directly with an snmpget There it check_snmp too... - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKz9426dZ+Kt5BchYRAhW1AKCEAIPa+ITsS5iKPqG3R3iI8vuv0wCg2BVG FpIgsZZRcZzEbw+6RksQUfQ= =SVzx -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Oct 11 13:30:19 2009 From: kylet at panix.com (Kyle Tucker) Date: Sun, 11 Oct 2009 07:30:19 -0400 Subject: Nagios "clock" way off Message-ID: <20091011113018.GB8703@panix.com> Hi all, Today when I noticed a root nearly full I looked to see why Nagios hadn't flagged it. It was quickly apparent when I saw Nagios wasn't going to run the next service check until October of 2014!. I saw this for all services with the last check having been the same year. The system clock is definitely correct. Once I force a service check, the times in Nagios correct. Here is a sample service check before being forced to run. Any clue where to track this down? I've confirmed check intervals are sane. Thanks. Current Status: OK (for ???) Status Information: HTTP OK HTTP/1.1 200 OK - 0.144 second response time Performance Data: time=0.143614s;;;0.000000 size=36569B;;;0 Current Attempt: 1/3 (HARD state) Last Check Time: 12-08-2014 13:54:37 Check Type: ACTIVE Check Latency / Duration: 0.221 / 0.160 seconds Next Scheduled Check: 12-08-2014 14:24:37 Last State Change: 12-01-2014 19:24:37 -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinp at norchemlab.com Sun Oct 11 16:34:39 2009 From: justinp at norchemlab.com (Justin Pryzby) Date: Sun, 11 Oct 2009 07:34:39 -0700 Subject: Nagios "clock" way off In-Reply-To: <20091011113018.GB8703@panix.com> References: <20091011113018.GB8703@panix.com> Message-ID: <20091011143439.GA2801@norchemlab.com> On Sun, Oct 11, 2009 at 07:30:19AM -0400, Kyle Tucker wrote: > Hi all, > > check until October of 2014!. I saw this for all services > with the last check having been the same year. The system > clock is definitely correct. Once I force a service check, Can you check nagios.log and see if the wrong time exists there, and when it started? I wonder if your battery is dead, and nagios was started (during the last boot) before NTP, or otherwise before NTP did its "one time sync" (ntp -g). Under linux, convert from "epoch" time like: date -d @1255244400 Justin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Oct 11 16:49:15 2009 From: kylet at panix.com (Kyle Tucker) Date: Sun, 11 Oct 2009 10:49:15 -0400 Subject: Nagios "clock" way off In-Reply-To: <20091011143439.GA2801@norchemlab.com> References: <20091011113018.GB8703@panix.com> <20091011143439.GA2801@norchemlab.com> Message-ID: <20091011144914.GB21820@panix.com> On Sun, Oct 11, 2009 at 07:34:39AM -0700, Justin Pryzby wrote: > On Sun, Oct 11, 2009 at 07:30:19AM -0400, Kyle Tucker wrote: > > > > check until October of 2014!. I saw this for all services > > with the last check having been the same year. The system > > clock is definitely correct. Once I force a service check, > Can you check nagios.log and see if the wrong time exists there, and > when it started? I wonder if your battery is dead, and nagios was > started (during the last boot) before NTP, or otherwise before NTP did > its "one time sync" (ntp -g). > > Under linux, convert from "epoch" time like: date -d @1255244400 Thanks Justin, All times in nagios.log convert to the current dates and the event log is current as well. [10-11-2009 06:50:33] EXTERNAL COMMAND: SCHEDULE_HOST_SVC_CHECKS;import;1255269033 External Command [10-11-2009 06:50:25] EXTERNAL COMMAND: SCHEDULE_HOST_SVC_CHECKS;images;1255269025 External Command [10-11-2009 06:49:35] EXTERNAL COMMAND: SCHEDULE_HOST_SVC_CHECKS;crm;1255268975 External Command [10-11-2009 06:49:24] EXTERNAL COMMAND: SCHEDULE_HOST_SVC_CHECKS;web2;1255268964 Informational Message [10-11-2009 06:17:55] Auto-save of retention data completed successfully. $ date -d @1255268964 Sun Oct 11 06:49:24 PDT 2009 -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinp at norchemlab.com Sun Oct 11 17:24:21 2009 From: justinp at norchemlab.com (Justin Pryzby) Date: Sun, 11 Oct 2009 08:24:21 -0700 Subject: Nagios "clock" way off In-Reply-To: <20091011144914.GB21820@panix.com> References: <20091011113018.GB8703@panix.com> <20091011143439.GA2801@norchemlab.com> <20091011144914.GB21820@panix.com> Message-ID: <20091011152421.GA22804@norchemlab.com> On Sun, Oct 11, 2009 at 10:49:15AM -0400, Kyle Tucker wrote: > On Sun, Oct 11, 2009 at 07:34:39AM -0700, Justin Pryzby wrote: > > On Sun, Oct 11, 2009 at 07:30:19AM -0400, Kyle Tucker wrote: > > > > > > check until October of 2014!. I saw this for all services > > > with the last check having been the same year. The system > > > clock is definitely correct. Once I force a service check, > > Can you check nagios.log and see if the wrong time exists there, and > > when it started? I wonder if your battery is dead, and nagios was > > started (during the last boot) before NTP, or otherwise before NTP did > > its "one time sync" (ntp -g). > > > > Under linux, convert from "epoch" time like: date -d @1255244400 > > Thanks Justin, > > All times in nagios.log convert to the current dates and the event log is current as well. Just to be sure, is that true for the earliest lines at midnight the day you discovered the problem? [1255244400] LOG ROTATION: DAILY justinp at charcoal:~$ date -d @1255244400 Sun Oct 11 00:00:00 MST 2009 Justin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Oct 11 17:35:10 2009 From: kylet at panix.com (Kyle Tucker) Date: Sun, 11 Oct 2009 11:35:10 -0400 Subject: Nagios "clock" way off In-Reply-To: <20091011152421.GA22804@norchemlab.com> References: <20091011113018.GB8703@panix.com> <20091011143439.GA2801@norchemlab.com> <20091011144914.GB21820@panix.com> <20091011152421.GA22804@norchemlab.com> Message-ID: <20091011153509.GC22479@panix.com> On Sun, Oct 11, 2009 at 08:24:21AM -0700, Justin Pryzby wrote: > Just to be sure, is that true for the earliest lines at midnight the > day you discovered the problem? I discovered it today and just looked back through a week of archives and dates are right on. I don't have log rotation on. Log File Navigation Sun Oct 4 00:00:00 PDT 2009 to Sun Oct 11 00:00:00 PDT 2009 Current Log Current Log File: /usr/local/nagios/var/archives/nagios-10-11-2009-00.log Older Entries First: October 10, 2009 23:00 Informational Message[10-10-2009 23:21:38] Auto-save of retention data completed successfully. October 10, 2009 22:00 Informational Message[10-10-2009 22:21:38] Auto-save of retention data completed successfully. ..... -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Oct 11 17:39:43 2009 From: kylet at panix.com (Kyle Tucker) Date: Sun, 11 Oct 2009 11:39:43 -0400 Subject: Nagios "clock" way off In-Reply-To: <20091011153509.GC22479@panix.com> References: <20091011113018.GB8703@panix.com> <20091011143439.GA2801@norchemlab.com> <20091011144914.GB21820@panix.com> <20091011152421.GA22804@norchemlab.com> <20091011153509.GC22479@panix.com> Message-ID: <20091011153942.GA18740@panix.com> > > I don't have log rotation on. Apparently it's on by default, but that date's good as well. [10-04-2009 00:00:00] LOG VERSION: 2.0 Log Rotation [10-04-2009 00:00:00] LOG ROTATION: WEEKLY -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Sun Oct 11 17:43:25 2009 From: kylet at panix.com (Kyle Tucker) Date: Sun, 11 Oct 2009 11:43:25 -0400 Subject: Nagios "clock" way off In-Reply-To: <20091011153509.GC22479@panix.com> References: <20091011113018.GB8703@panix.com> <20091011143439.GA2801@norchemlab.com> <20091011144914.GB21820@panix.com> <20091011152421.GA22804@norchemlab.com> <20091011153509.GC22479@panix.com> Message-ID: <20091011154325.GA21175@panix.com> If it helps, all Duration times show as "???", even for checks I just forced and have the times back in sync. -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Mon Oct 12 21:09:50 2009 From: tdondich at gmail.com (Taylor Dondich) Date: Mon, 12 Oct 2009 12:09:50 -0700 Subject: Lilac 1.0.3 is Released! (A Nagios Configuration Tool) Message-ID: <3d2eb72a0910121209s4de7ef4fq2bad67114ba2810@mail.gmail.com> Lilac, the most popular Nagios Configuration tool has just released version 1.0.3. This is a bugfix release which fixes over 30 bugs with improvements made by it's users. As always, Lilac Configuration has the following features: * Advanced Nagios 3.x Timeperiod Support * Advanced Host and Service Templates (Even cooler than what Nagios supports by default!) * Flexible importer to import existing Nagios 2.x and 3.x configurations * Auto-discovery system powered by NMAP to quickly bring in new hosts. You can download the latest version of Lilac at http://www.lilacplatform.com/downloads Interesting note: Lilac 1.0.2 which was released on 4/17/2009 was downloaded 5720 times! That's an average of 32 times a day. Thanks to the vibrant Lilac community! -- Taylor Dondich Check out Lilac, a configuration tool for Nagios 3 at http://www.lilacplatform.com Check out my Shortcut with O'Reilly Press: Network Monitoring with Nagios: http://oreilly.com/catalog/9780596528195/index.html ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcall at verio.net Mon Oct 12 22:31:35 2009 From: jcall at verio.net (Jonathan Call) Date: Mon, 12 Oct 2009 16:31:35 -0400 Subject: Lilac 1.0.3 is Released! (A Nagios ConfigurationTool) In-Reply-To: <3d2eb72a0910121209s4de7ef4fq2bad67114ba2810@mail.gmail.com> References: <3d2eb72a0910121209s4de7ef4fq2bad67114ba2810@mail.gmail.com> Message-ID: <04F3233F47E2714CB7431AE913E57E770387A710@IAD-WPRD-XCHB02.corp.verio.net> Any timetable for a STABLE release (i.e. not beta)? Any timetable for supporting distributed deployments? Jonathan > -----Original Message----- > From: Taylor Dondich [mailto:tdondich at gmail.com] > Sent: Monday, October 12, 2009 1:10 PM > To: nagios-user Mailinglist > Subject: [Nagios-users] Lilac 1.0.3 is Released! (A Nagios > ConfigurationTool) > > Lilac, the most popular Nagios Configuration tool has just released > version 1.0.3. This is a bugfix release which fixes over 30 bugs with > improvements made by it's users. As always, Lilac Configuration has > the following features: > > * Advanced Nagios 3.x Timeperiod Support > * Advanced Host and Service Templates (Even cooler than what Nagios > supports by default!) > * Flexible importer to import existing Nagios 2.x and 3.x > configurations > * Auto-discovery system powered by NMAP to quickly bring in new hosts. > > You can download the latest version of Lilac at > http://www.lilacplatform.com/downloads > > Interesting note: Lilac 1.0.2 which was released on 4/17/2009 was > downloaded 5720 times! That's an average of 32 times a day. Thanks > to the vibrant Lilac community! > > -- > Taylor Dondich > Check out Lilac, a configuration tool for Nagios 3 at > http://www.lilacplatform.com > > Check out my Shortcut with O'Reilly Press: > Network Monitoring with Nagios: > http://oreilly.com/catalog/9780596528195/index.html > > ----------------------------------------------------------------------- > ------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Mon Oct 12 23:49:21 2009 From: tdondich at gmail.com (Taylor Dondich) Date: Mon, 12 Oct 2009 14:49:21 -0700 Subject: Lilac 1.0.3 is Released! (A Nagios ConfigurationTool) In-Reply-To: <04F3233F47E2714CB7431AE913E57E770387A710@IAD-WPRD-XCHB02.corp.verio.net> References: <3d2eb72a0910121209s4de7ef4fq2bad67114ba2810@mail.gmail.com> <04F3233F47E2714CB7431AE913E57E770387A710@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: <3d2eb72a0910121449r7308b553va15bd5dba43fbbe6@mail.gmail.com> Jonathan, 1.0.3 is stable. You can use it in production. Distributed deployments is in the works with something.....secret. Taylor On Mon, Oct 12, 2009 at 1:31 PM, Jonathan Call wrote: > Any timetable for a STABLE release (i.e. not beta)? > > Any timetable for supporting distributed deployments? > > Jonathan > >> -----Original Message----- >> From: Taylor Dondich [mailto:tdondich at gmail.com] >> Sent: Monday, October 12, 2009 1:10 PM >> To: nagios-user Mailinglist >> Subject: [Nagios-users] Lilac 1.0.3 is Released! (A Nagios >> ConfigurationTool) >> >> Lilac, the most popular Nagios Configuration tool has just released >> version 1.0.3. ?This is a bugfix release which fixes over 30 bugs with >> improvements made by it's users. ?As always, Lilac Configuration has >> the following features: >> >> * Advanced Nagios 3.x Timeperiod Support >> * Advanced Host and Service Templates (Even cooler than what Nagios >> supports by default!) >> * Flexible importer to import existing Nagios 2.x and 3.x >> configurations >> * Auto-discovery system powered by NMAP to quickly bring in new hosts. >> >> You can download the latest version of Lilac at >> http://www.lilacplatform.com/downloads >> >> Interesting note: ?Lilac 1.0.2 which was released on 4/17/2009 was >> downloaded 5720 times! ?That's an average of 32 times a day. ?Thanks >> to the vibrant Lilac community! >> >> -- >> Taylor Dondich >> Check out Lilac, a configuration tool for Nagios 3 at >> http://www.lilacplatform.com >> >> Check out my Shortcut with O'Reilly Press: >> Network Monitoring with Nagios: >> http://oreilly.com/catalog/9780596528195/index.html >> >> ----------------------------------------------------------------------- >> ------- >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart >> your >> developing skills, take BlackBerry mobile applications to market and >> stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. ?Thank you. > -- Taylor Dondich Check out Lilac, a configuration tool for Nagios 3 at http://www.lilacplatform.com Check out my Shortcut with O'Reilly Press: Network Monitoring with Nagios: http://oreilly.com/catalog/9780596528195/index.html ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Tue Oct 13 00:01:54 2009 From: martyn at chetnet.co.uk (Martyn) Date: Mon, 12 Oct 2009 23:01:54 +0100 Subject: Lilac 1.0.3 is Released! (A NagiosConfigurationTool) In-Reply-To: <3d2eb72a0910121449r7308b553va15bd5dba43fbbe6@mail.gmail.com> References: <3d2eb72a0910121449r7308b553va15bd5dba43fbbe6@mail.gmail.com> Message-ID: As a new user I struggled with the CLI aspect of Nagios so turned to Groundwork's for my solution; this worked well for me on the navigation side of things but saying that without this group I would be nowhere. What can Lilac offer me over GW? Thanks -----Original Message----- From: Taylor Dondich [mailto:tdondich at gmail.com] Sent: 12 October 2009 22:49 To: Jonathan Call Cc: nagios-user Mailinglist Subject: Re: [Nagios-users] Lilac 1.0.3 is Released! (A NagiosConfigurationTool) Jonathan, 1.0.3 is stable. You can use it in production. Distributed deployments is in the works with something.....secret. Taylor On Mon, Oct 12, 2009 at 1:31 PM, Jonathan Call wrote: > Any timetable for a STABLE release (i.e. not beta)? > > Any timetable for supporting distributed deployments? > > Jonathan > >> -----Original Message----- >> From: Taylor Dondich [mailto:tdondich at gmail.com] >> Sent: Monday, October 12, 2009 1:10 PM >> To: nagios-user Mailinglist >> Subject: [Nagios-users] Lilac 1.0.3 is Released! (A Nagios >> ConfigurationTool) >> >> Lilac, the most popular Nagios Configuration tool has just released >> version 1.0.3. ?This is a bugfix release which fixes over 30 bugs >> with improvements made by it's users. ?As always, Lilac Configuration >> has the following features: >> >> * Advanced Nagios 3.x Timeperiod Support >> * Advanced Host and Service Templates (Even cooler than what Nagios >> supports by default!) >> * Flexible importer to import existing Nagios 2.x and 3.x >> configurations >> * Auto-discovery system powered by NMAP to quickly bring in new hosts. >> >> You can download the latest version of Lilac at >> http://www.lilacplatform.com/downloads >> >> Interesting note: ?Lilac 1.0.2 which was released on 4/17/2009 was >> downloaded 5720 times! ?That's an average of 32 times a day. ?Thanks >> to the vibrant Lilac community! >> >> -- >> Taylor Dondich >> Check out Lilac, a configuration tool for Nagios 3 at >> http://www.lilacplatform.com >> >> Check out my Shortcut with O'Reilly Press: >> Network Monitoring with Nagios: >> http://oreilly.com/catalog/9780596528195/index.html >> >> --------------------------------------------------------------------- >> -- >> ------- >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart >> your developing skills, take BlackBerry mobile applications to market >> and stay ahead of the curve. Join us from November 9 - 12, 2009. >> Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to >> /dev/null > > > This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. ?Thank you. > -- Taylor Dondich Check out Lilac, a configuration tool for Nagios 3 at http://www.lilacplatform.com Check out my Shortcut with O'Reilly Press: Network Monitoring with Nagios: http://oreilly.com/catalog/9780596528195/index.html ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Tue Oct 13 01:50:06 2009 From: tdondich at gmail.com (Taylor Dondich) Date: Mon, 12 Oct 2009 16:50:06 -0700 Subject: Lilac 1.0.3 is Released! (A NagiosConfigurationTool) In-Reply-To: References: <3d2eb72a0910121449r7308b553va15bd5dba43fbbe6@mail.gmail.com> Message-ID: <3d2eb72a0910121650o6887d9d0u80fcde4cb61defee@mail.gmail.com> Well, as it stands, Lilac is purely a configuration tool for Nagios. Groundwork Monitor also provides a status front-end which replaces the Nagios UI (I know this, because I was the engineering team lead at Groundwork a couple years back). The configuration tool in Groundwork Monitor is called Monarch. Lilac is said to be much easier and powerful than Monarch, with less bugs. Taylor Dondich On Mon, Oct 12, 2009 at 3:01 PM, Martyn wrote: > As a new user I struggled with the CLI aspect of Nagios so turned to > Groundwork's for my solution; this worked well for me on the navigation side > of things but saying that without this group I would be nowhere. > > What can Lilac offer me over GW? > > Thanks > > -----Original Message----- > From: Taylor Dondich [mailto:tdondich at gmail.com] > Sent: 12 October 2009 22:49 > To: Jonathan Call > Cc: nagios-user Mailinglist > Subject: Re: [Nagios-users] Lilac 1.0.3 is Released! (A > NagiosConfigurationTool) > > Jonathan, 1.0.3 is stable. ?You can use it in production. > > Distributed deployments is in the works with something.....secret. > > Taylor > > On Mon, Oct 12, 2009 at 1:31 PM, Jonathan Call wrote: >> Any timetable for a STABLE release (i.e. not beta)? >> >> Any timetable for supporting distributed deployments? >> >> Jonathan >> >>> -----Original Message----- >>> From: Taylor Dondich [mailto:tdondich at gmail.com] >>> Sent: Monday, October 12, 2009 1:10 PM >>> To: nagios-user Mailinglist >>> Subject: [Nagios-users] Lilac 1.0.3 is Released! (A Nagios >>> ConfigurationTool) >>> >>> Lilac, the most popular Nagios Configuration tool has just released >>> version 1.0.3. ?This is a bugfix release which fixes over 30 bugs >>> with improvements made by it's users. ?As always, Lilac Configuration >>> has the following features: >>> >>> * Advanced Nagios 3.x Timeperiod Support >>> * Advanced Host and Service Templates (Even cooler than what Nagios >>> supports by default!) >>> * Flexible importer to import existing Nagios 2.x and 3.x >>> configurations >>> * Auto-discovery system powered by NMAP to quickly bring in new hosts. >>> >>> You can download the latest version of Lilac at >>> http://www.lilacplatform.com/downloads >>> >>> Interesting note: ?Lilac 1.0.2 which was released on 4/17/2009 was >>> downloaded 5720 times! ?That's an average of 32 times a day. ?Thanks >>> to the vibrant Lilac community! >>> >>> -- >>> Taylor Dondich >>> Check out Lilac, a configuration tool for Nagios 3 at >>> http://www.lilacplatform.com >>> >>> Check out my Shortcut with O'Reilly Press: >>> Network Monitoring with Nagios: >>> http://oreilly.com/catalog/9780596528195/index.html >>> >>> --------------------------------------------------------------------- >>> -- >>> ------- >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart >>> your developing skills, take BlackBerry mobile applications to market >>> and stay ahead of the curve. Join us from November 9 - 12, 2009. >>> Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. >>> ::: Messages without supporting info will risk being sent to >>> /dev/null >> >> >> This email message is intended for the use of the person to whom it has > been sent, and may contain information that is confidential or legally > protected. If you are not the intended recipient or have received this > message in error, you are not authorized to copy, distribute, or otherwise > use this message or its attachments. Please notify the sender immediately by > return e-mail and permanently delete this message and any attachments. > Verio, Inc. makes no warranty that this email is error or virus free. ?Thank > you. >> > > > > -- > Taylor Dondich > Check out Lilac, a configuration tool for Nagios 3 at > http://www.lilacplatform.com > > Check out my Shortcut with O'Reilly Press: > Network Monitoring with Nagios: > http://oreilly.com/catalog/9780596528195/index.html > > ---------------------------------------------------------------------------- > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the > only developer event you need to attend this year. Jumpstart your developing > skills, take BlackBerry mobile applications to market and stay ahead of the > curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- Taylor Dondich Check out Lilac, a configuration tool for Nagios 3 at http://www.lilacplatform.com Check out my Shortcut with O'Reilly Press: Network Monitoring with Nagios: http://oreilly.com/catalog/9780596528195/index.html ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Terry.Rankine at csiro.au Tue Oct 13 03:22:54 2009 From: Terry.Rankine at csiro.au (Terry.Rankine at csiro.au) Date: Tue, 13 Oct 2009 09:22:54 +0800 Subject: check_disk plugin Message-ID: <4E88C091A57493498EEC9F2A21D5BF43027EA06BD1@EXWA-MBX01.nexus.csiro.au> Hi All When I run the check_disk plugin it only detects the first disks numbers. [root at wsrv1 nagios]# /usr/lib/nagios/plugins/check_disk -w 80 DISK WARNING - free space: / 14512 MB (50% inode=97%); /boot 58 MB (62% inode=99%); /mnt/disk 16522 MB (53% inode=99%); /mnt/dbdata 2445 MB (7% inode=99%); /dev/shm 633 MB (62% inode=99%);| /=13958MB;29617;;0;29697 /boot=35MB;18;;0;98 /mnt/disk=14090MB;32171;;0;32251 /mnt/dbdata=28166MB;32171;;0;32251 /dev/shm=379MB;933;;0;1013 [root at wsrv1 nagios]# /usr/lib/nagios/plugins/check_disk -w 20 DISK OK - free space: / 14512 MB (50% inode=97%); /boot 58 MB (62% inode=99%); /mnt/disk 16522 MB (53% inode=99%); /mnt/dbdata 2445 MB (7% inode=99%); /dev/shm 633 MB (62% inode=99%);| /=13958MB;29677;;0;29697 /boot=35MB;78;;0;98 /mnt/disk=14090MB;32231;;0;32251 /mnt/dbdata=28166MB;32231;;0;32251 /dev/shm=379MB;993;;0;1013 The second command should still warn me as dbdata is almost full. [root at wsrv1 nagios]# df --si Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 32G 15G 16G 50% / /dev/sda1 104M 38M 62M 38% /boot /dev/sdb5 34G 15G 18G 47% /mnt/disk /dev/sdc5 34G 30G 2.6G 93% /mnt/dbdata tmpfs 1.1G 399M 665M 38% /dev/shm How do i fix it? [root at wsrv1 nagios]# /usr/lib/nagios/plugins/check_disk --help check_disk v2025 (nagios-plugins 1.4.13) Terry Rankine ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Tue Oct 13 05:17:20 2009 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Tue, 13 Oct 2009 14:17:20 +1100 Subject: check_disk plugin In-Reply-To: <4E88C091A57493498EEC9F2A21D5BF43027EA06BD1@EXWA-MBX01.nexus.csiro.au> References: <4E88C091A57493498EEC9F2A21D5BF43027EA06BD1@EXWA-MBX01.nexus.csiro.au> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB3E14005EC4@off-win2003-01.ausregistrygroup.local> > Hi All > > When I run the check_disk plugin it only detects the first disks > numbers. > > [root at wsrv1 nagios]# /usr/lib/nagios/plugins/check_disk -w 80 > DISK WARNING - free space: / 14512 MB (50% inode=97%); /boot 58 MB (62% > inode=99%); /mnt/disk 16522 MB (53% inode=99%); /mnt/dbdata 2445 MB (7% > inode=99%); /dev/shm 633 MB (62% inode=99%);| /=13958MB;29617;;0;29697 > /boot=35MB;18;;0;98 /mnt/disk=14090MB;32171;;0;32251 > /mnt/dbdata=28166MB;32171;;0;32251 /dev/shm=379MB;933;;0;1013 > > [root at wsrv1 nagios]# /usr/lib/nagios/plugins/check_disk -w 20 > DISK OK - free space: / 14512 MB (50% inode=97%); /boot 58 MB (62% > inode=99%); /mnt/disk 16522 MB (53% inode=99%); /mnt/dbdata 2445 MB (7% > inode=99%); /dev/shm 633 MB (62% inode=99%);| /=13958MB;29677;;0;29697 > /boot=35MB;78;;0;98 /mnt/disk=14090MB;32231;;0;32251 > /mnt/dbdata=28166MB;32231;;0;32251 /dev/shm=379MB;993;;0;1013 > > The second command should still warn me as dbdata is almost full. > [root at wsrv1 nagios]# df --si > Filesystem Size Used Avail Use% Mounted on > /dev/mapper/VolGroup00-LogVol00 > 32G 15G 16G 50% / > /dev/sda1 104M 38M 62M 38% /boot > /dev/sdb5 34G 15G 18G 47% /mnt/disk > /dev/sdc5 34G 30G 2.6G 93% /mnt/dbdata > tmpfs 1.1G 399M 665M 38% /dev/shm The '-w' and '-c' values are how many MB are free, not a percentage, unless you give a % symbol: # check_disk -w 20% ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Najeeb.Aslam at youthnet.org Tue Oct 13 12:32:49 2009 From: Najeeb.Aslam at youthnet.org (Najeeb Aslam) Date: Tue, 13 Oct 2009 11:32:49 +0100 Subject: installation problem of nagios with make all command Message-ID: /usr/local/src/nagios-3.2.0> make all cd ./base && make gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o ../common/snprintf.o -L/usr/local/lib -lm -lpthread -lltdl -lrt Undefined first referenced symbol in file recv netutils.o send netutils.o socket netutils.o getsockopt netutils.o connect netutils.o getaddrinfo netutils.o freeaddrinfo netutils.o ld: fatal: Symbol referencing errors. No output written to nagios collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `nagios' Current working directory /usr/local/src/nagios-3.2.0/base *** Error code 1 make: Fatal error: Command failed for target `all' /usr/local/src/nagios-3.2.0> Best regards, -Najeeb ----------------------------------------------- Najeeb Aslam Unix Systems Administrator Youthnet UK - 50 Featherstone St, London, EC1Y 8RT Direct: 0207 250 5750 | Switchboard: 0207 250 5700 | Email: najeeb.aslam at youthnet.org Websites: www.youthnet.org | www.do-it.org.uk | www.thesite.org | www.lifetracks.com P Before printing, please think about the environment ________________________________ YouthNet UK is a limited company registered in England and Wales. Company registration number: 3031098. Charity registration number 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Najeeb.Aslam at youthnet.org Tue Oct 13 12:55:21 2009 From: Najeeb.Aslam at youthnet.org (Najeeb Aslam) Date: Tue, 13 Oct 2009 11:55:21 +0100 Subject: help In-Reply-To: References: Message-ID: Btw, I am using Nagios v3 on solaris 10 x86 platform... From: Najeeb Aslam [mailto:Najeeb.Aslam at youthnet.org] Sent: 13 October 2009 11:33 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] installation problem of nagios with make all command /usr/local/src/nagios-3.2.0> make all cd ./base && make gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o ../common/snprintf.o -L/usr/local/lib -lm -lpthread -lltdl -lrt Undefined first referenced symbol in file recv netutils.o send netutils.o socket netutils.o getsockopt netutils.o connect netutils.o getaddrinfo netutils.o freeaddrinfo netutils.o ld: fatal: Symbol referencing errors. No output written to nagios collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `nagios' Current working directory /usr/local/src/nagios-3.2.0/base *** Error code 1 make: Fatal error: Command failed for target `all' /usr/local/src/nagios-3.2.0> Best regards, -Najeeb ----------------------------------------------- Najeeb Aslam Unix Systems Administrator Youthnet UK - 50 Featherstone St, London, EC1Y 8RT Direct: 0207 250 5750 | Switchboard: 0207 250 5700 | Email: najeeb.aslam at youthnet.org Websites: www.youthnet.org | www.do-it.org.uk | www.thesite.org | www.lifetracks.com P Before printing, please think about the environment ________________________________ YouthNet UK is a limited company registered in England and Wales. Company registration number: 3031098. Charity registration number 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. ________________________________ YouthNet UK is a limited company registered in England and Wales. Company registration number: 3031098. Charity registration number 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Tue Oct 13 13:16:40 2009 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Tue, 13 Oct 2009 13:16:40 +0200 Subject: installation problem of nagios with make all command In-Reply-To: References: Message-ID: <4AD46198.7090803@univie.ac.at> just as it says... "undefined symbol recv in file netutils.o" comes up with SOCKETLIBS= -lnsl -lsocket or furthermore compiling with gcc and gmake. ./configure ... 'CC=gcc' ... Kind regards, Michael Najeeb Aslam wrote the following on 13.10.2009 12:32: > > /usr/local/src/nagios-3.2.0> make all > > cd ./base && make > > gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios > nagios.c broker.o nebmods.o checks.o config.o commands.o events.o > flapping.o logging.o macros-base.o netutils.o notifications.o > sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o > comments-base.o xcomments-base.o objects-base.o xobjects-base.o > statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o > downtime-base.o xdowntime-base.o ../common/snprintf.o > -L/usr/local/lib -lm -lpthread -lltdl -lrt > > Undefined first referenced > > symbol in file > > recv netutils.o > > send netutils.o > > socket netutils.o > > getsockopt netutils.o > > connect netutils.o > > getaddrinfo netutils.o > > freeaddrinfo netutils.o > > ld: fatal: Symbol referencing errors. No output written to nagios > > collect2: ld returned 1 exit status > > *** Error code 1 > > make: Fatal error: Command failed for target `nagios' > > Current working directory /usr/local/src/nagios-3.2.0/base > > *** Error code 1 > > make: Fatal error: Command failed for target `all' > > /usr/local/src/nagios-3.2.0> > > > > Best regards, > > > > -Najeeb > > *-----------------------------------------------*** > > *Najeeb Aslam * > > *Unix Systems Administrator* > > *Youthnet UK - **50 Featherstone St, London, EC1Y 8RT* > > *Direct:* 0207 250 5750 | *Switchboard:* 0207 250 5700 | *Email:* > *_najeeb.aslam at youthnet.org _* > > *Websites:* *_www.youthnet.org _* | > *_www.do-it.org.uk_* | *_www.thesite.org_* | *_www.lifetracks.com > _*__ > > P Before printing, please think about the environment > > > > > > > ------------------------------------------------------------------------ > YouthNet UK is a limited company registered in England and Wales. > Company registration number: 3031098. Charity registration number > 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.friedrich at univie.ac.at Tue Oct 13 14:29:34 2009 From: michael.friedrich at univie.ac.at (Michael Friedrich) Date: Tue, 13 Oct 2009 14:29:34 +0200 Subject: installation problem of nagios with make all command In-Reply-To: References: <4AD46198.7090803@univie.ac.at> Message-ID: <4AD472AE.50409@univie.ac.at> Najeeb Aslam wrote the following on 13.10.2009 14:19: > > Any further ideas? > this one? > > SOCKETLIBS= -lnsl -lsocket > Kind regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nadiakheffache at yahoo.fr Tue Oct 13 14:54:26 2009 From: nadiakheffache at yahoo.fr (nadia kheffache) Date: Tue, 13 Oct 2009 12:54:26 +0000 (GMT) Subject: (no subject) Message-ID: <321724.33068.qm@web25507.mail.ukl.yahoo.com> Hi, I have some difference when i check memory of my ESX server: memory used in ESX is 54% But with nagios plugin check_vmstat i have 78% used any idea? thank you Nadia ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Najeeb.Aslam at youthnet.org Tue Oct 13 15:22:54 2009 From: Najeeb.Aslam at youthnet.org (Najeeb Aslam) Date: Tue, 13 Oct 2009 14:22:54 +0100 Subject: FW: installation problem of nagios with make all command Message-ID: Hi, Tried configure with CC=gcc which was good, then no luck after doing make all. Any further ideas? See message below... --- [root at sysmon]# /usr/local/bin/make all cd ./base && /usr/local/bin/make make[1]: Entering directory `/usr/local/src/nagios-3.2.0/base' gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o netutils.o netutils.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c -o ../common/snprintf.o ../common/snprintf.c gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o ../common/snprintf.o -L/usr/local/lib -lm -lpthread -lltdl -lrt Undefined first referenced symbol in file recv netutils.o send netutils.o socket netutils.o getsockopt netutils.o connect netutils.o getaddrinfo netutils.o freeaddrinfo netutils.o ld: fatal: Symbol referencing errors. No output written to nagios collect2: ld returned 1 exit status make[1]: *** [nagios] Error 1 make[1]: Leaving directory `/usr/local/src/nagios-3.2.0/base' make: *** [all] Error 2 From: Michael Friedrich [mailto:michael.friedrich at univie.ac.at] Sent: 13 October 2009 12:17 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] installation problem of nagios with make all command just as it says... "undefined symbol recv in file netutils.o" comes up with SOCKETLIBS= -lnsl -lsocket or furthermore compiling with gcc and gmake. ./configure ... 'CC=gcc' ... Kind regards, Michael Najeeb Aslam wrote the following on 13.10.2009 12:32: /usr/local/src/nagios-3.2.0> make all cd ./base && make gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o ../common/snprintf.o -L/usr/local/lib -lm -lpthread -lltdl -lrt Undefined first referenced symbol in file recv netutils.o send netutils.o socket netutils.o getsockopt netutils.o connect netutils.o getaddrinfo netutils.o freeaddrinfo netutils.o ld: fatal: Symbol referencing errors. No output written to nagios collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `nagios' Current working directory /usr/local/src/nagios-3.2.0/base *** Error code 1 make: Fatal error: Command failed for target `all' /usr/local/src/nagios-3.2.0> Best regards, -Najeeb ----------------------------------------------- Najeeb Aslam Unix Systems Administrator Youthnet UK - 50 Featherstone St, London, EC1Y 8RT Direct: 0207 250 5750 | Switchboard: 0207 250 5700 | Email: najeeb.aslam at youthnet.org Websites: www.youthnet.org | www.do-it.org.uk | www.thesite.org | www.lifetracks.com P Before printing, please think about the environment ________________________________ YouthNet UK is a limited company registered in England and Wales. Company registration number: 3031098. Charity registration number 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. ________________________________ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ________________________________ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- DI (FH) Michael Friedrich michael.friedrich at univie.ac.at Tel: +43 1 4277 14359 Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria ________________________________ YouthNet UK is a limited company registered in England and Wales. Company registration number: 3031098. Charity registration number 1048995. Registered office: 100 Victoria Embankment, London, EC4Y 0DH. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lscarneiro at veltrac.com.br Tue Oct 13 15:44:30 2009 From: lscarneiro at veltrac.com.br (Leonardo Carneiro) Date: Tue, 13 Oct 2009 10:44:30 -0300 Subject: path problem in plugin Message-ID: <4AD4843E.6090708@veltrac.com.br> Hi, I wrote a small bash script that checks bandwidth, using the statgrab tool. The statgrab executable file is located in /usr/local/bin. This folder is in the PATH variable of the user nagios (tested in command line), but the file is not found when the script is runned by the nagios process. Doing an "echo $PATH" inside the script, the value of the variable is not the same as it was when the same command is executed in the command line with the nagios user. This is the return when executed from the command line: $ echo `whoami` $PATH nagios /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/jdk1.5.0_11/bin:/home/user/bin:/database/replicacao/bin:/home/nagios/bin And this is the return when the script is called by the nagios process: nagios /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin Why the PATH variable is not the same in the command line and inside the nagios process? Sorry for my poor english and tks in advance. -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Log?stica.* lscarneiro at veltrac.com.br http://www.veltrac.com.br /Fone Com.: (43)2105-5601/ /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mynameisjohn at linuxmail.org Tue Oct 13 17:11:07 2009 From: mynameisjohn at linuxmail.org (john halfpenny) Date: Tue, 13 Oct 2009 10:11:07 -0500 Subject: Suitable warning levels for 1gig switch Message-ID: <20091013151107.1197010612@ws1-3.us4.outblaze.com> Hi all Have set Nagios up on Debian and it's like magic. But I would like to know what warning and critical levels are suitable for monitoring a 1gig connection on a switch? My present command is shown here, but I am receiving warnings when the switch itself shows usage of around 6% for the same port?!? I take it this is some measurement of bytes and not a percentile? check_command??? ??? check_local_mrtgtraf!/var/www/mrtg/192.168.0.246_26.log!AVG!1000000,1000000!5000000,5000000!10 Thanks for any help. John -- Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 13 17:23:23 2009 From: marc at ena.com (Marc Powell) Date: Tue, 13 Oct 2009 10:23:23 -0500 Subject: path problem in plugin In-Reply-To: <4AD4843E.6090708@veltrac.com.br> References: <4AD4843E.6090708@veltrac.com.br> Message-ID: On Oct 13, 2009, at 8:44 AM, Leonardo Carneiro wrote: > This is the return when executed from the command line: > > $ echo `whoami` $PATH > nagios > /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/ > jdk1.5.0_11/bin:/home/user/bin:/database/replicacao/bin:/home/nagios/ > bin > > And this is the return when the script is called by the nagios > process: > > nagios /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin > > Why the PATH variable is not the same in the command line and inside > the > nagios process? $PATH is inherited from a parent process or set by the shell (/bin/ bash for example). In the case of a daemon started by init, the daemon inherits the minimal $PATH provided by the init process. In the case of your login shell, you inherit the path provided by that shell, additionally modified by any settings in that shell's configuration files (/etc/profile or .bashrc, for example). I do not believe that Nagios modifies the $PATH variable in any way but you can look through the source code if you like. I expect you may be able to change the $PATH environment in the nagios init script before it's started. There are many examples of this in / etc/init.d/. You can also modify the path within your script. The better, more secure solution is to not rely on $PATH in your script at all and to hard-code all paths to external programs and files. If you rely on $PATH, it can be trivial for $HACKER to create a file or program of the same name of the program you call that is evaluated earlier in the PATH and executed instead of your desired program. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Tue Oct 13 20:45:23 2009 From: pangrazi at gmail.com (Greg Pangrazio) Date: Tue, 13 Oct 2009 13:45:23 -0500 Subject: Notify only when both services are down. Message-ID: I have a pair of redundant services each with their own service checks. They are VPN connections to a remote site. I would like to notify specific people only when BOTH are down. Anyone seen/done something like this? Greg Pangrazio pangrazi at gmail.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Tue Oct 13 20:53:35 2009 From: mmelin at gmail.com (Martin Melin) Date: Tue, 13 Oct 2009 20:53:35 +0200 Subject: Notify only when both services are down. In-Reply-To: References: Message-ID: Sure thing. Simply use the check_many plugin from the official plugins package to aggregate the results of both checks, using to option to have it return OK if one or more checks are OK (so that it will only go CRITICAL if both VPNs are down). Regards Martin Melin On Tue, Oct 13, 2009 at 8:45 PM, Greg Pangrazio wrote: > I have a pair of redundant services each with their own service > checks. They are VPN connections to a remote site. I would like to > notify specific people only when BOTH are down. Anyone seen/done > something like this? > > Greg Pangrazio > pangrazi at gmail.com > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 13 20:54:28 2009 From: marc at ena.com (Marc Powell) Date: Tue, 13 Oct 2009 13:54:28 -0500 Subject: Notify only when both services are down. In-Reply-To: References: Message-ID: <8DD5625D-9A5D-4EE2-A0FE-8F62F0C70C72@ena.com> On Oct 13, 2009, at 1:45 PM, Greg Pangrazio wrote: > I have a pair of redundant services each with their own service > checks. They are VPN connections to a remote site. I would like to > notify specific people only when BOTH are down. Anyone seen/done > something like this? http://nagios.sourceforge.net/docs/3_0/clusters.html -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Tue Oct 13 21:20:26 2009 From: pangrazi at gmail.com (Greg Pangrazio) Date: Tue, 13 Oct 2009 14:20:26 -0500 Subject: Notify only when both services are down. In-Reply-To: <8DD5625D-9A5D-4EE2-A0FE-8F62F0C70C72@ena.com> References: <8DD5625D-9A5D-4EE2-A0FE-8F62F0C70C72@ena.com> Message-ID: Thanks for both of these, It looks like either will do the job so now I just have to get to work. Thanks again for the quick answer. Greg Pangrazio pangrazi at gmail.com On Tue, Oct 13, 2009 at 1:54 PM, Marc Powell wrote: > > On Oct 13, 2009, at 1:45 PM, Greg Pangrazio wrote: > >> I have a pair of redundant services each with their own service >> checks. ?They are VPN connections to a remote site. ?I would like to >> notify specific people only when BOTH are down. ?Anyone seen/done >> something like this? > > http://nagios.sourceforge.net/docs/3_0/clusters.html > > -- > Marc > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jagacontest at hotmail.com Wed Oct 14 00:22:26 2009 From: jagacontest at hotmail.com (jaga contest) Date: Tue, 13 Oct 2009 18:22:26 -0400 Subject: (no subject) Message-ID: I have configured Nagios and now want to monitor a clustered windows 2003 server running oracle 11. I do not want to run check_oracle without putting the NRPE agent on the windows box. I am able to run the two commands that I want to use at command line successfully. check_ping -H 10.186.175.6 -w 3000.0,80% -c 5000.0,100% -p 5 and check_oracle --login TREN I added them to the commands.cfg file in the following sections SAMPLE HOST CHECK COMMANDS define command{ command_name check-host-alive command_line $USER1$/check_ping -H 10.126.135.21 -w 3000.0,80% -c 5000.0,100% -p 5 } SAMPLE SERVICE CHECK COMMANDS # 'check_oracle' command definition define command{ command_name check_oracle command_line $USER1$/check_oracle --login TREN and added the server to the hosts.cfg # 'my-hostname' host definition define host{ use generic-host host_name my.fqdn alias My Windows Cluster address 10.126.135.21 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } When I look at my nagios interface I see my sever under the hosts section and it shows its status as up and ping ok. if i click on it I dont see the status of the check_oracle --login TREN Am I looking in the wrong place or do I have a config problem. Thanks in advance JC _________________________________________________________________ Hotmail: Trusted email with Microsoft?s powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141664/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From satishkumarp2k1 at gmail.com Wed Oct 14 07:43:08 2009 From: satishkumarp2k1 at gmail.com (Satish Kumar P) Date: Wed, 14 Oct 2009 11:13:08 +0530 Subject: Query regarding Nagios notification Message-ID: Hi, We have a Nagios server that monitors around 300 production servers and around 2000+ services on all these servers. Recently, when the STATE of one of the services on a particular host turned HARD, but Nagios didn't NOTIFY. So I am just trying to understand why it didn't notify. Here's more information regarding the configuration: define service { service_description MAILQ_1K_2K host_name server-name use generic-service check_command check_mailq_snmp!1000!2000 contact_groups cg_server-name } define contactgroup { contactgroup_name cg_server-name alias server-name Contact Group members team_emailpage-24x7 } define contact { contact_name team_emailpage-24x7 alias team_emailpage-24x7 service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,r service_notification_commands notify-by-page,notify-by-email host_notification_commands host-notify-by-page,host-notify-by-email email email-address pager team } Following are the few relevant options defined under "generic-service": check_period 24x7 normal_check_interval 5 retry_check_interval 2 max_check_attempts 5 notification_period 24x7 And following are the corresponding logs when the service went down: Oct 11 02:19:50 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;WARNING;SOFT;1;mailq is 1358 Oct 11 02:22:49 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;WARNING;SOFT;2;mailq is 1537 Oct 11 02:26:05 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;WARNING;SOFT;3;mailq is 1799 Oct 11 02:28:59 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;WARNING;SOFT;4;mailq is 1799 Oct 11 02:36:53 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;CRITICAL;HARD;5;mailq is 2133 I modified the server names. The WARNING THRESHOLD is 1000 and CRITICAL THRESHOLD is 2000. After roughly 45 minutes later, the service recovered, but Nagios didn't fire any alert w.r.t this service during this whole period (i mean until it came back to OK state). Nagios logs when this service came back: Oct 11 03:20:20 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;CRITICAL;SOFT;1;mailq is 2968 Oct 11 03:22:17 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;CRITICAL;SOFT;2;mailq is 2968 Oct 11 03:24:17 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;CRITICAL;SOFT;3;mailq is 2968 Oct 11 03:26:18 nagios-server nagios: SERVICE ALERT: server-name;MAILQ_1K_2K;OK;SOFT;4;mailq is 411 More info: Looking at Nagios documentation, I understand that Nagios does "on demand host checks" when a service changes STATE. So I guessed, Nagios might have performed HOST CHECK when it actually turned HARD (and simultaneously from WARNING to CRITICAL). And I see lot of logs related to other services after this SERVICE turned HARD, but I wonder there should have been NOTIFICATION w.r.t this particular service. Thoughts?? Nagios version: 3.1.2 O.S: Debian 4.0 (Etch) Thanks in advance. Thanks, Satish ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinp at norchemlab.com Wed Oct 14 07:52:35 2009 From: justinp at norchemlab.com (Justin Pryzby) Date: Tue, 13 Oct 2009 22:52:35 -0700 Subject: Query regarding Nagios notification In-Reply-To: References: Message-ID: <20091014055235.GA18567@norchemlab.com> On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote: > Hi, > > We have a Nagios server that monitors around 300 production servers > and around 2000+ services on all these servers. Recently, when the > STATE of one of the services on a particular host turned HARD, but > Nagios didn't NOTIFY. So I am just trying to understand why it didn't > notify. Here's more information regarding the configuration: Was the service flapping? Justin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From satishkumarp2k1 at gmail.com Wed Oct 14 08:47:34 2009 From: satishkumarp2k1 at gmail.com (Satish Kumar P) Date: Wed, 14 Oct 2009 12:17:34 +0530 Subject: Query regarding Nagios notification In-Reply-To: <20091014055235.GA18567@norchemlab.com> References: <20091014055235.GA18567@norchemlab.com> Message-ID: On Wed, Oct 14, 2009 at 11:22 AM, Justin Pryzby wrote: > On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote: >> Hi, >> >> We have a Nagios server that monitors around 300 production servers >> and around 2000+ services on all these servers. Recently, when the >> STATE of one of the services on a particular host turned HARD, but >> Nagios didn't NOTIFY. So I am just trying to understand why it didn't >> notify. Here's more information regarding the configuration: > > Was the service flapping? > > Justin > HI Justin, Actually no. Nagios didn't log anything related to this FLAPPING of this SERVICE. Though lot of other SERVICES related to same host flapped after this SERVICE turned HARD, this service didn't. Nagios didn't send notifications related all other services, that's justified because of SERVICE FLAPS. Thanks, Satish ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mad at b-care.net Wed Oct 14 09:28:58 2009 From: mad at b-care.net (=?ISO-8859-1?Q?Marc-Andr=E9?= Doll) Date: Wed, 14 Oct 2009 09:28:58 +0200 Subject: Query regarding Nagios notification In-Reply-To: References: <20091014055235.GA18567@norchemlab.com> Message-ID: <1255505338.3453.6.camel@MADness> Le mercredi 14 octobre 2009 ? 12:17 +0530, Satish Kumar P a ?crit : > On Wed, Oct 14, 2009 at 11:22 AM, Justin Pryzby wrote: > > On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote: > >> Hi, > >> > >> We have a Nagios server that monitors around 300 production servers > >> and around 2000+ services on all these servers. Recently, when the > >> STATE of one of the services on a particular host turned HARD, but > >> Nagios didn't NOTIFY. So I am just trying to understand why it didn't > >> notify. Here's more information regarding the configuration: > > What happened te me once was Nagios not sending notification because for some reasons the output was changed and contained spaces. As the "$OUTPUT$" macro wasn't quoted in the notification command definition, we encountered some erratic behaviours. Check your notification command definition to be sure. Marc-Andr? ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From satishkumarp2k1 at gmail.com Wed Oct 14 09:58:01 2009 From: satishkumarp2k1 at gmail.com (Satish Kumar P) Date: Wed, 14 Oct 2009 13:28:01 +0530 Subject: Query regarding Nagios notification In-Reply-To: <1255505338.3453.6.camel@MADness> References: <20091014055235.GA18567@norchemlab.com> <1255505338.3453.6.camel@MADness> Message-ID: On Wed, Oct 14, 2009 at 12:58 PM, Marc-Andr? Doll wrote: > Le mercredi 14 octobre 2009 ? 12:17 +0530, Satish Kumar P a ?crit : >> On Wed, Oct 14, 2009 at 11:22 AM, Justin Pryzby wrote: >> > On Wed, Oct 14, 2009 at 11:13:08AM +0530, Satish Kumar P wrote: >> >> Hi, >> >> >> >> We have a Nagios server that monitors around 300 production servers >> >> and around 2000+ services on all these servers. Recently, when the >> >> STATE of one of the services on a particular host turned HARD, but >> >> Nagios didn't NOTIFY. So I am just trying to understand why it didn't >> >> notify. Here's more information regarding the configuration: >> > > > What happened te me once was Nagios not sending notification because for > some reasons the output was changed and contained spaces. As the > "$OUTPUT$" macro wasn't quoted in the notification command definition, > we encountered some erratic behaviours. Check your notification command > definition to be sure. > > Marc-Andr? > Hi Marc, Thanks for the update. Actually all the macros seem to be quoted in the command definitions. Check the below mentioned command definitions. Nagios was supposed to use them for the service I mentioned. define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nURL: https://some-url/hosts/show/$HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } # 'notify-by-pager' command definition define command{ command_name notify-by-pager command_line /usr/bin/printf "%b" "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$\n$SHORTDATETIME$\n$SERVICEOUTPUT$" | /usr/bin/mail -s "$NOTIFICATI ONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ } But one more quick question: If the issue were related to "not quoting the macros in command definition", Nagios should have logged something regarding the "SERVICE NOTIFICATION" right (though whether we received the notification or not). Correct me if I am wrong. Looking at the logs, I am guessing that due to some reason, Nagios didn't initiate a notification at all. Thanks, Satish ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jkonecny at rmtohio.com Wed Oct 14 13:30:06 2009 From: jkonecny at rmtohio.com (Joe Konecny) Date: Wed, 14 Oct 2009 07:30:06 -0400 Subject: host shows down but it is not Message-ID: <4AD5B63E.10908@rmtohio.com> I configured a host with check_mk and it is monitoring 13 services. All of the 13 services are OK. The host shows as down however and I can find no reason for it. I spoke with Mathias Kettner author of check_mk and he claims that it is not check_mk that is the problem. I configured a host in Nagios (without check_mk) and it works fine. I don't understand what is wrong or where to look for the problem. Any tips. *********** Here is the Nagios host... Host Status: UP (for 0d 0h 1m 5s) Status Information: PING OK - Packet loss = 0%, RTA = 0.41 ms Performance Data: Current Attempt: 1/10 (HARD state) Last Check Time: 10-14-2009 07:22:38 Check Type: ACTIVE Check Latency / Duration: 0.015 / 4.012 seconds Next Scheduled Active Check: 10-14-2009 07:27:46 Last State Change: 10-14-2009 07:25:23 Last Notification: N/A (notification 0) Is This Host Flapping? NO (0.00% state change) In Scheduled Downtime? NO Last Update: 10-14-2009 07:26:26 ( 0d 0h 0m 2s ago) *********** Here is the check_mk host... Host Status: DOWN (for 0d 5h 2m 10s) Status Information: CRITICAL - 70.62.24.79: rta 0.970ms, lost 80% Performance Data: rta=0.970ms;200.000;500.000;0; pl=80%;40;80;; Current Attempt: 1/1 (HARD state) Last Check Time: 10-14-2009 07:19:28 Check Type: ACTIVE Check Latency / Duration: 0.000 / 3.568 seconds Next Scheduled Active Check: 10-14-2009 07:20:28 Last State Change: 10-14-2009 02:17:37 Last Notification: N/A (notification 0) Is This Host Flapping? NO (0.00% state change) In Scheduled Downtime? NO Last Update: 10-14-2009 07:19:38 ( 0d 0h 0m 9s ago) *********** Here are the check_mk services... 70.62.24.79 Perform Extra Host Actions CPU utilization Active checks of the service have been disabled - only passive checks are being accepted Perform Extra Service Actions OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - user: 0%, system: 0%, wait: 0% Check_MK OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - Agent Version 1.0.38, processed 12 host infos Disk IO read Active checks of the service have been disabled - only passive checks are being accepted Perform Extra Service Actions OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 0.0MB/s (in last 60 secs) Disk IO write Active checks of the service have been disabled - only passive checks are being accepted Perform Extra Service Actions OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 0.0MB/s (in last 60 secs) Memory used Active checks of the service have been disabled - only passive checks are being accepted Perform Extra Service Actions OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 11.1% of RAM (112 MB) used by processes NIC eth0 counters Active checks of the service have been disabled - only passive checks are being accepted Perform Extra Service Actions OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - Receive: 0.00 MB/sec - Send: 0.00 MB/sec NIC eth0 link Active checks of the service have been disabled - only passive checks are being accepted OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - Link is up NIC eth0 parameter Active checks of the service have been disabled - only passive checks are being accepted OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 100Mb/s,Full,on NIC eth1 counters Active checks of the service have been disabled - only passive checks are being accepted Perform Extra Service Actions OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - Receive: 0.00 MB/sec - Send: 0.00 MB/sec NIC eth1 link Active checks of the service have been disabled - only passive checks are being accepted OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - no link / NIC unused NIC eth1 parameter Active checks of the service have been disabled - only passive checks are being accepted OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 10Mb/s,Half,on fs_/ Active checks of the service have been disabled - only passive checks are being accepted Perform Extra Service Actions OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 11.5% used (3.6 of 31.5 GB), (levels at 80.0/90.0%) fs_/boot Active checks of the service have been disabled - only passive checks are being accepted Perform Extra Service Actions OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 25.2% used (0.0 of 0.1 GB), (levels at 80.0/90.0%) ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 14 14:26:07 2009 From: marc at ena.com (Marc Powell) Date: Wed, 14 Oct 2009 07:26:07 -0500 Subject: Query regarding Nagios notification In-Reply-To: References: Message-ID: <810636FB-7013-4CBA-BF78-03699BBB1A64@ena.com> On Oct 14, 2009, at 12:43 AM, Satish Kumar P wrote: > Hi, > > We have a Nagios server that monitors around 300 production servers > and around 2000+ services on all these servers. Recently, when the > STATE of one of the services on a particular host turned HARD, but > Nagios didn't NOTIFY. So I am just trying to understand why it didn't > notify. Here's more information regarding the configuration: > > define service { > service_description MAILQ_1K_2K > host_name server-name > use generic-service > check_command check_mailq_snmp!1000!2000 > contact_groups cg_server-name > } > Following are the few relevant options defined under "generic- > service": > > check_period 24x7 > normal_check_interval 5 > retry_check_interval 2 > max_check_attempts 5 > notification_period 24x7 No notification_options or contact_groups. What are they? Check objects.cache. > More info: Looking at Nagios documentation, I understand that Nagios > does "on demand host checks" when a service changes STATE. So I > guessed, Nagios might have performed HOST CHECK when it actually > turned HARD (and simultaneously from WARNING to CRITICAL). Yes, nagios will run a host check and if it returns non-OK, notifications for the service will be suppressed. What do you see in nagios.log related to the host? > Thoughts?? Do you get notifications at all, for anything? Verify that you haven't disabled notifications program wide (in nagios.cfg or via the web interface) or for this specific service (via the web interface). I tend to look in status.dat for that information but it can be found in the GUI under Program Info and the specific service. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Oct 14 14:33:48 2009 From: ae at op5.se (Andreas Ericsson) Date: Wed, 14 Oct 2009 14:33:48 +0200 Subject: nagios time event error In-Reply-To: <6db4a4200910052114g14f8d320l98cb751289705e5@mail.gmail.com> References: <6db4a4200910052114g14f8d320l98cb751289705e5@mail.gmail.com> Message-ID: <4AD5C52C.7040306@op5.se> On 10/06/2009 06:14 AM, shadih rahman wrote: > All, > I am seeing the following error. I saw some issues mentioned about this > on version 2. Can anyone advise on this. Thanks > > [Sun Oct 4 02:00:57 2009];Warning: A system time change of 0d 1h 19m 53s > (forwards in time) has been detected. Compensating... > [Mon Oct 5 02:01:56 2009];Warning: A system time change of 0d 2h 29m 29s > (forwards in time) has been detected. Compensating... > [Tue Oct 6 00:01:49 2009];Warning: A system time change of 0d 0h 23m 1s > (forwards in time) has been detected. Compensating... > Are you running Nagios on vmware? You should be aware that running a scheduling program such as Nagios on top of a system that has such a flakey system clock as vmware sports is not the best of ideas. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From satishkumarp2k1 at gmail.com Wed Oct 14 15:18:23 2009 From: satishkumarp2k1 at gmail.com (Satish Kumar P) Date: Wed, 14 Oct 2009 18:48:23 +0530 Subject: Query regarding Nagios notification In-Reply-To: <810636FB-7013-4CBA-BF78-03699BBB1A64@ena.com> References: <810636FB-7013-4CBA-BF78-03699BBB1A64@ena.com> Message-ID: On Wed, Oct 14, 2009 at 5:56 PM, Marc Powell wrote: > > On Oct 14, 2009, at 12:43 AM, Satish Kumar P wrote: > >> Hi, >> >> We have a Nagios server that monitors around 300 production servers >> and around 2000+ services on all these servers. Recently, when the >> STATE of one of the services on a particular host turned HARD, but >> Nagios didn't NOTIFY. So I am just trying to understand why it didn't >> notify. Here's more information regarding the configuration: >> >> define service { >> ? ? ? ?service_description ? ? MAILQ_1K_2K >> ? ? ? ?host_name ? ? ? ? ? ? ? server-name >> ? ? ? ?use ? ? ? ? ? ? ? ? ? ? generic-service >> ? ? ? ?check_command ? ? ? ? ? check_mailq_snmp!1000!2000 >> ? ? ? ?contact_groups ? ? ? ? ?cg_server-name >> } > >> Following are the few relevant options defined under "generic- >> service": >> >> ? ?check_period ? ? ? ? ? ? ? ? ? ?24x7 >> ? ?normal_check_interval ? ? ? ? ? 5 >> ? ?retry_check_interval ? ? ? ? ? ?2 >> ? ?max_check_attempts ? ? ? ? ? ? ?5 >> ? ?notification_period ? ? ? ? ? ? 24x7 > > No notification_options or contact_groups. What are they? Check objects.cache. OK, here are the complete contents of the service definition and service template: define service { service_description MAILQ_1K_2K host_name server-name use generic-service check_command check_mailq_snmp!1000!2000 contact_groups cg_server-name } define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts notification_interval 0 ; Only send notifications on status change by default. is_volatile 0 check_period 24x7 normal_check_interval 5 retry_check_interval 2 max_check_attempts 5 notification_period 24x7 notification_options w,c,r contact_groups nobody register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } >> More info: Looking at Nagios documentation, I understand that Nagios >> does "on demand host checks" when a service changes STATE. So I >> guessed, Nagios might have performed HOST CHECK when it actually >> turned HARD (and simultaneously from WARNING to CRITICAL). > > Yes, nagios will run a host check and if it returns non-OK, notifications for the service will be suppressed. What do you see in > nagios.log related to the host? This host was UP. > >> Thoughts?? > > Do you get notifications at all, for anything? Verify that you haven't disabled notifications program wide (in nagios.cfg or via the web > interface) or for this specific service (via the web interface). I tend to look in status.dat for that information but it can be found in > the GUI under Program Info and the specific service. Notifications are not disabled at Nagios level (nagios.cfg). Nagios is working properly for all other hosts and services, except this strange issue I mentioned. I verified the service status from the GUI, notifications are NOT disabled for this service and for the host also. > > -- > Marc > Kindly do let me know if you need more info. Thanks for the help. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 14 16:13:16 2009 From: marc at ena.com (Marc Powell) Date: Wed, 14 Oct 2009 09:13:16 -0500 Subject: Query regarding Nagios notification In-Reply-To: References: <810636FB-7013-4CBA-BF78-03699BBB1A64@ena.com> Message-ID: <1BF260EA-DA8A-46B8-8527-EC969E837D25@ena.com> On Oct 14, 2009, at 8:18 AM, Satish Kumar P wrote: > Notifications are not disabled at Nagios level (nagios.cfg). Nagios is > working properly for all other hosts and services, except this strange > issue I mentioned. > I verified the service status from the GUI, notifications are NOT > disabled for this service and for the host also. Hmmm. Everything you've posted indicated nagios would have sent a notification for this service (unless I've missed something). - Is the 24x7 timeperiod _really_ 24x7? - Are the log entries related to the service you posted complete? You see no SERVICE NOTIFICATION entries for this service or any other entries? - Please post the programstatus{} from status.dat. - Please post the command definition and other information for this service from objects.cache and status.dat. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Wed Oct 14 16:54:10 2009 From: mmelin at gmail.com (Martin Melin) Date: Wed, 14 Oct 2009 16:54:10 +0200 Subject: host shows down but it is not In-Reply-To: <4AD5B63E.10908@rmtohio.com> References: <4AD5B63E.10908@rmtohio.com> Message-ID: The host shows as down because the check_command for the host is CRITICAL. Given the performance info you pasted, this makes sense, since the check_command looks like a normal check_ping and you seem to have 80% packet loss from your Nagios host to 70.62.24.79 If you'd like the host to show as up, set the check_command variable of the host definition to something that is successful. If you don't care about the host itself, just the services on the host, maybe you can use something like check_dummy? Anyway Mathias Kettner is correct since Nagios will show your host as down if the host's check_command fails - and you apparently don't have check_mk as the host's check command. Regards Martin Melin On Wed, Oct 14, 2009 at 1:30 PM, Joe Konecny wrote: > I configured a host with check_mk and it is monitoring 13 services. > All of the 13 services are OK. The host shows as down however and > I can find no reason for it. I spoke with Mathias Kettner author > of check_mk and he claims that it is not check_mk that is the > problem. I configured a host in Nagios (without check_mk) and it > works fine. I don't understand what is wrong or where to look for > the problem. Any tips. > > > *********** Here is the Nagios host... > > Host Status: > UP > (for 0d 0h 1m 5s) > Status Information: PING OK - Packet loss = 0%, RTA = 0.41 ms > Performance Data: > Current Attempt: 1/10 (HARD state) > Last Check Time: 10-14-2009 07:22:38 > Check Type: ACTIVE > Check Latency / Duration: 0.015 / 4.012 seconds > Next Scheduled Active Check: 10-14-2009 07:27:46 > Last State Change: 10-14-2009 07:25:23 > Last Notification: N/A (notification 0) > Is This Host Flapping? > NO > (0.00% state change) > In Scheduled Downtime? > NO > Last Update: 10-14-2009 07:26:26 ( 0d 0h 0m 2s ago) > > > *********** Here is the check_mk host... > > Host Status: > DOWN > (for 0d 5h 2m 10s) > Status Information: CRITICAL - 70.62.24.79: rta 0.970ms, lost 80% > Performance Data: rta=0.970ms;200.000;500.000;0; pl=80%;40;80;; > Current Attempt: 1/1 (HARD state) > Last Check Time: 10-14-2009 07:19:28 > Check Type: ACTIVE > Check Latency / Duration: 0.000 / 3.568 seconds > Next Scheduled Active Check: 10-14-2009 07:20:28 > Last State Change: 10-14-2009 02:17:37 > Last Notification: N/A (notification 0) > Is This Host Flapping? > NO > (0.00% state change) > In Scheduled Downtime? > NO > Last Update: 10-14-2009 07:19:38 ( 0d 0h 0m 9s ago) > > > *********** Here are the check_mk services... > > 70.62.24.79 > > Perform Extra Host Actions > > CPU utilization > > Active checks of the service have been disabled - only passive checks are > being accepted Perform Extra Service Actions > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - user: > 0%, system: 0%, wait: 0% > > Check_MK > > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - Agent > Version 1.0.38, processed 12 host infos > > Disk IO read > > Active checks of the service have been disabled - only passive checks are > being accepted Perform Extra Service Actions > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 0.0MB/s > (in last 60 secs) > > Disk IO write > > Active checks of the service have been disabled - only passive checks are > being accepted Perform Extra Service Actions > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 0.0MB/s > (in last 60 secs) > > Memory used > > Active checks of the service have been disabled - only passive checks are > being accepted Perform Extra Service Actions > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 11.1% > of RAM (112 MB) used by processes > > NIC eth0 counters > > Active checks of the service have been disabled - only passive checks are > being accepted Perform Extra Service Actions > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - > Receive: 0.00 MB/sec - Send: 0.00 MB/sec > > NIC eth0 link > > Active checks of the service have been disabled - only passive checks are > being accepted > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - Link is > up > > NIC eth0 parameter > > Active checks of the service have been disabled - only passive checks are > being accepted > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - > 100Mb/s,Full,on > > NIC eth1 counters > > Active checks of the service have been disabled - only passive checks are > being accepted Perform Extra Service Actions > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - > Receive: 0.00 MB/sec - Send: 0.00 MB/sec > > NIC eth1 link > > Active checks of the service have been disabled - only passive checks are > being accepted > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - no link > / NIC unused > > NIC eth1 parameter > > Active checks of the service have been disabled - only passive checks are > being accepted > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - > 10Mb/s,Half,on > > fs_/ > > Active checks of the service have been disabled - only passive checks are > being accepted Perform Extra Service Actions > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 11.5% > used (3.6 of 31.5 GB), (levels at 80.0/90.0%) > > fs_/boot > > Active checks of the service have been disabled - only passive checks are > being accepted Perform Extra Service Actions > OK 10-14-2009 07:18:22 0d 21h 9m 45s 1/1 OK - 25.2% > used (0.0 of 0.1 GB), (levels at 80.0/90.0%) > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jkonecny at rmtohio.com Wed Oct 14 17:30:14 2009 From: jkonecny at rmtohio.com (Joe Konecny) Date: Wed, 14 Oct 2009 11:30:14 -0400 Subject: host shows down but it is not In-Reply-To: References: <4AD5B63E.10908@rmtohio.com> Message-ID: <4AD5EE86.3020604@rmtohio.com> On 10/14/2009 10:54 AM, Martin Melin wrote: > The host shows as down because the check_command for the host is > CRITICAL. Given the performance info you pasted, this makes sense, since > the check_command looks like a normal check_ping and you seem to have > 80% packet loss from your Nagios host to 70.62.24.79 The question is why there is 80& packet loss showing in check_mk and nagios ping there is 0% packet loss. Always. Here is a tcpdump of plain Nagios pinging... 11:23:50.328519 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 1, length 64 11:23:50.329365 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 1, length 64 11:23:51.328739 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 2, length 64 11:23:51.329368 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 2, length 64 11:23:52.327735 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 3, length 64 11:23:52.328472 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 3, length 64 11:23:53.326740 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 4, length 64 11:23:53.327578 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 4, length 64 11:23:54.327788 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 5, length 64 11:23:54.328478 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 5, length 64 Here is a tcpdump of check_mk pinging... 11:29:24.042801 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 11:29:24.043603 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 58673, seq 0, length 64 11:29:24.043768 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 11:29:24.124046 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 11:29:24.204417 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 11:29:24.284728 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 14 17:51:06 2009 From: marc at ena.com (Marc Powell) Date: Wed, 14 Oct 2009 10:51:06 -0500 Subject: host shows down but it is not In-Reply-To: <4AD5EE86.3020604@rmtohio.com> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> Message-ID: <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> On Oct 14, 2009, at 10:30 AM, Joe Konecny wrote: > The question is why there is 80& packet loss showing in check_mk > and nagios ping there is 0% packet loss. Always. Yes, certainly. This is the key. > Here is a tcpdump of plain Nagios pinging... What does the host definition for this look like? > > Here is a tcpdump of check_mk pinging... What does the host definition for this look like? What are the corresponding command{} definitions? How are they different? -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jkonecny at rmtohio.com Wed Oct 14 19:28:14 2009 From: jkonecny at rmtohio.com (Joe Konecny) Date: Wed, 14 Oct 2009 13:28:14 -0400 Subject: host shows down but it is not In-Reply-To: <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> Message-ID: <4AD60A2E.7040601@rmtohio.com> On 10/14/2009 11:51 AM, Marc Powell wrote: > > On Oct 14, 2009, at 10:30 AM, Joe Konecny wrote: > >> The question is why there is 80& packet loss showing in check_mk >> and nagios ping there is 0% packet loss. Always. > > > Yes, certainly. This is the key. > >> Here is a tcpdump of plain Nagios pinging... > > What does the host definition for this look like? >> Here is a tcpdump of check_mk pinging... > > What does the host definition for this look like? The definitions are pretty normal. > What are the corresponding command{} definitions? How are they > different? > It looks like Nagios is using... check_ping!200.0,20%!600.0,60% and check_mk is using /usr/local/nagios/libexec/check_icmp $HOSTADDRESS$ ...anyone know what the difference is here? ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stephane.coat at photobox.com Wed Oct 14 19:09:11 2009 From: stephane.coat at photobox.com (=?ISO-8859-1?Q?St=E9phane_COAT?=) Date: Wed, 14 Oct 2009 19:09:11 +0200 Subject: [Fwd: Nagios 2.9 problem with distributed architecture] Message-ID: <4AD605B7.8070308@photobox.com> Hi All, I have a nagios problem since few weeks ago now : *Symtom :* - After running some hours, nagios freezed and not record the new datas on the main nagios - When we have this problem, the nsca log continue to receive the datas *Version used :* - Nagios 2.9 (on the "master") - NSCA Version: 2.7.1 - NDO2DB 1.4b4 - OCP_deamon *Configuration :* - We have a distributed architecture with 1 master (all services was define in passive mode) and 5 slaves (all services was define in active mode) - bin/nagiostats -c /usr/local/nagios/etc/nagios.cfg Nagios Stats 2.9 Copyright (c) 2003-2007 Ethan Galstad (www.nagios.org) Last Modified: 04-10-2007 License: GPL CURRENT STATUS DATA ---------------------------------------------------- Status File: /usr/local/nagios/var/status.dat Status File Age: 0d 0h 0m 5s Status File Version: 2.9 Program Running Time: 0d 0h 52m 42s Nagios PID: 13643 Used/High/Total Command Buffers: 96 / 1888 / 4096 Used/High/Total Check Result Buffers: 15951 / 15973 / 50000 Total Services: 4527 Services Checked: 4527 Services Scheduled: 0 Active Service Checks: 1 Passive Service Checks: 4526 Total Service State Change: 0.000 / 50.530 / 0.061 % Active Service Latency: 579.786 / 579.786 / 579.786 sec Active Service Execution Time: 2.030 / 2.030 / 2.030 sec Active Service State Change: 0.000 / 0.000 / 0.000 % Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Passive Service State Change: 0.000 / 50.530 / 0.061 % Passive Services Last 1/5/15/60 min: 0 / 0 / 1439 / 4521 Services Ok/Warn/Unk/Crit: 4064 / 40 / 28 / 395 Services Flapping: 5 Services In Downtime: 0 Total Hosts: 619 Hosts Checked: 619 Hosts Scheduled: 0 Active Host Checks: 46 Passive Host Checks: 573 Total Host State Change: 0.000 / 33.680 / 0.234 % Active Host Latency: 0.000 / 0.000 / 0.000 sec Active Host Execution Time: 0.000 / 0.093 / 0.007 sec Active Host State Change: 0.000 / 0.000 / 0.000 % Active Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 1 Passive Host State Change: 0.000 / 33.680 / 0.253 % Passive Hosts Last 1/5/15/60 min: 2 / 110 / 130 / 170 Hosts Up/Down/Unreach: 609 / 10 / 0 Hosts Flapping: 1 Hosts In Downtime: 0 - join at this email the nagios.cfg and nsca.cfg Could you help me please to investigate this problem ? Thanks you very much. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nsca.cfg URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nagios.cfg URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jkonecny at rmtohio.com Wed Oct 14 19:44:29 2009 From: jkonecny at rmtohio.com (Joe Konecny) Date: Wed, 14 Oct 2009 13:44:29 -0400 Subject: host shows down but it is not In-Reply-To: <4AD60A2E.7040601@rmtohio.com> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> <4AD60A2E.7040601@rmtohio.com> Message-ID: <4AD60DFD.3000906@rmtohio.com> On 10/14/2009 1:28 PM, Joe Konecny wrote: >> What are the corresponding command{} definitions? How are they >> different? >> > > It looks like Nagios is using... > > check_ping!200.0,20%!600.0,60% > > and check_mk is using > > /usr/local/nagios/libexec/check_icmp $HOSTADDRESS$ > > > ...anyone know what the difference is here? I did some testing on the command line and check_icmp fails every time if -n > 1. So this... check_icmp -n 1 70.62.24.79 ...works. To me it looks like a bug in check_icmp. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 14 20:10:37 2009 From: marc at ena.com (Marc Powell) Date: Wed, 14 Oct 2009 13:10:37 -0500 Subject: host shows down but it is not In-Reply-To: <4AD60A2E.7040601@rmtohio.com> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> <4AD60A2E.7040601@rmtohio.com> Message-ID: On Oct 14, 2009, at 12:28 PM, Joe Konecny wrote: > It looks like Nagios is using... > > check_ping!200.0,20%!600.0,60% > > and check_mk is using > > /usr/local/nagios/libexec/check_icmp $HOSTADDRESS$ > > > ...anyone know what the difference is here? check_ping is a wrapper for /bin/ping. It tells /bin/ping to check a host and parses it's output. check_icmp uses raw sockets directly. It issues the ICMP request and processes the response directly. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 14 20:24:46 2009 From: marc at ena.com (Marc Powell) Date: Wed, 14 Oct 2009 13:24:46 -0500 Subject: host shows down but it is not [check_icmp] In-Reply-To: <4AD60DFD.3000906@rmtohio.com> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> <4AD60A2E.7040601@rmtohio.com> <4AD60DFD.3000906@rmtohio.com> Message-ID: On Oct 14, 2009, at 12:44 PM, Joe Konecny wrote: > I did some testing on the command line and check_icmp fails > every time if -n > 1. So this... > > check_icmp -n 1 70.62.24.79 > > ...works. > > To me it looks like a bug in check_icmp. Not impossible but that would be surprising. check_icmp is known to be stable and has less than 10 bugs logged against it since 2004 (mostly for compile problems on various OS's). What OS are you running? How did you install the plugins (package or source? Using the same architecture as your OS, 1386 or _64?). What output do you receive when running it from the command line for your problem host with verbose flags? Be sure you test using the same command_line as the check_icmp command definition, just adding two - v's like -- /path/to/check_icmp -H -n5 -v -v -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jkonecny at rmtohio.com Wed Oct 14 20:45:16 2009 From: jkonecny at rmtohio.com (Joe Konecny) Date: Wed, 14 Oct 2009 14:45:16 -0400 Subject: host shows down but it is not [check_icmp] In-Reply-To: References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> <4AD60A2E.7040601@rmtohio.com> <4AD60DFD.3000906@rmtohio.com> Message-ID: <4AD61C3C.5070209@rmtohio.com> On 10/14/2009 2:24 PM, Marc Powell wrote: > > On Oct 14, 2009, at 12:44 PM, Joe Konecny wrote: > >> I did some testing on the command line and check_icmp fails >> every time if -n> 1. So this... >> >> check_icmp -n 1 70.62.24.79 >> >> ...works. >> >> To me it looks like a bug in check_icmp. > > Not impossible but that would be surprising. check_icmp is known to be > stable and has less than 10 bugs logged against it since 2004 (mostly > for compile problems on various OS's). > > What OS are you running? Ubuntu 9.04 > How did you install the plugins (package or > source? source > Using the same architecture as your OS, 1386 or _64?). > i386 > What output do you receive when running it from the command line for > your problem host with verbose flags? Be sure you test using the same > command_line as the check_icmp command definition, just adding two - > v's like -- > > /path/to/check_icmp -H -n5 -v -v > > -- > Marc > The output is below. Also I just installed Nagios on a different machine and get the same results. root at 3px:~# /usr/local/nagios/libexec/check_icmp -v -v 70.62.24.79 ttl set to 64 Setting alarm timeout to 10 seconds packets: 5, targets: 1 target_interval: 0.000, pkt_interval 80.000 crit.rta: 500.000 max_completion_time: 3400.000 crit = {500000, 80%}, warn = {200000, 40%} pkt_interval: 80000 target_interval: 0 retry_interval: 0 icmp_pkt_size: 64 timeout: 10 received 84 bytes from 70.62.24.79 1.029 ms rtt from 70.62.24.79, outgoing ttl: 64, incoming ttl: 63 recvfrom_wto() timed out during a 80000 usecs wait recvfrom_wto() timed out during a 40000 usecs wait recvfrom_wto() timed out during a 40000 usecs wait recvfrom_wto() timed out during a 26666 usecs wait recvfrom_wto() timed out during a 26666 usecs wait recvfrom_wto() timed out during a 26666 usecs wait recvfrom_wto() timed out during a 20000 usecs wait recvfrom_wto() timed out during a 20000 usecs wait recvfrom_wto() timed out during a 20000 usecs wait recvfrom_wto() timed out during a 20000 usecs wait time_passed: 322696 final_wait: 3077304 max_completion_time: 3400000 Waiting for 3077304 micro-seconds (3077.304 msecs) recvfrom_wto() timed out during a 769326 usecs wait recvfrom_wto() timed out during a 769326 usecs wait recvfrom_wto() timed out during a 769326 usecs wait recvfrom_wto() timed out during a 769326 usecs wait finish(0) called icmp_sent: 5 icmp_recv: 1 icmp_lost: 0 targets: 1 targets_alive: 1 CRITICAL - 70.62.24.79: rta 1.029ms, lost 80%| rta=1.029ms;200.000;500.000;0; pl=80%;40;80;; targets: 1, targets_alive: 1, hosts_ok: 0, hosts_warn: 0, min_hosts_alive: -1 ******* and just for kicks... root at 3px:~# /usr/local/nagios/libexec/check_icmp -n 1 -v -v 70.62.24.79 ttl set to 64 Setting alarm timeout to 10 seconds packets: 1, targets: 1 target_interval: 0.000, pkt_interval 80.000 crit.rta: 500.000 max_completion_time: 1080.000 crit = {500000, 80%}, warn = {200000, 40%} pkt_interval: 80000 target_interval: 0 retry_interval: 0 icmp_pkt_size: 64 timeout: 10 received 84 bytes from 70.62.24.79 1.045 ms rtt from 70.62.24.79, outgoing ttl: 64, incoming ttl: 63 finish(0) called icmp_sent: 1 icmp_recv: 1 icmp_lost: 0 targets: 1 targets_alive: 1 OK - 70.62.24.79: rta 1.045ms, lost 0%| rta=1.045ms;200.000;500.000;0; pl=0%;40;80;; targets: 1, targets_alive: 1, hosts_ok: 1, hosts_warn: 0, min_hosts_alive: -1 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 14 21:36:31 2009 From: marc at ena.com (Marc Powell) Date: Wed, 14 Oct 2009 14:36:31 -0500 Subject: host shows down but it is not [check_icmp] In-Reply-To: <4AD61C3C.5070209@rmtohio.com> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> <4AD60A2E.7040601@rmtohio.com> <4AD60DFD.3000906@rmtohio.com> <4AD61C3C.5070209@rmtohio.com> Message-ID: On Oct 14, 2009, at 1:45 PM, Joe Konecny wrote: > The output is below. Also I just installed Nagios on a different > machine and get the same results. > > root at 3px:~# /usr/local/nagios/libexec/check_icmp -v -v 70.62.24.79 > ttl set to 64 > Setting alarm timeout to 10 seconds > packets: 5, targets: 1 > target_interval: 0.000, pkt_interval 80.000 > crit.rta: 500.000 > max_completion_time: 3400.000 > crit = {500000, 80%}, warn = {200000, 40%} > pkt_interval: 80000 target_interval: 0 retry_interval: 0 > icmp_pkt_size: 64 timeout: 10 > received 84 bytes from 70.62.24.79 > 1.029 ms rtt from 70.62.24.79, outgoing ttl: 64, incoming ttl: 63 > recvfrom_wto() timed out during a 80000 usecs wait > recvfrom_wto() timed out during a 40000 usecs wait > recvfrom_wto() timed out during a 40000 usecs wait > recvfrom_wto() timed out during a 26666 usecs wait > recvfrom_wto() timed out during a 26666 usecs wait > recvfrom_wto() timed out during a 26666 usecs wait > recvfrom_wto() timed out during a 20000 usecs wait > recvfrom_wto() timed out during a 20000 usecs wait > recvfrom_wto() timed out during a 20000 usecs wait > recvfrom_wto() timed out during a 20000 usecs wait > time_passed: 322696 final_wait: 3077304 max_completion_time: 3400000 > Waiting for 3077304 micro-seconds (3077.304 msecs) > recvfrom_wto() timed out during a 769326 usecs wait > recvfrom_wto() timed out during a 769326 usecs wait > recvfrom_wto() timed out during a 769326 usecs wait > recvfrom_wto() timed out during a 769326 usecs wait > finish(0) called > icmp_sent: 5 icmp_recv: 1 icmp_lost: 0 After taking a peek at the code, I do believe that it really sent out 5 ICMP_ECHO requests and only received the first one back. You should be able to verify this with wireshark. Is this something that is happening for all hosts or just this one host? Is there a firewall between the hosts (even running locally on either). Is there anything special about the target host? Anything that would rate limit ICMP_ECHO requests or responses? We're getting into a grey area where my knowledge of the program isn't detailed enough to say why /bin/ping works and check_icmp doesn't. I believe that the requests are formatted differently but I don't know enough to say how or for sure. If there's nothing interesting about the hosts in question, it would probably be appropriate to take to the plugins list... -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jkonecny at rmtohio.com Wed Oct 14 21:59:52 2009 From: jkonecny at rmtohio.com (Joe Konecny) Date: Wed, 14 Oct 2009 15:59:52 -0400 Subject: host shows down but it is not [check_icmp] In-Reply-To: References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> <4AD60A2E.7040601@rmtohio.com> <4AD60DFD.3000906@rmtohio.com> <4AD61C3C.5070209@rmtohio.com> Message-ID: <4AD62DB8.8080803@rmtohio.com> On 10/14/2009 3:36 PM, Marc Powell wrote: > After taking a peek at the code, I do believe that it really sent out > 5 ICMP_ECHO requests and only received the first one back. You should > be able to verify this with wireshark. Yes that is what wireshark seemed to prove on one of my earlier posts. > Is this something that is happening for all hosts or just this one > host? Is there a firewall between the hosts (even running locally on > either). Is there anything special about the target host? Anything > that would rate limit ICMP_ECHO requests or responses? Yes there is a firewall but I'm not sure about what it is doing to rate limit icmp requests. I do know that any host outside of my local network fails in the same way. > We're getting into a grey area where my knowledge of the program isn't > detailed enough to say why /bin/ping works and check_icmp doesn't. I > believe that the requests are formatted differently but I don't know > enough to say how or for sure. If there's nothing interesting about > the hosts in question, it would probably be appropriate to take to the > plugins list... Ok... thanks for your help. At least it works now with -n 1. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Wed Oct 14 22:52:53 2009 From: subscription at kkeane.com (Kevin Keane) Date: Wed, 14 Oct 2009 13:52:53 -0700 Subject: host shows down but it is not [check_icmp] In-Reply-To: <4AD62DB8.8080803@rmtohio.com> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <7ACE7216-B5F6-4582-B650-7FD0A8B9943C@ena.com> <4AD60A2E.7040601@rmtohio.com> <4AD60DFD.3000906@rmtohio.com> <4AD61C3C.5070209@rmtohio.com> <4AD62DB8.8080803@rmtohio.com> Message-ID: <4AD63A25.1050703@kkeane.com> Joe Konecny wrote: > On 10/14/2009 3:36 PM, Marc Powell wrote: > > >> After taking a peek at the code, I do believe that it really sent out >> 5 ICMP_ECHO requests and only received the first one back. You should >> be able to verify this with wireshark. >> > > Yes that is what wireshark seemed to prove on one of my earlier posts. > > >> Is this something that is happening for all hosts or just this one >> host? Is there a firewall between the hosts (even running locally on >> either). Is there anything special about the target host? Anything >> that would rate limit ICMP_ECHO requests or responses? >> > > Yes there is a firewall but I'm not sure about what it is doing to > rate limit icmp requests. I do know that any host outside of my > local network fails in the same way. > Do you have access to the firewall logs? They might tell you more. My hunch is that the packets that check_icmp sends out are different in a subtle way from those that ping sends. Maybe check_icmp has a longer payload that the firewall interprets as a type of attack? Carefully look at the packets that Wireshark traced and compare the check_icmp ones with the ping ones. -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Thu Oct 15 00:14:24 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Wed, 14 Oct 2009 18:14:24 -0400 Subject: host shows down but it is not In-Reply-To: <4AD5EE86.3020604@rmtohio.com> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> Message-ID: <4AD64D40.9000705@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 14/10/09 11:30 AM, Joe Konecny wrote: > > Here is a tcpdump of plain Nagios pinging... > > 11:23:50.328519 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 1, length 64 > 11:23:50.329365 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 1, length 64 > 11:23:51.328739 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 2, length 64 > 11:23:51.329368 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 2, length 64 > 11:23:52.327735 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 3, length 64 > 11:23:52.328472 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 3, length 64 > 11:23:53.326740 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 4, length 64 > 11:23:53.327578 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 4, length 64 > 11:23:54.327788 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 18478, seq 5, length 64 > 11:23:54.328478 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 18478, seq 5, length 64 > > Here is a tcpdump of check_mk pinging... > > 11:29:24.042801 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 > 11:29:24.043603 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 58673, seq 0, length 64 > 11:29:24.043768 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 > 11:29:24.124046 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 > 11:29:24.204417 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 > 11:29:24.284728 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 The problem with check_mk pinging is that the ICMP sequence number doesn't increase. Some devices treat this as a duplicate packed and ignore it (I'm not sure what the RFC specify but this is probably the correct behaviour). Just use the non-mk host check command for the host definition with the check_mk command for services and you should be fine. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFK1k1A6dZ+Kt5BchYRAmdwAJ9ScKAjci3LLSvWOpEml4/wxjAsiQCg9hII 5jiOYrO+IcFrUMaQanRp/8Y= =FqrR -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jkonecny at rmtohio.com Thu Oct 15 00:26:03 2009 From: jkonecny at rmtohio.com (Joe Konecny) Date: Wed, 14 Oct 2009 18:26:03 -0400 Subject: host shows down but it is not In-Reply-To: <4AD64D40.9000705@aei.ca> References: <4AD5B63E.10908@rmtohio.com> <4AD5EE86.3020604@rmtohio.com> <4AD64D40.9000705@aei.ca> Message-ID: <4AD64FFB.4030100@rmtohio.com> Thomas Guyot-Sionnest wrote: >> Here is a tcpdump of check_mk pinging... >> >> 11:29:24.042801 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 >> 11:29:24.043603 IP adsl-79.dacor.net > 10.0.0.4: ICMP echo reply, id 58673, seq 0, length 64 >> 11:29:24.043768 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 >> 11:29:24.124046 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 >> 11:29:24.204417 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 >> 11:29:24.284728 IP 10.0.0.4 > adsl-79.dacor.net: ICMP echo request, id 58673, seq 0, length 64 > > The problem with check_mk pinging is that the ICMP sequence number > doesn't increase. Some devices treat this as a duplicate packed and > ignore it (I'm not sure what the RFC specify but this is probably the > correct behaviour). > > Just use the non-mk host check command for the host definition with the > check_mk command for services and you should be fine. I wondered about that and searched but could find no info either way about how the seq was supposed to work. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Terry.Rankine at csiro.au Thu Oct 15 03:12:20 2009 From: Terry.Rankine at csiro.au (Terry.Rankine at csiro.au) Date: Thu, 15 Oct 2009 09:12:20 +0800 Subject: how do i? Message-ID: <4E88C091A57493498EEC9F2A21D5BF43027E9DB033@EXWA-MBX01.nexus.csiro.au> Hi I have a host with 7 services, when i reboot the host, the services fail one by one and i get emails for them all. How do i tell ngaios to do something like: 1. Service check depends on host availability. If host is down, don't check the service. 2. And when a service fails - do a host check almost straight away. I have done some googling but come up empty handed. Any suggestions would be greatly appreciated. Terry -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lyle at lcrcomputer.net Thu Oct 15 03:38:19 2009 From: lyle at lcrcomputer.net (Lyle Giese) Date: Wed, 14 Oct 2009 20:38:19 -0500 Subject: how do i? In-Reply-To: <4E88C091A57493498EEC9F2A21D5BF43027E9DB033@EXWA-MBX01.nexus.csiro.au> References: <4E88C091A57493498EEC9F2A21D5BF43027E9DB033@EXWA-MBX01.nexus.csiro.au> Message-ID: <4AD67D0B.1000203@lcrcomputer.net> http://nagios.sourceforge.net/docs/1_0/dependencies.html It's called a dependency in Nagios. Lyle Terry.Rankine at csiro.au wrote: > > Hi > > > > I have a host with 7 services, when i reboot the host, the services > fail one by one and i get emails for them all. > > How do i tell ngaios to do something like: > > > > 1. Service check depends on host availability. If host is down, > don't check the service. > > 2. And when a service fails -- do a host check almost straight away. > > > > I have done some googling but come up empty handed. > > > > Any suggestions would be greatly appreciated. > > > > Terry > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 04:13:49 2009 From: marc at ena.com (Marc Powell) Date: Wed, 14 Oct 2009 21:13:49 -0500 Subject: how do i? In-Reply-To: <4AD67D0B.1000203@lcrcomputer.net> References: <4E88C091A57493498EEC9F2A21D5BF43027E9DB033@EXWA-MBX01.nexus.csiro.au> <4AD67D0B.1000203@lcrcomputer.net> Message-ID: <479D64FE-4AD0-4918-9346-CACDE4954182@ena.com> (re-ordering for context) > > Terry.Rankine at csiro.au wrote: >> Hi >> >> I have a host with 7 services, when i reboot the host, the services >> fail one by one and i get emails for them all. >> How do i tell ngaios to do something like: >> >> 1. Service check depends on host availability. If host is >> down, don?t check the service. >> 2. And when a service fails ? do a host check almost straight >> away. >> On Oct 14, 2009, at 8:38 PM, Lyle Giese wrote: > http://nagios.sourceforge.net/docs/1_0/dependencies.html > > It's called a dependency in Nagios. Actually, nagios does this automatically; no dependency is required. When any service fails, the check_command for the host definition is run immediately. If that returns a non-OK result, all notifications for services on the host are suppressed until it recovers. The OP must not have a host check_command that accurately determines when the host is down. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Thu Oct 15 11:04:22 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Thu, 15 Oct 2009 14:34:22 +0530 Subject: nagios3 problem in debian lenny Message-ID: <4AD6E596.9060005@infoservices.in> Dear all , I have the second opportunity to configure nagios3 in a debian lenny server. I did the configuration 2 yr ago on a clark-connect server. To get a vary basic working nagios I simply followed the default settings. I have installed nagios; created htpasswd file and then started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after successfully authentication ( by htpassd file ) nagios reports `````````````````````````````` *Error: Could not read object configuration data! ````````````````````````````````` Though the basic localhost cfg file is already there at /etc/nagios3/conf.d/ and it is already included at nagios.cfg as cfg_dir=/etc/nagios3/conf.d Any clue please ? * ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Oct 15 13:38:37 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 15 Oct 2009 11:38:37 +0000 Subject: nagios web GUI dispay delay and mismatch Message-ID: <200910151138.37317.assaf.flatto@ssp-intl.com> Hello List I have a peculiar issue of a mismatch between the nagios GUI and the actual data in the log files . Let me give a bit of background , i found that some of my server check ( check_host_ alive) have not been done for a large period of time ( 10 month) , so changed the configuration ( below ) of nagios to force it to do host check and service checks at least once in 10 minutes . Ever since then nagios web GUi is not displaying a "true" status of the network : comments are not removed , alerts are recovered in the logs but still appear as faulty on the web GUI . The machine load is not very high - 2.60, 3.47, 4.05 , so I am presuming it is not an issue of the server being slow. has anyone ever encountered any thing similar ? , or has my configuration causing nagios to tangle on itself ? Thanks Assaf object_cache_file=/usr/local/nagios/var/objects.cache precached_object_file=/usr/local/nagios/var/objects.precache resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.dat status_update_interval=10 nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd external_command_buffer_slots=4096 lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp temp_path=/tmp event_broker_options=-1 broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=0 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_checks=0 service_inter_check_delay_method=s max_service_check_spread=30 service_interleave_factor=s host_inter_check_delay_method=s max_host_check_spread=30 max_concurrent_checks=0 check_result_reaper_frequency=10 max_check_result_reaper_time=30 check_result_path=/usr/local/nagios/var/spool/checkresults max_check_result_file_age=600 cached_host_check_horizon=150 cached_service_check_horizon=150 enable_predictive_host_dependency_checks=1 enable_predictive_service_dependency_checks=1 soft_state_dependencies=1 auto_rescheduling_interval=30 auto_rescheduling_window=120 sleep_time=0.25 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 interval_length=60 use_aggressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=1 service_perfdata_file=/var/spool/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 obsess_over_services=0 obsess_over_hosts=0 translate_passive_host_checks=0 passive_host_checks_are_soft=0 check_for_orphaned_services=0 check_for_orphaned_hosts=0 check_service_freshness=1 service_freshness_check_interval=300 check_host_freshness=1 host_freshness_check_interval=600 additional_freshness_latency=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro p1_file=/usr/local/nagios/bin/p1.pl enable_embedded_perl=1 use_embedded_perl_implicitly=1 illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> use_regexp_matching=0 use_true_regexp_matching=0 admin_email=nagios at localhost admin_pager=pagenagios at localhost daemon_dumps_core=0 use_large_installation_tweaks=0 enable_environment_macros=1 debug_level=436 debug_verbosity=2 debug_file=/usr/local/nagios/var/nagios.debug max_debug_file_size=100000000 -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Lundback at touchbet.com.mt Thu Oct 15 16:19:17 2009 From: Joseph.Lundback at touchbet.com.mt (Joseph Lundback) Date: Thu, 15 Oct 2009 16:19:17 +0200 Subject: nagios3 problem in debian lenny In-Reply-To: <4AD6E596.9060005@infoservices.in> References: <4AD6E596.9060005@infoservices.in> Message-ID: <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> > Dear all , > > I have the second opportunity to configure nagios3 in a debian lenny > server. I did the configuration 2 yr ago on a clark-connect server. > To get a vary basic working nagios I simply followed the default > settings. I have installed nagios; created htpasswd file and then > started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after > successfully authentication ( by htpassd file ) nagios reports > > `````````````````````````````` > *Error: Could not read object configuration data! > ````````````````````````````````` > > Though the basic localhost cfg file is already there at > /etc/nagios3/conf.d/ and it is already included at nagios.cfg as > > cfg_dir=/etc/nagios3/conf.d > > Any clue please ? > * I'm no Nagios guru, just a novice nagios user. But I've gotten that error message when I've had permission issues. /Joseph > > ----------------------------------------------------------------------- > ------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null The information in this E-mail is confidential. If you are not the intended recipient please notify the sender immediately and delete this E-mail without reading, using or disseminating the information contained in it. Although Touchbet Ltd believes this E-mail and any attachments are free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Touchbet Ltd does not accept any responsibility for any loss or damage arising in any way from its use. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From satishkumarp2k1 at gmail.com Thu Oct 15 16:41:55 2009 From: satishkumarp2k1 at gmail.com (Satish Kumar P) Date: Thu, 15 Oct 2009 20:11:55 +0530 Subject: Query regarding Nagios notification In-Reply-To: <1BF260EA-DA8A-46B8-8527-EC969E837D25@ena.com> References: <810636FB-7013-4CBA-BF78-03699BBB1A64@ena.com> <1BF260EA-DA8A-46B8-8527-EC969E837D25@ena.com> Message-ID: On Wed, Oct 14, 2009 at 7:43 PM, Marc Powell wrote: > > On Oct 14, 2009, at 8:18 AM, Satish Kumar P wrote: > >> Notifications are not disabled at Nagios level (nagios.cfg). Nagios is >> working properly for all other hosts and services, except this strange >> issue I mentioned. >> I verified the service status from the GUI, notifications are NOT >> disabled for this service and for the host also. > > Hmmm. Everything you've posted indicated nagios would have sent a > notification for this service (unless I've missed something). > > - ? ? ? Is the 24x7 timeperiod _really_ 24x7? > - ? ? ? Are the log entries related to the service you posted complete? You > see no SERVICE NOTIFICATION entries for this service or any other > entries? > - ? ? ? Please post the programstatus{} from status.dat. > - ? ? ? Please post the command definition and other information for this > service from objects.cache and status.dat. > Thanks for all the suggestions and insight. Actually, we traced the problem. It seems, one of our team members disabled the notifications temporarily during that period, due to which Nagios didn't send out alerts. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justinp at norchemlab.com Thu Oct 15 17:24:32 2009 From: justinp at norchemlab.com (Justin Pryzby) Date: Thu, 15 Oct 2009 08:24:32 -0700 Subject: nagios3 problem in debian lenny In-Reply-To: <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> References: <4AD6E596.9060005@infoservices.in> <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> Message-ID: <20091015152432.GA8968@norchemlab.com> On Thu, Oct 15, 2009 at 04:19:17PM +0200, Joseph Lundback wrote: > > > Dear all , > > > > started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after > > successfully authentication ( by htpassd file ) nagios reports > > > > `````````````````````````````` > > *Error: Could not read object configuration data! > > I'm no Nagios guru, just a novice nagios user. > But I've gotten that error message when I've had permission issues. See /u/s/doc/nagios3/README.Debian. Justin ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Oct 15 18:23:58 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 15 Oct 2009 09:23:58 -0700 Subject: nagios web GUI dispay delay and mismatch In-Reply-To: <200910151138.37317.assaf.flatto@ssp-intl.com> References: <200910151138.37317.assaf.flatto@ssp-intl.com> Message-ID: <4AD74C9E.3050801@hp.com> Assaf Flatto wrote: > Hello List > > I have a peculiar issue of a mismatch between the nagios GUI and the actual data in the log files . > > Let me give a bit of background , i found that some of my server check ( check_host_ alive) have not > been done for a large period of time ( 10 month) , so changed the configuration ( below ) of nagios > to force it to do host check and service checks at least once in 10 minutes . > > Ever since then nagios web GUi is not displaying a "true" status of the network : comments are not > removed , alerts are recovered in the logs but still appear as faulty on the web GUI . > Usually, this indicates you're running two instances of Nagios at the same time. Try shutting Nagios down completely (verify all processes are stopped), and start it back up. The problem will probably go away. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lmw94002 at hotmail.com Thu Oct 15 18:26:55 2009 From: lmw94002 at hotmail.com (Mathew Walker) Date: Thu, 15 Oct 2009 12:26:55 -0400 Subject: Disabling Notifcations... In-Reply-To: <20091015152432.GA8968@norchemlab.com> References: <4AD6E596.9060005@infoservices.in> <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> Message-ID: Ok, been a long week and maybe i'm just overlooking something... Defined a service on a host like such... define service{ use my_template host_name my_host notifications_enabled 0 service_description my_service check_command my_check!my_variables } However, notificaitons are NOT disabled. I previously had them enabled and am now disabling them after the fact via the config file. Sure my_template has notifications ENABLED, but my service definition should override that setting. I have the issue on several checks and I have fixed it by going into the retention.dat file and blowing out the line about notifications and restarting nagios. My theory is I previously disabled and renabled notifications via the webGUI, then updated the configuration file to disable... and that last GUI "enabled" is somehow overriding the one in the config file that says it should be disabled. Am I right? Crazy? Just doesn't seem to work as I think it would. -- Mat W. - http://www.techadre.com _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. http://clk.atdmt.com/GBL/go/171222986/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 18:52:35 2009 From: marc at ena.com (Marc Powell) Date: Thu, 15 Oct 2009 11:52:35 -0500 Subject: Disabling Notifcations... In-Reply-To: References: <4AD6E596.9060005@infoservices.in> <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> Message-ID: On Oct 15, 2009, at 11:26 AM, Mathew Walker wrote: > My theory is I previously disabled and renabled notifications via > the webGUI, then updated the configuration file to disable... and > that last GUI "enabled" is somehow overriding the one in the config > file that says it should be disabled. > > Am I right? Crazy? Just doesn't seem to work as I think it would. No, you're not crazy. That scenario is correct. See Retention Notes at http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html . That behavior is required to reliably and consistently maintain dynamic settings across restarts. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lmw94002 at hotmail.com Thu Oct 15 19:28:14 2009 From: lmw94002 at hotmail.com (Mathew Walker) Date: Thu, 15 Oct 2009 13:28:14 -0400 Subject: Disabling Notifcations... In-Reply-To: References: <4AD6E596.9060005@infoservices.in> <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> Message-ID: ahhh, right... I thought I had read that somewhere, and I did. thanks. i think the retain_nonstatus_information will work for me in this scenario. -- Mat W. - http://www.techadre.com > From: marc at ena.com > Date: Thu, 15 Oct 2009 11:52:35 -0500 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Disabling Notifcations... > > > On Oct 15, 2009, at 11:26 AM, Mathew Walker wrote: > > > My theory is I previously disabled and renabled notifications via > > the webGUI, then updated the configuration file to disable... and > > that last GUI "enabled" is somehow overriding the one in the config > > file that says it should be disabled. > > > > Am I right? Crazy? Just doesn't seem to work as I think it would. > > No, you're not crazy. That scenario is correct. See Retention Notes at http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html > . That behavior is required to reliably and consistently maintain > dynamic settings across restarts. > > -- > Marc > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. http://clk.atdmt.com/GBL/go/171222985/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kgoutos at libertymgt.com Thu Oct 15 22:40:54 2009 From: kgoutos at libertymgt.com (Goutos, Kevin) Date: Thu, 15 Oct 2009 16:40:54 -0400 Subject: Nagios Notifications not being Sent Out Message-ID: Hello all, First off, I really appreciate any feedback you can provide. I've just recently started working with Nagios and everything is working great, except for notifications being sent out. I've been searching all over the net, comparing my configurations with others to see if there was anything noticeable I was missing, but I can't seem to find anything. I've included my configuration files below for you to look at. I have been able to send a mail from the server (CentOS 5.3) using sendmail. I can also successfully send Email using the E-mail commands in the commands.cfg file. /usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ Everything is being monitored correctly, just for some reason the E-mails are not being sent out. I should also note that if I do a "Send custom host notification " in nagios on a host that has a critical warning, I DO get an E-mail successfully. It's just not automatically sending them out. Below is from /var/log/messaging. That shows a test host I've been using, I don't see anything in there about sending out a notification though..don't know if I should be. .. Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;CPU Load;OK;HARD;1;CPU Load 2% (5 min average) Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Memory Usage;OK;HARD;1;Memory usage: total:2440.61 Mb - used: 402.64 Mb (16%) - free: 2037.97 Mb (84%) Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;NSClient++ Version;OK;HARD;1;NSClient++ 0.3.6.818 2009-06-14 Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;System Uptime;OK;HARD;1;System Uptime - 1 day(s) 18 hour(s) 57 minute(s) Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Used Disk Space;OK;HARD;1;c:\ - total: 37.26 Gb - used: 21.69 Gb (58%) - free 15.57 Gb (42%) Oct 15 16:12:00 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Ping Test;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 3.62 ms Oct 15 16:12:00 nagios nagios: HOST ALERT: AUSTIN-LAPTOP;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.55 ms Is there something obvious I am missing in the config files? I appreciate the help, please let me know what you think. Thank you!!! Kevin Templates.cfg ######################################################################## ####### ######################################################################## ####### # # CONTACT TEMPLATES # ######################################################################## ####### ######################################################################## ####### define contact{ name generic-contact ; The name of this contact template host_notifications_enabled 1 service_notifications_enabled 1 host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email service_notification_period 24x7 ; service notifications can be sent anytime host_notification_period 24x7 ; host notifications can be sent anytime service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events host_notification_options w,u,c,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE! } ######################################################################## ####### ######################################################################## ####### # # HOST TEMPLATES # ######################################################################## ####### ######################################################################## ####### # Generic host definition template - This is NOT a real host, just a template! define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts notification_period 24x7 ; Send host notifications at any time check_period 24x7 ; By default, Linux hosts are checked round the clock check_interval 1 ; Actively check the host every 1 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day notification_interval 120 ; Resend notifications every 2 hours notification_options w,u,c,r,f,s ; Only send notifications for specific host states contact_groups libertyadminsgroup ; Notifications get sent to the admins by default register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # Windows host definition template - This is NOT a real host, just a template! define host{ name windows-server ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, Windows servers are monitored round the clock check_interval 1 ; Actively check the server every 1 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each server 10 times (max) check_command check-host-alive ; Default command to check if servers are "alive" notification_period 24x7 ; Send notification out at any time - day or night notification_interval 60 ; Resend notifications every 30 minutes notification_options w,u,c,r,f,s ; Only send notifications for specific host states contact_groups libertyadminsgroup ; Notifications get sent to the admins by default hostgroups windows-servers ; Host groups that Windows servers should be a member of register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } # Define a template for switches that we can reuse define host{ name switches ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, switches are monitored round the clock check_interval 5 ; Switches are checked every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each switch 10 times (max) check_command check-host-alive ; Default command to check if routers are "alive" notification_period 24x7 ; Send notifications at any time notification_interval 30 ; Resend notifications every 30 minutes notification_options w,u,c,r,f,s ; Only send notifications for specific host states contact_groups libertyadminsgroup ; Notifications get sent to the admins by default hostgroups switches register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } define host{ name routers ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, switches are monitored round the clock check_interval 5 ; Switches are checked every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each switch 10 times (max) check_command check-host-alive ; Default command to check if routers are "alive" notification_period 24x7 ; Send notifications at any time notification_interval 30 ; Resend notifications every 30 minutes notification_options w,u,c,r,f,s ; Only send notifications for specific host states contact_groups libertyadminsgroup ; Notifications get sent to the admins by default hostgroups routers register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } ######################################################################## ####### ######################################################################## ####### # # SERVICE TEMPLATES # ######################################################################## ####### ######################################################################## ####### # Generic service definition template - This is NOT a real service, just a template! define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 ; The service is not volatile check_period 24x7 ; The service can be checked at any time of the day max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state normal_check_interval 3 ; Check the service every 10 minutes under normal conditions retry_check_interval 1 ; Re-check the service every two minutes until a hard state can be determined contact_groups libertyadminsgroup ; Notifications get sent out to everyone in the 'admins' group notification_options w,u,c,r,f,s ; Send notifications about warning, unknown, critical, and recovery events notification_interval 60 ; Re-notify about service problems every hour notification_period 24x7 ; Notifications can be sent out at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } Commands.cfg # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Services.cfg define service{ use generic-service hostgroup_name windows-servers service_description System Uptime check_command check_nt!UPTIME } define service{ use generic-service hostgroup_name windows-servers service_description CPU Load check_command check_nt!CPULOAD!-l 5,80,90 } define service{ use generic-service hostgroup_name windows-servers service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 } define service{ use generic-service hostgroup_name windows-servers service_description Used Disk Space check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 } define service{ use generic-service hostgroup_name windows-servers service_description Ping Test check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups libertyadminsgroup notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service } Hosts.cfg (just included one of many) define host{ use windows-server ; Inherit default values from a template host_name NAME ; The name we're giving to this host alias NAME ; A longer name associated with the host address ; IP address of the host } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 15 23:36:05 2009 From: marc at ena.com (Marc Powell) Date: Thu, 15 Oct 2009 16:36:05 -0500 Subject: Nagios Notifications not being Sent Out In-Reply-To: References: Message-ID: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com> On Oct 15, 2009, at 3:40 PM, Goutos, Kevin wrote: > Hello all, Hello. > That shows a test host I?ve been using, I don?t see anything in > there about sending out a notification though..don?t know if I > should be. .. > > > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;CPU > Load;OK;HARD;1;CPU Load 2% (5 min average) > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Memory > Usage;OK;HARD;1;Memory usage: total:2440.61 Mb - used: 402.64 Mb > (16%) - free: 2037.97 Mb (84%) > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;NSClient+ > + Version;OK;HARD;1;NSClient++ 0.3.6.818 2009-06-14 > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;System > Uptime;OK;HARD;1;System Uptime - 1 day(s) 18 hour(s) 57 minute(s) > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Used > Disk Space;OK;HARD;1;c:\ - total: 37.26 Gb - used: 21.69 Gb (58%) - > free 15.57 Gb (42%) > Oct 15 16:12:00 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Ping > Test;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 3.62 ms > Oct 15 16:12:00 nagios nagios: HOST ALERT: AUSTIN-LAPTOP;UP;HARD; > 1;PING OK - Packet loss = 0%, RTA = 0.55 ms These are all OK states. Do you have any examples of non-OK states when you expect a notification to have been sent? Please also provide a few entries prior to the state change and all the way through from SOFT to HARD state. > define contact{ > name generic-contact ; The > name of this contact template > > host_notification_options w,u,c,r,f,s ; > send notifications for all host states, flapping events, and > scheduled downtime events w and c are not valid for host_notification_options. You want 'd' instead. > define host{ > name generic-host > notification_options w,u,c,r,f,s ; > Only send notifications for specific host states w and c are not valid for host notification_options. You want 'd' instead. Check all your host templates. > contact_groups libertyadminsgroup ; > Notifications get sent to the admins by default > register 0 ; DONT > REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > } I am assuming that the members of the libertyadminsgroup all use the generic-contact template you provided with minimal modifications. It wouldn't hurt to provide the complete object for this and a sample problem service from both objects.cache and status.dat when the problem occurs. - Verify that notifications are enabled program-wide in nagios.cfg - Verify that it hasn't been disabled via the GUI (Program Status) - Verify that notifications for the specific service haven't been disabled via the GUI (click on them and look or look for them in status.dat) - See the 'Query regarding Nagios notification' thread from yesterday so we don't have to repeat further. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vmanojv at rediffmail.com Fri Oct 16 06:52:30 2009 From: vmanojv at rediffmail.com (Nair) Date: 16 Oct 2009 04:52:30 -0000 Subject: =?utf-8?q?Avoid_Dashboard_Display?= Message-ID: <20091016045230.58872.qmail@f5mail-236-219.rediffmail.com> Hi Friends Any idea how can we avoid a service being displayed in Nagios dashboard. Thank you Nair -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Oct 16 11:25:01 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Fri, 16 Oct 2009 02:25:01 -0700 Subject: Error 126 and 127 on multiple commands Message-ID: <4AD83BED.50002@hp.com> I've been running Nagios for years, and today have run into an issue that's got me banging my head against a wall. I've got a distributed setup, basically with two Nagios 3.1.0 machines on Red Hat EL4 running the same checks simultaneously. Today they both started reporting a return code of 126 or 127 for various commands that are not missing, and do not have permissions that would not allow Nagios to run them. For example, this happens whenever a notification is attempted: [1255684343] Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\nNotification Number: 2\n\nService: MYSERVICE\nHost: myhost\nAddress: myhost.edited.com\nState: CRITICAL\n\nDate/Time: Fri Oct 16 02:12:22 PDT 2009\n\nAdditional Info:\n\n(Return code of 127 is out of bounds - plugin may be missing)\n\nComment: : \n\nWiki: https://wiki.link\n\nNagios: https://nagios/nagios/cgi-bin/extinfo.cgi?type=2&host=myhost&service=MYSERVICE" | /bin/mail -s "PROBLEM: myhost/MYSERVICE CRITICAL **" noc at mydomain.com" resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... If I use "su - nagios" and copy and paste the failed command at a command prompt, it works. The notification commands very consistently return a 127, while various checks (but not all of them) will return a 126 or a 127. Stranger, the same exact plugin (check_http, for example) may work fine for one service, but return an error code for another. Now, my installation on this instance of Nagios is pretty large: 548 hosts and about 8500 services. The same check configurations and plugins, however, are synched across 24 other Nagios boxes and assigned to different hosts, and those all work just fine. It's just this, my biggest installation, where they've started failing. This feels to me like I've hit some sort of capacity limitation. I've pared down some things (like cutting a complicated escalation configuration from 24,000 escalations to 3,500), but that didn't help. I've offloaded half the checks to another system that submits passive results over nsca, but that didn't help either. I've played with a lot of tuning settings like limiting concurrent checks, spacing out an aggressively tuned check schedule, and generally just screwing with stuff, but nothing's worked, and I'm wondering if someone's run into this sort of thing before, and might be able to point me at something I haven't tried yet. For the record, there's no SELinux involved, and nothing unusual in the system logs. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Oct 16 12:44:52 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Fri, 16 Oct 2009 03:44:52 -0700 Subject: Error 126 and 127 on multiple commands In-Reply-To: <4AD83BED.50002@hp.com> References: <4AD83BED.50002@hp.com> Message-ID: <4AD84EA4.4080403@hp.com> Morris, Patrick wrote: > I've been running Nagios for years, and today have run into an issue > that's got me banging my head against a wall. > > I've got a distributed setup, basically with two Nagios 3.1.0 machines > on Red Hat EL4 running the same checks simultaneously. Today they both > started reporting a return code of 126 or 127 for various commands that > are not missing, and do not have permissions that would not allow Nagios > to run them. > > For example, this happens whenever a notification is attempted: > > [1255684343] Warning: Attempting to execute the command "/usr/bin/printf > "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\nNotification > Number: 2\n\nService: MYSERVICE\nHost: myhost\nAddress: > myhost.edited.com\nState: CRITICAL\n\nDate/Time: Fri Oct 16 02:12:22 PDT > 2009\n\nAdditional Info:\n\n(Return code of 127 is out of bounds - > plugin may be missing)\n\nComment: : \n\nWiki: > https://wiki.link\n\nNagios: > https://nagios/nagios/cgi-bin/extinfo.cgi?type=2&host=myhost&service=MYSERVICE" > | /bin/mail -s "PROBLEM: myhost/MYSERVICE CRITICAL **" noc at mydomain.com" > resulted in a return code of 127. Make sure the script or binary you > are trying to execute actually exists... > > If I use "su - nagios" and copy and paste the failed command at a > command prompt, it works. The notification commands very consistently > return a 127, while various checks (but not all of them) will return a > 126 or a 127. > > Stranger, the same exact plugin (check_http, for example) may work fine > for one service, but return an error code for another. > > Now, my installation on this instance of Nagios is pretty large: 548 > hosts and about 8500 services. The same check configurations and > plugins, however, are synched across 24 other Nagios boxes and assigned > to different hosts, and those all work just fine. It's just this, my > biggest installation, where they've started failing. > > This feels to me like I've hit some sort of capacity limitation. I've > pared down some things (like cutting a complicated escalation > configuration from 24,000 escalations to 3,500), but that didn't help. > I've offloaded half the checks to another system that submits passive > results over nsca, but that didn't help either. > > I've played with a lot of tuning settings like limiting concurrent > checks, spacing out an aggressively tuned check schedule, and generally > just screwing with stuff, but nothing's worked, and I'm wondering if > someone's run into this sort of thing before, and might be able to point > me at something I haven't tried yet. > > For the record, there's no SELinux involved, and nothing unusual in the > system logs. > A little more data after fighting with this all night: That same notification command above? It works sometimes, but not others. For example, I'm getting notifications from the passive checks I offloaded to another machine, but not from some (but not all) of the checks run locally, using the exact same notification command defined as service_check_via_email in my configs. I've tried bumping up the available file handles and setting a higher 'ulimit -n' in the startup script, clearing out all the saved status and perfdata info, and threatening to replace the whole system with an old dusty copy of Netsaint, but still no progress. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Fri Oct 16 13:45:02 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Fri, 16 Oct 2009 17:15:02 +0530 Subject: nagios3 problem in debian lenny In-Reply-To: <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> References: <4AD6E596.9060005@infoservices.in> <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> Message-ID: <4AD85CBE.90604@infoservices.in> Joseph Lundback wrote: >> Dear all , >> >> I have the second opportunity to configure nagios3 in a debian lenny >> server. I did the configuration 2 yr ago on a clark-connect server. >> To get a vary basic working nagios I simply followed the default >> settings. I have installed nagios; created htpasswd file and then >> started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after >> successfully authentication ( by htpassd file ) nagios reports >> >> `````````````````````````````` >> *Error: Could not read object configuration data! >> ````````````````````````````````` >> >> Though the basic localhost cfg file is already there at >> /etc/nagios3/conf.d/ and it is already included at nagios.cfg as >> >> cfg_dir=/etc/nagios3/conf.d >> >> Any clue please ? >> * >> > > > I'm no Nagios guru, just a novice nagios user. > But I've gotten that error message when I've had permission issues. > > > /Joseph > > Hello Joseph, Thanks for your response. Your assumption is correct. I have configured apache here to run as wwwrun:www which is different from the debian default settings www-data:www-data. I have purged nagios3 and install it again and catched the information as below `````````````````````````````````````````````````````````` chown: invalid group: `nagios:www-data' dpkg: error processing nagios3-common (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of nagios3: nagios3 depends on nagios3-common (= 3.0.6-4~lenny2); however: Package nagios3-common is not configured yet. dpkg: error processing nagios3 (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: nagios3-common nagios3 ``````````````````````````````````````````````````````````` So nagios-common is not configured properly and the permission problem is there. Any idea to cope with this issue ? Thanks ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 16 14:05:38 2009 From: marc at ena.com (Marc Powell) Date: Fri, 16 Oct 2009 07:05:38 -0500 Subject: Avoid Dashboard Display In-Reply-To: <20091016045230.58872.qmail@f5mail-236-219.rediffmail.com> References: <20091016045230.58872.qmail@f5mail-236-219.rediffmail.com> Message-ID: <2A0FE867-48E3-4F0C-A241-EAE345BE7D21@ena.com> On Oct 15, 2009, at 11:52 PM, Nair wrote: > Hi Friends > > Any idea how can we avoid a service being displayed in Nagios > dashboard. Use authentication and assign the service a contact name different than what you use to log in. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kgoutos at libertymgt.com Fri Oct 16 16:31:27 2009 From: kgoutos at libertymgt.com (Goutos, Kevin) Date: Fri, 16 Oct 2009 10:31:27 -0400 Subject: Nagios Notifications not being Sent Out In-Reply-To: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com> References: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com> Message-ID: Thanks for the reply Marc. I do have some good news. I did receive a notification last night for a flapping alert. However, it still is not sending out alerts from being down, returning to up state, etc... [1255678430] SERVICE FLAPPING ALERT: AUSTIN-LAPTOP;CPU Load;STOPPED; Service appears to have stopped flapping (4.0% change < 5.0% threshold) [1255678430] SERVICE NOTIFICATION: libertyadmins;AUSTIN-LAPTOP;CPU Load;FLAPPINGSTOP (CRITICAL);notify-service-by-email;No route to host If I look at this portion of the log....It seems there should be notifications sent out, but none were.. [1255547104] HOST ALERT: CORP-NSS;DOWN;SOFT;1;CRITICAL - Host Unreachable (IP ADDRESS) [1255547104] SERVICE ALERT: CORP-NSS;CPU Load;CRITICAL;HARD;1;No route to host [1255547104] SERVICE ALERT: CORP-NSS;NSClient++ Version;CRITICAL;HARD;1;No route to host [1255547174] HOST ALERT: CORP-NSS;DOWN;SOFT;2;CRITICAL - Host Unreachable (IP ADDRESS) [1255547234] SERVICE ALERT: CORP-NSS;Ping Test;CRITICAL;HARD;1;CRITICAL - Host Unreachable (IP ADDRESS) [1255547244] HOST ALERT: CORP-NSS;DOWN;SOFT;3;CRITICAL - Host Unreachable (IP ADDRESS) [1255547314] HOST ALERT: CORP-NSS;DOWN;SOFT;4;CRITICAL - Host Unreachable (IP ADDRESS) [1255547384] HOST ALERT: CORP-NSS;DOWN;SOFT;5;CRITICAL - Host Unreachable (IP ADDRESS) [1255547454] HOST ALERT: CORP-NSS;DOWN;SOFT;6;CRITICAL - Host Unreachable (IP ADDRESS) [1255547474] SERVICE ALERT: CORP-NSS;Used Disk Space;CRITICAL;HARD;1;No route to host [1255547474] SERVICE ALERT: CORP-NSS;System Uptime;CRITICAL;HARD;1;No route to host [1255547524] HOST ALERT: CORP-NSS;DOWN;SOFT;7;CRITICAL - Host Unreachable (IP ADDRESS) [1255547584] SERVICE ALERT: CORP-NSS;Memory Usage;CRITICAL;HARD;1;No route to host [1255547594] HOST ALERT: CORP-NSS;DOWN;SOFT;8;CRITICAL - Host Unreachable (IP ADDRESS) [1255547664] HOST ALERT: CORP-NSS;DOWN;SOFT;9;CRITICAL - Host Unreachable (IP ADDRESS) [1255547734] HOST ALERT: CORP-NSS;DOWN;HARD;10;CRITICAL - Host Unreachable (IP ADDRESS) [1255556204] HOST ALERT: CORP-NSS;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 10.40 ms [1255556234] SERVICE ALERT: CORP-NSS;Ping Test;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 7.97 ms I did remove the w and c options and replaced them with 'd' where you noted. "I am assuming that the members of the libertyadminsgroup all use the generic-contact template you provided with minimal modifications. It wouldn't hurt to provide the complete object for this and a sample problem service from both objects.cache and status.dat when the problem occurs." That is correct, the libertadminsgroup right now is just my E-mail address and I'm using the generic contact template. Here is something I don't understand...what I pasted below is from objects.cache. Why does that show service and host notifications set as only f,s? Below that I'll show what I have for contacts.cfg Objects.cache define contact { contact_name libertyadmins alias Liberty Admins service_notification_period 24x7 host_notification_period 24x7 service_notification_options f,s host_notification_options f,s service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email email kgoutos at libertymgt.com host_notifications_enabled 1 service_notifications_enabled 1 can_submit_commands 1 retain_status_information 1 retain_nonstatus_information 1 } Contacts.cfg define contact{ contact_name libertyadmins ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias Liberty Admins ; Full name of user host_notifications_enabled 1 service_notifications_enabled 1 host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,u,r,f,s service_notification_options d,u,r,f,s email kgoutos at libertymgt.com ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ****** } This is from status.dat hoststatus { host_name=AUSTIN-LAPTOP modified_attributes=0 check_command=check-host-alive check_period=24x7 notification_period=24x7 check_interval=1.000000 retry_interval=1.000000 event_handler= has_been_checked=1 should_be_scheduled=1 check_execution_time=4.027 check_latency=0.301 check_type=0 current_state=0 last_hard_state=0 last_event_id=906 current_event_id=933 current_problem_id=0 last_problem_id=339 plugin_output=PING OK - Packet loss = 0%, RTA = 20.01 ms long_plugin_output= performance_data=rta=20.006001ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0 last_check=1255702500 next_check=1255702570 check_options=0 current_attempt=1 max_attempts=10 state_type=1 last_state_change=1255701660 last_hard_state_change=1255701660 last_time_up=1255702510 last_time_down=1255701600 last_time_unreachable=0 last_notification=0 next_notification=0 no_more_notifications=0 current_notification_number=0 current_notification_id=89769 notifications_enabled=1 problem_has_been_acknowledged=0 acknowledgement_type=0 active_checks_enabled=1 passive_checks_enabled=1 event_handler_enabled=1 flap_detection_enabled=1 failure_prediction_enabled=1 process_performance_data=1 obsess_over_host=1 last_update=1255702560 is_flapping=0 percent_state_change=4.54 scheduled_downtime_depth=0 } This is from Nagios.log....I simply unplugged "AUSTIN-LAPTOP" (My test machine) [1255703030] SERVICE ALERT: AUSTIN-LAPTOP;System Uptime;CRITICAL;HARD;1;No route to host [1255703030] SERVICE ALERT: AUSTIN-LAPTOP;Memory Usage;CRITICAL;HARD;1;No route to host [1255703030] SERVICE ALERT: AUSTIN-LAPTOP;Ping Test;CRITICAL;HARD;1;CRITICAL - Host Unreachable (192.168.95.232) [1255703040] SERVICE ALERT: AUSTIN-LAPTOP;NSClient++ Version;CRITICAL;HARD;1;No route to host [1255703040] SERVICE ALERT: AUSTIN-LAPTOP;Used Disk Space;CRITICAL;HARD;1;No route to host That's all I see in the log, nothing about notifications or anything. - Verify that notifications are enabled program-wide in nagios.cfg. I was able to confirm everything was enabled. - Verify that it hasn't been disabled via the GUI (Program Status) Also confirmed. - Verify that notifications for the specific service haven't been disabled via the GUI (click on them and look or look for them in status.dat) Confirmed. - See the 'Query regarding Nagios notification' thread from yesterday so we don't have to repeat further. I reveiwed this thread, double checked everything he was having trouble with. Thank you very much for the help! Please let me know if you need any other information! -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, October 15, 2009 5:36 PM To: Nagios-users at lists.sourceforge.net users Subject: Re: [Nagios-users] Nagios Notifications not being Sent Out On Oct 15, 2009, at 3:40 PM, Goutos, Kevin wrote: > Hello all, Hello. > That shows a test host I've been using, I don't see anything in > there about sending out a notification though..don't know if I > should be. .. > > > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;CPU > Load;OK;HARD;1;CPU Load 2% (5 min average) > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Memory > Usage;OK;HARD;1;Memory usage: total:2440.61 Mb - used: 402.64 Mb > (16%) - free: 2037.97 Mb (84%) > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;NSClient+ > + Version;OK;HARD;1;NSClient++ 0.3.6.818 2009-06-14 > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;System > Uptime;OK;HARD;1;System Uptime - 1 day(s) 18 hour(s) 57 minute(s) > Oct 15 16:11:50 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Used > Disk Space;OK;HARD;1;c:\ - total: 37.26 Gb - used: 21.69 Gb (58%) - > free 15.57 Gb (42%) > Oct 15 16:12:00 nagios nagios: SERVICE ALERT: AUSTIN-LAPTOP;Ping > Test;OK;HARD;1;PING OK - Packet loss = 0%, RTA = 3.62 ms > Oct 15 16:12:00 nagios nagios: HOST ALERT: AUSTIN-LAPTOP;UP;HARD; > 1;PING OK - Packet loss = 0%, RTA = 0.55 ms These are all OK states. Do you have any examples of non-OK states when you expect a notification to have been sent? Please also provide a few entries prior to the state change and all the way through from SOFT to HARD state. > define contact{ > name generic-contact ; The > name of this contact template > > host_notification_options w,u,c,r,f,s ; > send notifications for all host states, flapping events, and > scheduled downtime events w and c are not valid for host_notification_options. You want 'd' instead. > define host{ > name generic-host > notification_options w,u,c,r,f,s ; > Only send notifications for specific host states w and c are not valid for host notification_options. You want 'd' instead. Check all your host templates. > contact_groups libertyadminsgroup ; > Notifications get sent to the admins by default > register 0 ; DONT > REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > } I am assuming that the members of the libertyadminsgroup all use the generic-contact template you provided with minimal modifications. It wouldn't hurt to provide the complete object for this and a sample problem service from both objects.cache and status.dat when the problem occurs. - Verify that notifications are enabled program-wide in nagios.cfg - Verify that it hasn't been disabled via the GUI (Program Status) - Verify that notifications for the specific service haven't been disabled via the GUI (click on them and look or look for them in status.dat) - See the 'Query regarding Nagios notification' thread from yesterday so we don't have to repeat further. -- Marc ------------------------------------------------------------------------ ------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benamar.mohamed at free.fr Fri Oct 16 17:51:56 2009 From: benamar.mohamed at free.fr (ben amar) Date: Fri, 16 Oct 2009 17:51:56 +0200 Subject: Supervision CRLS PKI In-Reply-To: References: Message-ID: <4132.07117603651$1255708818@news.gmane.org> Hello, I would like to monitor Nagios by: 1) the expiry date of CRLS our PKI Root and emmetrices 2) accessibility and the presence of our PKI CRLS published in our Active Directory For example for one of our PKI called the Portfolio AC Agents 92 it is actually checking the URL on our server LDAP Active Directory where we published the CRLS: ldap: / / / CN = AC% 20Agents% 20CG92, CN = CDP, CN = Public% 20Key% 20Services, CN = Services, CN = Configuration, DC = cg92, DC = loc? certificateRevocationList? basis? objectclass = cRLDistributionPoints Before implementing the order on the Nagios server-centreon I started testing online ordering from the Nagios server-Centreon, like this: . / check_http -H helios-H ldap: / / / CN = AC% 20Agents% 20CG92, CN = CDP, CN = Public% 20Key% 20Services, CN = Services, CN = Configuration, DC = cg92, DC = loc? certificateRevocationList ? basis? objectclass = cRLDistributionPoints But it did not work. helios is the name of my server Active Directory. I do not find a plug at the sereur Centreon behalf. / check_ldap? Thank you for telling me how to supervise the CRLS (CRL ceretificats) who are at di Active Directory server. Best regards ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eemerson at safecore.com Sat Oct 17 12:25:37 2009 From: eemerson at safecore.com (Eric Emerson) Date: Sat, 17 Oct 2009 06:25:37 -0400 Subject: Problem with Reschedule of Service Message-ID: Nagios Version: 3.1.2, June 23, 2009 OS Version: Fedora release 11 (Leonidas) Hi, I am pretty sure I am having experiencing this: http://tracker.nagios.org/view.php?id=31 It looks a patch was made available on 2009-08-10 12:57 but I cannot seem to find it. Can someone please point me in a direction? Thanks Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mad at b-care.net Mon Oct 19 17:08:26 2009 From: mad at b-care.net (=?ISO-8859-1?Q?Marc-Andr=E9?= Doll) Date: Mon, 19 Oct 2009 17:08:26 +0200 Subject: Nagios and PerfMon Message-ID: <1255964906.3631.12.camel@MADness> Hi list, First, please forgive me if some had already answered this bu I wasn't able to find some answers. I have to query Windows' perfmon agent from Nagios. Is there a way to realize such a thing or have I to install an agent like NSClient++ and then querying it with check_nt? Sorry to bother you with that (naive) question Marc-Andr? ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From faugusto.ti at gmail.com Mon Oct 19 17:59:13 2009 From: faugusto.ti at gmail.com (Fernando - IT) Date: Mon, 19 Oct 2009 13:59:13 -0200 Subject: Contact x One notification only Message-ID: Hi everybody, I need a help to configure a contact to receive only one notification only. How I can do this configuration on Nagios? For example: Contact: Ticket.System at internal.inet Contact: Admin at internal.inet When a host/service goes down, I need to send notifications and repetitions normally for contact Admin, but for contact ticket.system I can only send a one notification, to be registered on my internal Ticket System. The same will be applied for warning, recovery, downtime, acknowledge, etc.. Thanks a lot -- []'s Fernando -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Mon Oct 19 18:10:36 2009 From: mmelin at gmail.com (Martin Melin) Date: Mon, 19 Oct 2009 18:10:36 +0200 Subject: Contact x One notification only In-Reply-To: References: Message-ID: Hello, Use first_notification and last_notification in the escalation definition: http://nagios.sourceforge.net/docs/3_0/escalations.html Regards, Martin Melin On Mon, Oct 19, 2009 at 5:59 PM, Fernando - IT wrote: > Hi everybody, > > I need a help to configure a contact to receive only one notification > only. How I can do this configuration on Nagios? > > For example: > > Contact: Ticket.System at internal.inet > Contact: Admin at internal.inet > > When a host/service goes down, I need to send notifications and repetitions > normally for contact Admin, but for contact ticket.system I can only send a > one notification, to be registered on my internal Ticket System. > > The same will be applied for warning, recovery, downtime, acknowledge, > etc.. > > Thanks a lot > > -- > []'s > Fernando > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Mon Oct 19 18:26:47 2009 From: mmelin at gmail.com (Martin Melin) Date: Mon, 19 Oct 2009 18:26:47 +0200 Subject: Contact x One notification only In-Reply-To: References: Message-ID: Hello, Please reply to the list so that everyone can benefit from the answers. Simply define one escalation matching all services/hosts by using wildcards. http://nagios.sourceforge.net/docs/3_0/objecttricks.html Regards, Martin Melin On Mon, Oct 19, 2009 at 6:23 PM, Fernando - IT wrote: > Hi Martin, > > But I don't use escalations on my nagios configuration, is possible to > configure a global escalation list? Because the definition say to config a > escalation for each host/service, but the failure for all host/services will > be treated for the same team. > > Thanks > > []'s > Fernando > > > On Mon, Oct 19, 2009 at 2:10 PM, Martin Melin wrote: > >> Hello, >> >> Use first_notification and last_notification in the escalation definition: >> http://nagios.sourceforge.net/docs/3_0/escalations.html >> >> Regards, >> Martin Melin >> >> On Mon, Oct 19, 2009 at 5:59 PM, Fernando - IT wrote: >> >>> Hi everybody, >>> >>> I need a help to configure a contact to receive only one notification >>> only. How I can do this configuration on Nagios? >>> >>> For example: >>> >>> Contact: Ticket.System at internal.inet >>> Contact: Admin at internal.inet >>> >>> When a host/service goes down, I need to send notifications and >>> repetitions normally for contact Admin, but for contact ticket.system I can >>> only send a one notification, to be registered on my internal Ticket System. >>> >>> The same will be applied for warning, recovery, downtime, acknowledge, >>> etc.. >>> >>> Thanks a lot >>> >>> -- >>> []'s >>> Fernando >>> >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >>> >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > -- > []'s > Fernando > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at aspireinternet.co.uk Tue Oct 20 11:36:07 2009 From: nagios at aspireinternet.co.uk (Tony) Date: Tue, 20 Oct 2009 10:36:07 +0100 Subject: Windows Agent - Passive Checks Message-ID: <78781ED5FECA43CB9290F0F2C9734B57@opaltelecom.com> Hi List I've used Nagios for a few years now and up to now have only really monitored Linux servers and Network hardware. However I'm now having to monitor Windows servers more and more, which isn't a problem as there are plenty of Windows agents available to monitor Windows servers. However I was wondering if anyone had come across/written an agent that sits on a Windows server and sends Passive checks to Nagios if say a service stops, no matter what the service is. Rather than having Nagios query the host every x minutes and creating network traffic when there isn't any reason to if all the services Nagios wants to check are up and running. Just a thought... Thanks Tony -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Lundback at touchbet.com.mt Tue Oct 20 12:55:29 2009 From: Joseph.Lundback at touchbet.com.mt (Joseph Lundback) Date: Tue, 20 Oct 2009 12:55:29 +0200 Subject: FW: Nagios and PerfMon Message-ID: <185DD6F6D1E91E4B8D0080D6FAA8B0C775BD746333@TBEXCHANGE.touchbet.local> Forgot to include the list :( My bad > > > Hi list, > > > > First, please forgive me if some had already answered this bu I > wasn't > > able to find some answers. > > > > I have to query Windows' perfmon agent from Nagios. Is there a way to > > realize such a thing or have I to install an agent like NSClient++ > and > > then querying it with check_nt? > > > > Sorry to bother you with that (naive) question > > > > Marc-Andr? > > > > Hi Marc-Andr?, > > > The way I have solved the problem of query Performance Counters in > Windows is to user check_nt and check_nrpe. > > With check_nt you can query the counters directly, here is an example > when I query the SQL Total allocated Pages in memory. > > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s $USER4$ -v > COUNTER -d SHOWALL -l "\\MSSQL\$MSSQL:Buffer Manager\Total > pages","Total allocated pages in memory: %.f" > > > One other way is to use the CheckWMI, where you can use WMI querys to > get the relevant performance data. > Example: > > check_command check_nrpe!CheckWMI!"Query=Select > ProcessorQueueLength from Win32_PerfRawData_PerfOS_System" MaxWarn=2 > MaxCrit=3 > > Hope this helps, > Joseph > > > > > > > --------------------------------------------------------------------- > -- > > ------- > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart > > your > > developing skills, take BlackBerry mobile applications to market and > > stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to > /dev/null The information in this E-mail is confidential. If you are not the intended recipient please notify the sender immediately and delete this E-mail without reading, using or disseminating the information contained in it. Although Touchbet Ltd believes this E-mail and any attachments are free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Touchbet Ltd does not accept any responsibility for any loss or damage arising in any way from its use. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glynastill at yahoo.co.uk Tue Oct 20 13:02:09 2009 From: glynastill at yahoo.co.uk (Glyn Astill) Date: Tue, 20 Oct 2009 11:02:09 +0000 (GMT) Subject: Windows Agent - Passive Checks In-Reply-To: <78781ED5FECA43CB9290F0F2C9734B57@opaltelecom.com> References: <78781ED5FECA43CB9290F0F2C9734B57@opaltelecom.com> Message-ID: <376422.6153.qm@web23603.mail.ird.yahoo.com> --- On Tue, 20/10/09, Tony wrote: > > Hi List > ? > I've used Nagios for a > few years now and up to now > have only really monitored Linux servers and Network > hardware. > However I'm now having > to monitor Windows servers > more and more, which isn't a problem as there are > plenty of Windows agents > available to monitor Windows servers. > ? > However I was wondering if > anyone had come > across/written an agent that sits on a Windows server and > sends Passive checks > to Nagios if say a service stops, no matter what the > service is. Rather than > having Nagios query the host every x minutes and creating > network traffic when > there isn't any reason to if all the services Nagios > wants to check are up and > running. > ? > Just a thought... But how would you know if there was a problem with the entire host running the service? The way other products work is they have a client that connects to the monitoring server periodically to say everything is OK / state issues, and if there's no contact then it raises an issue. I guess you could cludge something - a service check that connects to another process running on the monitoring machine, which in turn listens for reports from hosts.... ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Tue Oct 20 14:03:41 2009 From: subscription at kkeane.com (Kevin Keane) Date: Tue, 20 Oct 2009 05:03:41 -0700 Subject: Windows Agent - Passive Checks In-Reply-To: <78781ED5FECA43CB9290F0F2C9734B57@opaltelecom.com> References: <78781ED5FECA43CB9290F0F2C9734B57@opaltelecom.com> Message-ID: <4ADDA71D.4000506@kkeane.com> I have done exactly that; go to http://www.tntmonitoring.com for more information. The idea actually is a bit more comprehensive; rather than just writing the agent, I made it a package of agent and a number of checks that I found useful; the installer puts it all together. Admittedly, though, the documentation leaves something to be desired... Also, one thing to be aware of is that tntmonitoring wraps the passive check results in an HTTPS link (inside the HTTPS wrapper, it's standard NSCA). This allows you to send checks securely from remote sites without worrying about disclosing information to attackers. Note: I found a few issues with Windows 7 in a few plugins that I am addressing in the next release. Tony wrote: > Hi List > > I've used Nagios for a few years now and up to now have only really > monitored Linux servers and Network hardware. > However I'm now having to monitor Windows servers more and more, which > isn't a problem as there are plenty of Windows agents available to > monitor Windows servers. > > However I was wondering if anyone had come across/written an agent > that sits on a Windows server and sends Passive checks to Nagios if > say a service stops, no matter what the service is. Rather than having > Nagios query the host every x minutes and creating network traffic > when there isn't any reason to if all the services Nagios wants to > check are up and running. > > Just a thought... > > Thanks > Tony -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From anthony at xmanhosting.com.au Tue Oct 20 13:35:43 2009 From: anthony at xmanhosting.com.au (xmanhosting) Date: Tue, 20 Oct 2009 19:35:43 +0800 Subject: Help with install Message-ID: <00a401ca5179$78a2d370$9930fea9@rockinghshs.internal> Hello, I am looking for some installation help/advice I have followed the tutorial here: http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html up to service httpd restart, and it says: [root at onlinebackup ~]# service httpd restart Stopping httpd: [FAILED] Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [FAILED] [root at onlinebackup ~]# I have other software on the server that is using port 80 (Ahsay Online Backup Manager) Do I need to change the port on which Nagios works? If so, how would I do this? I did restart the server, and continued with the tutorial, right up to: http://localhost/nagios/ or http://203.59.254.217/nagios However I get a 404 error page. Is this related to the error message above? Thanks for any help. Kind regards, Anthony ? ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edwin.Zoeller at ama-assn.org Tue Oct 20 14:54:23 2009 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Tue, 20 Oct 2009 07:54:23 -0500 Subject: Notifications Message-ID: I had the following situation come up last week and cannot figure why it happen, so I am hoping that someone out there can shed some light. I have some services that were in scheduled downtime last Saturday. During the scheduled downtime we had a network issue where our core tried to fail over to the secondary. My question is, why did we get pages from Nagios for services that were in downtime mode when this happened? Management is asking. Thanks, Ed P Please consider the environment before printing this e-mail -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pangrazi at gmail.com Tue Oct 20 15:36:48 2009 From: pangrazi at gmail.com (Greg Pangrazio) Date: Tue, 20 Oct 2009 08:36:48 -0500 Subject: Help with install In-Reply-To: <00a401ca5179$78a2d370$9930fea9@rockinghshs.internal> References: <00a401ca5179$78a2d370$9930fea9@rockinghshs.internal> Message-ID: This is not a nagios problem but an apache problem. That message is telling you that there is another service already using that port. You can either change the port apache is bound to in the httpd.conf file, or add another address to the server and bind apache to just that single IP. Details can be found at httpd.apache.org in the docs. Greg Pangrazio pangrazi at gmail.com 2009/10/20 xmanhosting : > Hello, > > I am looking for some installation help/advice > > I have followed?the tutorial here: > > http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html > > > > up to service httpd restart, and it says: > > [root at onlinebackup ~]# service httpd restart > > Stopping httpd: [FAILED] > > Starting httpd: (98)Address already in use: make_sock: could not bind to > address [::]:80 (98)Address already in use: make_sock: could not bind to > address 0.0.0.0:80 no listening sockets available, shutting down Unable to > open logs > > [FAILED] [root at onlinebackup ~]# > > > > I have other software on the server that is using port 80 (Ahsay Online > Backup Manager) > > Do I need to change the port on which Nagios works? If so, how would I do > this? > > I did restart the server, and continued with the tutorial, right up to: > > http://localhost/nagios/ or http://203.59.254.217/nagios > > However I get a 404 error page. > > Is this related to the error message above? > > Thanks for any help. > > Kind regards, > > Anthony > > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Tue Oct 20 16:35:29 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Tue, 20 Oct 2009 14:35:29 +0000 Subject: Help with install In-Reply-To: <00a401ca5179$78a2d370$9930fea9@rockinghshs.internal> References: <00a401ca5179$78a2d370$9930fea9@rockinghshs.internal> Message-ID: <200910201435.29297.assaf.flatto@ssp-intl.com> The error is not related to nagios but to the Apache web server . By default Apache is using port 80 ( default HTTP) and tries to bind it . The other software you are using (Ahsay Online Backup Manager) is using the HTTP port for it's own and hnce the Apache fails to start . You need to configure one or ther other to use another port ( perosnally i'd change the Ahsay) , and then you can have the apache work on port 80 ( as the standard is ) , and you will be able to see the nagios web pages. Assaf On Tuesday 20 October 2009 11:35:43 xmanhosting wrote: > Hello, > > I am looking for some installation help/advice > > I have followed the tutorial here: > > > http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html > > > > up to service httpd restart, and it says: > > [root at onlinebackup ~]# service httpd restart > > Stopping httpd: [FAILED] > > Starting httpd: (98)Address already in use: make_sock: could not bind to > address [::]:80 (98)Address already in use: make_sock: could not bind to > address 0.0.0.0:80 no listening sockets available, shutting down Unable to > open logs > > [FAILED] [root at onlinebackup ~]# > > > > I have other software on the server that is using port 80 (Ahsay Online > Backup Manager) > > Do I need to change the port on which Nagios works? If so, how would I do > this? > > I did restart the server, and continued with the tutorial, right up to: > > http://localhost/nagios/ or > http://203.59.254.217/nagios > > However I get a 404 error page. > > Is this related to the error message above? > > Thanks for any help. > > Kind regards, > > Anthony > > > > ? > > ? -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kgoutos at libertymgt.com Tue Oct 20 16:42:06 2009 From: kgoutos at libertymgt.com (Goutos, Kevin) Date: Tue, 20 Oct 2009 10:42:06 -0400 Subject: Nagios Only Sending out Flapping Alerts Message-ID: Hello all, First off, I really appreciate any feedback you can provide. I've just recently started working with Nagios and everything is working great, except for notifications being sent out. I've been searching all over the net, comparing my configurations with others to see if there was anything noticeable I was missing, but I can't seem to find anything. I've included my configuration files below for you to look at. I have been able to send a mail from the server (CentOS 5.3) using sendmail. I can also successfully send Email using the E-mail commands in the commands.cfg file. [code]/usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ [/code] Everything is being monitored correctly, just for some reason the E-mails are not being sent out. I should also note that if I do a "Send custom host notification" in nagios on a host that has a critical warning, I DO get an E-mail successfully. It's just not automatically sending them out. UPDATE: I do have some good news. I did receive a notification last night for a flapping alert. However, it still is not sending out alerts from being down, returning to up state, etc... [quote] [1255678430] SERVICE FLAPPING ALERT: AUSTIN-LAPTOP;CPU Load;STOPPED; Service appears to have stopped flapping (4.0% change < 5.0% threshold) [1255678430] SERVICE NOTIFICATION: libertyadmins;AUSTIN-LAPTOP;CPU Load;FLAPPINGSTOP (CRITICAL);notify-service-by-email;No route to host[/quote] So it appears I'm receiving flapping alerts, but nothing else. In the Nagios web interface, if I go to Configuration --> Contacts....I can see that under Service Notification Options and Host Configuration Options I only see "Flapping, Downtime" enabled. I'm not getting downtime alerts, but shouldn't there be more options there? Uptime....etc. Is there something obvious I am missing in the config files? I really appreciate the help, please let me know what you think. Templates.cfg ######################################################################## ####### ######################################################################## ####### # # CONTACT TEMPLATES # ######################################################################## ####### ######################################################################## ####### define contact{ name generic-contact ; The name of this contact template host_notifications_enabled 1 service_notifications_enabled 1 host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email service_notification_period 24x7 ; service notifications can be sent anytime host_notification_period 24x7 ; host notifications can be sent anytime service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events host_notification_options w,u,c,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE! } ######################################################################## ####### ######################################################################## ####### # # HOST TEMPLATES # ######################################################################## ####### ######################################################################## ####### # Generic host definition template - This is NOT a real host, just a template! define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts notification_period 24x7 ; Send host notifications at any time check_period 24x7 ; By default, Linux hosts are checked round the clock check_interval 1 ; Actively check the host every 1 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day notification_interval 120 ; Resend notifications every 2 hours notification_options w,u,c,r,f,s ; Only send notifications for specific host states contact_groups libertyadminsgroup ; Notifications get sent to the admins by default register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # Windows host definition template - This is NOT a real host, just a template! define host{ name windows-server ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, Windows servers are monitored round the clock check_interval 1 ; Actively check the server every 1 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each server 10 times (max) check_command check-host-alive ; Default command to check if servers are "alive" notification_period 24x7 ; Send notification out at any time - day or night notification_interval 60 ; Resend notifications every 30 minutes notification_options w,u,c,r,f,s ; Only send notifications for specific host states contact_groups libertyadminsgroup ; Notifications get sent to the admins by default hostgroups windows-servers ; Host groups that Windows servers should be a member of register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } # Define a template for switches that we can reuse define host{ name switches ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, switches are monitored round the clock check_interval 5 ; Switches are checked every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each switch 10 times (max) check_command check-host-alive ; Default command to check if routers are "alive" notification_period 24x7 ; Send notifications at any time notification_interval 30 ; Resend notifications every 30 minutes notification_options w,u,c,r,f,s ; Only send notifications for specific host states contact_groups libertyadminsgroup ; Notifications get sent to the admins by default hostgroups switches register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } define host{ name routers ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, switches are monitored round the clock check_interval 5 ; Switches are checked every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute intervals max_check_attempts 10 ; Check each switch 10 times (max) check_command check-host-alive ; Default command to check if routers are "alive" notification_period 24x7 ; Send notifications at any time notification_interval 30 ; Resend notifications every 30 minutes notification_options w,u,c,r,f,s ; Only send notifications for specific host states contact_groups libertyadminsgroup ; Notifications get sent to the admins by default hostgroups routers register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } ######################################################################## ####### ######################################################################## ####### # # SERVICE TEMPLATES # ######################################################################## ####### ######################################################################## ####### # Generic service definition template - This is NOT a real service, just a template! define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 ; The service is not volatile check_period 24x7 ; The service can be checked at any time of the day max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state normal_check_interval 3 ; Check the service every 10 minutes under normal conditions retry_check_interval 1 ; Re-check the service every two minutes until a hard state can be determined contact_groups libertyadminsgroup ; Notifications get sent out to everyone in the 'admins' group notification_options w,u,c,r,f,s ; Send notifications about warning, unknown, critical, and recovery events notification_interval 60 ; Re-notify about service problems every hour notification_period 24x7 ; Notifications can be sent out at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } Commands.cfg # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } Services.cfg define service{ use generic-service hostgroup_name windows-servers service_description System Uptime check_command check_nt!UPTIME } define service{ use generic-service hostgroup_name windows-servers service_description CPU Load check_command check_nt!CPULOAD!-l 5,80,90 } define service{ use generic-service hostgroup_name windows-servers service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 } define service{ use generic-service hostgroup_name windows-servers service_description Used Disk Space check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 } define service{ use generic-service hostgroup_name windows-servers service_description Ping Test check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups libertyadminsgroup notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service } Hosts.cfg define host{ use windows-server ; Inherit default values from a template host_name NAME ; The name we're giving to this host alias NAME ; A longer name associated with the host address ; IP address of the host } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Leif.Hoppe at hartrodt.com Tue Oct 20 16:52:32 2009 From: Leif.Hoppe at hartrodt.com (DE/HAM Hoppe, Leif) Date: Tue, 20 Oct 2009 16:52:32 +0200 Subject: Nagios Only Sending out Flapping Alerts In-Reply-To: References: Message-ID: <7C2C9D8B57E8144DB9A65851D781E1343AE5809441@DC01MBX.ah.lan> Hi Kevin, May you can attach the contactgroups and contacts config? Maybe you forgot the notification type for warning, critical and so on for the contacts? Regards from Hamburg Leif From: Goutos, Kevin [mailto:kgoutos at libertymgt.com] Sent: Dienstag, 20. Oktober 2009 16:42 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios Only Sending out Flapping Alerts Hello all, First off, I really appreciate any feedback you can provide. I've just recently started working with Nagios and everything is working great, except for notifications being sent out. I've been searching all over the net, comparing my configurations with others to see if there was anything noticeable I was missing, but I can't seem to find anything. I've included my configuration files below for you to look at. I have been able to send a mail from the server (CentOS 5.3) using sendmail. I can also successfully send Email using the E-mail commands in the commands.cfg file. [code]/usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ [/code] Everything is being monitored correctly, just for some reason the E-mails are not being sent out. I should also note that if I do a "Send custom host notification" in nagios on a host that has a critical warning, I DO get an E-mail successfully. It's just not automatically sending them out. UPDATE: I do have some good news. I did receive a notification last night for a flapping alert. However, it still is not sending out alerts from being down, returning to up state, etc... [quote] [1255678430] SERVICE FLAPPING ALERT: AUSTIN-LAPTOP;CPU Load;STOPPED; Service appears to have stopped flapping (4.0% change < 5.0% threshold) [1255678430] SERVICE NOTIFICATION: libertyadmins;AUSTIN-LAPTOP;CPU Load;FLAPPINGSTOP (CRITICAL);notify-service-by-email;No route to host[/quote] So it appears I'm receiving flapping alerts, but nothing else. In the Nagios web interface, if I go to Configuration --> Contacts....I can see that under Service Notification Options and Host Configuration Options I only see "Flapping, Downtime" enabled. I'm not getting downtime alerts, but shouldn't there be more options there? Uptime....etc. Is there something obvious I am missing in the config files? I really appreciate the help, please let me know what you think. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 20 17:27:04 2009 From: marc at ena.com (Marc Powell) Date: Tue, 20 Oct 2009 10:27:04 -0500 Subject: Nagios Notifications not being Sent Out In-Reply-To: References: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com> Message-ID: <85555FA8-6CB4-4ACC-92D8-D570BF76173D@ena.com> On Oct 16, 2009, at 9:31 AM, Goutos, Kevin wrote: > Thanks for the reply Marc. > > I do have some good news. I did receive a notification last night > for a > flapping alert. However, it still is not sending out alerts from > being > down, returning to up state, etc... > > [1255678430] SERVICE FLAPPING ALERT: AUSTIN-LAPTOP;CPU Load;STOPPED; > Service appears to have stopped flapping (4.0% change < 5.0% > threshold) > [1255678430] SERVICE NOTIFICATION: libertyadmins;AUSTIN-LAPTOP;CPU > Load;FLAPPINGSTOP (CRITICAL);notify-service-by-email;No route to host > > If I look at this portion of the log....It seems there should be > notifications sent out, but none were.. > > [1255547104] HOST ALERT: CORP-NSS;DOWN;SOFT;1;CRITICAL - Host > Unreachable (IP ADDRESS) > [1255547104] SERVICE ALERT: CORP-NSS;CPU Load;CRITICAL;HARD;1;No route > to host Host returned non-OK. Service notifications would have been suppressed. It is expected that you would not receive a notification for any services on this host but possibly a host notification. > [1255547734] HOST ALERT: CORP-NSS;DOWN;HARD;10;CRITICAL - Host > Unreachable (IP ADDRESS) About 10 minutes later the host reaches a HARD critical state and a notification check is done. No notification was sent so a configuration issue exists. > [1255556204] HOST ALERT: CORP-NSS;UP;HARD;1;PING OK - Packet loss = > 0%, > RTA = 10.40 ms Host recovers and a notification check is done. No notification should be sent. > Here is something I don't understand...what I pasted below is from > objects.cache. Why does that show service and host notifications > set as > only f,s? Below that I'll show what I have for contacts.cfg > > Objects.cache > > define contact { > contact_name libertyadmins > alias Liberty Admins > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options f,s > host_notification_options f,s > [chop] > } > > > Contacts.cfg > > define contact{ > contact_name libertyadmins > [choppage] > service_notification_options d,u,r,f,s 'd' is not valid for service_notification_options, only hosts. Only w,u,c,r,f,s are valid here (and 'n' to disable notifications). The overall mismatch between this and objects.cache is interesting and tells me that nagios is not running with the configuration you're providing here. This would also be the reason you're not receiving the notifications you expect. Are you sure it's been restarted and is actually restarting. Does the timestamp on objects.cache correlate to the last restart/reload of nagios? I'd stop nagios, make sure it's not still running and restart it. re-verify the settings in objects.cache. If they're still different, make sure the file you're changing (and including in these e-mails) is actually loaded via a cfg_file or cfg_dir directive in nagios.cfg. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akpgeek at gmail.com Tue Oct 20 17:32:28 2009 From: akpgeek at gmail.com (akp geek) Date: Tue, 20 Oct 2009 11:32:28 -0400 Subject: Nagios communication - NRPE doubt Message-ID: <2024a9fb0910200832q7d72d749q3f07b00f1e8260e9@mail.gmail.com> Hi all I have a question on how NRPE works. I have installed Nagios on one server1 and Nrpe on server2. they are on the same subnet. the way I execute the commands on the server2 is Server1:nrpe!commandonServer2 It works fine now. both servers are on the same subnet. But if I would like to monitor a server outside the firewall, Is there particular port that needs to be opened or how does that communication work? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 20 17:53:06 2009 From: marc at ena.com (Marc Powell) Date: Tue, 20 Oct 2009 10:53:06 -0500 Subject: Nagios communication - NRPE doubt In-Reply-To: <2024a9fb0910200832q7d72d749q3f07b00f1e8260e9@mail.gmail.com> References: <2024a9fb0910200832q7d72d749q3f07b00f1e8260e9@mail.gmail.com> Message-ID: On Oct 20, 2009, at 10:32 AM, akp geek wrote: > Hi all > I have a question on how NRPE works. I have > installed Nagios on one server1 and Nrpe on server2. they are on the > same subnet. > > the way I execute the commands on the server2 is Server1:nrpe! > commandonServer2 > > It works fine now. both servers are on the same subnet. But if I > would like to monitor a server outside the firewall, Is there > particular port that needs to be opened or how does that > communication work? Nagios calls check_nrpe locally which contacts NRPE on the remote host on the port specified by the check_nrpe command line (look at the command{} definition for nrpe). You can change the port that NRPE uses in nrpe.cfg on the remote host. You'll also need to change the check_nrpe command line to match. If the remote host is behind a firewall that restricts access, you'll need to ensure that TCP access to that port is permitted. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Lundback at touchbet.com.mt Tue Oct 20 17:56:50 2009 From: Joseph.Lundback at touchbet.com.mt (Joseph Lundback) Date: Tue, 20 Oct 2009 17:56:50 +0200 Subject: Re; Nagios communication - NRPE doubt Message-ID: <185DD6F6D1E91E4B8D0080D6FAA8B0C775BD74633B@TBEXCHANGE.touchbet.local> > Hi all > I have a question on how NRPE works. I have installed Nagios on one server1 and Nrpe on server2. they are on the same subnet. > > the way I execute the commands on the server2 is Server1:nrpe!commandonServer2 > > It works fine now. both servers are on the same subnet. But if I would like to monitor a server outside the firewall, > Is there particular port that needs to be opened or how does that communication work? Hi, You can specify the port to use, in example NSClient++. Change the port= under the [NRPE] section in nsc.ini. NSClient will listen to the port you specified. And when you issue the command ./check_nrpe -H -p -c it will connect to the port that you specify. Hope this helps /Joseph The information in this E-mail is confidential. If you are not the intended recipient please notify the sender immediately and delete this E-mail without reading, using or disseminating the information contained in it. Although Touchbet Ltd believes this E-mail and any attachments are free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Touchbet Ltd does not accept any responsibility for any loss or damage arising in any way from its use. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jtillotson at techtarget.com Tue Oct 20 18:03:44 2009 From: jtillotson at techtarget.com (Tillotson, Jeff) Date: Tue, 20 Oct 2009 12:03:44 -0400 Subject: Stale results and Event Handlers Message-ID: I have a passive service check that I need to provide an event handler for. The problem is that we have network issues from time to time that cause us to get "stale results". I was hoping for a macro that provided the type of critical so I could filter it in the handler script. That doesn't appear to be an option. Is there a way to not fire event handlers for stale results? Maybe by making stale results be UNKNOWN instead of CRITICAL? Or getting more information to the handler script for processing? --Jeff ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akpgeek at gmail.com Tue Oct 20 19:04:29 2009 From: akpgeek at gmail.com (akp geek) Date: Tue, 20 Oct 2009 13:04:29 -0400 Subject: Nagios communication - NRPE doubt In-Reply-To: References: <2024a9fb0910200832q7d72d749q3f07b00f1e8260e9@mail.gmail.com> Message-ID: <2024a9fb0910201004q6d35c59cx2fc3dc3ebf5330f5@mail.gmail.com> Thanks so much Marc.. I did the following 1. I changed the port in /etc/services to 5777 2. I disabled and enabled the service using ./svcadm disable /network/nrpe/tcp:default and ./svcadm enable /network/nrpe/tcp:default 3. But I have not changed nrpe.cfg 4. From the nagios server I did the following and it worked ./check_nrpe -H 10.112.161.130 -c check_users -p 5777 It worked fine. confusing part is I did not have to change the nrpe.cfg Any suggestions, why it's working ? Regards On Tue, Oct 20, 2009 at 11:53 AM, Marc Powell wrote: > > On Oct 20, 2009, at 10:32 AM, akp geek wrote: > > > Hi all > > I have a question on how NRPE works. I have > > installed Nagios on one server1 and Nrpe on server2. they are on the > > same subnet. > > > > the way I execute the commands on the server2 is Server1:nrpe! > > commandonServer2 > > > > It works fine now. both servers are on the same subnet. But if I > > would like to monitor a server outside the firewall, Is there > > particular port that needs to be opened or how does that > > communication work? > > Nagios calls check_nrpe locally which contacts NRPE on the remote host > on the port specified by the check_nrpe command line (look at the > command{} definition for nrpe). You can change the port that NRPE uses > in nrpe.cfg on the remote host. You'll also need to change the > check_nrpe command line to match. If the remote host is behind a > firewall that restricts access, you'll need to ensure that TCP access > to that port is permitted. > > -- > Marc > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Tue Oct 20 19:30:47 2009 From: mmelin at gmail.com (Martin Melin) Date: Tue, 20 Oct 2009 19:30:47 +0200 Subject: Nagios communication - NRPE doubt In-Reply-To: <2024a9fb0910201004q6d35c59cx2fc3dc3ebf5330f5@mail.gmail.com> References: <2024a9fb0910200832q7d72d749q3f07b00f1e8260e9@mail.gmail.com> <2024a9fb0910201004q6d35c59cx2fc3dc3ebf5330f5@mail.gmail.com> Message-ID: That's because you're running nrpe with inetd and not as a standalone daemon. inetd will use /etc/services and the nrpe.cfg entry won't have an effect. Regards, Martin Melin On Tue, Oct 20, 2009 at 7:04 PM, akp geek wrote: > Thanks so much Marc.. > I did the following > > 1. I changed the port in /etc/services to 5777 > 2. I disabled and enabled the service using > ./svcadm disable /network/nrpe/tcp:default and ./svcadm enable > /network/nrpe/tcp:default > 3. But I have not changed nrpe.cfg > > 4. From the nagios server I did the following and it worked > ./check_nrpe -H 10.112.161.130 -c check_users -p 5777 > > It worked fine. confusing part is I did not have to change the nrpe.cfg > > Any suggestions, why it's working ? > > Regards > > > On Tue, Oct 20, 2009 at 11:53 AM, Marc Powell wrote: > >> >> On Oct 20, 2009, at 10:32 AM, akp geek wrote: >> >> > Hi all >> > I have a question on how NRPE works. I have >> > installed Nagios on one server1 and Nrpe on server2. they are on the >> > same subnet. >> > >> > the way I execute the commands on the server2 is Server1:nrpe! >> > commandonServer2 >> > >> > It works fine now. both servers are on the same subnet. But if I >> > would like to monitor a server outside the firewall, Is there >> > particular port that needs to be opened or how does that >> > communication work? >> >> Nagios calls check_nrpe locally which contacts NRPE on the remote host >> on the port specified by the check_nrpe command line (look at the >> command{} definition for nrpe). You can change the port that NRPE uses >> in nrpe.cfg on the remote host. You'll also need to change the >> check_nrpe command line to match. If the remote host is behind a >> firewall that restricts access, you'll need to ensure that TCP access >> to that port is permitted. >> >> -- >> Marc >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jtillotson at techtarget.com Tue Oct 20 19:50:23 2009 From: jtillotson at techtarget.com (Tillotson, Jeff) Date: Tue, 20 Oct 2009 13:50:23 -0400 Subject: Stale results and Event Handlers In-Reply-To: References: Message-ID: I just realized my mouse had a scroll wheel and could scroll down. That was where I noticed the $SERVICEOUTPUT$ macro. That will get me more information into the handler script and I can work with that. I still wonder if there is another, better way, to handle this? --Jeff >-----Original Message----- >From: Tillotson, Jeff [mailto:jtillotson at techtarget.com] >Sent: Tuesday, October 20, 2009 12:04 PM >To: Nagios-Users Mailinglist >Subject: [Nagios-users] Stale results and Event Handlers > >I have a passive service check that I need to provide an event handler >for. The problem is that we have network issues from time to time that >cause us to get "stale results". I was hoping for a macro that provided >the type of critical so I could filter it in the handler script. That >doesn't appear to be an option. > >Is there a way to not fire event handlers for stale results? Maybe by >making stale results be UNKNOWN instead of CRITICAL? Or getting more >information to the handler script for processing? > > >--Jeff > >------------------------------------------------------------------------ >------ >Come build with us! The BlackBerry(R) Developer Conference in SF, CA >is the only developer event you need to attend this year. Jumpstart your >developing skills, take BlackBerry mobile applications to market and >stay >ahead of the curve. Join us from November 9 - 12, 2009. Register now! >http://p.sf.net/sfu/devconference >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 20 20:49:27 2009 From: marc at ena.com (Marc Powell) Date: Tue, 20 Oct 2009 13:49:27 -0500 Subject: Stale results and Event Handlers In-Reply-To: References: Message-ID: <1956C078-DA4D-4629-A9C0-CBB417B05AE6@ena.com> On Oct 20, 2009, at 11:03 AM, Tillotson, Jeff wrote: > I have a passive service check that I need to provide an event > handler for. The problem is that we have network issues from time > to time that cause us to get "stale results". I was hoping for a > macro that provided the type of critical so I could filter it in the > handler script. That doesn't appear to be an option. > > Is there a way to not fire event handlers for stale results? Maybe > by making stale results be UNKNOWN instead of CRITICAL? Or getting > more information to the handler script for processing? What do you mean by 'stale result'. How can a check result be stale? How can nagios tell if the result is stale or fresh, or better yet, how can your check plugin determine if the results are stale or not? Nagios is designed with the expectation that if it receives a check result, it a real, valid and current check result. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kgoutos at libertymgt.com Tue Oct 20 20:56:48 2009 From: kgoutos at libertymgt.com (Goutos, Kevin) Date: Tue, 20 Oct 2009 14:56:48 -0400 Subject: FW: Nagios Notifications not being Sent Out Message-ID: Just wanted to forward this for everyone to see.. I figured it out! The problem was it was precaching my old configuration files, so I just #'d out those lines in the nagios.cfg file and I just got about 40 E-mails LOL. Thanks for your help! -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Tuesday, October 20, 2009 11:27 AM To: Nagios-users at lists.sourceforge.net users Subject: Re: [Nagios-users] Nagios Notifications not being Sent Out On Oct 16, 2009, at 9:31 AM, Goutos, Kevin wrote: > Thanks for the reply Marc. > > I do have some good news. I did receive a notification last night > for a > flapping alert. However, it still is not sending out alerts from > being > down, returning to up state, etc... > > [1255678430] SERVICE FLAPPING ALERT: AUSTIN-LAPTOP;CPU Load;STOPPED; > Service appears to have stopped flapping (4.0% change < 5.0% > threshold) > [1255678430] SERVICE NOTIFICATION: libertyadmins;AUSTIN-LAPTOP;CPU > Load;FLAPPINGSTOP (CRITICAL);notify-service-by-email;No route to host > > If I look at this portion of the log....It seems there should be > notifications sent out, but none were.. > > [1255547104] HOST ALERT: CORP-NSS;DOWN;SOFT;1;CRITICAL - Host > Unreachable (IP ADDRESS) > [1255547104] SERVICE ALERT: CORP-NSS;CPU Load;CRITICAL;HARD;1;No route > to host Host returned non-OK. Service notifications would have been suppressed. It is expected that you would not receive a notification for any services on this host but possibly a host notification. > [1255547734] HOST ALERT: CORP-NSS;DOWN;HARD;10;CRITICAL - Host > Unreachable (IP ADDRESS) About 10 minutes later the host reaches a HARD critical state and a notification check is done. No notification was sent so a configuration issue exists. > [1255556204] HOST ALERT: CORP-NSS;UP;HARD;1;PING OK - Packet loss = > 0%, > RTA = 10.40 ms Host recovers and a notification check is done. No notification should be sent. > Here is something I don't understand...what I pasted below is from > objects.cache. Why does that show service and host notifications > set as > only f,s? Below that I'll show what I have for contacts.cfg > > Objects.cache > > define contact { > contact_name libertyadmins > alias Liberty Admins > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options f,s > host_notification_options f,s > [chop] > } > > > Contacts.cfg > > define contact{ > contact_name libertyadmins > [choppage] > service_notification_options d,u,r,f,s 'd' is not valid for service_notification_options, only hosts. Only w,u,c,r,f,s are valid here (and 'n' to disable notifications). The overall mismatch between this and objects.cache is interesting and tells me that nagios is not running with the configuration you're providing here. This would also be the reason you're not receiving the notifications you expect. Are you sure it's been restarted and is actually restarting. Does the timestamp on objects.cache correlate to the last restart/reload of nagios? I'd stop nagios, make sure it's not still running and restart it. re-verify the settings in objects.cache. If they're still different, make sure the file you're changing (and including in these e-mails) is actually loaded via a cfg_file or cfg_dir directive in nagios.cfg. -- Marc ------------------------------------------------------------------------ ------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Tue Oct 20 20:56:28 2009 From: subscription at kkeane.com (Kevin Keane) Date: Tue, 20 Oct 2009 11:56:28 -0700 Subject: Stale results and Event Handlers In-Reply-To: References: Message-ID: <4ADE07DC.8000802@kkeane.com> I assume by "stale results" you mean, results that were generated by a freshness check instead of by the actual check? Yes, this is easy to do. Simply change the check command for the freshness check. When no passive check results arrive for a certain period, Nagios will invoke this command as an active check. That is what actually generates the CRITICAL in this case. I think it usually is check_dummy. If you pass the value "3" instead of the value "2" on the command line to check_dummy, it will return UNKNOWN. Tillotson, Jeff wrote: > I have a passive service check that I need to provide an event handler for. The problem is that we have network issues from time to time that cause us to get "stale results". I was hoping for a macro that provided the type of critical so I could filter it in the handler script. That doesn't appear to be an option. > > Is there a way to not fire event handlers for stale results? Maybe by making stale results be UNKNOWN instead of CRITICAL? Or getting more information to the handler script for processing? > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyleodonnell at gmail.com Tue Oct 20 21:18:01 2009 From: kyleodonnell at gmail.com (Kyle O'Donnell) Date: Tue, 20 Oct 2009 15:18:01 -0400 Subject: notification)interval being ignored? Message-ID: <2274b9c30910201218s3f8b5903ieea545687bd3eb9e@mail.gmail.com> I am running nagios 3.0.6... I don't know if this is happening for all hosts/services, but it seems to be happening more and more... critical service alert goes to hard state - notification 1 sent notification_interval == 1440 minutes No more notifications, service remains in the same state for 34days service drops to warning state - notification 1 sent service drops to OK state - notification 1 sent. here is the service template: define service { name fg-to-st-ni5ri2ma3 is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 active_checks_enabled 0 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 0 check_freshness 0 notifications_enabled 1 notification_interval 1440 notification_period 24x7 notification_options u,c,w,r event_handler_enabled 0 flap_detection_enabled 0 process_perf_data 0 retain_status_information 1 retain_nonstatus_information 1 contact_groups fg-to-cg-admins register 0 } here is the service def define service { service_description fg-to-svc-os_sun_df_OS use fg-to-st-ni5ri2ma3 host_name myserver check_command fg-to-chk-nrpe-sun_df_OS!5666!10%!5%!/!/var!/tmp } Any ideas? Thanks, Kyle ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 20 21:40:33 2009 From: marc at ena.com (Marc Powell) Date: Tue, 20 Oct 2009 14:40:33 -0500 Subject: notification)interval being ignored? In-Reply-To: <2274b9c30910201218s3f8b5903ieea545687bd3eb9e@mail.gmail.com> References: <2274b9c30910201218s3f8b5903ieea545687bd3eb9e@mail.gmail.com> Message-ID: On Oct 20, 2009, at 2:18 PM, Kyle O'Donnell wrote: > I am running nagios 3.0.6... > > I don't know if this is happening for all hosts/services, but it seems > to be happening more and more... > > critical service alert goes to hard state - notification 1 sent > notification_interval == 1440 minutes > No more notifications, service remains in the same state for 34days > service drops to warning state - notification 1 sent > service drops to OK state - notification 1 sent. > > here is the service template: > > define service { > name fg-to-st-ni5ri2ma3 > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 2 > active_checks_enabled 0 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 0 > check_freshness 0 > notifications_enabled 1 > notification_interval 1440 Do you see this notification interval in objects.cache? Do you maybe have a service escalation that's overriding it? -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyleodonnell at gmail.com Tue Oct 20 22:00:34 2009 From: kyleodonnell at gmail.com (Kyle O'Donnell) Date: Tue, 20 Oct 2009 16:00:34 -0400 Subject: notification)interval being ignored? In-Reply-To: References: <2274b9c30910201218s3f8b5903ieea545687bd3eb9e@mail.gmail.com> Message-ID: <2274b9c30910201300v8b73a43r69690c587d600f19@mail.gmail.com> we don't use escalations at all. here is whats currently in the objects.cache (service is now in OK status though) define service { host_name myserver service_description fg-to-svc-os_sun_df_OS check_period 24x7 check_command fg-to-chk-nrpe-sun_df_OS!5666!10%!5%!/!/var!/tmp contact_groups fg-to-cg-admins notification_period 24x7 initial_state o check_interval 5.000000 retry_interval 2.000000 max_check_attempts 3 is_volatile 0 parallelize_check 1 active_checks_enabled 0 passive_checks_enabled 1 obsess_over_service 0 event_handler_enabled 0 low_flap_threshold 0.000000 high_flap_threshold 0.000000 flap_detection_enabled 0 flap_detection_options o,w,u,c freshness_threshold 0 check_freshness 0 notification_options u,w,c,r notifications_enabled 1 notification_interval 1440.000000 first_notification_delay 0.000000 stalking_options n process_perf_data 0 failure_prediction_enabled 1 retain_status_information 1 retain_nonstatus_information 1 } could the nagiosstatus.sav be affecting anything? On 10/20/09, Marc Powell wrote: > > On Oct 20, 2009, at 2:18 PM, Kyle O'Donnell wrote: > >> I am running nagios 3.0.6... >> >> I don't know if this is happening for all hosts/services, but it seems >> to be happening more and more... >> >> critical service alert goes to hard state - notification 1 sent >> notification_interval == 1440 minutes >> No more notifications, service remains in the same state for 34days >> service drops to warning state - notification 1 sent >> service drops to OK state - notification 1 sent. >> >> here is the service template: >> >> define service { >> name fg-to-st-ni5ri2ma3 >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 3 >> normal_check_interval 5 >> retry_check_interval 2 >> active_checks_enabled 0 >> passive_checks_enabled 1 >> parallelize_check 1 >> obsess_over_service 0 >> check_freshness 0 >> notifications_enabled 1 >> notification_interval 1440 > > Do you see this notification interval in objects.cache? Do you maybe > have a service escalation that's overriding it? > > -- > Marc > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jtillotson at techtarget.com Tue Oct 20 22:48:26 2009 From: jtillotson at techtarget.com (Tillotson, Jeff) Date: Tue, 20 Oct 2009 16:48:26 -0400 Subject: Stale results and Event Handlers In-Reply-To: <4ADE07DC.8000802@kkeane.com> References: <4ADE07DC.8000802@kkeane.com> Message-ID: >I assume by "stale results" you mean, results that were generated by a >freshness check instead of by the actual check? Yes, this is easy to do. >Simply change the check command for the freshness check. That is what I meant. And changing the command_line option from 2 to 3 will accomplish what I need. Thanks. --Jeff ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rtanner at linfield.edu Tue Oct 20 23:04:39 2009 From: rtanner at linfield.edu (Rob Tanner) Date: Tue, 20 Oct 2009 14:04:39 -0700 Subject: How do I cancel scheduled downtime when in the middle of that downtime Message-ID: Hi, I scheduled a host machine for two weeks of downtime while we were awaiting a delivery of memory. The memory arrived earlier than expected and the machine is up and running. But the downtime schedule is Nagios has a week to go. I can?t find a cancel button and if I click on the schedule downtime link, it only gives me the option of scheduling another downtime period and doesn?t give me the option of cancelling the current downtime. What am I missing; what do I need to do? Thanks. Rob Tanner UNIX Services Manager Linfield College, McMinnville Oregon -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Wed Oct 21 02:27:38 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 20 Oct 2009 20:27:38 -0400 Subject: Windows Agent - Passive Checks In-Reply-To: <78781ED5FECA43CB9290F0F2C9734B57@opaltelecom.com> References: <78781ED5FECA43CB9290F0F2C9734B57@opaltelecom.com> Message-ID: I was going to add that to NC_Net but if it only reports on trouble then how do you know it has not stalled without freshness checking ? On NC_net there is a similar command but it has slightly different requirements, 1) you can configure NC_Net to preform different Passive checks, but not setup a NSCA transport. 2) Active check NC_NEt using GETALLCHECKS command (via check_nc_net thats compatible with check_nt) This returns All checks OK with all performance data or a list of failed passive check and performance data. Thus a single Command in Nagios for any number of Passive checks configured, then only details when something goes wrong. Tony ( author of NC_Net) windows plugin On Tue, Oct 20, 2009 at 5:36 AM, Tony wrote: > Hi List > > I've used Nagios for a few years now and up to now have only really > monitored Linux servers and Network hardware. > However I'm now having to monitor Windows servers more and more, which > isn't a problem as there are plenty of Windows agents available to monitor > Windows servers. > > However I was wondering if anyone had come across/written an agent that > sits on a Windows server and sends Passive checks to Nagios if say a service > stops, no matter what the service is. Rather than having Nagios query the > host every x minutes and creating network traffic when there isn't any > reason to if all the services Nagios wants to check are up and running. > > Just a thought... > > Thanks > Tony > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmartin at gmartin.org Wed Oct 21 04:39:04 2009 From: gmartin at gmartin.org (Greg Martin) Date: Tue, 20 Oct 2009 22:39:04 -0400 Subject: Windows Agent - Passive Checks In-Reply-To: References: <78781ED5FECA43CB9290F0F2C9734B57@opaltelecom.com> Message-ID: <4ADE7448.6020804@gmartin.org> Tony, IMO, the network traffic generated by the service checks is trivial in the scheme of things. Also, do you really need to worry about ALL the services on your windows box? If. say you run IIS on the server, aren't you most interested in knowing IIS Admin and WWW services are running? Checking all the services may be overkill just as querying each from nagios may be. However, if you still feel the need, you could write a script to check the status of all the services locally and use NRPE to call the custom script. Powershell or even Windows batch could probably do this for you. This makes the check active but rolls all the services into one. \\Greg Anthony Montibello wrote: > I was going to add that to NC_Net but if it only reports on trouble > then how do you know it has not stalled without freshness checking ? > ? > ? > On NC_net there is a similar command but it has slightly different > requirements, > 1) you can configure NC_Net to preform different Passive checks, but > not setup a NSCA transport. > 2) Active check NC_NEt using GETALLCHECKS command (via check_nc_net > thats compatible with check_nt) > ? This returns All checks OK with all performance data or a list of > failed passive check and performance data. > Thus a single Command in Nagios for any number of Passive checks > configured, then only? details when something goes wrong. > ? > ? > Tony ( author of NC_Net) windows plugin > ? > > > ? > On Tue, Oct 20, 2009 at 5:36 AM, Tony > wrote: > > Hi List > ? > I've used Nagios for a few years now and up to now have only > really monitored Linux servers and Network hardware. > However I'm now having to monitor Windows servers more and more, > which isn't a problem as there are plenty of Windows agents > available to monitor Windows servers. > ? > However I was wondering if anyone had come across/written an agent > that sits on a Windows server and sends Passive checks to Nagios > if say a service stops, no matter what the service is. Rather than > having Nagios query the host every x minutes and creating network > traffic when there isn't any reason to if all the services Nagios > wants to check are up and running. > ? > Just a thought... > ? > Thanks > Tony > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. > Jumpstart your > developing skills, take BlackBerry mobile applications to market > and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sp at tdchosting.dk Wed Oct 21 09:40:28 2009 From: sp at tdchosting.dk (Steffen Poulsen) Date: Wed, 21 Oct 2009 09:40:28 +0200 Subject: Changing the default value of "Hide Process Messages" (when inspecting alert logs) Message-ID: <995380CA30455549A6B8C57CE5A47AE55E93BF92F0@TDCHEXBE01.int.tdch.dk> Hi, I wonder if there is an easy way to change the default value of the "Hide Process Messages" checkbox when inspecting alert histories of hosts and services in Nagios? We generate our Nagios centrally and reload it every 15 minutes, resulting in a lot of these messages in the log: [2009-10-21 09:00:15] Nagios 3.0.6 starting... (PID=27677) [2009-10-21 09:00:15] Caught SIGHUP, restarting... They can be hidden by enabling the "Hide Process Messages" checkbox and clicking update - but only for the current view. If i.e. "Latest Archive" is clicked, the state of the checkbox is lost again. So, it occured, simply changing the default value to not show the process messages looks like a sensible way to proceed for us. Is there such a setting available? Best regards, Steffen -- Venlig hilsen / Best regards Steffen Poulsen UNIX System Administrator TDC Hosting A/S Phone: +45 70 26 25 27 E-mail: sp at tdchosting.dk Web: www.tdchosting.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Wed Oct 21 11:08:01 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Wed, 21 Oct 2009 14:38:01 +0530 Subject: [ SOLVED ] nagios3 problem in debian lenny In-Reply-To: <4AD85CBE.90604@infoservices.in> References: <4AD6E596.9060005@infoservices.in> <185DD6F6D1E91E4B8D0080D6FAA8B0C775B9B55732@TBEXCHANGE.touchbet.local> <4AD85CBE.90604@infoservices.in> Message-ID: <4ADECF71.5070400@infoservices.in> J. Bakshi wrote: > Joseph Lundback wrote: > >>> Dear all , >>> >>> I have the second opportunity to configure nagios3 in a debian lenny >>> server. I did the configuration 2 yr ago on a clark-connect server. >>> To get a vary basic working nagios I simply followed the default >>> settings. I have installed nagios; created htpasswd file and then >>> started nagios3. ( NO error from "nagios3 -v nagios.cfg ). But after >>> successfully authentication ( by htpassd file ) nagios reports >>> >>> `````````````````````````````` >>> *Error: Could not read object configuration data! >>> ````````````````````````````````` >>> >>> Though the basic localhost cfg file is already there at >>> /etc/nagios3/conf.d/ and it is already included at nagios.cfg as >>> >>> cfg_dir=/etc/nagios3/conf.d >>> >>> Any clue please ? >>> * >>> >>> >> I'm no Nagios guru, just a novice nagios user. >> But I've gotten that error message when I've had permission issues. >> >> >> /Joseph >> >> >> > > Hello Joseph, > > Thanks for your response. Your assumption is correct. I have configured > apache here to run as wwwrun:www which is different from the debian > default settings www-data:www-data. I have purged nagios3 and install > it again and catched the information as below > > `````````````````````````````````````````````````````````` > chown: invalid group: `nagios:www-data' > dpkg: error processing nagios3-common (--configure): > subprocess post-installation script returned error exit status 1 > dpkg: dependency problems prevent configuration of nagios3: > nagios3 depends on nagios3-common (= 3.0.6-4~lenny2); however: > Package nagios3-common is not configured yet. > dpkg: error processing nagios3 (--configure): > dependency problems - leaving unconfigured > Errors were encountered while processing: > nagios3-common > nagios3 > ``````````````````````````````````````````````````````````` > > So nagios-common is not configured properly and the permission problem > is there. Any idea to cope with this issue ? > > Thanks > > I have fixed it. The trick was I restored the debian default apache user:group combination as www-data:www-data and restarted apache. Then I installed nagios3 and the dpkg was happy to see the debian-ins apache user:group combination; Installation was complete with out any problem and the required config file were created. Then I revert the apache user:group combination according to my customization and restarted the apache and nagios. Problem solved. If anyone know any better alternative please let me know. thanks ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sp at tdchosting.dk Wed Oct 21 13:54:46 2009 From: sp at tdchosting.dk (Steffen Poulsen) Date: Wed, 21 Oct 2009 13:54:46 +0200 Subject: Changing the default value of "Hide Process Messages" (when inspecting alert logs) In-Reply-To: <995380CA30455549A6B8C57CE5A47AE55E93BF92F0@TDCHEXBE01.int.tdch.dk> References: <995380CA30455549A6B8C57CE5A47AE55E93BF92F0@TDCHEXBE01.int.tdch.dk> Message-ID: <995380CA30455549A6B8C57CE5A47AE55E93BF9487@TDCHEXBE01.int.tdch.dk> Ended up doing a little patch to revert the behaviour for the checkbox to "Show Process Messages" (instead of "Hide Process Messages"): diff cgi/history.c_org cgi/history.c 82c82 < int display_system_messages=TRUE; --- > int skip_system_messages=TRUE; 260c260 < printf(" Hide Process Messages",(display_system_messages==FALSE)?"checked":""); --- > printf(" Show Process Messages",(skip_system_messages==FALSE)?"checked":""); 468c468 < display_system_messages=FALSE; --- > skip_system_messages=FALSE; 751c751 < else if(display_system_messages==FALSE) --- > else if(skip_system_messages==TRUE) From: Steffen Poulsen [mailto:sp at tdchosting.dk] Sent: 21. oktober 2009 09:40 To: Nagios Users Mailinglist Subject: [Nagios-users] Changing the default value of "Hide Process Messages" (when inspecting alert logs) Hi, I wonder if there is an easy way to change the default value of the "Hide Process Messages" checkbox when inspecting alert histories of hosts and services in Nagios? We generate our Nagios centrally and reload it every 15 minutes, resulting in a lot of these messages in the log: [2009-10-21 09:00:15] Nagios 3.0.6 starting... (PID=27677) [2009-10-21 09:00:15] Caught SIGHUP, restarting... They can be hidden by enabling the "Hide Process Messages" checkbox and clicking update - but only for the current view. If i.e. "Latest Archive" is clicked, the state of the checkbox is lost again. So, it occured, simply changing the default value to not show the process messages looks like a sensible way to proceed for us. Is there such a setting available? Best regards, Steffen -- Venlig hilsen / Best regards Steffen Poulsen UNIX System Administrator TDC Hosting A/S Phone: +45 70 26 25 27 E-mail: sp at tdchosting.dk Web: www.tdchosting.dk -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 21 15:15:36 2009 From: marc at ena.com (Marc Powell) Date: Wed, 21 Oct 2009 08:15:36 -0500 Subject: How do I cancel scheduled downtime when in the middle of that downtime In-Reply-To: References: Message-ID: <8089C4A7-EB88-4D77-BCCE-ABC4701855B6@ena.com> On Oct 20, 2009, at 4:04 PM, Rob Tanner wrote: > Hi, > > I scheduled a host machine for two weeks of downtime while we were > awaiting a delivery of memory. The memory arrived earlier than > expected and the machine is up and running. But the downtime > schedule is Nagios has a week to go. I can?t find a cancel button > and if I click on the schedule downtime link, it only gives me the > option of scheduling another downtime period and doesn?t give me the > option of cancelling the current downtime. I haven't needed to do this before but scheduling an immediate check of the host or service seems to remove the downtime. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Wed Oct 21 15:26:39 2009 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Wed, 21 Oct 2009 09:26:39 -0400 Subject: How do I cancel scheduled downtime when in the middle of that downtime In-Reply-To: <8089C4A7-EB88-4D77-BCCE-ABC4701855B6@ena.com> References: <8089C4A7-EB88-4D77-BCCE-ABC4701855B6@ena.com> Message-ID: <4ADF0C0F.1080002@collaborativefusion.com> Marc Powell wrote: > On Oct 20, 2009, at 4:04 PM, Rob Tanner wrote: > >> Hi, >> >> I scheduled a host machine for two weeks of downtime while we were >> awaiting a delivery of memory. The memory arrived earlier than >> expected and the machine is up and running. But the downtime >> schedule is Nagios has a week to go. I can?t find a cancel button >> and if I click on the schedule downtime link, it only gives me the >> option of scheduling another downtime period and doesn?t give me the >> option of cancelling the current downtime. > > I haven't needed to do this before but scheduling an immediate check > of the host or service seems to remove the downtime. > > -- > Marc Click "Downtime" in the left navigation frame, then click the trash icon like you would to delete a comment. -- Sean McAfee System Engineer ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Wed Oct 21 15:26:28 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Wed, 21 Oct 2009 18:56:28 +0530 Subject: email notification not working after nagios3 migration Message-ID: <4ADF0C04.6030800@infoservices.in> Dear list, I am using my old (nagios2) configuration files with nagios3. Every thing is working fine except email notification. Both postfix and mailx is installed here and postfix is also running well. Is there any config in nagios3 which should be enabled in nagios3 to send email ? Please let me know. Thanks ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Wed Oct 21 14:21:53 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Wed, 21 Oct 2009 17:51:53 +0530 Subject: nagios problem after migration to version 3 Message-ID: <4ADEFCE1.4000009@infoservices.in> Dear list, My previous nagios (version 2) was running on a clarkconnect server. I have replaced the OS with debian lenny and the nagios shipped with is version3. I have installed here nagios-plugins; nagios-plugins-basic; nagios-nrpe-plugin; nagios3-common; nagios3. The default setup shipped with nagios3 is working fine. fine ........ Now I have imported the old config here and I have done the following setup in nagios.cfg ```````````````````````````````````````` # Commands definitions cfg_file=/etc/nagios3/my_commands.cfg cfg_dir=/etc/nagios3/my_conf.d # I hv ommited this as my command definations are already there at /etc/nagios3/my_commands.cfg ## #cfg_dir=/etc/nagios-plugins/config ``````````````````````````````````` After restarting the nagios; it can successfully monitor the remote servers trough nrpe perfectly :-) But some problems !! check_mysql is not working here properly. the command declination is ````````````````````` define command{ command_name check_mysql command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c $ARG2$ } ````````````````````````````` and the localhost.cfg has ````````````````````````````````` define service{ use local-service ; Name of service template to use host_name Office server service_description MYSQL check_command check_mysql!localhost!root!password123 } `````````````````````````` After restaring the nagipos3 the mysql check reports `````````````````````````` Host '192.168.1.1' is not allowed to connect to this MySQL server ``````````````````````````````` Though the plugin working perfectly /usr/lib/nagios/plugins/check_mysql -H localhost -u -p Uptime: 510145 Threads: 3 Questions: 281108 Slow queries: 0 Opens: 966 Flush tables: 1 Open tables: 952 Queries per second avg: 0.551 what might be the problem then ? kindly enlighten me. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Wed Oct 21 15:53:17 2009 From: m.borsani at it.net (Marco Borsani) Date: Wed, 21 Oct 2009 15:53:17 +0200 Subject: R: How do I cancel scheduled downtime when in the middle of that downtime In-Reply-To: <8089C4A7-EB88-4D77-BCCE-ABC4701855B6@ena.com> References: <8089C4A7-EB88-4D77-BCCE-ABC4701855B6@ena.com> Message-ID: <25866.2246437327$1256133541@news.gmane.org> You can also modify the extinfo.cgi and able this possibility. -----Messaggio originale----- Da: Marc Powell [mailto:marc at ena.com] Inviato: mercoled? 21 ottobre 2009 15.16 A: Nagios-users at lists.sourceforge.net Mailinglist Oggetto: Re: [Nagios-users] How do I cancel scheduled downtime when in the middle of that downtime On Oct 20, 2009, at 4:04 PM, Rob Tanner wrote: > Hi, > > I scheduled a host machine for two weeks of downtime while we were > awaiting a delivery of memory. The memory arrived earlier than > expected and the machine is up and running. But the downtime > schedule is Nagios has a week to go. I can?t find a cancel button > and if I click on the schedule downtime link, it only gives me the > option of scheduling another downtime period and doesn?t give me the > option of cancelling the current downtime. I haven't needed to do this before but scheduling an immediate check of the host or service seems to remove the downtime. -- Marc ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Wed Oct 21 16:59:36 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 21 Oct 2009 14:59:36 +0000 Subject: nagios problem after migration to version 3 In-Reply-To: <4ADEFCE1.4000009@infoservices.in> References: <4ADEFCE1.4000009@infoservices.in> Message-ID: <200910211459.36420.assaf.flatto@ssp-intl.com> >From first glance the parameters you are passing from command line are not the same as you are passing from the nagios command execution . > define command{ > command_name check_mysql > command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c $ARG2$ > /usr/lib/nagios/plugins/check_mysql -H localhost -u -p Here you are giving a user name and password , while on the nagios command you specify the password and the critiacl parameters , no username Assaf On Wednesday 21 October 2009 12:21:53 J. Bakshi wrote: > Dear list, > > My previous nagios (version 2) was running on a clarkconnect server. I > have replaced the OS with debian lenny and the nagios shipped with is > version3. > I have installed here nagios-plugins; nagios-plugins-basic; > nagios-nrpe-plugin; nagios3-common; nagios3. The default setup shipped > with nagios3 is working fine. > fine ........ > Now I have imported the old config here and I have done the following > setup in nagios.cfg > > ```````````````````````````````````````` > # Commands definitions > cfg_file=/etc/nagios3/my_commands.cfg > cfg_dir=/etc/nagios3/my_conf.d > > # I hv ommited this as my command definations are already there at > /etc/nagios3/my_commands.cfg ## > #cfg_dir=/etc/nagios-plugins/config > > ``````````````````````````````````` > > After restarting the nagios; it can successfully monitor the remote > servers trough nrpe perfectly :-) > > But some problems !! > > check_mysql is not working here properly. > > the command declination is > > ````````````````````` > define command{ > command_name check_mysql > command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c $ARG2$ > } > ````````````````````````````` > > and the localhost.cfg has > > ````````````````````````````````` > define service{ > use local-service ; Name of > service template to use > host_name Office server > service_description MYSQL > check_command > check_mysql!localhost!root!password123 > } > `````````````````````````` > > After restaring the nagipos3 the mysql check reports > > `````````````````````````` > Host '192.168.1.1' is not allowed to connect to this MySQL server > ``````````````````````````````` > > Though the plugin working perfectly > > /usr/lib/nagios/plugins/check_mysql -H localhost -u > -p > Uptime: 510145 Threads: 3 Questions: 281108 Slow queries: 0 Opens: > 966 Flush tables: 1 Open tables: 952 Queries per second avg: 0.551 > > > what might be the problem then ? > kindly enlighten me. > > --------------------------------------------------------------------------- >--- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is > the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE From joydeep at infoservices.in Wed Oct 21 16:41:08 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Wed, 21 Oct 2009 20:11:08 +0530 Subject: nagios problem after migration to version 3 In-Reply-To: <200910211459.36420.assaf.flatto@ssp-intl.com> References: <4ADEFCE1.4000009@infoservices.in> <200910211459.36420.assaf.flatto@ssp-intl.com> Message-ID: <4ADF1D84.4040808@infoservices.in> Assaf Flatto wrote: > >From first glance the parameters you are passing from command line are not the same as you are > passing from the nagios command execution . > > >> define command{ >> command_name check_mysql >> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c $ARG2$ >> > > >> /usr/lib/nagios/plugins/check_mysql -H localhost -u -p >> > Here you are giving a user name and password , while on the nagios command you specify the > password and the critiacl parameters , no username > > Assaf > Hello Asaf, I have now the command declination as ````````````````````` # MYSQL command definition define command{ command_name check_mysql command_line $USER1$/check_mysql -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ } `````````````````````````` and localhost has same code ````````````````````` # Define a service to check MYSQL define service{ use local-service ; Name of service template to use host_name Office server service_description MYSQL check_command check_mysql!localhost!root!password123 } ````````````````````````````````````` and still get ```````````````` Host '192.168.1.1' is not allowed to connect to this MySQL server ````````````````` Why still it picking up 192.168.1.1 IP ? I am confused :-( > On Wednesday 21 October 2009 12:21:53 J. Bakshi wrote: > >> Dear list, >> >> My previous nagios (version 2) was running on a clarkconnect server. I >> have replaced the OS with debian lenny and the nagios shipped with is >> version3. >> I have installed here nagios-plugins; nagios-plugins-basic; >> nagios-nrpe-plugin; nagios3-common; nagios3. The default setup shipped >> with nagios3 is working fine. >> fine ........ >> Now I have imported the old config here and I have done the following >> setup in nagios.cfg >> >> ```````````````````````````````````````` >> # Commands definitions >> cfg_file=/etc/nagios3/my_commands.cfg >> cfg_dir=/etc/nagios3/my_conf.d >> >> # I hv ommited this as my command definations are already there at >> /etc/nagios3/my_commands.cfg ## >> #cfg_dir=/etc/nagios-plugins/config >> >> ``````````````````````````````````` >> >> After restarting the nagios; it can successfully monitor the remote >> servers trough nrpe perfectly :-) >> >> But some problems !! >> >> check_mysql is not working here properly. >> >> the command declination is >> >> ````````````````````` >> define command{ >> command_name check_mysql >> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c $ARG2$ >> } >> ````````````````````````````` >> >> and the localhost.cfg has >> >> ````````````````````````````````` >> define service{ >> use local-service ; Name of >> service template to use >> host_name Office server >> service_description MYSQL >> check_command >> check_mysql!localhost!root!password123 >> } >> `````````````````````````` >> >> After restaring the nagipos3 the mysql check reports >> >> `````````````````````````` >> Host '192.168.1.1' is not allowed to connect to this MySQL server >> ``````````````````````````````` >> >> Though the plugin working perfectly >> >> /usr/lib/nagios/plugins/check_mysql -H localhost -u >> -p >> Uptime: 510145 Threads: 3 Questions: 281108 Slow queries: 0 Opens: >> 966 Flush tables: 1 Open tables: 952 Queries per second avg: 0.551 >> >> >> what might be the problem then ? >> kindly enlighten me. >> >> --------------------------------------------------------------------------- >> --- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is >> the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> ::: Please include Nagios version, plugin version (-v) and OS when >> ::: reporting any issue. Messages without supporting info will risk being >> ::: sent to /dev/null >> > > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 21 16:45:52 2009 From: marc at ena.com (Marc Powell) Date: Wed, 21 Oct 2009 09:45:52 -0500 Subject: How do I cancel scheduled downtime when in the middle of that downtime In-Reply-To: <4ADF0C0F.1080002@collaborativefusion.com> References: <8089C4A7-EB88-4D77-BCCE-ABC4701855B6@ena.com> <4ADF0C0F.1080002@collaborativefusion.com> Message-ID: <63FA32CB-A3FC-402C-BFCC-A28458A66688@ena.com> On Oct 21, 2009, at 8:26 AM, Sean McAfee wrote: > Click "Downtime" in the left navigation frame, then click the trash > icon > like you would to delete a comment. Of course, that's the _correct_ way to do it ;) Thanks for the reminder. Forest-for-the-trees kind of thing... -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Wed Oct 21 17:51:34 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 21 Oct 2009 15:51:34 +0000 Subject: nagios problem after migration to version 3 In-Reply-To: <4ADF1D8E.2060806@lcrcomputer.net> References: <4ADEFCE1.4000009@infoservices.in> Message-ID: <200910211551.34797.assaf.flatto@ssp-intl.com> If that was the case he would ahve been getting the same error when executing tit via the CLI not just via the nagios . On Wednesday 21 October 2009 14:41:18 you wrote: > Based on the error message, I would check to make sure that mysql is > even listening on a tcp port(skip networking). > > See this thread for more info: > > http://lists.mysql.com/mysql/196669 > > Lyle Giese > LCR Computer Services, Inc. > > Assaf Flatto wrote: > > >From first glance the parameters you are passing from command line are > > > not the same as you are > > > > passing from the nagios command execution . > > > >> define command{ > >> command_name check_mysql > >> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c > >> $ARG2$ > >> > >> > >> > >> /usr/lib/nagios/plugins/check_mysql -H localhost -u > >> -p > > > > Here you are giving a user name and password , while on the nagios > > command you specify the password and the critiacl parameters , no > > username > > > > Assaf > > > > On Wednesday 21 October 2009 12:21:53 J. Bakshi wrote: > >> Dear list, > >> > >> My previous nagios (version 2) was running on a clarkconnect server. I > >> have replaced the OS with debian lenny and the nagios shipped with is > >> version3. > >> I have installed here nagios-plugins; nagios-plugins-basic; > >> nagios-nrpe-plugin; nagios3-common; nagios3. The default setup shipped > >> with nagios3 is working fine. > >> fine ........ > >> Now I have imported the old config here and I have done the following > >> setup in nagios.cfg > >> > >> ```````````````````````````````````````` > >> # Commands definitions > >> cfg_file=/etc/nagios3/my_commands.cfg > >> cfg_dir=/etc/nagios3/my_conf.d > >> > >> # I hv ommited this as my command definations are already there at > >> /etc/nagios3/my_commands.cfg ## > >> #cfg_dir=/etc/nagios-plugins/config > >> > >> ``````````````````````````````````` > >> > >> After restarting the nagios; it can successfully monitor the remote > >> servers trough nrpe perfectly :-) > >> > >> But some problems !! > >> > >> check_mysql is not working here properly. > >> > >> the command declination is > >> > >> ````````````````````` > >> define command{ > >> command_name check_mysql > >> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c > >> $ARG2$ } > >> ````````````````````````````` > >> > >> and the localhost.cfg has > >> > >> ````````````````````````````````` > >> define service{ > >> use local-service ; Name of > >> service template to use > >> host_name Office server > >> service_description MYSQL > >> check_command > >> check_mysql!localhost!root!password123 > >> } > >> `````````````````````````` > >> > >> After restaring the nagipos3 the mysql check reports > >> > >> `````````````````````````` > >> Host '192.168.1.1' is not allowed to connect to this MySQL server > >> ``````````````````````````````` > >> > >> Though the plugin working perfectly > >> > >> /usr/lib/nagios/plugins/check_mysql -H localhost -u > >> -p > >> Uptime: 510145 Threads: 3 Questions: 281108 Slow queries: 0 Opens: > >> 966 Flush tables: 1 Open tables: 952 Queries per second avg: 0.551 > >> > >> > >> what might be the problem then ? > >> kindly enlighten me. > >> > >> ------------------------------------------------------------------------ > >>--- --- Come build with us! The BlackBerry(R) Developer Conference in SF, > >> CA is the only developer event you need to attend this year. Jumpstart > >> your developing skills, take BlackBerry mobile applications to market > >> and stay ahead of the curve. Join us from November 9 - 12, 2009. > >> Register now! http://p.sf.net/sfu/devconference > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > >> ::: Please include Nagios version, plugin version (-v) and OS when > >> ::: reporting any issue. Messages without supporting info will risk > >> ::: being sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 21 16:55:49 2009 From: marc at ena.com (Marc Powell) Date: Wed, 21 Oct 2009 09:55:49 -0500 Subject: nagios problem after migration to version 3 In-Reply-To: <4ADEFCE1.4000009@infoservices.in> References: <4ADEFCE1.4000009@infoservices.in> Message-ID: On Oct 21, 2009, at 7:21 AM, J. Bakshi wrote: > check_mysql is not working here properly. > > the command declination is > > ````````````````````` > define command{ > command_name check_mysql > command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c > $ARG2$ > } I'm willing to bet money that in the host definition for 'Office server', the address parameter is not set to 'localhost'. > and the localhost.cfg has > > ````````````````````````````````` > define service{ > use local-service ; Name of > service template to use > host_name Office server > service_description MYSQL > check_command > check_mysql!localhost!root!password123 > } $ARG1$=localhost $ARG2$=root $ARG3$=password123 > After restaring the nagipos3 the mysql check reports > > `````````````````````````` > Host '192.168.1.1' is not allowed to connect to this MySQL server > ``````````````````````````````` > > Though the plugin working perfectly > > /usr/lib/nagios/plugins/check_mysql -H localhost -u > -p > Uptime: 510145 Threads: 3 Questions: 281108 Slow queries: 0 Opens: > 966 Flush tables: 1 Open tables: 952 Queries per second avg: 0.551 This is not what nagios is running. > what might be the problem then ? Combining the command_line with your service definition, nagios is running - /path/to/plugins/check_mysql -H
-p localhost -c root Possible solutions - - change your command definition to use the host parameter you're trying to pass it (I presume that the other parameters you pass make sense but they don't match your test) check_mysql - command_line $USER1$/check_mysql -H $ARG1$ -p $ARG2$ -c $ARG3$ -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Wed Oct 21 17:52:54 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 21 Oct 2009 15:52:54 +0000 Subject: nagios problem after migration to version 3 In-Reply-To: <4ADF1D84.4040808@infoservices.in> References: <4ADEFCE1.4000009@infoservices.in> Message-ID: <200910211552.54503.assaf.flatto@ssp-intl.com> Check the localhost.cfg file on the etc dirctory of the nagios installation . On Wednesday 21 October 2009 14:41:08 J. Bakshi wrote: > Assaf Flatto wrote: > > >From first glance the parameters you are passing from command line are > > > not the same as you are > > > > passing from the nagios command execution . > > > >> define command{ > >> command_name check_mysql > >> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c > >> $ARG2$ > >> > >> > >> > >> /usr/lib/nagios/plugins/check_mysql -H localhost -u > >> -p > > > > Here you are giving a user name and password , while on the nagios > > command you specify the password and the critiacl parameters , no > > username > > > > Assaf > > Hello Asaf, > > I have now the command declination as > > ````````````````````` > # MYSQL command definition > define command{ > command_name check_mysql > command_line $USER1$/check_mysql -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ > } > `````````````````````````` > > and localhost has same code > > ````````````````````` > # Define a service to check MYSQL > > define service{ > use local-service ; Name of > service template to use > host_name Office server > service_description MYSQL > check_command > check_mysql!localhost!root!password123 > } > ````````````````````````````````````` > > and still get > > ```````````````` > Host '192.168.1.1' is not allowed to connect to this MySQL server > ````````````````` > > Why still it picking up 192.168.1.1 IP ? > I am confused :-( > > > On Wednesday 21 October 2009 12:21:53 J. Bakshi wrote: > >> Dear list, > >> > >> My previous nagios (version 2) was running on a clarkconnect server. I > >> have replaced the OS with debian lenny and the nagios shipped with is > >> version3. > >> I have installed here nagios-plugins; nagios-plugins-basic; > >> nagios-nrpe-plugin; nagios3-common; nagios3. The default setup shipped > >> with nagios3 is working fine. > >> fine ........ > >> Now I have imported the old config here and I have done the following > >> setup in nagios.cfg > >> > >> ```````````````````````````````````````` > >> # Commands definitions > >> cfg_file=/etc/nagios3/my_commands.cfg > >> cfg_dir=/etc/nagios3/my_conf.d > >> > >> # I hv ommited this as my command definations are already there at > >> /etc/nagios3/my_commands.cfg ## > >> #cfg_dir=/etc/nagios-plugins/config > >> > >> ``````````````````````````````````` > >> > >> After restarting the nagios; it can successfully monitor the remote > >> servers trough nrpe perfectly :-) > >> > >> But some problems !! > >> > >> check_mysql is not working here properly. > >> > >> the command declination is > >> > >> ````````````````````` > >> define command{ > >> command_name check_mysql > >> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c > >> $ARG2$ } > >> ````````````````````````````` > >> > >> and the localhost.cfg has > >> > >> ````````````````````````````````` > >> define service{ > >> use local-service ; Name of > >> service template to use > >> host_name Office server > >> service_description MYSQL > >> check_command > >> check_mysql!localhost!root!password123 > >> } > >> `````````````````````````` > >> > >> After restaring the nagipos3 the mysql check reports > >> > >> `````````````````````````` > >> Host '192.168.1.1' is not allowed to connect to this MySQL server > >> ``````````````````````````````` > >> > >> Though the plugin working perfectly > >> > >> /usr/lib/nagios/plugins/check_mysql -H localhost -u > >> -p > >> Uptime: 510145 Threads: 3 Questions: 281108 Slow queries: 0 Opens: > >> 966 Flush tables: 1 Open tables: 952 Queries per second avg: 0.551 > >> > >> > >> what might be the problem then ? > >> kindly enlighten me. > >> > >> ------------------------------------------------------------------------ > >>--- --- Come build with us! The BlackBerry(R) Developer Conference in SF, > >> CA is the only developer event you need to attend this year. Jumpstart > >> your developing skills, take BlackBerry mobile applications to market > >> and stay ahead of the curve. Join us from November 9 - 12, 2009. > >> Register now! http://p.sf.net/sfu/devconference > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > >> ::: Please include Nagios version, plugin version (-v) and OS when > >> ::: reporting any issue. Messages without supporting info will risk > >> ::: being sent to /dev/null > > --------------------------------------------------------------------------- >--- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is > the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Wed Oct 21 17:03:42 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Wed, 21 Oct 2009 20:33:42 +0530 Subject: [ SOLVED ] nagios problem after migration to version 3 In-Reply-To: <4ADF1D84.4040808@infoservices.in> References: <4ADEFCE1.4000009@infoservices.in> <200910211459.36420.assaf.flatto@ssp-intl.com> <4ADF1D84.4040808@infoservices.in> Message-ID: <4ADF22CE.50504@infoservices.in> J. Bakshi wrote: > Assaf Flatto wrote: > >> >From first glance the parameters you are passing from command line are not the same as you are >> passing from the nagios command execution . >> >> >> >>> define command{ >>> command_name check_mysql >>> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c $ARG2$ >>> >>> >> >> >> >>> /usr/lib/nagios/plugins/check_mysql -H localhost -u -p >>> >>> >> Here you are giving a user name and password , while on the nagios command you specify the >> password and the critiacl parameters , no username >> >> Assaf >> >> > > Hello Asaf, > > I have now the command declination as > > ````````````````````` > # MYSQL command definition > define command{ > command_name check_mysql > command_line $USER1$/check_mysql -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ > } > `````````````````````````` > > and localhost has same code > > ````````````````````` > # Define a service to check MYSQL > > define service{ > use local-service ; Name of > service template to use > host_name Office server > service_description MYSQL > check_command > check_mysql!localhost!root!password123 > } > ````````````````````````````````````` > > and still get > > ```````````````` > Host '192.168.1.1' is not allowed to connect to this MySQL server > ````````````````` > > Why still it picking up 192.168.1.1 IP ? > I am confused :-( > > > > Asaf I have no idea why -H parameter is not working here !!! But if I just remove * -H $HOSTADDRESS$ * and modify service definition as check_mysql!root!password123 and it works perfectly ok. Though I think * -H $HOSTADDRESS$ * should work where mysql needs a specific hostname to log in successfully. Any workaround to make * -H $HOSTADDRESS$ * working ? Thanks ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Wed Oct 21 17:01:54 2009 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Wed, 21 Oct 2009 11:01:54 -0400 Subject: multiple views by login? Message-ID: <7f62d2420910210801h5c6a8013ge113bcd5eb3afa31@mail.gmail.com> I'd like to present multiple hostgroup views of nagios to different users. Since hosts can be in multiple hostgroups, I'd like one group to view one subset of hostgroups and the other to view a different subset. "authorized_for_all_hosts" doesn't appear to provide the granularity I want, or does it? I suppose I could live with three groups of users; a super-user that could view all groups and the two user groups I wish to define. Is this possible? TIA ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Wed Oct 21 17:40:03 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Wed, 21 Oct 2009 21:10:03 +0530 Subject: nagios problem after migration to version 3 In-Reply-To: References: <4ADEFCE1.4000009@infoservices.in> Message-ID: <4ADF2B53.4010200@infoservices.in> Marc Powell wrote: > On Oct 21, 2009, at 7:21 AM, J. Bakshi wrote: > > >> check_mysql is not working here properly. >> >> the command declination is >> >> ````````````````````` >> define command{ >> command_name check_mysql >> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -p $ARG1$ -c >> $ARG2$ >> } >> > > I'm willing to bet money that in the host definition for 'Office > server', the address parameter is not set to 'localhost'. > > Is it not the reason to provide check_mysql!localhost!root!password123 in service definition ? I have also modified the command definition as $USER1$/check_mysql -H $ARG1$ -u $ARG2$ -p $ARG2$ but nagios reports `````````````` Access denied for user 'root'@'localhost' (using password: YES) ``````````` though check_mysql runs perfectly well ``````````````` /usr/lib/nagios/plugins/check_mysql -H localhost -u root -p password123 Uptime: 522385 Threads: 1 Questions: 382106 Slow queries: 0 Opens: 2032 Flush tables: 1 Open tables: 954 Queries per second avg: 0.731 ``````````````````````````````` >> and the localhost.cfg has >> >> ````````````````````````````````` >> define service{ >> use local-service ; Name of >> service template to use >> host_name Office server >> service_description MYSQL >> check_command >> check_mysql!localhost!root!password123 >> } >> > > $ARG1$=localhost > $ARG2$=root > $ARG3$=password123 > > >> After restaring the nagipos3 the mysql check reports >> >> `````````````````````````` >> Host '192.168.1.1' is not allowed to connect to this MySQL server >> ``````````````````````````````` >> >> Though the plugin working perfectly >> >> /usr/lib/nagios/plugins/check_mysql -H localhost -u >> -p >> Uptime: 510145 Threads: 3 Questions: 281108 Slow queries: 0 Opens: >> 966 Flush tables: 1 Open tables: 952 Queries per second avg: 0.551 >> > > This is not what nagios is running. > > >> what might be the problem then ? >> > > > Combining the command_line with your service definition, nagios is > running - /path/to/plugins/check_mysql -H
definition; 192.168.1.x?> -p localhost -c root > > Possible solutions - > - change your command definition to use the host parameter you're > trying to pass it (I presume that the other parameters you pass make > sense but they don't match your test) > check_mysql - command_line $USER1$/check_mysql -H $ARG1$ -p > $ARG2$ -c $ARG3$ > > -- > Marc > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 21 17:46:23 2009 From: marc at ena.com (Marc Powell) Date: Wed, 21 Oct 2009 10:46:23 -0500 Subject: [ SOLVED ] nagios problem after migration to version 3 In-Reply-To: <4ADF22CE.50504@infoservices.in> References: <4ADEFCE1.4000009@infoservices.in> <200910211459.36420.assaf.flatto@ssp-intl.com> <4ADF1D84.4040808@infoservices.in> <4ADF22CE.50504@infoservices.in> Message-ID: On Oct 21, 2009, at 10:03 AM, J. Bakshi wrote: > Asaf I have no idea why -H parameter is not working here !!! But if I > just remove * -H $HOSTADDRESS$ * and modify service definition as > > check_mysql!root!password123 > > and it works perfectly ok. Only because check_mysql defaults to connecting to localhost (via socket I believe) if no -H parameter is specified. > Though I think * -H $HOSTADDRESS$ * should > work where mysql needs a specific hostname to log in successfully. Any > workaround to make * -H $HOSTADDRESS$ * working ? Make sure that in your *host* definition, the *address* is 'localhost' or '127.0.0.1'. Your real problem has nothing to do with nagios. You have access restrictions enabled within your mysql database such that it only permits accesses that originate from localhost. localhost is not the same as the local ethernet IP. When any program makes a TCP connection, the OS uses a source IP of the ethernet interface that leads to that IP. When you connect to localhost, the OS uses a source IP of localhost (127.0.0.1) because that is the interface that leads to that address. You have configured mysql to permit connections from this source. When you connect to mysql on the 192.168.1.1 IP (as specified in the host definition), your OS uses a source address of 192.168.1.1 because that interface leads to that address. You have configured mysql to *reject* connections from this source. You should permit connections from this source if you want to use the ethernet IP as the -H parameter for check_mysql. You'll know you have it right when you can issue the mysql command 'mysql -H 192.168.1.1 -u root -p' and log in. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Oct 21 18:04:37 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Wed, 21 Oct 2009 09:04:37 -0700 Subject: notification)interval being ignored? In-Reply-To: <2274b9c30910201218s3f8b5903ieea545687bd3eb9e@mail.gmail.com> References: <2274b9c30910201218s3f8b5903ieea545687bd3eb9e@mail.gmail.com> Message-ID: <4ADF3115.3000000@hp.com> Kyle O'Donnell wrote: > I am running nagios 3.0.6... > > I don't know if this is happening for all hosts/services, but it seems > to be happening more and more... > > critical service alert goes to hard state - notification 1 sent > notification_interval == 1440 minutes > No more notifications, service remains in the same state for 34days > service drops to warning state - notification 1 sent > service drops to OK state - notification 1 sent. > > here is the service template: > > define service { > name fg-to-st-ni5ri2ma3 > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 2 > active_checks_enabled 0 > passive_checks_enabled 1 > parallelize_check 1 > obsess_over_service 0 > check_freshness 0 > notifications_enabled 1 > notification_interval 1440 > notification_period 24x7 > notification_options u,c,w,r > event_handler_enabled 0 > flap_detection_enabled 0 > process_perf_data 0 > retain_status_information 1 > retain_nonstatus_information 1 > contact_groups fg-to-cg-admins > register 0 > } > > here is the service def > define service { > service_description fg-to-svc-os_sun_df_OS > use fg-to-st-ni5ri2ma3 > host_name myserver > check_command > fg-to-chk-nrpe-sun_df_OS!5666!10%!5%!/!/var!/tmp > } > > Any ideas? > I *could* be mistaken about this, but I don't think the notification interval applies if you're only getting passive check results. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Oct 21 18:06:51 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Wed, 21 Oct 2009 09:06:51 -0700 Subject: multiple views by login? In-Reply-To: <7f62d2420910210801h5c6a8013ge113bcd5eb3afa31@mail.gmail.com> References: <7f62d2420910210801h5c6a8013ge113bcd5eb3afa31@mail.gmail.com> Message-ID: <4ADF319A.7080807@hp.com> dave stern - e-mail.pluribus.unum wrote: > I'd like to present multiple hostgroup views of nagios to different users. > Since hosts can be in multiple hostgroups, I'd like one group to > view one subset of hostgroups and the other to view a different > subset. "authorized_for_all_hosts" doesn't appear to provide > the granularity I want, or does it? I suppose I could live with > three groups of users; a super-user that could view all groups > and the two user groups I wish to define. Is this possible? > Yes, it's possible, and having separate users is the right way to do it. Nagios will, by default, only show users the hosts and services they are listed as a contact on. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 21 18:12:38 2009 From: marc at ena.com (Marc Powell) Date: Wed, 21 Oct 2009 11:12:38 -0500 Subject: nagios problem after migration to version 3 In-Reply-To: <4ADF2B53.4010200@infoservices.in> References: <4ADEFCE1.4000009@infoservices.in> <4ADF2B53.4010200@infoservices.in> Message-ID: On Oct 21, 2009, at 10:40 AM, J. Bakshi wrote: > Is it not the reason to provide > check_mysql!localhost!root!password123 in service definition ? Yes, that's an option, but one you were not using correctly when you posted. That's why I explained through example how to create the command line that nagios is really running and how to get to where you were using the service definition args the way you were expecting. Re- read that message. > I have also modified the command definition as > > $USER1$/check_mysql -H $ARG1$ -u $ARG2$ -p $ARG2$ Looks wrong to me (-p). Should be $ARG3$. Do you understand why? > but nagios reports > > `````````````` > Access denied for user 'root'@'localhost' (using password: YES) Of course, it's using the wrong password. > though check_mysql runs perfectly well > > ``````````````` > /usr/lib/nagios/plugins/check_mysql -H localhost -u root -p > password123 > Uptime: 522385 Threads: 1 Questions: 382106 Slow queries: 0 Opens: > 2032 Flush tables: 1 Open tables: 954 Queries per second avg: 0.731 Again, this is not what you've told nagios to run. Expand the command_line as I did in my original e-mail and you'll understand why. I'm not going to hand it to you any more than I have already; you need to figure it out. It's important that you learn this. http://nagios.sourceforge.net/docs/3_0/macros.html will help. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lance.raymond at gmail.com Thu Oct 22 03:32:31 2009 From: lance.raymond at gmail.com (lance raymond) Date: Wed, 21 Oct 2009 21:32:31 -0400 Subject: 1st post, so naturally the 1st question by the nagios newb re: socket error Message-ID: <5d1656000910211832u7926ef38l839374b222ca30a4@mail.gmail.com> Hi all, well I am running GroundWork open source and really happy with the layout, etc. and now comes the nagios things. My goal is to setup things neatly, organized and learn as I go rather than asking stupid q's along the way. So with that, the 1st task; I have 8 webservers all host numerous sites, a few host only select. So I have created some hostgroups, adding the servers that belong to each, and wonderfully it works. I can select a server, see the group, click the group, see the servers (did I mention I'm good) :) Anyway, I want to setup 2 seperate checks one for each website, then associate them with the groups, so for example; ws1 (site1, site2) ws2 (site1) ws3 (site1, site2) ws4 (site2) Pretty simple. So I copied the check_http command where I saw it used and have the following; command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H $HOSTADDRESS$ -I $HOSTADDRESS$ command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H www.site1.com -I $HOSTADDRESS$ command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H www.site2.com -I $HOSTADDRESS$ The services.cfg has the following (will only show 1 for space) define service { service_description check_s1 use generic-service hostgroup_name s1_WebServers check_command check_s1!3!5 } Now after the above setup and a restart, I have happy to see the check_s1 listed but it's showing critical with the following error; CRITICAL - Socket timeout after 10 seconds At the command line check it does work; ./check_http -H www.site1.com -I 192.168.50.101 HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds |time=0.089949s;;;0.000000 size=14398B;;;0 I am looking through where people are increasing the timeout, but the response time is not even a second, so there must be something else I am missing. So I am looking forward to learning more, welcome any ideas, suggestions, or anything else I should know about using nagios under groundwork. This is running under ubuntu-8.10 server, Program Version:3.0.6, let me know what else I can or need to provide on this. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Thu Oct 22 10:59:27 2009 From: mmelin at gmail.com (Martin Melin) Date: Thu, 22 Oct 2009 10:59:27 +0200 Subject: 1st post, so naturally the 1st question by the nagios newb re: socket error In-Reply-To: <5d1656000910211832u7926ef38l839374b222ca30a4@mail.gmail.com> References: <5d1656000910211832u7926ef38l839374b222ca30a4@mail.gmail.com> Message-ID: Hi, Where did you define the check_s1 command? On which host? It looks like an NRPE config so is this on one of the web servers or on your Nagios host? Where did you try running the command from the shell? On the Nagios host or the web server? Please show the command definition from Nagios for check_s1 as well. Make sure that you've edited the correct NRPE config file, reloaded nrped if you're not using inetd. To check that the check works from the command line, run the check_nrpe command from Nagios, not check_http from Nagios or the webserver. Regards, Martin Melin On Thu, Oct 22, 2009 at 3:32 AM, lance raymond wrote: > Hi all, well I am running GroundWork open source and really happy with the > layout, etc. and now comes the nagios things. My goal is to setup things > neatly, organized and learn as I go rather than asking stupid q's along the > way. So with that, the 1st task; > > I have 8 webservers all host numerous sites, a few host only select. So I > have created some hostgroups, adding the servers that belong to each, and > wonderfully it works. I can select a server, see the group, click the > group, see the servers (did I mention I'm good) :) > > Anyway, I want to setup 2 seperate checks one for each website, then > associate them with the groups, so for example; > ws1 (site1, site2) > ws2 (site1) > ws3 (site1, site2) > ws4 (site2) > > Pretty simple. So I copied the check_http command where I saw it used and > have the following; > > command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H > $HOSTADDRESS$ -I $HOSTADDRESS$ > command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H > www.site1.com -I $HOSTADDRESS$ > command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H > www.site2.com -I $HOSTADDRESS$ > > The services.cfg has the following (will only show 1 for space) > > define service { > service_description check_s1 > use generic-service > hostgroup_name s1_WebServers > check_command check_s1!3!5 > } > > Now after the above setup and a restart, I have happy to see the check_s1 > listed but it's showing critical with the following error; > CRITICAL - Socket timeout after 10 seconds > > At the command line check it does work; > ./check_http -H www.site1.com -I 192.168.50.101 > HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds > |time=0.089949s;;;0.000000 size=14398B;;;0 > > I am looking through where people are increasing the timeout, but the > response time is not even a second, so there must be something else I am > missing. So I am looking forward to learning more, welcome any ideas, > suggestions, or anything else I should know about using nagios under > groundwork. > > This is running under ubuntu-8.10 server, Program Version:3.0.6, let me > know what else I can or need to provide on this. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Thu Oct 22 11:08:50 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Thu, 22 Oct 2009 14:38:50 +0530 Subject: Is there new template shipped with nagios3 ? Message-ID: <4AE02122.8030806@infoservices.in> Hello list, Please bear with me but I am using my old nagios2 configuration file with nagios3. I wounder if there is any new template available for nagios3. I love to use it if any. Here is my running host configuration part ``````````````````````````` define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts notification_period 24x7 ; Send host notifications at any time register 0 } # Linux host definition template - This is NOT a real host, just a template! define host{ name linux-server ; The name of this host template use generic-host ; This template inherits other values from the generic-host template check_period 24x7 ; By default, Linux hosts are checked round the clock max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day notification_interval 120 ; Resend notification every 2 hours notification_options d,u,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define host{ use linux-server host_name Office server address 127.0.0.1 } `````````````````````````````````````````````````````````````` ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Oct 22 12:41:14 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 22 Oct 2009 10:41:14 +0000 Subject: Nagios reload command Message-ID: <200910221041.14559.assaf.flatto@ssp-intl.com> Hello . I have a very annoying issue , when ever i update my nagios config and issue the /etc/init.d/nagios reload command , nagios crashes . ( see below the part from the nagios.log). 1256204302] Caught SIGHUP, restarting... [1256204302] ndomod: Shutdown complete. [1256204302] Event broker module '/usr/local/nagios/bin/ndomod.o' deinitialized successfully. [1256204302] Caught SIGSEGV, shutting down... And i need to restart nagios completely . I looked at the syslog of the system , nothing an also could find nothing in the nagios.debug log . The debug log is not set to the top debug options and so is the syslog . I am running a 3.0.6 from source on SLES 10.2 i586 . Anyone encountered this behaviour before ? Thanks -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ricardo.maraschini at opservices.com.br Thu Oct 22 15:00:45 2009 From: ricardo.maraschini at opservices.com.br (Ricardo Maraschini) Date: Thu, 22 Oct 2009 11:00:45 -0200 (BRST) Subject: OpMon - www.opmon.org In-Reply-To: <30972975.94861256216374310.JavaMail.root@mail.opservices.com.br> References: <30972975.94861256216374310.JavaMail.root@mail.opservices.com.br> Message-ID: <32980085.94911256216444995.JavaMail.root@mail.opservices.com.br> Hello there, Please allow me to introduce you the new version of OpMon. OpMon is a Nagios based solution, using opensource software available at www.opmon.org. Now you can download a complete ISO image, where you'll find a bunch of softwares integrated in a well designed solution. In the available version of OpMon you can find Capacity Planning, SLA, SLM, Service Catalog, Dashboards reports and management. This release goes with a completely redesigned interface. OpMon works in any of the following languages: English, Spanish and Portuguese. Add a new language turns an easily thing. If you are interest in try the power of Nagios integrated with a lot of awesome reports, please refer to [1]. Thanks for attention. OpServices [1] - http://www.opservices.com.br/download __________________________________________________ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Thu Oct 22 15:13:08 2009 From: m.borsani at it.net (Marco Borsani) Date: Thu, 22 Oct 2009 15:13:08 +0200 Subject: host_notifications_enabled Message-ID: <19305.5579242811$1256217462@news.gmane.org> Hi all . I am looking for Nagios 3.2.0 . In its documentation you can see that in the contact definition the directives "host_notifications_enabled" and "service_notifications_enabled" should be required. I am testing a migration from Nagios 1.4.1 and I forget to insert these 2 news directives..nagios 3.2.0 work correctly and does not give me any error/warning message. Why ? Regads Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lance.raymond at gmail.com Thu Oct 22 15:16:34 2009 From: lance.raymond at gmail.com (lance raymond) Date: Thu, 22 Oct 2009 09:16:34 -0400 Subject: 1st post, so naturally the 1st question by the nagios newb re: socket error In-Reply-To: References: <5d1656000910211832u7926ef38l839374b222ca30a4@mail.gmail.com> Message-ID: <5d1656000910220616s41e2d455q700273d9b81b88a0@mail.gmail.com> I haven't installed anything on the webservers (yet), but I do wish to via snmp do load, cpu, etc. or if there is a better way like a client daemon, feel free to let me know. I am still reading/understanding what each is used for (service.cfg, commands.cfg, etc.) but I have the following all for that check; services.cfg define service { service_description check_s1 use generic-service hostgroup_name s1_WebServers check_command check_s1!3!5 } check_commands.cfg define command { command_name check_s1 command_line $USER1$/check_http -H www.site1.com-w "$ARG1$" -c "$ARG2$" } command.cfg has; command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H www.site1.com -I $HOSTADDRESS$ As for where the local command was run, yes it was local to the groundwork (nagios) server from the following location; root at groundwork:/usr/local/groundwork/nagios/libexec/check_http -H www.site1.com -I 192.168.50.101 HTTP OK HTTP/1.1 200 OK - 14351 bytes in 0.249 seconds |time=0.249456s;;;0.000000 size=14351B;;;0 I am not sure what the NRPE plugin is but just looking at the options, it looks like it's run on the client as there is no spot for IP, when run local it simply says connection refused by host for the site1.com domain. Thanks. On Thu, Oct 22, 2009 at 4:59 AM, Martin Melin wrote: > Hi, > Where did you define the check_s1 command? On which host? It looks like an > NRPE config so is this on one of the web servers or on your Nagios host? > > Where did you try running the command from the shell? On the Nagios host or > the web server? > > Please show the command definition from Nagios for check_s1 as well. > > Make sure that you've edited the correct NRPE config file, reloaded nrped > if you're not using inetd. To check that > the check works from the command line, run the check_nrpe command from Nagios, not check_http from Nagios or the webserver. > > Regards, > Martin Melin > > On Thu, Oct 22, 2009 at 3:32 AM, lance raymond wrote: > >> Hi all, well I am running GroundWork open source and really happy with the >> layout, etc. and now comes the nagios things. My goal is to setup things >> neatly, organized and learn as I go rather than asking stupid q's along the >> way. So with that, the 1st task; >> >> I have 8 webservers all host numerous sites, a few host only select. So I >> have created some hostgroups, adding the servers that belong to each, and >> wonderfully it works. I can select a server, see the group, click the >> group, see the servers (did I mention I'm good) :) >> >> Anyway, I want to setup 2 seperate checks one for each website, then >> associate them with the groups, so for example; >> ws1 (site1, site2) >> ws2 (site1) >> ws3 (site1, site2) >> ws4 (site2) >> >> Pretty simple. So I copied the check_http command where I saw it used and >> have the following; >> >> command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H >> $HOSTADDRESS$ -I $HOSTADDRESS$ >> command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H >> www.site1.com -I $HOSTADDRESS$ >> command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H >> www.site2.com -I $HOSTADDRESS$ >> >> The services.cfg has the following (will only show 1 for space) >> >> define service { >> service_description check_s1 >> use generic-service >> hostgroup_name s1_WebServers >> check_command check_s1!3!5 >> } >> >> Now after the above setup and a restart, I have happy to see the check_s1 >> listed but it's showing critical with the following error; >> CRITICAL - Socket timeout after 10 seconds >> >> At the command line check it does work; >> ./check_http -H www.site1.com -I 192.168.50.101 >> HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds >> |time=0.089949s;;;0.000000 size=14398B;;;0 >> >> I am looking through where people are increasing the timeout, but the >> response time is not even a second, so there must be something else I am >> missing. So I am looking forward to learning more, welcome any ideas, >> suggestions, or anything else I should know about using nagios under >> groundwork. >> >> This is running under ubuntu-8.10 server, Program Version:3.0.6, let me >> know what else I can or need to provide on this. >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.huth at tmr.net Thu Oct 22 16:07:32 2009 From: a.huth at tmr.net (Alex Huth) Date: Thu, 22 Oct 2009 16:07:32 +0200 Subject: file or directory not found Message-ID: <20091022140732.GB25484@borusse.borussiapark> Hi! I have a maybe little stupid problem. To watch a new host i have copy the binaries into /usr/local/nagios/libexec/. Now put the new host into a group of hosts with the same checks and ready! Not really ... i am getting a error: Remote command execution failed: bash: /usr/local/nagios/libexec/check_disk: Datei oder Verzeichnis nicht gefunden Same when i try to execute the command directly on the localhost of the new machine. I think i am missing somoething. But what? Thx Alex ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerald.Ortner at gespag.at Thu Oct 22 16:17:36 2009 From: Gerald.Ortner at gespag.at (Ortner, Gerald) Date: Thu, 22 Oct 2009 16:17:36 +0200 Subject: 1st post, so naturally the 1st question by the nagios newb re: socket error In-Reply-To: <5d1656000910220616s41e2d455q700273d9b81b88a0@mail.gmail.com> References: <5d1656000910211832u7926ef38l839374b222ca30a4@mail.gmail.com> <5d1656000910220616s41e2d455q700273d9b81b88a0@mail.gmail.com> Message-ID: Try define command { command_name check_s1 command_line $USER1$/check_http -H www.site1.com -I $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" } Von: lance raymond [mailto:lance.raymond at gmail.com] Gesendet: Donnerstag, 22. Oktober 2009 15:17 An: nagios-users at lists.sourceforge.net Betreff: Re: [Nagios-users] 1st post,so naturally the 1st question by the nagios newb re: socket error I haven't installed anything on the webservers (yet), but I do wish to via snmp do load, cpu, etc. or if there is a better way like a client daemon, feel free to let me know. I am still reading/understanding what each is used for (service.cfg, commands.cfg, etc.) but I have the following all for that check; services.cfg define service { service_description check_s1 use generic-service hostgroup_name s1_WebServers check_command check_s1!3!5 } check_commands.cfg define command { command_name check_s1 command_line $USER1$/check_http -H www.site1.com -w "$ARG1$" -c "$ARG2$" } command.cfg has; command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H www.site1.com -I $HOSTADDRESS$ As for where the local command was run, yes it was local to the groundwork (nagios) server from the following location; root at groundwork:/usr/local/groundwork/nagios/libexec/check_http -H www.site1.com -I 192.168.50.101 HTTP OK HTTP/1.1 200 OK - 14351 bytes in 0.249 seconds |time=0.249456s;;;0.000000 size=14351B;;;0 I am not sure what the NRPE plugin is but just looking at the options, it looks like it's run on the client as there is no spot for IP, when run local it simply says connection refused by host for the site1.com domain. Thanks. On Thu, Oct 22, 2009 at 4:59 AM, Martin Melin wrote: Hi, Where did you define the check_s1 command? On which host? It looks like an NRPE config so is this on one of the web servers or on your Nagios host? Where did you try running the command from the shell? On the Nagios host or the web server? Please show the command definition from Nagios for check_s1 as well. Make sure that you've edited the correct NRPE config file, reloaded nrped if you're not using inetd. To check that the check works from the command line, run the check_nrpe command from Nagios, not check_http from Nagios or the webserver. Regards, Martin Melin On Thu, Oct 22, 2009 at 3:32 AM, lance raymond wrote: Hi all, well I am running GroundWork open source and really happy with the layout, etc. and now comes the nagios things. My goal is to setup things neatly, organized and learn as I go rather than asking stupid q's along the way. So with that, the 1st task; I have 8 webservers all host numerous sites, a few host only select. So I have created some hostgroups, adding the servers that belong to each, and wonderfully it works. I can select a server, see the group, click the group, see the servers (did I mention I'm good) :) Anyway, I want to setup 2 seperate checks one for each website, then associate them with the groups, so for example; ws1 (site1, site2) ws2 (site1) ws3 (site1, site2) ws4 (site2) Pretty simple. So I copied the check_http command where I saw it used and have the following; command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H $HOSTADDRESS$ -I $HOSTADDRESS$ command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H www.site1.com -I $HOSTADDRESS$ command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H www.site2.com -I $HOSTADDRESS$ The services.cfg has the following (will only show 1 for space) define service { service_description check_s1 use generic-service hostgroup_name s1_WebServers check_command check_s1!3!5 } Now after the above setup and a restart, I have happy to see the check_s1 listed but it's showing critical with the following error; CRITICAL - Socket timeout after 10 seconds At the command line check it does work; ./check_http -H www.site1.com -I 192.168.50.101 HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds |time=0.089949s;;;0.000000 size=14398B;;;0 I am looking through where people are increasing the timeout, but the response time is not even a second, so there must be something else I am missing. So I am looking forward to learning more, welcome any ideas, suggestions, or anything else I should know about using nagios under groundwork. This is running under ubuntu-8.10 server, Program Version:3.0.6, let me know what else I can or need to provide on this. ------------------------------------------------------------------------ ------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------ ------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null OOe. Gesundheits- und Spitals-AG Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 p -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lance.raymond at gmail.com Thu Oct 22 17:11:20 2009 From: lance.raymond at gmail.com (lance raymond) Date: Thu, 22 Oct 2009 11:11:20 -0400 Subject: 1st post, so naturally the 1st question by the nagios newb re: socket error In-Reply-To: References: <5d1656000910211832u7926ef38l839374b222ca30a4@mail.gmail.com> <5d1656000910220616s41e2d455q700273d9b81b88a0@mail.gmail.com> Message-ID: <5d1656000910220811h3073bee9la8e5c36f666744fa@mail.gmail.com> [SOLVED]. That did it. Can't believe I even wrote the command line and included it, but I just followed the default. But thanks. Looking forward to all the learning from both playing and the group. On Thu, Oct 22, 2009 at 10:17 AM, Ortner, Gerald wrote: > > > > > Try > > > > define command { > command_name check_s1 > command_line $USER1$/check_http -H > www.site1.com -I $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" > } > > > > *Von:* lance raymond [mailto:lance.raymond at gmail.com] > *Gesendet:* Donnerstag, 22. Oktober 2009 15:17 > *An:* nagios-users at lists.sourceforge.net > *Betreff:* Re: [Nagios-users] 1st post,so naturally the 1st question by > the nagios newb re: socket error > > > > I haven't installed anything on the webservers (yet), but I do wish to via > snmp do load, cpu, etc. or if there is a better way like a client daemon, > feel free to let me know. I am still reading/understanding what each is used > for (service.cfg, commands.cfg, etc.) but I have the following all for that > check; > > services.cfg > define service { > service_description check_s1 > use generic-service > hostgroup_name s1_WebServers > check_command check_s1!3!5 > } > > check_commands.cfg > define command { > command_name check_s1 > command_line $USER1$/check_http -H > www.site1.com -w "$ARG1$" -c "$ARG2$" > } > > command.cfg has; > command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H > www.site1.com -I $HOSTADDRESS$ > > As for where the local command was run, yes it was local to the groundwork > (nagios) server from the following location; > > root at groundwork:/usr/local/groundwork/nagios/libexec/check_http -H > www.site1.com -I 192.168.50.101 > HTTP OK HTTP/1.1 200 OK - 14351 bytes in 0.249 seconds > |time=0.249456s;;;0.000000 size=14351B;;;0 > > I am not sure what the NRPE plugin is but just looking at the options, it > looks like it's run on the client as there is no spot for IP, when run local > it simply says connection refused by host for the site1.com domain. > > Thanks. > > On Thu, Oct 22, 2009 at 4:59 AM, Martin Melin wrote: > > Hi, > > > > Where did you define the check_s1 command? On which host? It looks like an > NRPE config so is this on one of the web servers or on your Nagios host? > > > > Where did you try running the command from the shell? On the Nagios host or > the web server? > > > > Please show the command definition from Nagios for check_s1 as well. > > > > Make sure that you've edited the correct NRPE config file, reloaded nrped > if you're not using inetd. To check that > the check works from the command line, run the check_nrpe command from Nagios, not check_http from Nagios or the webserver. > > > > Regards, > > Martin Melin > > > > On Thu, Oct 22, 2009 at 3:32 AM, lance raymond > wrote: > > Hi all, well I am running GroundWork open source and really happy with > the layout, etc. and now comes the nagios things. My goal is to setup > things neatly, organized and learn as I go rather than asking stupid q's > along the way. So with that, the 1st task; > > I have 8 webservers all host numerous sites, a few host only select. So I > have created some hostgroups, adding the servers that belong to each, and > wonderfully it works. I can select a server, see the group, click the > group, see the servers (did I mention I'm good) :) > > Anyway, I want to setup 2 seperate checks one for each website, then > associate them with the groups, so for example; > ws1 (site1, site2) > ws2 (site1) > ws3 (site1, site2) > ws4 (site2) > > Pretty simple. So I copied the check_http command where I saw it used and > have the following; > > command[check_http]=/usr/local/groundwork/nagios/libexec/check_http -H > $HOSTADDRESS$ -I $HOSTADDRESS$ > command[check_s1]=/usr/local/groundwork/nagios/libexec/check_http -H > www.site1.com -I $HOSTADDRESS$ > command[check_s2]=/usr/local/groundwork/nagios/libexec/check_http -H > www.site2.com -I $HOSTADDRESS$ > > The services.cfg has the following (will only show 1 for space) > > define service { > service_description check_s1 > use generic-service > hostgroup_name s1_WebServers > check_command check_s1!3!5 > } > > Now after the above setup and a restart, I have happy to see the check_s1 > listed but it's showing critical with the following error; > CRITICAL - Socket timeout after 10 seconds > > At the command line check it does work; > ./check_http -H www.site1.com -I 192.168.50.101 > HTTP OK HTTP/1.1 200 OK - 14398 bytes in 0.090 seconds > |time=0.089949s;;;0.000000 size=14398B;;;0 > > I am looking through where people are increasing the timeout, but the > response time is not even a second, so there must be something else I am > missing. So I am looking forward to learning more, welcome any ideas, > suggestions, or anything else I should know about using nagios under > groundwork. > > This is running under ubuntu-8.10 server, Program Version:3.0.6, let me > know what else I can or need to provide on this. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > OOe. Gesundheits- und Spitals-AG > Techcenter, Hafenstrasse 47-51, 4020 Linz > DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 > p > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Thu Oct 22 19:13:54 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Thu, 22 Oct 2009 19:13:54 +0200 Subject: file or directory not found In-Reply-To: <20091022140732.GB25484@borusse.borussiapark> References: <20091022140732.GB25484@borusse.borussiapark> Message-ID: <90f6e8270910221013u1506109buc2ae41eb4aaa3d01@mail.gmail.com> On Thu, Oct 22, 2009 at 4:07 PM, Alex Huth wrote: > Hi! > > I have a maybe little stupid problem. To watch a new host i have copy the > binaries into /usr/local/nagios/libexec/. Now put the new host into a group > of > hosts with the same checks and ready! Not really ... i am getting a error: > > Remote command execution failed: bash: > /usr/local/nagios/libexec/check_disk: > Datei oder Verzeichnis nicht gefunden > > do ls -l /usr/local/nagios/libexec/check_disk and check the permissions > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Thu Oct 22 21:03:36 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Thu, 22 Oct 2009 15:03:36 -0400 Subject: how to start nagios multiple instance Message-ID: <6db4a4200910221203t28fd34d7y68903fcea623434b@mail.gmail.com> All, I am sub dividing my nagios into multiple instances. I have read http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=22&expand=false&showdesc=truefor information. However I have few questions. Thanks in advance 1) How would we manage init.d script? are we going to use one init.d script to start all the process or should there be multiple init.d script? 2) Do we need multiple nagios.cfg file for each instance or one nagios.cfg file separate parameter suche "log_file" with multiple argument. 3) Is there a possibility for namespace clash in cgi urls? -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lance.raymond at gmail.com Thu Oct 22 21:20:31 2009 From: lance.raymond at gmail.com (lance raymond) Date: Thu, 22 Oct 2009 15:20:31 -0400 Subject: Checking load via snmp Message-ID: <5d1656000910221220q53a404c6ic73dd83d2d651f10@mail.gmail.com> I see a nice little check_snmp_load plugin that comes with groundwork/nagios, but not sure if it's correct. When I run from the command line on the nagio server, I get the following; ./check_snmp_load.pl -H 192.168.50.101 -C community -w 50 0 -c 60 I get the following reply; 4 CPU, average load 14.8 < 50 : OK at the same time, a 'w' shows; root at ws1:~# w 15:18:31 up 21 days, 17:51, 3 users, load average: 1.12, 1.75, 1.72 So I am trying to see if I am missing something as to why the load is showing at 14, where it should be one. Not sure if anyone is using this over the check_by_ssh, and has feedback, but I would like to just get the immediate server load every x amount of minutes, not worried about the 5 minute average, etc. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kgoutos at libertymgt.com Thu Oct 22 21:29:21 2009 From: kgoutos at libertymgt.com (Goutos, Kevin) Date: Thu, 22 Oct 2009 15:29:21 -0400 Subject: 5 Nagios General Questions In-Reply-To: <85555FA8-6CB4-4ACC-92D8-D570BF76173D@ena.com> References: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com> <85555FA8-6CB4-4ACC-92D8-D570BF76173D@ena.com> Message-ID: Hi all, I have a few general Nagios questions for you all, I appreciate any feedback you can provide. 1) I don't think I'm restarting Nagios correctly whenever I make a change in a one of the configuration files. I'm using /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg as well as /etc/rc.d/init.d/nagios reload, restart, stop, start ,etc. It does say it restarts Nagios, however it doesn't seem to be using the 'new' scripts when I've made changes in them. For example I just changed the E-mail address and did those commands above, and it's still sending Email to my old address. Does this have something to do with me commenting out the pre caching options maybe? 2) For my notifications, I'm not seeing anything in the body of the message. All I see is the Message name "** PROBLEM Host Alert: CORP-NSS is DOWN **". I'm pretty sure there should be more information in the body.. any ideas? 3) I've seen a couple plugins on a few sites I might want to check out, how do I go about installing them? I didn't find any documentation for installing them.. 4) I'm looking for more ways to monitor our Routers and Switches here. Currently all I have is service checks of 'Ping Test' and 'System Uptime'. I also saw on the quickstart guide the following service check, but I'm seeing errors. The IP address there looks wrong, and it's saying it can't find a log. define service{ use generic-service hostgroup_name switches service_description Check Local Traffic check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,20000 00!5000000,5000000!10 } 5) What other service checks do people use to monitor their switches and routers? We have SNMP enabled on them and want to collect more information through Nagios. Thanks for the help!! ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rjustinwilliams at gmail.com Thu Oct 22 22:24:06 2009 From: rjustinwilliams at gmail.com (Justin Williams) Date: Thu, 22 Oct 2009 16:24:06 -0400 Subject: 5 Nagios General Questions In-Reply-To: References: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com> <85555FA8-6CB4-4ACC-92D8-D570BF76173D@ena.com> Message-ID: <1095a4c40910221324i56a165a2n20361bb932159bc8@mail.gmail.com> 1- are you sure the config file you're editing and the config file you're loading are the same file? Mine are simply in /etc/nagios/nagios.cfg and below; not sure where the /usr/local comes from, but,that may be distro-relative... 2- take a look at your commands.cfg file. That's where email message formatting is, among other things, and might give you a bit more info on what is supposed to be sent. You might also check the messages log on your nagios server to see what you can see in there. 3- download plug-in, move to nagios' plug-ins folder (called libexec on my box - specifically, /usr/nagios/libexec). Make sure nagios has permissions to execute said plugin. Define the command to use it in the commands.cfg file as above, and use it in whatever config you use to define your services. 4- Do you have mrtg installed? For switches/routers, I'm OK with knowing they're pingable. If they're pingable, and the box on the other side isn't, my suspicion then turns to my box being down. If it is still up, I'd consider routing issues... 5- snmp can be used for that - just make sure that you're using a read-only community to communicate with your routers... Otherwise, you're broadcasting information that can be used to change the snmp settings on your devices, and can really get into deep ca-ca going through THAT bit of fun!! You just need to know what information you want to pull from your devices, and translate that to whatever mip your device is throwing out there - snmpwalk is very helpful for that... On Thu, Oct 22, 2009 at 3:29 PM, Goutos, Kevin wrote: > Hi all, > > I have a few general Nagios questions for you all, I appreciate any > feedback you can provide. > > > 1) I don't think I'm restarting Nagios correctly whenever I make a > change in a one of the configuration files. I'm using > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg as well > as /etc/rc.d/init.d/nagios reload, restart, stop, start ,etc. It does > say it restarts Nagios, however it doesn't seem to be using the 'new' > scripts when I've made changes in them. For example I just changed the > E-mail address and did those commands above, and it's still sending > Email to my old address. Does this have something to do with me > commenting out the pre caching options maybe? > > 2) For my notifications, I'm not seeing anything in the body of the > message. All I see is the Message name "** PROBLEM Host Alert: CORP-NSS > is DOWN **". I'm pretty sure there should be more information in the > body.. any ideas? > > 3) I've seen a couple plugins on a few sites I might want to check out, > how do I go about installing them? I didn't find any documentation for > installing them.. > > 4) I'm looking for more ways to monitor our Routers and Switches here. > Currently all I have is service checks of 'Ping Test' and 'System > Uptime'. I also saw on the quickstart guide the following service > check, but I'm seeing errors. The IP address there looks wrong, and > it's saying it can't find a log. > > define service{ > use generic-service > hostgroup_name switches > service_description Check Local Traffic > check_command > check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,20000 > 00!5000000,5000000!10 > } > > 5) What other service checks do people use to monitor their switches and > routers? We have SNMP enabled on them and want to collect more > information through Nagios. > > Thanks for the help!! > > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy at andyford.org Fri Oct 23 01:36:08 2009 From: andy at andyford.org (Andy Ford) Date: Thu, 22 Oct 2009 18:36:08 -0500 Subject: Checking load via snmp In-Reply-To: <5d1656000910221220q53a404c6ic73dd83d2d651f10@mail.gmail.com> References: <5d1656000910221220q53a404c6ic73dd83d2d651f10@mail.gmail.com> Message-ID: What kind of device are you polling? It could be that it provides load and percent CPU used via SNMP and the your plugin is using the percent CPU OID(s). On Thu, Oct 22, 2009 at 2:20 PM, lance raymond wrote: > I see a nice little check_snmp_load plugin that comes with > groundwork/nagios, but not sure if it's correct. When I run from the > command line on the nagio server, I get the following; > > ./check_snmp_load.pl -H 192.168.50.101 -C community -w 50 0 -c 60 I get > the following reply; > 4 CPU, average load 14.8 < 50 : OK > > at the same time, a 'w' shows; > root at ws1:~# w > 15:18:31 up 21 days, 17:51, 3 users, load average: 1.12, 1.75, 1.72 > > So I am trying to see if I am missing something as to why the load is > showing at 14, where it should be one. > > Not sure if anyone is using this over the check_by_ssh, and has feedback, > but I would like to just get the immediate server load every x amount of > minutes, not worried about the 5 minute average, etc. > > Thanks > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- http://www.andrewford.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.huth at tmr.net Fri Oct 23 09:47:17 2009 From: a.huth at tmr.net (Alex Huth) Date: Fri, 23 Oct 2009 09:47:17 +0200 Subject: file or directory not found In-Reply-To: <90f6e8270910221013u1506109buc2ae41eb4aaa3d01@mail.gmail.com> References: <20091022140732.GB25484@borusse.borussiapark> <90f6e8270910221013u1506109buc2ae41eb4aaa3d01@mail.gmail.com> Message-ID: <20091023074717.GA10405@borusse.borussiapark> * Natxo Asenjo schrieb: > On Thu, Oct 22, 2009 at 4:07 PM, Alex Huth wrote: > > do ls -l /usr/local/nagios/libexec/check_disk and check the permissions > That was the first thing i did, they have all 755. Did i missed something else? I only have to copy the binaries to the remote machine to check it or something else? Alex ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at quux.de Fri Oct 23 10:19:29 2009 From: lists at quux.de (Jens Link) Date: Fri, 23 Oct 2009 10:19:29 +0200 Subject: NRPE and IPv6 Message-ID: <87ljj2msj2.fsf@laphroiag.quux.de> Hi, is ist possible to run NRPE over IPv6? When I try I get jens at calo-ila:/usr/local/nagios/libexec$ ./check_nrpe -H 2001:db8:1138::1 Invalid host name '2001:db8:1138::1' When trying to use a Hostname with both A and AAAA record only A is used. cheers, Jens -- ------------------------------------------------------------------------- | Foelderichstr. 40 | 13595 Berlin, Germany | +49-151-18721264 | | http://www.quux.de | http://blog.quux.de | jabber: jenslink at guug.de | ------------------------------------------------------------------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 10:39:15 2009 From: m.borsani at it.net (Marco Borsani) Date: Fri, 23 Oct 2009 10:39:15 +0200 Subject: service acknowledges disappears Message-ID: <14332.4788580232$1256287464@news.gmane.org> Hi all I am testing nagios 3.2.0 and I know pretty good 1.4.1. In my new server I am looking for acknowledge process and I have a problem. When I restart Nagios, the acknowledgement of the services in critical states disappears . even if I check "Sticky Acknowledgement" Any idea ? Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 10:59:46 2009 From: m.borsani at it.net (Marco Borsani) Date: Fri, 23 Oct 2009 10:59:46 +0200 Subject: nagios var directory In-Reply-To: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> Message-ID: <2551.24642649225$1256288687@news.gmane.org> Hi all May you show me the list of yours nagios/var directory ? I am afraid that my one has not the correct permissions (when I restart nagios I loose all the disabled notification status and the acknowledged problems) ls -la totale 252 drwxrwxr-x 5 nagios nagios 4096 23 ott 10:53 . drwxrwxr-x 10 nagios nagios 4096 13 ott 11:21 .. drwxrwxr-x 2 nagios nagios 4096 23 ott 00:00 archives -rw-r--r-- 1 nagios nagios 6 23 ott 10:43 nagios.lock -rw-rw-r-- 1 nagios nagios 133880 23 ott 10:53 nagios.log -rw-r--r-- 1 nagios nagios 26625 23 ott 10:43 objects.cache -rw------- 1 nagios nagios 30376 23 ott 10:43 retention.dat drwxrwsr-x 2 nagios nagcmd 4096 23 ott 10:43 rw drwxrwxr-x 3 nagios nagios 4096 8 set 10:29 spool -rw-rw-r-- 1 nagios nagios 31142 23 ott 10:53 status.dat Regards Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lance.raymond at gmail.com Fri Oct 23 13:52:49 2009 From: lance.raymond at gmail.com (lance raymond) Date: Fri, 23 Oct 2009 07:52:49 -0400 Subject: Checking load via snmp In-Reply-To: <5d1656000910230451v37aa47eai915fdc2b1e871e73@mail.gmail.com> References: <5d1656000910221220q53a404c6ic73dd83d2d651f10@mail.gmail.com> <5d1656000910230451v37aa47eai915fdc2b1e871e73@mail.gmail.com> Message-ID: <5d1656000910230452v65d13a20n74be69c2e7275129@mail.gmail.com> The server and all the devices I will be polling are all Dell PowerEdge servers, the 1750, 1850 and 1950 models. The plugin I am using is what cam in the install. I will look at some options as well as the exchange as there may be others, just saw that and figured it was a basic check I am sure so would use the stock one. Thanks > (Sorry Andy for the direct response) > > On Thu, Oct 22, 2009 at 7:36 PM, Andy Ford wrote: > >> What kind of device are you polling? It could be that it provides load and >> percent CPU used via SNMP and the your plugin is using the percent CPU >> OID(s). >> >> On Thu, Oct 22, 2009 at 2:20 PM, lance raymond wrote: >> >>> I see a nice little check_snmp_load plugin that comes with >>> groundwork/nagios, but not sure if it's correct. When I run from the >>> command line on the nagio server, I get the following; >>> >>> ./check_snmp_load.pl -H 192.168.50.101 -C community -w 50 0 -c 60 I >>> get the following reply; >>> 4 CPU, average load 14.8 < 50 : OK >>> >>> at the same time, a 'w' shows; >>> root at ws1:~# w >>> 15:18:31 up 21 days, 17:51, 3 users, load average: 1.12, 1.75, 1.72 >>> >>> So I am trying to see if I am missing something as to why the load is >>> showing at 14, where it should be one. >>> >>> Not sure if anyone is using this over the check_by_ssh, and has feedback, >>> but I would like to just get the immediate server load every x amount of >>> minutes, not worried about the 5 minute average, etc. >>> >>> Thanks >>> >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >>> >> >> >> >> -- >> http://www.andrewford.org >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 15:45:15 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Oct 2009 08:45:15 -0500 Subject: service acknowledges disappears In-Reply-To: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> Message-ID: <34199D63-4085-4E61-87FB-29152643362A@ena.com> On Oct 23, 2009, at 3:39 AM, Marco Borsani wrote: > Hi all > > I am testing nagios 3.2.0 and I know pretty good 1.4.1. > > In my new server I am looking for acknowledge process and I have a > problem. > When I restart Nagios, the acknowledgement of the services in > critical states disappears ? even if I check ?Sticky Acknowledgement Do you have state retention enabled, program wide (nagios.cfg) and in the service definition? -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 15:38:06 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Oct 2009 08:38:06 -0500 Subject: how to start nagios multiple instance In-Reply-To: <6db4a4200910221203t28fd34d7y68903fcea623434b@mail.gmail.com> References: <6db4a4200910221203t28fd34d7y68903fcea623434b@mail.gmail.com> Message-ID: On Oct 22, 2009, at 2:03 PM, shadih rahman wrote: > All, > I am sub dividing my nagios into multiple instances. I have read http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=22&expand=false&showdesc=true > for information. However I have few questions. Thanks in advance > > 1) How would we manage init.d script? are we going to use one > init.d script to start all the process or should there be multiple > init.d script? When I wanted to do this, I used one init.d script, heavily modified. > 2) Do we need multiple nagios.cfg file for each instance or one > nagios.cfg file separate parameter suche "log_file" with multiple > argument. You'll need multiple nagios.cfg files so that the files that nagios writes to don't conflict. Nagios doesn't understand multiple arguments to things like 'log_file'. > 3) Is there a possibility for namespace clash in cgi urls? I'm not sure but you may have issues if you enable the use of nagios environment variables? 4) Why do you think you need to run multiple instances of nagios? What are you trying to accomplish? -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 15:34:06 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Oct 2009 08:34:06 -0500 Subject: 5 Nagios General Questions In-Reply-To: References: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com> <85555FA8-6CB4-4ACC-92D8-D570BF76173D@ena.com> Message-ID: <4456F2F3-1DF0-4041-9744-29EE11E44D72@ena.com> On Oct 22, 2009, at 2:29 PM, Goutos, Kevin wrote: > Hi all, > > I have a few general Nagios questions for you all, I appreciate any > feedback you can provide. > > > 1) I don't think I'm restarting Nagios correctly whenever I make a > change in a one of the configuration files. I'm using > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg as > well > as /etc/rc.d/init.d/nagios reload, restart, stop, start ,etc. The first starts a new instance of nagios and the second reloads or reloads that new instance. If you do both, in that order, it does nothing for the *original* running version of nagios, which continues to run. You end up with two or more concurrently running versions of nagios, each with possibly different configurations in memory. Use only the init.d restart or reload. To 'fix' where you are now, stop nagios, use 'ps' and 'kill' to stop any running copies you have and restart nagios. > 2) For my notifications, I'm not seeing anything in the body of the > message. All I see is the Message name "** PROBLEM Host Alert: CORP- > NSS > is DOWN **". I'm pretty sure there should be more information in the > body.. any ideas? Without seeing the actual notification command definition in question, we can only say to look at it and make sure that the macros you are using for it are valid for your version of nagios. > 3) I've seen a couple plugins on a few sites I might want to check > out, > how do I go about installing them? I didn't find any documentation > for > installing them.. Typically just copy them to the libexec directory and create appropriate command{} definitions for them. Hopefully the plugin author provides enough information or plugin --help to figure it out. Otherwise, your understanding how the current plugin <-> command{} definition <-> service{} definition relationship works is usually enough to know what to do. Read through the nagios documentation; it'll be worth it in the long term. > 4) I'm looking for more ways to monitor our Routers and Switches here. > Currently all I have is service checks of 'Ping Test' and 'System > Uptime'. I also saw on the quickstart guide the following service > check, but I'm seeing errors. The IP address there looks wrong, and > it's saying it can't find a log. > > define service{ > use generic-service > hostgroup_name switches > service_description Check Local Traffic > check_command > check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG! > 1000000,20000 > 00!5000000,5000000!10 > } This plugin requires that you're already running the MRTG program (completely unrelated to Nagios) to pre-cache the results. It's simply reading the traffic usage from the MTRG log file, not from the router. Are you running MRTG and pointing it to the correct and existing log file (/var/lib/mrtg/192.168.1.253_1.log)? Are the permissions such that the nagios user can read it? > 5) What other service checks do people use to monitor their switches > and > routers? We have SNMP enabled on them and want to collect more > information through Nagios. Ping, a bunch of custom checks (BGP peering, multi-interface checks, etc) for Nagios. We use Cricket for all utilization graphing/trending. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 15:57:51 2009 From: m.borsani at it.net (Marco Borsani) Date: Fri, 23 Oct 2009 15:57:51 +0200 Subject: R: service acknowledges disappears In-Reply-To: <34199D63-4085-4E61-87FB-29152643362A@ena.com> References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> <34199D63-4085-4E61-87FB-29152643362A@ena.com> Message-ID: <49135.2458172061$1256306541@news.gmane.org> Yes I do. Nagios.cfg: retain_state_information=1 service definition: retain_status_information 1 retain_nonstatus_information 0 Previous are the configurations also used in Nagios 1.4.1 (where some time happens same problem, but only for few services, ALL configured with same variables) Marco -----Messaggio originale----- Da: Marc Powell [mailto:marc at ena.com] Inviato: venerd? 23 ottobre 2009 15.45 A: Nagios-users at lists.sourceforge.net Mailinglist Oggetto: Re: [Nagios-users] service acknowledges disappears On Oct 23, 2009, at 3:39 AM, Marco Borsani wrote: > Hi all > > I am testing nagios 3.2.0 and I know pretty good 1.4.1. > > In my new server I am looking for acknowledge process and I have a > problem. > When I restart Nagios, the acknowledgement of the services in > critical states disappears even if I check ?Sticky Acknowledgement Do you have state retention enabled, program wide (nagios.cfg) and in the service definition? -- Marc ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Fri Oct 23 16:04:20 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Fri, 23 Oct 2009 10:04:20 -0400 Subject: how to start nagios multiple instance In-Reply-To: References: <6db4a4200910221203t28fd34d7y68903fcea623434b@mail.gmail.com> Message-ID: <6db4a4200910230704p3c4cf6a1q76723499462048b3@mail.gmail.com> Marc, Thanks for your reply. The reason behind doing multiple instance is described below. Thanks 1) Previous monitoring system (survivor) was running multiple instance based on different systems group. 2) I have been doing hostgroup and servicegroup along with contactgroup to represent different instances of previous monitoring system. However its growing exponentially and seeing performance issue. ( currently there are 8000 servicechecks. Some of the hosts will be 20 fold on the number of service checks run on them soon.) 3. Ndoutils database has performance on quering some of these services. When run different instances with separate database their data set will be smaller and it will be easy to retain the data for longer time. On Fri, Oct 23, 2009 at 9:38 AM, Marc Powell wrote: > > On Oct 22, 2009, at 2:03 PM, shadih rahman wrote: > > > All, > > I am sub dividing my nagios into multiple instances. I have read > http://support.nagios.com/knowledgebase/faqs/index.php?option=com_content&view=article&id=52&catid=35&faq_id=22&expand=false&showdesc=true > > for information. However I have few questions. Thanks in advance > > > > 1) How would we manage init.d script? are we going to use one > > init.d script to start all the process or should there be multiple > > init.d script? > > When I wanted to do this, I used one init.d script, heavily modified. > > > 2) Do we need multiple nagios.cfg file for each instance or one > > nagios.cfg file separate parameter suche "log_file" with multiple > > argument. > > You'll need multiple nagios.cfg files so that the files that nagios > writes to don't conflict. Nagios doesn't understand multiple arguments > to things like 'log_file'. > > > 3) Is there a possibility for namespace clash in cgi urls? > > I'm not sure but you may have issues if you enable the use of nagios > environment variables? > > 4) Why do you think you need to run multiple instances of nagios? What > are you trying to accomplish? > > -- > Marc > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 17:00:45 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Oct 2009 10:00:45 -0500 Subject: R: service acknowledges disappears In-Reply-To: <00a701ca53e8$d2c47950$784d6bf0$@borsani@it.net> References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> <34199D63-4085-4E61-87FB-29152643362A@ena.com> <00a701ca53e8$d2c47950$784d6bf0$@borsani@it.net> Message-ID: <278E1DE0-A12E-4696-BA84-3B8634A41D87@ena.com> On Oct 23, 2009, at 8:57 AM, Marco Borsani wrote: > service definition: > retain_nonstatus_information 0 Set this to 1. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kgoutos at libertymgt.com Fri Oct 23 17:04:02 2009 From: kgoutos at libertymgt.com (Goutos, Kevin) Date: Fri, 23 Oct 2009 11:04:02 -0400 Subject: 5 Nagios General Questions In-Reply-To: <4456F2F3-1DF0-4041-9744-29EE11E44D72@ena.com> References: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com><85555FA8-6CB4-4ACC-92D8-D570BF76173D@ena.com> <4456F2F3-1DF0-4041-9744-29EE11E44D72@ena.com> Message-ID: Thanks for the reply! 1) Thank you for this information, however I'm still confused. I did a ps -A and confirmed that mutliple instances were running, so I followed your steps, did a kill- 9 PID and restarted nagios. I then removed a host in my hosts.cfg file, did a /etc/rc.d/init.d/nagios reload and the changes were Not made. I still saw that host in my Nagios web interface. I even tried a stop | reload, but with the same results. Finally, I stopped Nagios, and did the /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg and saw that the configs were updated, and the hosts were removed. If you could clarify this I would appreciate it. 2) Below are my E-mail commands in commands.cfg. I'm pretty sure I haven't changed much, if anything, in them from the default values. Am I competely off based thinking there should be a body in these notifcation alerts? # 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition define command{ command_name notify-service-by-email command_line /usr/bin/mail "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } 3) Thanks! I'll check some of the popular ones out first. 4) We're not running MTRG, but that is something I'm going to look into. 5) Thanks, I'll take a look at Cricket. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Friday, October 23, 2009 9:34 AM To: Nagios-users at lists.sourceforge.net Mailinglist Subject: Re: [Nagios-users] 5 Nagios General Questions On Oct 22, 2009, at 2:29 PM, Goutos, Kevin wrote: > Hi all, > > I have a few general Nagios questions for you all, I appreciate any > feedback you can provide. > > > 1) I don't think I'm restarting Nagios correctly whenever I make a > change in a one of the configuration files. I'm using > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg as > well > as /etc/rc.d/init.d/nagios reload, restart, stop, start ,etc. The first starts a new instance of nagios and the second reloads or reloads that new instance. If you do both, in that order, it does nothing for the *original* running version of nagios, which continues to run. You end up with two or more concurrently running versions of nagios, each with possibly different configurations in memory. Use only the init.d restart or reload. To 'fix' where you are now, stop nagios, use 'ps' and 'kill' to stop any running copies you have and restart nagios. > 2) For my notifications, I'm not seeing anything in the body of the > message. All I see is the Message name "** PROBLEM Host Alert: CORP- > NSS > is DOWN **". I'm pretty sure there should be more information in the > body.. any ideas? Without seeing the actual notification command definition in question, we can only say to look at it and make sure that the macros you are using for it are valid for your version of nagios. > 3) I've seen a couple plugins on a few sites I might want to check > out, > how do I go about installing them? I didn't find any documentation > for > installing them.. Typically just copy them to the libexec directory and create appropriate command{} definitions for them. Hopefully the plugin author provides enough information or plugin --help to figure it out. Otherwise, your understanding how the current plugin <-> command{} definition <-> service{} definition relationship works is usually enough to know what to do. Read through the nagios documentation; it'll be worth it in the long term. > 4) I'm looking for more ways to monitor our Routers and Switches here. > Currently all I have is service checks of 'Ping Test' and 'System > Uptime'. I also saw on the quickstart guide the following service > check, but I'm seeing errors. The IP address there looks wrong, and > it's saying it can't find a log. > > define service{ > use generic-service > hostgroup_name switches > service_description Check Local Traffic > check_command > check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG! > 1000000,20000 > 00!5000000,5000000!10 > } This plugin requires that you're already running the MRTG program (completely unrelated to Nagios) to pre-cache the results. It's simply reading the traffic usage from the MTRG log file, not from the router. Are you running MRTG and pointing it to the correct and existing log file (/var/lib/mrtg/192.168.1.253_1.log)? Are the permissions such that the nagios user can read it? > 5) What other service checks do people use to monitor their switches > and > routers? We have SNMP enabled on them and want to collect more > information through Nagios. Ping, a bunch of custom checks (BGP peering, multi-interface checks, etc) for Nagios. We use Cricket for all utilization graphing/trending. -- Marc ------------------------------------------------------------------------ ------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 17:10:06 2009 From: m.borsani at it.net (Marco Borsani) Date: Fri, 23 Oct 2009 17:10:06 +0200 Subject: R: R: service acknowledges disappears In-Reply-To: <278E1DE0-A12E-4696-BA84-3B8634A41D87@ena.com> References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> <34199D63-4085-4E61-87FB-29152643362A@ena.com> <00a701ca53e8$d2c47950$784d6bf0$@borsani@it.net> <278E1DE0-A12E-4696-BA84-3B8634A41D87@ena.com> Message-ID: <17884.0167508044$1256310947@news.gmane.org> Ok, but (after read the docs), I still don't understand what does it does ;-) -----Messaggio originale----- Da: Marc Powell [mailto:marc at ena.com] Inviato: venerd? 23 ottobre 2009 17.01 A: Nagios-users at lists.sourceforge.net Mailinglist Oggetto: Re: [Nagios-users] R: service acknowledges disappears On Oct 23, 2009, at 8:57 AM, Marco Borsani wrote: > service definition: > retain_nonstatus_information 0 Set this to 1. -- Marc ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 17:15:47 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Oct 2009 10:15:47 -0500 Subject: R: R: service acknowledges disappears In-Reply-To: <00b901ca53f2$ea6614b0$bf323e10$@borsani@it.net> References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> <34199D63-4085-4E61-87FB-29152643362A@ena.com> <00a701ca53e8$d2c47950$784d6bf0$@borsani@it.net> <278E1DE0-A12E-4696-BA84-3B8634A41D87@ena.com> <00b901ca53f2$ea6614b0$bf323e10$@borsani@it.net> Message-ID: On Oct 23, 2009, at 10:10 AM, Marco Borsani wrote: > Ok, but (after read the docs), I still don't understand what does it > does > ;-) acknowledgement state is considered non-status information, along with notifications enabled, active/passive checks enabled, event handlers enabled, check command, check_period and others... -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rjustinwilliams at gmail.com Fri Oct 23 17:16:03 2009 From: rjustinwilliams at gmail.com (rjustinwilliams at gmail.com) Date: Fri, 23 Oct 2009 15:16:03 +0000 Subject: 5 Nagios General Questions In-Reply-To: References: Message-ID: <0016e6464160b8f6aa04769bb08d@google.com> The mail commands are borked. Change /usr/bin/mail "%b" to /usr/bin/printf "%b" The command, as you currently have it, is mailing nonsense to a piped mail command. Making the above change will actually pipe the body to the mail command instead... On Oct 23, 2009 11:04am, "Goutos, Kevin" wrote: > Thanks for the reply! > 1) Thank you for this information, however I'm still confused. I did a > ps -A and confirmed that mutliple instances were running, so I followed > your steps, did a kill- 9 PID and restarted nagios. I then removed a > host in my hosts.cfg file, did a /etc/rc.d/init.d/nagios reload and the > changes were Not made. I still saw that host in my Nagios web > interface. I even tried a stop | reload, but with the same results. > Finally, I stopped Nagios, and did the /usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.cfg and saw that the configs were updated, > and the hosts were removed. If you could clarify this I would > appreciate it. > 2) Below are my E-mail commands in commands.cfg. I'm pretty sure I > haven't changed much, if anything, in them from the default values. Am > I competely off based thinking there should be a body in these > notifcation alerts? > # 'notify-host-by-email' command definition > define command{ > command_name notify-host-by-email > command_line /usr/bin/mail "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: > $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: > $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: > $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ > } > # 'notify-service-by-email' command definition > define command{ > command_name notify-service-by-email > command_line /usr/bin/mail "%b" "***** Nagios > *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional > Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service > Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > } > 3) Thanks! I'll check some of the popular ones out first. > 4) We're not running MTRG, but that is something I'm going to look into. > 5) Thanks, I'll take a look at Cricket. > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Friday, October 23, 2009 9:34 AM > To: Nagios-users at lists.sourceforge.net Mailinglist > Subject: Re: [Nagios-users] 5 Nagios General Questions > On Oct 22, 2009, at 2:29 PM, Goutos, Kevin wrote: > > Hi all, > > > > I have a few general Nagios questions for you all, I appreciate any > > feedback you can provide. > > > > > > 1) I don't think I'm restarting Nagios correctly whenever I make a > > change in a one of the configuration files. I'm using > > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg as > > well > > as /etc/rc.d/init.d/nagios reload, restart, stop, start ,etc. > The first starts a new instance of nagios and the second reloads or > reloads that new instance. If you do both, in that order, it does > nothing for the *original* running version of nagios, which continues > to run. You end up with two or more concurrently running versions of > nagios, each with possibly different configurations in memory. Use > only the init.d restart or reload. To 'fix' where you are now, stop > nagios, use 'ps' and 'kill' to stop any running copies you have and > restart nagios. > > 2) For my notifications, I'm not seeing anything in the body of the > > message. All I see is the Message name "** PROBLEM Host Alert: CORP- > > NSS > > is DOWN **". I'm pretty sure there should be more information in the > > body.. any ideas? > Without seeing the actual notification command definition in question, > we can only say to look at it and make sure that the macros you are > using for it are valid for your version of nagios. > > 3) I've seen a couple plugins on a few sites I might want to check > > out, > > how do I go about installing them? I didn't find any documentation > > for > > installing them.. > Typically just copy them to the libexec directory and create > appropriate command{} definitions for them. Hopefully the plugin > author provides enough information or plugin --help to figure it out. > Otherwise, your understanding how the current plugin command{} > definition service{} definition relationship works is usually > enough to know what to do. Read through the nagios documentation; > it'll be worth it in the long term. > > 4) I'm looking for more ways to monitor our Routers and Switches here. > > Currently all I have is service checks of 'Ping Test' and 'System > > Uptime'. I also saw on the quickstart guide the following service > > check, but I'm seeing errors. The IP address there looks wrong, and > > it's saying it can't find a log. > > > > define service{ > > use generic-service > > hostgroup_name switches > > service_description Check Local Traffic > > check_command > > check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG! > > 1000000,20000 > > 00!5000000,5000000!10 > > } > This plugin requires that you're already running the MRTG program > (completely unrelated to Nagios) to pre-cache the results. It's simply > reading the traffic usage from the MTRG log file, not from the router. > Are you running MRTG and pointing it to the correct and existing log > file (/var/lib/mrtg/192.168.1.253_1.log)? Are the permissions such > that the nagios user can read it? > > 5) What other service checks do people use to monitor their switches > > and > > routers? We have SNMP enabled on them and want to collect more > > information through Nagios. > Ping, a bunch of custom checks (BGP peering, multi-interface checks, > etc) for Nagios. We use Cricket for all utilization graphing/trending. > -- > Marc > ------------------------------------------------------------------------ > ------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zarrelli at linux.it Fri Oct 23 17:19:39 2009 From: zarrelli at linux.it (Giorgio Zarrelli) Date: Fri, 23 Oct 2009 17:19:39 +0200 Subject: R: R: R: service acknowledges disappears In-Reply-To: <00b901ca53f2$ea6614b0$bf323e10$@borsani@it.net> References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> <34199D63-4085-4E61-87FB-29152643362A@ena.com> <00a701ca53e8$d2c47950$784d6bf0$@borsani@it.net> <278E1DE0-A12E-4696-BA84-3B8634A41D87@ena.com> <00b901ca53f2$ea6614b0$bf323e10$@borsani@it.net> Message-ID: <000001ca53f4$3e95c9d0$bbc15d70$@it> Have faith! Lol ;-) Giorgio Zarrelli > -----Messaggio originale----- > Da: Marco Borsani [mailto:m.borsani at it.net] > Inviato: venerd? 23 ottobre 2009 17.10 > A: 'Marc Powell'; 'Nagios-users at lists.sourceforge.net Mailinglist' > Oggetto: [Nagios-users] R: R: service acknowledges disappears > > Ok, but (after read the docs), I still don't understand what does it > does > ;-) > > -----Messaggio originale----- > Da: Marc Powell [mailto:marc at ena.com] > Inviato: venerd? 23 ottobre 2009 17.01 > A: Nagios-users at lists.sourceforge.net Mailinglist > Oggetto: Re: [Nagios-users] R: service acknowledges disappears > > > On Oct 23, 2009, at 8:57 AM, Marco Borsani wrote: > > > service definition: > > retain_nonstatus_information 0 > > Set this to 1. > > -- > Marc > > > ----------------------------------------------------------------------- > ----- > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ----------------------------------------------------------------------- > ------- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 17:46:22 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Oct 2009 10:46:22 -0500 Subject: 5 Nagios General Questions In-Reply-To: References: <9A83C4B8-34A2-4269-B303-135F82E7CC2E@ena.com><85555FA8-6CB4-4ACC-92D8-D570BF76173D@ena.com> <4456F2F3-1DF0-4041-9744-29EE11E44D72@ena.com> Message-ID: <01294619-9169-42AA-A7B9-5ED71341B02F@ena.com> On Oct 23, 2009, at 10:04 AM, Goutos, Kevin wrote: > Thanks for the reply! > > > 1) Thank you for this information, however I'm still confused. I > did a > ps -A and confirmed that mutliple instances were running, so I > followed > your steps, did a kill- 9 PID and restarted nagios. how did you restart it? Did you use the init script? > I then removed a > host in my hosts.cfg file, did a /etc/rc.d/init.d/nagios reload and > the > changes were Not made. I still saw that host in my Nagios web > interface. Did you see the reload event in nagios.log? If not, the reload didn't happen. If you did see the reload event but still see the host in the web interface you either didn't remove it from a file that nagios is reading or you still have multiple nagios daemons running. > I even tried a stop | reload, but with the same results. > Finally, I stopped Nagios, and did the /usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.cfg and saw that the configs were > updated, > and the hosts were removed. If you could clarify this I would > appreciate it. I can't explain it as it doesn't really make sense. If you reload nagios and you don't see the changes in the GUI, either the reload didn't happen for some unknown reason, you didn't make the change in a file that nagios is reading or you still have multiple nagios processes running. Do you use pre-caching? That's a feature that I don't have experience with but may explain your symptoms. http://nagios.sourceforge.net/docs/3_0/faststartup.html -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hkunz at ifi.uzh.ch Fri Oct 23 19:16:38 2009 From: hkunz at ifi.uzh.ch (Hanspeter Kunz) Date: Fri, 23 Oct 2009 19:16:38 +0200 Subject: problem monitoring ldap service Message-ID: <1256318198.6289.17.camel@irulan.localdomain> Hi, I'm trying to monitor an ldap service: define service { check_command check_ldap!dc=ifi,dc=uzh,dc=ch!-3 host_name host.ifi.uzh.ch notification_period 24x7 use generic-service service_description host_check_ldap } nagios tells me: Could not bind to the LDAP server However, if I execute the following command (on the nagios server) check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3 (which should do correspond exactly to the above config as far as I understand it) I get: LDAP OK - 0.004 seconds response time|time=0.004048s;;;0.000000 Any ideas what could be going wrong? Many thanks, Hanspeter ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hkunz at ifi.uzh.ch Fri Oct 23 20:52:12 2009 From: hkunz at ifi.uzh.ch (Hanspeter Kunz) Date: Fri, 23 Oct 2009 20:52:12 +0200 Subject: problem monitoring ldap service In-Reply-To: <1256318198.6289.17.camel@irulan.localdomain> References: <1256318198.6289.17.camel@irulan.localdomain> Message-ID: <1256323932.6289.24.camel@irulan.localdomain> ok. I just realized that there is nagiosplug-help, which is more approproate for my question. I will post my problem there. Sorry about this, Hp On Fri, 2009-10-23 at 19:16 +0200, Hanspeter Kunz wrote: > Hi, > > I'm trying to monitor an ldap service: > > define service { > check_command check_ldap!dc=ifi,dc=uzh,dc=ch!-3 > host_name host.ifi.uzh.ch > notification_period 24x7 > use generic-service > service_description host_check_ldap > } > > nagios tells me: > > Could not bind to the LDAP server > > However, if I execute the following command (on the nagios server) > > check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3 > > (which should do correspond exactly to the above config as far as I > understand it) > > I get: > > LDAP OK - 0.004 seconds response time|time=0.004048s;;;0.000000 > > Any ideas what could be going wrong? > > Many thanks, > Hanspeter ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Oct 23 22:14:35 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Fri, 23 Oct 2009 13:14:35 -0700 Subject: problem monitoring ldap service In-Reply-To: <1256318198.6289.17.camel@irulan.localdomain> References: <1256318198.6289.17.camel@irulan.localdomain> Message-ID: <4AE20EAB.20506@hp.com> Hanspeter Kunz wrote: > Hi, > > I'm trying to monitor an ldap service: > > define service { > check_command check_ldap!dc=ifi,dc=uzh,dc=ch!-3 > host_name host.ifi.uzh.ch > notification_period 24x7 > use generic-service > service_description host_check_ldap > } > > nagios tells me: > > Could not bind to the LDAP server > > However, if I execute the following command (on the nagios server) > > check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3 > > (which should do correspond exactly to the above config as far as I > understand it) > It does not correspond exactly, necessarily (and, in fact, most likely does not). It depends how your check_ldap command is defined in your Nagios configuration. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hkunz at ifi.uzh.ch Fri Oct 23 22:30:04 2009 From: hkunz at ifi.uzh.ch (Hanspeter Kunz) Date: Fri, 23 Oct 2009 22:30:04 +0200 Subject: problem monitoring ldap service In-Reply-To: <4AE20EAB.20506@hp.com> References: <1256318198.6289.17.camel@irulan.localdomain> <4AE20EAB.20506@hp.com> Message-ID: <1256329804.12014.2.camel@irulan.localdomain> On Fri, 2009-10-23 at 13:14 -0700, Morris, Patrick wrote: > Hanspeter Kunz wrote: > > Hi, > > > > I'm trying to monitor an ldap service: > > > > define service { > > check_command check_ldap!dc=ifi,dc=uzh,dc=ch!-3 > > host_name host.ifi.uzh.ch > > notification_period 24x7 > > use generic-service > > service_description host_check_ldap > > } > > > > nagios tells me: > > > > Could not bind to the LDAP server > > > > However, if I execute the following command (on the nagios server) > > > > check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3 > > > > (which should do correspond exactly to the above config as far as I > > understand it) > > > It does not correspond exactly, necessarily (and, in fact, most likely > does not). It depends how your check_ldap command is defined in your > Nagios configuration. check_ldap is defined as: check_ldap /usr/lib/nagios/plugins/check_ldap -H '$HOSTADDRESS$' -b '$ARG1$' and I can't find any difference to the shell command above. Many thanks, Hanspeter ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chris.Menard at Aspect.com Fri Oct 23 22:55:46 2009 From: Chris.Menard at Aspect.com (Menard, Chris) Date: Fri, 23 Oct 2009 16:55:46 -0400 Subject: problem monitoring ldap service In-Reply-To: <1256329804.12014.2.camel@irulan.localdomain> References: <1256318198.6289.17.camel@irulan.localdomain> <4AE20EAB.20506@hp.com> <1256329804.12014.2.camel@irulan.localdomain> Message-ID: The '-3' in the service is specified as ARG2 as since there is a '!' preceeding it...you have no $ARG2$ the command definition. -----Original Message----- From: Hanspeter Kunz [mailto:hkunz at ifi.uzh.ch] Sent: Friday, October 23, 2009 4:30 PM To: Morris, Patrick Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] problem monitoring ldap service On Fri, 2009-10-23 at 13:14 -0700, Morris, Patrick wrote: > Hanspeter Kunz wrote: > > Hi, > > > > I'm trying to monitor an ldap service: > > > > define service { > > check_command check_ldap!dc=ifi,dc=uzh,dc=ch!-3 > > host_name host.ifi.uzh.ch > > notification_period 24x7 > > use generic-service > > service_description host_check_ldap > > } > > > > nagios tells me: > > > > Could not bind to the LDAP server > > > > However, if I execute the following command (on the nagios server) > > > > check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3 > > > > (which should do correspond exactly to the above config as far as I > > understand it) > > > It does not correspond exactly, necessarily (and, in fact, most likely > does not). It depends how your check_ldap command is defined in your > Nagios configuration. check_ldap is defined as: check_ldap /usr/lib/nagios/plugins/check_ldap -H '$HOSTADDRESS$' -b '$ARG1$' and I can't find any difference to the shell command above. Many thanks, Hanspeter ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 23 23:02:59 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Oct 2009 16:02:59 -0500 Subject: problem monitoring ldap service In-Reply-To: <1256329804.12014.2.camel@irulan.localdomain> References: <1256318198.6289.17.camel@irulan.localdomain> <4AE20EAB.20506@hp.com> <1256329804.12014.2.camel@irulan.localdomain> Message-ID: <4115542A-D3E4-4477-9681-B49514B3AEED@ena.com> On Oct 23, 2009, at 3:30 PM, Hanspeter Kunz wrote: > On Fri, 2009-10-23 at 13:14 -0700, Morris, Patrick wrote: >> Hanspeter Kunz wrote: >>> Hi, >>> >>> I'm trying to monitor an ldap service: >>> >>> define service { >>> check_command check_ldap! >>> dc=ifi,dc=uzh,dc=ch!-3 >>> However, if I execute the following command (on the nagios server) >>> >>> check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3 >>> >>> (which should do correspond exactly to the above config as far as I >>> understand it) >>> >> It does not correspond exactly, necessarily (and, in fact, most >> likely >> does not). It depends how your check_ldap command is defined in your >> Nagios configuration. > > check_ldap is defined as: > > check_ldap /usr/lib/nagios/plugins/check_ldap -H '$HOSTADDRESS$' -b > '$ARG1$' > > and I can't find any difference to the shell command above. In your service check_command, you are specifying the following -- check_command = check_ldap $ARG1$ = dc=ifi,dc=uzh,dc=ch $ARG2$ = -3 Based on the check_ldap command definition you provide, /usr/lib/nagios/plugins/check_ldap -H '$HOSTADDRESS$' -b '$ARG1$' nagios is being told to run -- /usr/lib/nagios/plugins/check_ldap -H 'value of "address" parameter from host definition' -b 'dc=ifi,dc=uze,dc=ch' This is different from your command line test (below) in significant ways that will cause it to fail. check_ldap -H host.ifi.uzh.ch -b dc=ifi,dc=uzh,dc=ch -3 I'd suggest reading the documentation on Using Macros in Commands. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From anthony at xmanhosting.com.au Sat Oct 24 02:18:02 2009 From: anthony at xmanhosting.com.au (xmanhosting) Date: Sat, 24 Oct 2009 08:18:02 +0800 Subject: Monitoring Routers and Switches Message-ID: <000001ca543f$763f8e70$9930fea9@rockinghshs.internal> Hello, I am attemping to set up: Monitoring Routers and Switches (nagios-3.pdf, page 33) It says: "The check_snmp plugin will only get compiled and installed if you have the net-snmp and net-snmp-utils packages installed on your system. Make sure the plugin exists in /usr/local/nagios/libexec before you continue. If it doesn't, install net-snmp and net-snmp-utils and recompile/reinstall the Nagios plugins." check_snmp was not in my /usr/local/nagios/libexec folder, so I ran yum install for 3 snmp files - that went fine. I followed the rest of the instructions, verified my configuration (no errors) and restarted Nagios. Now in my web gui, it says: PING OK 10-24-2009 08:08:13 0d 11h 3m 50s 1/3 PING OK - Packet loss = 0%, RTA = 1.01 ms Port 1 Bandwidth Usage UNKNOWN 10-24-2009 08:03:43 0d 11h 2m 20s 3/3 check_mrtgtraf: Unable to open MRTG log file Port 1 Link Status CRITICAL 10-24-2009 08:05:13 0d 11h 0m 50s 3/3 (Return code of 127 is out of bounds - plugin may be missing) Uptime CRITICAL 10-24-2009 08:06:43 0d 10h 59m 20s 3/3 (Return code of 127 is out of bounds - plugin may be missing) My questions are: 1. For the rror message: check_mrtgtraf: Unable to open MRTG log file - Where should the MRTG log file be (using Centos5) ? The objects/switch.cfg file says: check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,1000000!5 000000,5000000!10 however there is no such folder at var/lib/mrtg/ 2. I have read somewhere that for the "Port1 Link" and "Uptime" error, that I maybe be missing files. I notice that there is still no check_snmp plugin in the usr/local/nagios/libexec folder - is this the issue, and how do I get it there? Thanks for any help - I really appreciate it. Kind regards, Anthony -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Oct 24 06:12:07 2009 From: marc at ena.com (Marc Powell) Date: Fri, 23 Oct 2009 23:12:07 -0500 Subject: Monitoring Routers and Switches In-Reply-To: <000001ca543f$763f8e70$9930fea9@rockinghshs.internal> References: <000001ca543f$763f8e70$9930fea9@rockinghshs.internal> Message-ID: On Oct 23, 2009, at 7:18 PM, xmanhosting wrote: > 1. For the rror message: check_mrtgtraf: Unable to open MRTG log > file - Where should the MRTG log file be (using Centos5) ? > The objects/switch.cfg file says: check_local_mrtgtraf!/var/lib/mrtg/ > 192.168.1.253_1.log!AVG!1000000,1000000!5000000,5000000!10 however > there is no such folder at var/lib/mrtg/ MRTG is a program that's completely independent of Nagios (like Apache or BIND). If you haven't installed, configured and run it, you won't be able to use the mrtg based plugins. If you have, you'll need to look at your MRTG installation to determine where the MRTG log files are located. > 2. I have read somewhere that for the "Port1 Link" and "Uptime" > error, that I maybe be missing files. I notice that there is still > no check_snmp plugin in the usr/local/nagios/libexec folder - is > this the issue, and how do I get it there Yes, almost certainly. 127 means that the plugin specified in the command{} definition doesn't exist. As for how to fix it, you quoted that yourself -- "The check_snmp plugin will only get compiled and installed if you have the net-snmp and net-snmp-utils packages installed on your system. Make sure the plugin exists in /usr/ local/nagios/libexec before you continue. If it doesn?t, install net-snmp and net-snmp-utils and recompile/reinstall the Nagios plugins." If you've installed those two packages, you'll need to recompile and re-install the plugins (./configure, make... etc) -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shaunsaravana at hotmail.com Sun Oct 25 17:30:42 2009 From: shaunsaravana at hotmail.com (Shaun Saravana) Date: Sun, 25 Oct 2009 22:00:42 +0530 Subject: Nagios to monitor Syslog Server Message-ID: Dear Team , Request your help in configuring Nagios - for monitoring a Fedora6 syslog server ( syslog service on the server).I have configured Nagios Server to monitor the Syslog server , to be more effective i want the syslog service to be monitored . kindly help! FYI the Nagios package details that i use nagios-plugins-1.4.11 nrpe-2.12 nagios-3.0.5 please let me how should i go about it - (in changing nagios.cfg file and the client side nrpe file) Thanks and regards Shaun One peek at MSN India brings you up to speed with what's hot in the world today Drag n' drop _________________________________________________________________ New Windows 7: Find the right PC for you. Learn more. http://windows.microsoft.com/shop -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Oct 26 08:57:49 2009 From: m.borsani at it.net (Marco Borsani) Date: Mon, 26 Oct 2009 08:57:49 +0100 Subject: R: R: R: service acknowledges disappears In-Reply-To: References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> <34199D63-4085-4E61-87FB-29152643362A@ena.com> <00a701ca53e8$d2c47950$784d6bf0$@borsani@it.net> <278E1DE0-A12E-4696-BA84-3B8634A41D87@ena.com> <00b901ca53f2$ea6614b0$bf323e10$@borsani@it.net> Message-ID: <36784.1185456657$1256544175@news.gmane.org> Many thanks! Where I can find the complete list of non-status informations "events"? If I understand correctly, I will need to set "retain_nonstatus_information 1" when I use external commands. Isn't it ? -----Messaggio originale----- Da: Marc Powell [mailto:marc at ena.com] Inviato: venerd? 23 ottobre 2009 17.16 A: Nagios-users at lists.sourceforge.net Mailinglist Oggetto: Re: [Nagios-users] R: R: service acknowledges disappears On Oct 23, 2009, at 10:10 AM, Marco Borsani wrote: > Ok, but (after read the docs), I still don't understand what does it > does > ;-) acknowledgement state is considered non-status information, along with notifications enabled, active/passive checks enabled, event handlers enabled, check command, check_period and others... -- Marc ---------------------------------------------------------------------------- -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.elsen at gmail.com Mon Oct 26 09:05:42 2009 From: mark.elsen at gmail.com (Mark Elsen) Date: Mon, 26 Oct 2009 10:05:42 +0200 Subject: Nagios disfunctional , perhaps due to time change ? Message-ID: - Nagios 3.2.0 ----------------------- - This morning, I find nagios stopped death in it's tracks. Single daemon running, servcie and host checks are no longer executed. Stopping and restarting NAGIOS does not help. How can I remedy this ? We left DST in Europe. Can this be due to a time change ? All hints welcomed ! Marc. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmelin at gmail.com Mon Oct 26 09:21:13 2009 From: mmelin at gmail.com (Martin Melin) Date: Mon, 26 Oct 2009 09:21:13 +0100 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: References: Message-ID: Hi, This happened to us as well. All services had been scheduled to execute at 11 PM today. The quick fix we used was to stop Nagios, move the objects.cache and retention.dat files and then start it back up again. All acknowledgements etc. were lost but we needed to get back up again soon. Note that this only happened on our 3.2.0 install, another 3.0.6 was fine. I'm still investigating what happened, but the above should let you get it back up again. Regards Martin Melin On Mon, Oct 26, 2009 at 9:05 AM, Mark Elsen wrote: > - Nagios 3.2.0 > ----------------------- > > - This morning, I find nagios stopped death in it's tracks. Single > daemon running, > servcie and host checks are no longer executed. > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > We left DST in Europe. Can this be due to a time change ? > > All hints welcomed ! > > Marc. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From achapela.rexistros at gmail.com Mon Oct 26 09:51:03 2009 From: achapela.rexistros at gmail.com (Adrian Chapela) Date: Mon, 26 Oct 2009 09:51:03 +0100 Subject: Nagios is freezing a lot of time Message-ID: <4AE562F7.4090904@gmail.com> Hello, I have been using Nagios from a long time ago (6 years...). From 2 weeks ago I am experiencing some problems with nagios, it is stopping getting information and checking services and hosts. Also the graphs are stopping. It was version 3.0.6 and I am getting this messages: Oct 18 09:03:54 correo1 nagios: Warning: A system time change of 1d 7h 49m 0s (forwards in time) has been detected. Compensating... Oct 18 09:07:56 correo1 nagios: Auto-save of retention data completed successfully. Oct 18 09:12:56 correo1 nagios: Auto-save of retention data completed successfully. Oct 18 09:15:23 correo1 nagios: Warning: The check of host 'APN' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... Now I have installed Nagios 3.2.0 to try to avoid this problem but it has appear again but without any message in log: Oct 26 06:43:35 correo1 nagios: Auto-save of retention data completed successfully. Oct 26 06:48:35 correo1 nagios: Auto-save of retention data completed successfully. Oct 26 06:53:35 correo1 nagios: Auto-save of retention data completed successfully. Oct 26 06:58:35 correo1 nagios: Auto-save of retention data completed successfully. nagios only write the above messages in log. But I have lost the graphs and 6 hours later all of checks. Why could be the reason ? Thank you! ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcus at rejas.se Mon Oct 26 10:09:45 2009 From: marcus at rejas.se (Marcus =?iso-8859-1?Q?Rej=E5s?=) Date: Mon, 26 Oct 2009 10:09:45 +0100 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: References: Message-ID: <20091026090945.GB26416@akka.mbv.rejas.net> Same here! I spent some time last night figuring out what happended. I ended up downgrading to 3.0.6. I also had to remove the retention.dat. The queue looked really strange. All hosts at top and then services, all at times on the hour (like 23:00:00 today). Reschedule them did not help. I'll stay on 3.0.6 till someone finds an explanation ... :-) Regards, /Marcus On 10/26 09:21, Martin Melin wrote: > Hi, > > This happened to us as well. All services had been scheduled to execute at > 11 PM today. > > The quick fix we used was to stop Nagios, move the objects.cache and > retention.dat files and then start it back up again. All acknowledgements > etc. were lost but we needed to get back up again soon. > > Note that this only happened on our 3.2.0 install, another 3.0.6 was fine. > > I'm still investigating what happened, but the above should let you get it > back up again. > > Regards > Martin Melin > > On Mon, Oct 26, 2009 at 9:05 AM, Mark Elsen wrote: > > > - Nagios 3.2.0 > > ----------------------- > > > > - This morning, I find nagios stopped death in it's tracks. Single > > daemon running, > > servcie and host checks are no longer executed. > > > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > > We left DST in Europe. Can this be due to a time change ? > > > > All hints welcomed ! > > > > Marc. > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Marcus Rej?s jabber: marcus at jabber.rejas.se ,= ,-_-. =. Rej?s Datakonsult AB e-mail: marcus at rejas.se ((_/)o o(\_)) V?rgatan 2 web: http://www.rejas.se `-'(. .)`-' s-761 50 Norrt?lje gpg-key: http://gpg.rejas.se \_/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mattias.ryrlen at op5.com Mon Oct 26 11:18:43 2009 From: mattias.ryrlen at op5.com (=?ISO-8859-1?Q?Mattias_Ryrl=E9n?=) Date: Mon, 26 Oct 2009 11:18:43 +0100 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: <20091026090945.GB26416@akka.mbv.rejas.net> References: <20091026090945.GB26416@akka.mbv.rejas.net> Message-ID: <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> This can be solved with issue the following error. service nagios stop; now=$(date +%s); sed -i "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; service nagios start this will only work if: 1. you can issue command 'service' :) 2. you have it installed to /usr/local/nagios On Mon, Oct 26, 2009 at 10:09 AM, Marcus Rej?s wrote: > Same here! > > I spent some time last night figuring out what happended. I ended up > downgrading to 3.0.6. I also had to remove the retention.dat. The queue > looked really strange. All hosts at top and then services, all at times on > the hour (like 23:00:00 today). > > Reschedule them did not help. > > I'll stay on 3.0.6 till someone finds an explanation ... :-) > > Regards, > > /Marcus > > On 10/26 09:21, Martin Melin wrote: > > Hi, > > > > This happened to us as well. All services had been scheduled to execute > at > > 11 PM today. > > > > The quick fix we used was to stop Nagios, move the objects.cache and > > retention.dat files and then start it back up again. All acknowledgements > > etc. were lost but we needed to get back up again soon. > > > > Note that this only happened on our 3.2.0 install, another 3.0.6 was > fine. > > > > I'm still investigating what happened, but the above should let you get > it > > back up again. > > > > Regards > > Martin Melin > > > > On Mon, Oct 26, 2009 at 9:05 AM, Mark Elsen > wrote: > > > > > - Nagios 3.2.0 > > > ----------------------- > > > > > > - This morning, I find nagios stopped death in it's tracks. Single > > > daemon running, > > > servcie and host checks are no longer executed. > > > > > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > > > We left DST in Europe. Can this be due to a time change ? > > > > > > All hints welcomed ! > > > > > > Marc. > > > > > > > > > > ------------------------------------------------------------------------------ > > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > > is the only developer event you need to attend this year. Jumpstart > your > > > developing skills, take BlackBerry mobile applications to market and > stay > > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > > http://p.sf.net/sfu/devconference > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > -- > Marcus Rej?s jabber: marcus at jabber.rejas.se ,= ,-_-. =. > Rej?s Datakonsult AB e-mail: marcus at rejas.se ((_/)o o(\_)) > V?rgatan 2 web: http://www.rejas.se `-'(. .)`-' > s-761 50 Norrt?lje gpg-key: http://gpg.rejas.se \_/ > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- V?nliga h?lsningar / Best Regards Mattias Ryrl?n __________________________ op5 AB F?rsta L?nggatan 19 SE-413 27 G?teborg Mobil: +46 735-17 70 99 Support: +46 31-774 09 24 www.op5.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.elsen at gmail.com Mon Oct 26 11:50:21 2009 From: mark.elsen at gmail.com (Mark Elsen) Date: Mon, 26 Oct 2009 12:50:21 +0200 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: <8357ce520910260342h3b143febn76550ed99f29a526@mail.gmail.com> References: <20091026090945.GB26416@akka.mbv.rejas.net> <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> <8357ce520910260342h3b143febn76550ed99f29a526@mail.gmail.com> Message-ID: Ref : service nagios stop; now=$(date +%s); sed -i "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; service nagios start --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > The purpose is that due to daylight saving, the schedule queue is broken. > (will probably catchup at 23:00:00 tonight) > what you do is stop nagios > update the timestamp for next_check in status.sav to $now (instead of > 23:00:00 tonight) on all your services. > then start up nagios again and service-checks will start checking again. > As I would like , NAGIOS to keep working, during DST related changes, can this be considered as a bug ? M. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alex.teslja at gmail.com Mon Oct 26 12:07:48 2009 From: alex.teslja at gmail.com (Alexander Teslya) Date: Mon, 26 Oct 2009 11:07:48 +0000 (UTC) Subject: =?utf-8?q?Nagios_disfunctional_=2C=09perhaps_due_t?= =?utf-8?q?o_time_change_=09=3F?= References: <20091026090945.GB26416@akka.mbv.rejas.net> <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> Message-ID: Hi Nagios 3.2.0 After this weekend i have a problem with Web interface(issue with "freeze" has been solved). I see in nagios.log that services is checks, but Web interface doesn't work. Before weekend all worked OK. All solution welcome! ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 opsera.com Mon Oct 26 13:17:56 2009 From: ton.voon at opsera.com (Ton Voon) Date: Mon, 26 Oct 2009 12:17:56 +0000 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> References: <20091026090945.GB26416@akka.mbv.rejas.net> <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> Message-ID: <16AFBCCB-DDE1-470C-8D91-EA1C3CE3F5AC@opsera.com> Hi! On 26 Oct 2009, at 10:18, Mattias Ryrl?n wrote: > This can be solved with issue the following error. > > service nagios stop; now=$(date +%s); sed -i "s/^next_check=.*/ > next_check=$now/" /usr/local/nagios/var/status.sav; service nagios > start > > this will only work if: > 1. you can issue command 'service' :) > 2. you have it installed to /usr/local/nagios We've also seen this bug. We've provided another way of fixing this. You can find more details here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html Ton -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.Flacke at gmx.de Mon Oct 26 13:54:47 2009 From: Matthias.Flacke at gmx.de (Matthias Flacke) Date: Mon, 26 Oct 2009 13:54:47 +0100 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: <16AFBCCB-DDE1-470C-8D91-EA1C3CE3F5AC@opsera.com> References: <20091026090945.GB26416@akka.mbv.rejas.net> <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> <16AFBCCB-DDE1-470C-8D91-EA1C3CE3F5AC@opsera.com> Message-ID: <4AE59C17.7080909@gmx.de> Ton Voon wrote: > Hi! > > On 26 Oct 2009, at 10:18, Mattias Ryrl?n wrote: > >> This can be solved with issue the following error. >> >> service nagios stop; now=$(date +%s); sed -i >> "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; >> service nagios start >> >> this will only work if: >> 1. you can issue command 'service' :) >> 2. you have it installed to /usr/local/nagios > > We've also seen this bug. > > We've provided another way of fixing this. You can find more details > here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html Hi, this change is causing the wrong reschedule: http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236&r2=1.237&view=patch It has been applied on 15th of January 2009 and introduced some statements t->tm_isdst=-1; into base/utils.c. Affected are all Nagios versions >= 3.1.0. I could reproduce it here: if the patch above is backed out, the scheduling behaves correctly. -Matthias ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 26 13:56:33 2009 From: marc at ena.com (Marc Powell) Date: Mon, 26 Oct 2009 07:56:33 -0500 Subject: R: R: R: service acknowledges disappears In-Reply-To: <003f01ca5612$0675bd60$13613820$@borsani@it.net> References: <005e01ca53bc$50ac59f0$f2050dd0$@borsani@it.net> <34199D63-4085-4E61-87FB-29152643362A@ena.com> <00a701ca53e8$d2c47950$784d6bf0$@borsani@it.net> <278E1DE0-A12E-4696-BA84-3B8634A41D87@ena.com> <00b901ca53f2$ea6614b0$bf323e10$@borsani@it.net> <003f01ca5612$0675bd60$13613820$@borsani@it.net> Message-ID: <1C34951A-01F3-49D9-BFFD-96F52781A089@ena.com> On Oct 26, 2009, at 2:57 AM, Marco Borsani wrote: > Many thanks! > Where I can find the complete list of non-status informations > "events"? src/xdata/xrddefault.c, starting around line 1538. > If I understand correctly, I will need to set > "retain_nonstatus_information > 1" when I use external commands. Isn't it ? You don't need it enabled to use external commands but you do need it to remember settings made through the GUI between restarts. External commands much more than what can be passed to nagios via the GUI. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From achapela.rexistros at gmail.com Mon Oct 26 13:54:58 2009 From: achapela.rexistros at gmail.com (Adrian Chapela) Date: Mon, 26 Oct 2009 13:54:58 +0100 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: <16AFBCCB-DDE1-470C-8D91-EA1C3CE3F5AC@opsera.com> References: <20091026090945.GB26416@akka.mbv.rejas.net> <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> <16AFBCCB-DDE1-470C-8D91-EA1C3CE3F5AC@opsera.com> Message-ID: <4AE59C22.4030208@gmail.com> Ton Voon escribi?: > Hi! > > On 26 Oct 2009, at 10:18, Mattias Ryrl?n wrote: > >> This can be solved with issue the following error. >> >> service nagios stop; now=$(date +%s); sed -i >> "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; >> service nagios start >> >> this will only work if: >> 1. you can issue command 'service' :) >> 2. you have it installed to /usr/local/nagios > > We've also seen this bug. OK, but have you saw this bug afer changing the system clock ? I have saw thsi issue about 13 hours later. I am not sure about the relation between the nagios problem and have detected a similar error 2 weeks ago. 1 week ago I have upgraded my Nagios 3.0 installation to a 3.2 version. This is my message (if you are interesting): http://sourceforge.net/mailarchive/forum.php?thread_name=4AE562F7.4090904%40gmail.com&forum_name=nagios-users > > We've provided another way of fixing this. You can find more details > here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html > > Ton > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Mon Oct 26 14:56:45 2009 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Mon, 26 Oct 2009 13:56:45 +0000 Subject: Nagios to monitor Syslog Server In-Reply-To: References: Message-ID: <4AE5AA9D.3040700@googlemail.com> Shaun Saravana wrote: > Request your help in configuring Nagios - for monitoring a > Fedora6 syslog server ( syslog service on the server).I have > configured Nagios Server to monitor the Syslog server , to be more > effective i want the syslog service to be monitored . I wrote a plugin to monitor a syslog server which uses a MySQL database. If you have a MySQL database backend, then this is the thing to use: http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F1381.html;d=1 -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mon Oct 26 15:04:14 2009 From: peter at berghold.net (Peter L. Berghold) Date: Mon, 26 Oct 2009 10:04:14 -0400 Subject: Different web views for different folks Message-ID: <1256565854.32257.8.camel@cowdawg.ibm.com> I seem to remember seeing somewhere that you can set the web interface to show different views of the web interface depending on how a user logs in. Is this true and if so can somebody nudge me in the right direction for the ins and outs of making that happen? Thanks in advance, -- Peter L. Berghold http://www.berghold.net peter at berghold.net Unix Professional Dog Agility Fan Crazed Cook "Those who fail to learn from history are condemned to repeat it." ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 26 15:40:41 2009 From: marc at ena.com (Marc Powell) Date: Mon, 26 Oct 2009 09:40:41 -0500 Subject: Different web views for different folks In-Reply-To: <1256565854.32257.8.camel@cowdawg.ibm.com> References: <1256565854.32257.8.camel@cowdawg.ibm.com> Message-ID: On Oct 26, 2009, at 9:04 AM, Peter L. Berghold wrote: > I seem to remember seeing somewhere that you can set the web interface > to show different views of the web interface depending on how a user > logs in. Yep. Logged in users can only see hosts/services that they are contacts for. > Is this true and if so can somebody nudge me in the right direction > for > the ins and outs of making that happen? http://nagios.sourceforge.net/docs/3_0/cgiauth.html -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ctemple at merethis.com Mon Oct 26 14:31:05 2009 From: ctemple at merethis.com (Cedric Temple) Date: Mon, 26 Oct 2009 14:31:05 +0100 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: References: Message-ID: <960a54cc0910260631n5b51677do7eb2f68a6268f882@mail.gmail.com> 2009/10/26 Mark Elsen : > ?- Nagios 3.2.0 > ----------------------- > > ?- This morning, I find nagios stopped death in it's tracks. Single > daemon running, > servcie and host checks are no longer executed. > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > We left DST in Europe. Can this be due to a time change ? > > ?All hints welcomed ! Hi, For people that does not want to patch Nagios nor lost ack, comment, downtime but fix the problem see : http://blog.centreon.com/index.php?post/2009/10/26/Nagios-disfunctional-due-to-time-change Hope it helps. -- C?dric Temple | Chef de Projet ctemple at merethis.com T?l: +33 (0)1 49 69 97 12 Mob: +33 (0)6 63 67 77 66 Fax: +33 (0)1 78 12 00 28 MERETHIS est ?diteur du logiciel Centreon. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akpgeek at gmail.com Mon Oct 26 17:33:09 2009 From: akpgeek at gmail.com (akp geek) Date: Mon, 26 Oct 2009 12:33:09 -0400 Subject: CHECK_NRPE: Received 0 bytes from daemon. Message-ID: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> Hi - I have installed the NRPE and when trying to run the check_nrpe -H xx.xx.xxx.xxx from the server where nagios is running , I am getting the following error CHECK_NRPE: Received 0 bytes from daemon.Check the remote server logs for error messages. Server1 : I set up NRPE and I have added /etc/services nrpe entry . , I have enabled the service. I have NRPE set up on an other server and it is running fine. I did follow the same instructions. Not able to figure out what's wrong with configuration Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lmw94002 at hotmail.com Mon Oct 26 17:48:32 2009 From: lmw94002 at hotmail.com (Mathew Walker) Date: Mon, 26 Oct 2009 12:48:32 -0400 Subject: CHECK_NRPE: Received 0 bytes from daemon. In-Reply-To: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> References: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> Message-ID: No firewall rules in play? eg. allowing connections from your Nagios server to tcp-5666 and allowing the remove server to connect back to your nagios server? Did you edit the nrpe.cfg file correctly and add the server to allowed_hosts? Did you remember to restart NRPE after editing the config? did you try actually issuing a check like "check_nrpe -H xxx.xxx.xxx.xxx -c check_users" ? -- Mat W. - http://www.techadre.com Date: Mon, 26 Oct 2009 12:33:09 -0400 From: akpgeek at gmail.com To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] CHECK_NRPE: Received 0 bytes from daemon. Hi - I have installed the NRPE and when trying to run the check_nrpe -H xx.xx.xxx.xxx from the server where nagios is running , I am getting the following error CHECK_NRPE: Received 0 bytes from daemon.Check the remote server logs for error messages. Server1 : I set up NRPE and I have added /etc/services nrpe entry . , I have enabled the service. I have NRPE set up on an other server and it is running fine. I did follow the same instructions. Not able to figure out what's wrong with configuration Regards _________________________________________________________________ Windows 7: I wanted more reliable, now it's more reliable. Wow! http://microsoft.com/windows/windows-7/default-ga.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:102009 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lscarneiro at veltrac.com.br Mon Oct 26 17:52:42 2009 From: lscarneiro at veltrac.com.br (Leonardo Carneiro) Date: Mon, 26 Oct 2009 14:52:42 -0200 Subject: CHECK_NRPE: Received 0 bytes from daemon. In-Reply-To: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> References: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> Message-ID: <4AE5D3DA.6010805@veltrac.com.br> Do you have the logs from the remote server? akp geek escreveu: > Hi - > > I have installed the NRPE and when trying to run the > check_nrpe -H xx.xx.xxx.xxx from the server where nagios is running , > I am getting the following error > > CHECK_NRPE: Received 0 bytes from daemon.Check the remote server logs > for error messages. > > > Server1 : I set up NRPE and I have added /etc/services nrpe entry . , > I have enabled the service. > > I have NRPE set up on an other server and it is running fine. I did > follow the same instructions. Not able to figure out what's wrong with > configuration > > > Regards > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Log?stica.* lscarneiro at veltrac.com.br http://www.veltrac.com.br /Fone Com.: (43)2105-5601/ /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chris.Menard at Aspect.com Mon Oct 26 17:55:32 2009 From: Chris.Menard at Aspect.com (Menard, Chris) Date: Mon, 26 Oct 2009 12:55:32 -0400 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: <4AE59C17.7080909@gmx.de> References: <20091026090945.GB26416@akka.mbv.rejas.net> <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> <16AFBCCB-DDE1-470C-8D91-EA1C3CE3F5AC@opsera.com> <4AE59C17.7080909@gmx.de> Message-ID: When we run into this in the US, what is the easiest way to correct the issue if we don't need to retain and downtime, acts or any status data. Is there a file or two that just needs to be deleted? Thanks, Chris -----Original Message----- From: Matthias Flacke [mailto:Matthias.Flacke at gmx.de] Sent: Monday, October 26, 2009 8:55 AM To: Ton Voon Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ? Ton Voon wrote: > Hi! > > On 26 Oct 2009, at 10:18, Mattias Ryrl?n wrote: > >> This can be solved with issue the following error. >> >> service nagios stop; now=$(date +%s); sed -i >> "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; >> service nagios start >> >> this will only work if: >> 1. you can issue command 'service' :) >> 2. you have it installed to /usr/local/nagios > > We've also seen this bug. > > We've provided another way of fixing this. You can find more details > here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html Hi, this change is causing the wrong reschedule: http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236&r2=1.237&view=patch It has been applied on 15th of January 2009 and introduced some statements t->tm_isdst=-1; into base/utils.c. Affected are all Nagios versions >= 3.1.0. I could reproduce it here: if the patch above is backed out, the scheduling behaves correctly. -Matthias ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xesos at free.fr Mon Oct 26 17:57:00 2009 From: xesos at free.fr (xesos) Date: Mon, 26 Oct 2009 17:57:00 +0100 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: References: Message-ID: <4AE5D4DC.6060704@free.fr> Hello, Same bug. Last sunday, in France, Daylight saving time ends so clocks retreat from 03:00 CEST to 02:00 CET. Today, I see that many checks of my nagios server have problems : next check is scheduled today at 11:00pm but, in the config files, the check interval is set to 5 minutes. More over, last week, it works as expected with checks every 5 minutes. Mark Elsen a ?crit : > - Nagios 3.2.0 > ----------------------- > > - This morning, I find nagios stopped death in it's tracks. Single > daemon running, > servcie and host checks are no longer executed. > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > We left DST in Europe. Can this be due to a time change ? > > All hints welcomed ! > > Marc. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Quentin.Marquez at experian.com Mon Oct 26 17:40:50 2009 From: Quentin.Marquez at experian.com (Marquez, Quentin) Date: Mon, 26 Oct 2009 16:40:50 -0000 Subject: CHECK_NRPE: Received 0 bytes from daemon. In-Reply-To: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> References: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> Message-ID: <28D49132D5CF31498C9C381879963AD725046F@exch-mon-msg01.uk.experian.local> Hello, I found a nice doc about your issue. Latest rhel 5.4 on which I add nrpe installed, I couldn't get xinetd to get it working and I could fix it thanks to these doc: http://www.siamkia.com/open-source-help/how-to-fix-check-nrpe-error-coul d-not-complete-ssl-handshake.html Hope this helps, Cheers, Quentin From: akp geek [mailto:akpgeek at gmail.com] Sent: 26 October 2009 17:33 To: Nagios-users at lists.sourceforge.net Mailinglist Subject: [Nagios-users] CHECK_NRPE: Received 0 bytes from daemon. Hi - I have installed the NRPE and when trying to run the check_nrpe -H xx.xx.xxx.xxx from the server where nagios is running , I am getting the following error CHECK_NRPE: Received 0 bytes from daemon.Check the remote server logs for error messages. Server1 : I set up NRPE and I have added /etc/services nrpe entry . , I have enabled the service. I have NRPE set up on an other server and it is running fine. I did follow the same instructions. Not able to figure out what's wrong with configuration Regards This e-mail has come from Experian, the only business to have been twice named the UK's 'Business of the Year? =================================================================================== Information in this e-mail and any attachments is confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other binding commitment through the use of this electronic communication unless it is issued in accordance with the Experian Limited standard terms and conditions of purchase or other express written agreement between Experian Limited and the recipient. Although Experian has taken reasonable steps to ensure that this communication and any attachments are free from computer virus, you are advised to take your own steps to ensure that they are actually virus free. Companies Act information: Registered name: Experian Limited Registered office: Landmark House, Experian Way, NG2 Business Park, Nottingham, NG80 1ZZ, United Kingdom Place of registration: England and Wales Registered number: 653331 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akpgeek at gmail.com Mon Oct 26 18:37:02 2009 From: akpgeek at gmail.com (akp geek) Date: Mon, 26 Oct 2009 13:37:02 -0400 Subject: CHECK_NRPE: Received 0 bytes from daemon. In-Reply-To: References: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> Message-ID: <2024a9fb0910261037m468504e4g8066bd0c8eb9efd2@mail.gmail.com> There are no issues with firewall, all the servers are under the same subnet and 100% sure no fire wall issues regards On Mon, Oct 26, 2009 at 12:48 PM, Mathew Walker wrote: > No firewall rules in play? eg. allowing connections from your Nagios > server to tcp-5666 and allowing the remove server to connect back to your > nagios server? > > Did you edit the nrpe.cfg file correctly and add the server to > allowed_hosts? Did you remember to restart NRPE after editing the config? > > did you try actually issuing a check like "check_nrpe -H xxx.xxx.xxx.xxx -c > check_users" ? > > > -- > Mat W. - http://www.techadre.com > > > > ------------------------------ > Date: Mon, 26 Oct 2009 12:33:09 -0400 > From: akpgeek at gmail.com > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] CHECK_NRPE: Received 0 bytes from daemon. > > > Hi - > > I have installed the NRPE and when trying to run the check_nrpe > -H xx.xx.xxx.xxx from the server where nagios is running , I am getting the > following error > > CHECK_NRPE: Received 0 bytes from daemon.Check the remote server logs for > error messages. > > > Server1 : I set up NRPE and I have added /etc/services nrpe entry . , I > have enabled the service. > > I have NRPE set up on an other server and it is running fine. I did follow > the same instructions. Not able to figure out what's wrong with > configuration > > > Regards > > > ------------------------------ > Windows 7: I wanted more reliable, now it's more reliable. Wow! > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akpgeek at gmail.com Mon Oct 26 18:36:21 2009 From: akpgeek at gmail.com (akp geek) Date: Mon, 26 Oct 2009 13:36:21 -0400 Subject: CHECK_NRPE: Received 0 bytes from daemon. In-Reply-To: <4AE5D3DA.6010805@veltrac.com.br> References: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> <4AE5D3DA.6010805@veltrac.com.br> Message-ID: <2024a9fb0910261036t17f64defi144407a44e673bf6@mail.gmail.com> The following is the message from /tmp/adm/messages file on solaris Oct 26 13:35:17 atadevdb nrpe[9544]: [ID 813741 daemon.error] Error: Could not complete SSL handshake. 1 Oct 26 13:35:23 atadevdb nrpe[9546]: [ID 813741 daemon.error] Error: Could not complete SSL handshake. 1 regards On Mon, Oct 26, 2009 at 12:52 PM, Leonardo Carneiro < lscarneiro at veltrac.com.br> wrote: > Do you have the logs from the remote server? > > akp geek escreveu: > > Hi - > > > > I have installed the NRPE and when trying to run the > > check_nrpe -H xx.xx.xxx.xxx from the server where nagios is running , > > I am getting the following error > > > > CHECK_NRPE: Received 0 bytes from daemon.Check the remote server logs > > for error messages. > > > > > > Server1 : I set up NRPE and I have added /etc/services nrpe entry . , > > I have enabled the service. > > > > I have NRPE set up on an other server and it is running fine. I did > > follow the same instructions. Not able to figure out what's wrong with > > configuration > > > > > > Regards > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > -- > > *Leonardo de Souza Carneiro* > *Veltrac - Tecnologia em Log?stica.* > lscarneiro at veltrac.com.br > http://www.veltrac.com.br > /Fone Com.: (43)2105-5601/ > /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ > /Londrina- PR/ > /Cep: 86015-010/ > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lmw94002 at hotmail.com Mon Oct 26 19:08:16 2009 From: lmw94002 at hotmail.com (Mathew Walker) Date: Mon, 26 Oct 2009 14:08:16 -0400 Subject: CHECK_NRPE: Received 0 bytes from daemon. In-Reply-To: <2024a9fb0910261036t17f64defi144407a44e673bf6@mail.gmail.com> References: <2024a9fb0910260933n105e8a9duc5320c85c04383b0@mail.gmail.com> <4AE5D3DA.6010805@veltrac.com.br> Message-ID: sounds like you didn't compile NRPE w/ SSL support maybe? -- Mat W. - http://www.techadre.com Date: Mon, 26 Oct 2009 13:36:21 -0400 From: akpgeek at gmail.com To: lscarneiro at veltrac.com.br CC: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] CHECK_NRPE: Received 0 bytes from daemon. The following is the message from /tmp/adm/messages file on solaris Oct 26 13:35:17 atadevdb nrpe[9544]: [ID 813741 daemon.error] Error: Could not complete SSL handshake. 1 Oct 26 13:35:23 atadevdb nrpe[9546]: [ID 813741 daemon.error] Error: Could not complete SSL handshake. 1 regards On Mon, Oct 26, 2009 at 12:52 PM, Leonardo Carneiro wrote: Do you have the logs from the remote server? akp geek escreveu: > Hi - > > I have installed the NRPE and when trying to run the > check_nrpe -H xx.xx.xxx.xxx from the server where nagios is running , > I am getting the following error > > CHECK_NRPE: Received 0 bytes from daemon.Check the remote server logs > for error messages. > > > Server1 : I set up NRPE and I have added /etc/services nrpe entry . , > I have enabled the service. > > I have NRPE set up on an other server and it is running fine. I did > follow the same instructions. Not able to figure out what's wrong with > configuration > > > Regards > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- *Leonardo de Souza Carneiro* *Veltrac - Tecnologia em Log?stica.* lscarneiro at veltrac.com.br http://www.veltrac.com.br /Fone Com.: (43)2105-5601/ /Av. Higien?polis 1601 Ed. Eurocenter Sl. 803/ /Londrina- PR/ /Cep: 86015-010/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Windows 7: I wanted more reliable, now it's more reliable. Wow! http://microsoft.com/windows/windows-7/default-ga.aspx?h=myidea?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_myidea:102009 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Mon Oct 26 19:25:56 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Mon, 26 Oct 2009 14:25:56 -0400 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: <4AE5D4DC.6060704@free.fr> References: <4AE5D4DC.6060704@free.fr> Message-ID: <6db4a4200910261125y29cb7b8dw85d32531a6b01c27@mail.gmail.com> If our configuration is not using daytime offset, are we still affected by this bug. Nagios version 3.2.0 Please advise on this. Thanks On Mon, Oct 26, 2009 at 12:57 PM, xesos wrote: > Hello, > > Same bug. > > Last sunday, in France, Daylight saving time ends so clocks retreat from > 03:00 CEST to 02:00 CET. > > Today, I see that many checks of my nagios server have problems : next > check is scheduled today > at 11:00pm but, in the config files, the check interval is set to 5 > minutes. More over, last week, it works as expected with checks every 5 > minutes. > > > Mark Elsen a ?crit : > > - Nagios 3.2.0 > > ----------------------- > > > > - This morning, I find nagios stopped death in it's tracks. Single > > daemon running, > > servcie and host checks are no longer executed. > > > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > > We left DST in Europe. Can this be due to a time change ? > > > > All hints welcomed ! > > > > Marc. > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 opsera.com Mon Oct 26 19:36:19 2009 From: ton.voon at opsera.com (Ton Voon) Date: Mon, 26 Oct 2009 18:36:19 +0000 Subject: Nagios disfunctional , perhaps due to time change ? In-Reply-To: <4AE59BDA.8070400@flacke.org> References: <20091026090945.GB26416@akka.mbv.rejas.net> <8357ce520910260318r214cd1b2vfecbb3a07d2b16c4@mail.gmail.com> <16AFBCCB-DDE1-470C-8D91-EA1C3CE3F5AC@opsera.com> <4AE59BDA.8070400@flacke.org> Message-ID: On 26 Oct 2009, at 12:53, Matthias Flacke wrote: > > this change is causing the wrong reschedule: > http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236&r2=1.237&view=patch > > It has been applied on 15th of January 2009 and introduced some > statements > > t->tm_isdst=-1; > > into base/utils.c. > > Affected are all Nagios versions >= 3.1.0. > > I could reproduce it here: if the patch above is backed out, the > scheduling behaves correctly. I've managed to get a libtap test case with the failure now. As you correctly say, removing the t->tm_isdst=-1 in utils.c fixes it. However, the fact it works is lucky. The check is that the scheduled time is between a date_range_start and a date_range_end. This date_range_end is based on the timeperiod definitions. However, an end point of 00:00 is calculated as 24*60*60. Obviously, this is wrong on the day that the clocks go back as there are 25 hours in that day. So removing tm_isdst gets the calculation for the epoch time wrong, but that luckily works because the time falls within the 24 hour period. I've applied the patch to remove that single tm_isdst. Tests are also added now, for this specific issue. Long term, I think it is correct that the isdst flag be set, but there are other problems that are lurking in the code, such as the calculation for the next appropriate time. Any comments? Ton -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil.ramsay at market-source.com Tue Oct 27 02:20:11 2009 From: neil.ramsay at market-source.com (Neil Ramsay) Date: Tue, 27 Oct 2009 12:20:11 +1100 Subject: Escalation notification count and state change problem In-Reply-To: References: Message-ID: Hi, I've searched and found similar posts but unfortunately no replies to this type of problem. I'd expect this to be a common problem but maybe I've misread the documentation. On Nagios 3.2.0 we have service notifications set to go out for Warning and for Critical states to an email address 24x7. In addition during 'after hours', the on-call engineer receives SMS alerts for all Critical notifications and the backup engineer should receive escalations after the 4th Critical notification. However, last night the backup engineer received an SMS on the second Critical notification. define serviceescalation{ hostgroup_name switches,primary_nodes,secondary_nodes service_description * first_notification 4 last_notification 0 notification_interval 5 contact_groups PrimaryAH,SecondaryAH escalation_period afterhours escalation_options u,c } # Primary After-hours contacts define contactgroup{ contactgroup_name PrimaryAH alias Primary After-Hours contact members supportEmail,Engineer1 } # Secondary After-hours contacts define contactgroup{ contactgroup_name SecondaryAH alias Secondary After-Hours contact members supportEmail,Engineer2 } It appears that escalation procedure ignores the actual sate when counting notifications. So if the 1st notification is critical and the 4th is critical but 2-3 are Warnings the 4th notification is escalated as it is critical. Eventhough only 1 critical notification was sent and the other 2 were warnings. I was hoping that on the 4th critical notification Nagios escalates. See event log below: Service Notification [10-26-2009 23:48:32] SERVICE NOTIFICATION: Engineer2;winapps1;NT memory usage;CRITICAL;notify-service-by-sms;Mem: 984 MB (96%) / 1023 MB (3%) Paged Mem: 1189 MB (48%) / 2469 MB (51%) Service Notification[10-26-2009 23:48:32] SERVICE NOTIFICATION: Engineer1;winapps1;NT memory usage;CRITICAL;notify-service-by-sms;Mem: 984 MB (96%) / 1023 MB (3%) Paged Mem: 1189 MB (48%) / 2469 MB (51% Service Notification[10-26-2009 23:38:32] SERVICE NOTIFICATION: supportEmail;winapps1;NT memory usage;WARNING;notify-service-by-email;Mem: 950 MB (92%) / 1023 MB (7%) Paged Mem: 1219 MB (49%) / 2469 MB (50%) Service Notification[10-26-2009 23:28:32] SERVICE NOTIFICATION: supportEmail;winapps1;NT memory usage;WARNING;notify-service-by-email;Mem: 881 MB (86%) / 1023 MB (13%) Paged Mem: 1192 MB (48%) / 2469 MB (51%) Service Notification[10-26-2009 23:18:32] SERVICE NOTIFICATION: supportEmail;winapps1;NT memory usage;CRITICAL;notify-service-by-email;Mem: 1006 MB (98%) / 1023 MB (1%) Paged Mem: 1152 MB (46%) / 2469 MB (53%) Service Notification[10-26-2009 23:18:32] SERVICE NOTIFICATION: Engineer1;winapps1;NT memory usage;CRITICAL;notify-service-by-sms;Mem: 1006 MB (98%) / 1023 MB (1%) Paged Mem: 1152 MB (46%) / 2469 MB (53%) Is there a way to avoid this behaviour? Thanks Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.huth at tmr.net Tue Oct 27 10:22:40 2009 From: a.huth at tmr.net (Alex Huth) Date: Tue, 27 Oct 2009 10:22:40 +0100 Subject: file or directory not found In-Reply-To: <20091023074717.GA10405@borusse.borussiapark> References: <20091022140732.GB25484@borusse.borussiapark> <90f6e8270910221013u1506109buc2ae41eb4aaa3d01@mail.gmail.com> <20091023074717.GA10405@borusse.borussiapark> Message-ID: <20091027092240.GA4666@borusse.borussiapark> * Alex Huth schrieb: > * Natxo Asenjo schrieb: > > On Thu, Oct 22, 2009 at 4:07 PM, Alex Huth wrote: > > > > do ls -l /usr/local/nagios/libexec/check_disk and check the permissions > > > That was the first thing i did, they have all 755. Did i missed something > else? I only have to copy the binaries to the remote machine to check it or > something else? > For all newbies to nagios like me: It seems you can't only copy the plugins to a remote server and check him by ssh. You have to compile the plugins on the remote server, then it works fine. Alex ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 27 14:34:05 2009 From: marc at ena.com (Marc Powell) Date: Tue, 27 Oct 2009 08:34:05 -0500 Subject: file or directory not found In-Reply-To: <20091027092240.GA4666@borusse.borussiapark> References: <20091022140732.GB25484@borusse.borussiapark> <90f6e8270910221013u1506109buc2ae41eb4aaa3d01@mail.gmail.com> <20091023074717.GA10405@borusse.borussiapark> <20091027092240.GA4666@borusse.borussiapark> Message-ID: <5AA5B07E-CCAD-4B1D-A253-275DAEC6B43C@ena.com> On Oct 27, 2009, at 4:22 AM, Alex Huth wrote: > For all newbies to nagios like me: It seems you can't only copy the > plugins to > a remote server and check him by ssh. You have to compile the > plugins on the > remote server, then it works fine. The plugins are really no different than any other program. You _can_ just copy them to a remote server successfully provided it's the same OS and architecture and that all the required libraries and dependencies for the plugin are installed (and in the same location). If you use the same OS build all around you will have no problems at all. -- Marc p.s. I intentionally did not talk about cross-compiling or statically linked binaries, which are other fun ways to just be able to copy them over. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Tue Oct 27 14:56:54 2009 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Tue, 27 Oct 2009 13:56:54 +0000 (GMT) Subject: grouing services Message-ID: <309483.84067.qm@web26207.mail.ukl.yahoo.com> hi, I am trying to group a list of services, using a servicegroup or other methods. Currently, I have this config file define service{ name my-service use generic-service check_period 24x7 max_check_attempts 4 normal_check_interval 240 retry_check_interval 1 contact_groups admins notification_options w,u,c,r notification_interval 240 notification_period 24x7 register 0 } define service{ use my-service host hostA service_description SERVICEA check_command my_command!SERVICEA } define service{ use my-service host hostB service_description SERVICEB check_command my_command!SEFVICEB } Each time, I add 1 service for each service_description. Do you have any other optimal method? thank you ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lance.raymond at gmail.com Tue Oct 27 16:08:02 2009 From: lance.raymond at gmail.com (lance raymond) Date: Tue, 27 Oct 2009 11:08:02 -0400 Subject: [UPDATE] remote check_by path question In-Reply-To: <5d1656000910270801u6a576e60oa227481b9cb3e1f8@mail.gmail.com> References: <5d1656000910270801u6a576e60oa227481b9cb3e1f8@mail.gmail.com> Message-ID: <5d1656000910270808l7640955ya921c1ddf0cf9fd3@mail.gmail.com> Sorry, after a 10 or so minutes (not sure on the latency) but the error did change. It now shows the following; Warning threshold must be float or float triplet!I am hitting a meeting now but at least there is progress and something else I can google unless someone knows of this already and has a simple fix. Will check back after the meeting regardless, thanks as always. ---------- Forwarded message ---------- From: lance raymond Date: Tue, Oct 27, 2009 at 11:01 AM Subject: remote check_by path question To: Nagios Users I now want to add some remote checks, and it looks like a simple path issue, yet I can't seem to verify. The groundwork server, and all webservers are running Ubuntu-Server 8.10. SSH key's are setup with the user nagios, and I can remotely ssh in to the 1st webserver no problem. I am / was getting the following error; "Remote command execution failed: sh: libexec/check_load: not found " and sure enough nothing was on that remote webserver. So I installed both the aptitude packages; nagios-nrpe-plugin - Nagios Remote Plugin Executor Plugin nagios-nrpe-server - Nagios Remote Plugin Executor Server Not sure if I need the server or not, but it's installed and the check_load and others are put in the default; /usr/lib/nagios/plugins/ Looking at the error, I simply made a symlink under /home/nagios/libexec but still getting the same error. Below is just a copy/paste of the ssh in and test. nagios at groundwork:/usr/local/groundwork/nagios/etc$ ssh 192.168.50.101 ssh: /usr/local/groundwork/common/lib/libcrypto.so.0.9.8: no version information available (required by ssh) Linux ws1 2.6.27-7-server #1 SMP Tue Nov 4 20:16:57 UTC 2008 x86_64 Last login: Tue Oct 27 10:57:55 2009 from 192.168.50.6 $ libexec/check_load -w 5,4,3 -c 10,8,6 OK - load average: 0.74, 1.43, 1.66|load1=0.740;5.000;10.000;0; load5=1.430;4.000;8.000;0; load15=1.660;3.000;6.000;0; So things do seem to work, just not sure. The checkcommand shows variable USER22, I could probably hardcode the full path, but not sure if that's the right thing to do. Thanks as always. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lance.raymond at gmail.com Tue Oct 27 16:01:03 2009 From: lance.raymond at gmail.com (lance raymond) Date: Tue, 27 Oct 2009 11:01:03 -0400 Subject: remote check_by path question Message-ID: <5d1656000910270801u6a576e60oa227481b9cb3e1f8@mail.gmail.com> I now want to add some remote checks, and it looks like a simple path issue, yet I can't seem to verify. The groundwork server, and all webservers are running Ubuntu-Server 8.10. SSH key's are setup with the user nagios, and I can remotely ssh in to the 1st webserver no problem. I am / was getting the following error; "Remote command execution failed: sh: libexec/check_load: not found " and sure enough nothing was on that remote webserver. So I installed both the aptitude packages; nagios-nrpe-plugin - Nagios Remote Plugin Executor Plugin nagios-nrpe-server - Nagios Remote Plugin Executor Server Not sure if I need the server or not, but it's installed and the check_load and others are put in the default; /usr/lib/nagios/plugins/ Looking at the error, I simply made a symlink under /home/nagios/libexec but still getting the same error. Below is just a copy/paste of the ssh in and test. nagios at groundwork:/usr/local/groundwork/nagios/etc$ ssh 192.168.50.101 ssh: /usr/local/groundwork/common/lib/libcrypto.so.0.9.8: no version information available (required by ssh) Linux ws1 2.6.27-7-server #1 SMP Tue Nov 4 20:16:57 UTC 2008 x86_64 Last login: Tue Oct 27 10:57:55 2009 from 192.168.50.6 $ libexec/check_load -w 5,4,3 -c 10,8,6 OK - load average: 0.74, 1.43, 1.66|load1=0.740;5.000;10.000;0; load5=1.430;4.000;8.000;0; load15=1.660;3.000;6.000;0; So things do seem to work, just not sure. The checkcommand shows variable USER22, I could probably hardcode the full path, but not sure if that's the right thing to do. Thanks as always. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mirde at oppy.com Tue Oct 27 18:01:13 2009 From: mirde at oppy.com (Mirza Dedic) Date: Tue, 27 Oct 2009 10:01:13 -0700 Subject: Configuring Serce Dependencies in Nagios 3.1.2 Message-ID: Hello, I have a Nagios setup and I am monitoring LAN/WAN servers/services including network devices, smb shares, squid service status, server pings, and our frame relay. Now if my frame relay goes down between the two offices, obviously my Nagios will not be able to check the server and smb/squid services, now I get a warning message that it cannot reach the smb/squid/server/network, I want to just get a warning that it cannot reach the network and the rest suppressed. I understand this can be done using service dependency, but I have also read that the way Nagios checks stuff is a little wacky, as in: What if it checks the ping of a server before the network? It will report the ping is critical, then once the network is queued to be checked, it will report the network is down? Which would kind of defeat the logic of a dependency check, anyone have any feedback as if this is still the case? I remember reading it on the forum, which is why I did not go through with it when I initially configured it all. But I am also trying to avoid 20 emails for 1 host that is down. Any suggestions or ideas? Thanks! ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmelendez at utep.com.mx Tue Oct 27 20:18:42 2009 From: rmelendez at utep.com.mx (Ricardo Melendez) Date: Tue, 27 Oct 2009 13:18:42 -0600 Subject: RV: check_snmp : External command error with no output (return code: 3) Message-ID: <000801ca573a$552099c0$ff61cd40$@com.mx> Hi, this is the verbose output, nagios at nagios:/usr/local/nagios/libexec$ ./check_snmp -H 192.168.1.5 -C MYCOMMUNITY -o ifOperStatus.1 -r 1 -m RFC1213-MIB -v /usr/local/bin/ -t 1 -r 5 -m RFC1213-MIB -v 1 [authpriv] 192.168.1.5:161 ifOperStatus.1 External command error with no output (return code: 3) It seems that the "/usr/local/bin" directory is where "snmp-net" package is installed, all the binaries are here. Any idea. Thanks De: Ricardo Melendez [mailto:rmelendez at utep.com.mx] Enviado el: Martes, 27 de Octubre de 2009 10:58 a.m. Para: 'nagios-users at lists.sourceforge.net' Asunto: check_snmp : External command error with no output (return code: 3) Hi to all, it is my first submission to the list, I have installed a Nagios server based on the Core Documentation (Quick Start Guide and related), I am trying to monitor a Linksys router via SNMP, but not successful yet. The command: snmpwalk -v1 -c MYCOMMUNITY 192.168.1.5 -m ALL .1 Returns all the snmp objects available in the router But, the command: ./check_snmp -H 192.168.1.5 -C MYCOMMUNITY -o ifOperStatus.1 -r 1 -m RFC1213-MIB Returns "External command error with no output (return code: 3)", for any MIB Object, and the nagios web interface shows the same, the set up is based on the example file included "switch.cfg". Any suggestion to fix that. Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eddy at ati.une.cu Tue Oct 27 20:58:38 2009 From: eddy at ati.une.cu (Eddy Ruiz Azcuy) Date: Tue, 27 Oct 2009 14:58:38 -0500 Subject: problem with check_url Message-ID: <1256673518.11717.42.camel@laptop-eddy> Hi everyone, here's the problem, I have installed a monitoring server running nagios3 in my company and we must monitor a webpage since the clients work with it 24x7,but once I've downloaded the check_url.pl Perl-written Nagios plugin and I have placed it in the folder /usr/lib/nagios/plugin/ I run it from the command line perl /usr/lib/nagios/plugin/check_url.pl http://info.xxxx.cu and it returns this. 200 .OK but when I try to run it from the plugin says: could,nt register the host info.xxxx.cu here are the conf files.Any help will be deeply apreciated,Thanks in advance. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ define host { host_name info.xxxx.cu use generic-host } +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ define command{ command_name check_url command_line $USER1$/check_url $ARG1$ } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ define service { use generic-service host_name info.xxxx.cu service_description URL info.xxxx.cu check_command check_url!http://info.xxxx.cu } ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Tue Oct 27 23:37:45 2009 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Wed, 28 Oct 2009 09:37:45 +1100 Subject: RV: check_snmp : External command error with no output (return code: 3) In-Reply-To: <000801ca573a$552099c0$ff61cd40$@com.mx> References: <000801ca573a$552099c0$ff61cd40$@com.mx> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB3E14274582@off-win2003-01.ausregistrygroup.local> > From: Ricardo Melendez [mailto:rmelendez at utep.com.mx] > Sent: Wednesday, 28 October 2009 06:19 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] RV: check_snmp : External command error with no output (return code: 3) > > Hi, this is the verbose output, > > nagios at nagios:/usr/local/nagios/libexec$ ./check_snmp -H 192.168.1.5 -C MYCOMMUNITY -o ifOperStatus.1 -r 1 -m RFC1213-MIB -v > > /usr/local/bin/ -t 1 -r 5 -m RFC1213-MIB -v 1 [authpriv] 192.168.1.5:161 ifOperStatus.1 > External command error with no output (return code: 3) > > It seems that the "/usr/local/bin" directory is where "snmp-net" package is installed, all the binaries are here. > > Any idea. > > Thanks It seems odd to me that it's "/usr/local/bin" and not "/usr/local/bin/snmpget". What version of the check_snmp plugin are you using? How was it compiled? What was passed to the './configure' as the "--with-snmpget-command=" ? Stuart Browne ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil.ramsay at market-source.com Wed Oct 28 00:03:19 2009 From: neil.ramsay at market-source.com (Neil Ramsay) Date: Wed, 28 Oct 2009 10:03:19 +1100 Subject: Configuring Serce Dependencies in Nagios 3.1.2 In-Reply-To: References: Message-ID: Hi Mirza, >From "Building a Monitoring Infrastructure With Nagios" by David Josephen pg. 71 "Before Nagios checks the state of a service, it first checks the state of all the services that the service depends upon (its parents). If all of those services are okay, Nagios proceeds to check the child service. If any of the parent services are down, Nagios assumes the child service is down as well and stops checks and notifications on the child." Just set up the dependencies and check them. It's easy to do tests just put in wrong IP addresses for the services you want to simulate are down. You'll soon see if your dependency are working. Cheers, Neil On Wed, Oct 28, 2009 at 4:01 AM, Mirza Dedic wrote: > Hello, > > I have a Nagios setup and I am monitoring LAN/WAN servers/services > including network devices, smb shares, squid service status, server pings, > and our frame relay. > > Now if my frame relay goes down between the two offices, obviously my > Nagios will not be able to check the server and smb/squid services, now I > get a warning message that it cannot reach the smb/squid/server/network, I > want to just get a warning that it cannot reach the network and the rest > suppressed. > > I understand this can be done using service dependency, but I have also > read that the way Nagios checks stuff is a little wacky, as in: > > What if it checks the ping of a server before the network? It will report > the ping is critical, then once the network is queued to be checked, it will > report the network is down? > > Which would kind of defeat the logic of a dependency check, anyone have any > feedback as if this is still the case? > > I remember reading it on the forum, which is why I did not go through with > it when I initially configured it all. > > But I am also trying to avoid 20 emails for 1 host that is down. > > Any suggestions or ideas? > > Thanks! > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmelendez at utep.com.mx Wed Oct 28 00:35:05 2009 From: rmelendez at utep.com.mx (Ricardo Melendez) Date: Tue, 27 Oct 2009 17:35:05 -0600 Subject: RV: check_snmp : External command error with no output (return code: 3) In-Reply-To: <8CEF048B9EC83748B1517DC64EA130FB3E14274582@off-win2003-01.ausregistrygroup.local> References: <000801ca573a$552099c0$ff61cd40$@com.mx> <8CEF048B9EC83748B1517DC64EA130FB3E14274582@off-win2003-01.ausregistrygroup.local> Message-ID: <001001ca575e$1f0f5000$5d2df000$@com.mx> Hi, Stuart Well, I download and install "net-snmp-5.4.2.1", and run: ./configure make make install No more config in net-snmp. Next, I launch compilation for nagios-plugins with quickstart instructions but the "check_hpjd" and "check_snmp" do not compile. Then I launch the ./configure script for nagios-plugins with "--with-snmpget-command=/usr/local/bin" , because the snmpget binary lies here. All my snmp enabled host work fine with snmpwalk. Thanks for help. Ricardo -----Mensaje original----- De: Stuart Browne [mailto:stuart.browne at ausregistry.com.au] Enviado el: Martes, 27 de Octubre de 2009 04:38 p.m. Para: Ricardo Melendez; nagios-users at lists.sourceforge.net Asunto: RE: [Nagios-users] RV: check_snmp : External command error with no output (return code: 3) > From: Ricardo Melendez [mailto:rmelendez at utep.com.mx] > Sent: Wednesday, 28 October 2009 06:19 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] RV: check_snmp : External command error with no output (return code: 3) > > Hi, this is the verbose output, > > nagios at nagios:/usr/local/nagios/libexec$ ./check_snmp -H 192.168.1.5 -C MYCOMMUNITY -o ifOperStatus.1 -r 1 -m RFC1213-MIB -v > > /usr/local/bin/ -t 1 -r 5 -m RFC1213-MIB -v 1 [authpriv] 192.168.1.5:161 ifOperStatus.1 > External command error with no output (return code: 3) > > It seems that the "/usr/local/bin" directory is where "snmp-net" package is installed, all the binaries are here. > > Any idea. > > Thanks It seems odd to me that it's "/usr/local/bin" and not "/usr/local/bin/snmpget". What version of the check_snmp plugin are you using? How was it compiled? What was passed to the './configure' as the "--with-snmpget-command=" ? Stuart Browne ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stuart.browne at ausregistry.com.au Wed Oct 28 01:47:18 2009 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Wed, 28 Oct 2009 11:47:18 +1100 Subject: RV: check_snmp : External command error with no output (return code: 3) In-Reply-To: <001001ca575e$1f0f5000$5d2df000$@com.mx> References: <000801ca573a$552099c0$ff61cd40$@com.mx> <8CEF048B9EC83748B1517DC64EA130FB3E14274582@off-win2003-01.ausregistrygroup.local> <001001ca575e$1f0f5000$5d2df000$@com.mx> Message-ID: <8CEF048B9EC83748B1517DC64EA130FB3E142745DB@off-win2003-01.ausregistrygroup.local> > -----Original Message----- > From: Ricardo Melendez [mailto:rmelendez at utep.com.mx] > Sent: Wednesday, 28 October 2009 10:35 > To: Stuart Browne; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] RV: check_snmp : External command error > with no output (return code: 3) > > Hi, Stuart > > Well, I download and install "net-snmp-5.4.2.1", and run: > > ./configure > make > make install > > No more config in net-snmp. > > > Next, I launch compilation for nagios-plugins with quickstart > instructions > but the "check_hpjd" and "check_snmp" do not compile. > > Then I launch the ./configure script for nagios-plugins with > "--with-snmpget-command=/usr/local/bin" , because the snmpget binary > lies > here. > > All my snmp enabled host work fine with snmpwalk. The switch '--with-snmpget-command' needs the full path to the binary, not just the directory name.. So try compiling the plugins with: --with-snmpget-command=/usr/local/bin/snmpget This will populate the PATH_TO_SNMPGET in the Makefile, which will then compile it into 'check_snmp'. Stuart Browne ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From oyvind.nordang at gmail.com Wed Oct 28 13:08:33 2009 From: oyvind.nordang at gmail.com (=?ISO-8859-1?Q?=D8yvind_Nordang?=) Date: Wed, 28 Oct 2009 13:08:33 +0100 Subject: NDOUTILS - Duplicate lines for each service check in servicechecks table (ndoutils 1.4b9) Message-ID: Duplicate lines for each service check in servicechecks table (ndoutils 1.4b9) I have: Nagios 3.2.0 NDOutils 1.4b9 Is this a bug of feature? I've attached a screenshot from phpmyadmin, notice the service_object_id. It's listed twice for each service. Notice also the rest of the info, some of the info is in the first row and some in the second row of the same service. Is this a Nagios issue, NDOutils or just the way it is? Thanks in advance. -- ?yvind Nordang -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sql-output.png Type: image/png Size: 29383 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Oct 28 14:40:21 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Wed, 28 Oct 2009 06:40:21 -0700 Subject: grouing services In-Reply-To: <309483.84067.qm@web26207.mail.ukl.yahoo.com> References: <309483.84067.qm@web26207.mail.ukl.yahoo.com> Message-ID: <4AE849C5.7060408@hp.com> Melanie Pfefer wrote: > hi, > > I am trying to group a list of services, using a servicegroup or other methods. > > Currently, I have this config file > > define service{ > name my-service > use generic-service > check_period 24x7 > max_check_attempts 4 > normal_check_interval 240 > retry_check_interval 1 > contact_groups admins > notification_options w,u,c,r > notification_interval 240 > notification_period 24x7 > register 0 > } > > define service{ > use my-service > host hostA > service_description SERVICEA > check_command my_command!SERVICEA > } > > define service{ > use my-service > host hostB > service_description SERVICEB > check_command my_command!SEFVICEB > } > > > > Each time, I add 1 service for each service_description. Do you have any other optimal method? > > thank you > The question isn't very clear, but it sounds like you want to look into hostgroups. Then you can define a check against that hostgroup once using something like "check_command my_command!$SERVICEDESC$." ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Wed Oct 28 15:04:07 2009 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Wed, 28 Oct 2009 14:04:07 +0000 Subject: Remote nrpe problems with sending arguments Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF30142B6F228A5@MAIL06.curamsoftware.com> I have two check_load in my nrpe.cfg file: command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_load2]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$ When I call them, unfortunately the one with arguments doesn't work. check_nrpe -t 60 -H 172.16.165.214 -c "check_load" OK - load average: 0.00, 0.00, 0.00|load1=0.000;15.000;30.000;0; load5=0.000;10.000;25.000;0; load15=0.000;5.000;20.000;0; [root at localhost ~]# /usr/local/groundwork/nagios/libexec/check_nrpe -t 60 -H 172.16.165.214 -c "check_load2" Warning threshold must be float or float triplet! So this makes it look like it is looking for the arguments, however when I supply them, it returns no data. [root at localhost ~]# /usr/local/groundwork/nagios/libexec/check_nrpe -t 60 -H 172.16.165.214 -c "check_load2" -a "15,10,5" "30,25,20" CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. This happens for other commands also, such as check_users etc Anyone able to point me in the right direction? (remote machine is RHEL4u6 with the RPMs installed (not compiled from source) Thanks B The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 28 15:28:16 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Oct 2009 09:28:16 -0500 Subject: Remote nrpe problems with sending arguments In-Reply-To: <86E8DA9E18BC2344BD0218BF23C88DF30142B6F228A5@MAIL06.curamsoftware.com> References: <86E8DA9E18BC2344BD0218BF23C88DF30142B6F228A5@MAIL06.curamsoftware.com> Message-ID: <15CAB82D-266F-4DD7-88C2-C42FB0A40C3F@ena.com> On Oct 28, 2009, at 9:04 AM, Brian O'Mahony wrote: > [root at localhost ~]# /usr/local/groundwork/nagios/libexec/check_nrpe - > t 60 -H 172.16.165.214 -c "check_load2" > Warning threshold must be float or float triplet! > > So this makes it look like it is looking for the arguments, however > when I supply them, it returns no data. It's not necessarily looking for them. Was it compiled with that option and enabled in nrpe.cfg? See the SECURITY file in the package. > > [root at localhost ~]# /usr/local/groundwork/nagios/libexec/check_nrpe - > t 60 -H 172.16.165.214 -c "check_load2" -a "15,10,5" "30,25,20" > CHECK_NRPE: Received 0 bytes from daemon. Check the remote server > logs for error messages. What do the logs show on the remote server (/var/log/messages probably)? That should give a clue to the problem, if not the actual problem. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 28 15:39:31 2009 From: marc at ena.com (Marc Powell) Date: Wed, 28 Oct 2009 09:39:31 -0500 Subject: problem with check_url In-Reply-To: <1256673518.11717.42.camel@laptop-eddy> References: <1256673518.11717.42.camel@laptop-eddy> Message-ID: <9D8FB1B8-1622-4AC8-A5D3-6DD62AC114A0@ena.com> On Oct 27, 2009, at 2:58 PM, Eddy Ruiz Azcuy wrote: > > > Hi everyone, here's the problem, I have installed a monitoring server > running nagios3 in my company and we must monitor a webpage since the > clients work with it 24x7,but once I've downloaded the check_url.pl > Perl-written Nagios plugin and I have placed it in the > folder /usr/lib/nagios/plugin/ I run it from the command line When using a plugin that is not part of nagios-plugins, it is _extremely_ helpful to include the URL where you downloaded the plugin if you're unable to get help from the author. We can't guess which check_url.pl you're trying to use. > could,nt register the host info.xxxx.cu Is that the exact error message? When testing from the command line, are you doing so as the nagios user? > here are the conf files. > define command{ > command_name check_url > command_line $USER1$/check_url $ARG1$ > } Shouldn't this be check_url.pl, based on your command-line test? -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Wed Oct 28 15:47:47 2009 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Wed, 28 Oct 2009 14:47:47 +0000 Subject: Remote nrpe problems with sending arguments In-Reply-To: <15CAB82D-266F-4DD7-88C2-C42FB0A40C3F@ena.com> References: <86E8DA9E18BC2344BD0218BF23C88DF30142B6F228A5@MAIL06.curamsoftware.com> <15CAB82D-266F-4DD7-88C2-C42FB0A40C3F@ena.com> Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF30142B6F228D3@MAIL06.curamsoftware.com> That would be it. I installed from an RPM and the don't_blame_nrpe was set to 0. Thanks very much. B -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: 28 October 2009 14:28 To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Remote nrpe problems with sending arguments On Oct 28, 2009, at 9:04 AM, Brian O'Mahony wrote: > [root at localhost ~]# /usr/local/groundwork/nagios/libexec/check_nrpe - > t 60 -H 172.16.165.214 -c "check_load2" > Warning threshold must be float or float triplet! > > So this makes it look like it is looking for the arguments, however > when I supply them, it returns no data. It's not necessarily looking for them. Was it compiled with that option and enabled in nrpe.cfg? See the SECURITY file in the package. > > [root at localhost ~]# /usr/local/groundwork/nagios/libexec/check_nrpe - > t 60 -H 172.16.165.214 -c "check_load2" -a "15,10,5" "30,25,20" > CHECK_NRPE: Received 0 bytes from daemon. Check the remote server > logs for error messages. What do the logs show on the remote server (/var/log/messages probably)? That should give a clue to the problem, if not the actual problem. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Wed Oct 28 16:43:37 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Wed, 28 Oct 2009 13:43:37 -0200 Subject: JBOSS Message-ID: Hi All, How can I monitor a jboss server? Thanks in advance. Eduardo Barreto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Wed Oct 28 17:10:53 2009 From: jpratt at norwich.edu (James Pratt) Date: Wed, 28 Oct 2009 12:10:53 -0400 Subject: JBOSS In-Reply-To: References: Message-ID: <24B6509E4191AF44B60A24EAA3B4AD49268D36@nuexchg.norwich.edu> >> -----Original Message----- >> From: Eduardo Barreto [mailto:lecb79 at gmail.com] >> Sent: Wednesday, October 28, 2009 11:44 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] JBOSS >> >> Hi All, >> >> How can I monitor a jboss server? >> >> >> Thanks in advance. >> >> Eduardo Barreto >> >> http://lmgtfy.com/?q=nagios+jboss ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rmelendez at utep.com.mx Wed Oct 28 18:00:34 2009 From: rmelendez at utep.com.mx (Ricardo Melendez) Date: Wed, 28 Oct 2009 11:00:34 -0600 Subject: RV: check_snmp : External command error with no output (return code: 3) [SOLVED] Message-ID: <000801ca57f0$2bace880$8306b980$@com.mx> Thanks, that was the problem. I compile the plugins with "--with-snmpget-command=/usr/local/bin" instead of "with-snmpget-command=/usr/local/bin/snmpget" Now, check_snmp and check_hpjd work. > From: Ricardo Melendez [mailto:rmelendez at utep.com.mx] > Sent: Wednesday, 28 October 2009 10:35 > To: Stuart Browne; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] RV: check_snmp : External command error > with no output (return code: 3) > > Hi, Stuart > > Well, I download and install "net-snmp-5.4.2.1", and run: > > ./configure > make > make install > > No more config in net-snmp. > > > Next, I launch compilation for nagios-plugins with quickstart > instructions but the "check_hpjd" and "check_snmp" do not compile. > > Then I launch the ./configure script for nagios-plugins with > "--with-snmpget-command=/usr/local/bin" , because the snmpget binary > lies here. > > All my snmp enabled host work fine with snmpwalk. The switch '--with-snmpget-command' needs the full path to the binary, not just the directory name.. So try compiling the plugins with: --with-snmpget-command=/usr/local/bin/snmpget This will populate the PATH_TO_SNMPGET in the Makefile, which will then compile it into 'check_snmp'. Stuart Browne -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pitchfork at ederdrom.de Wed Oct 28 18:15:21 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Wed, 28 Oct 2009 18:15:21 +0100 Subject: JBOSS In-Reply-To: References: Message-ID: <4AE87C29.9040507@ederdrom.de> Eduardo Barreto schrieb: > Hi All, > > How can I monitor a jboss server? jmx4perl is cool! http://labs.consol.de/lang/en/jmx4perl/ Joerg ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eddy at ati.une.cu Wed Oct 28 20:18:17 2009 From: eddy at ati.une.cu (Eddy Ruiz Azcuy) Date: Wed, 28 Oct 2009 14:18:17 -0500 Subject: problem with check_url In-Reply-To: <9D8FB1B8-1622-4AC8-A5D3-6DD62AC114A0@ena.com> References: <1256673518.11717.42.camel@laptop-eddy> <9D8FB1B8-1622-4AC8-A5D3-6DD62AC114A0@ena.com> Message-ID: <1256757497.10893.0.camel@laptop-eddy> The url of the plugin is: http://exchange.nagios.org/directory/Plugins/Websites,-Forms-and-Transactions/check_url/details It has no doc so I decide to ask to the list. El mi?, 28-10-2009 a las 09:39 -0500, Marc Powell escribi?: > On Oct 27, 2009, at 2:58 PM, Eddy Ruiz Azcuy wrote: > > > > > > > Hi everyone, here's the problem, I have installed a monitoring server > > running nagios3 in my company and we must monitor a webpage since the > > clients work with it 24x7,but once I've downloaded the check_url.pl > > Perl-written Nagios plugin and I have placed it in the > > folder /usr/lib/nagios/plugin/ I run it from the command line > > When using a plugin that is not part of nagios-plugins, it is > _extremely_ helpful to include the URL where you downloaded the plugin > if you're unable to get help from the author. We can't guess which > check_url.pl you're trying to use. > > > could,nt register the host info.xxxx.cu > > Is that the exact error message? When testing from the command line, > are you doing so as the nagios user? > > > here are the conf files. > > > define command{ > > command_name check_url > > command_line $USER1$/check_url $ARG1$ > > } > > Shouldn't this be check_url.pl, based on your command-line test? > > -- > Marc > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Wed Oct 28 21:54:47 2009 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Wed, 28 Oct 2009 20:54:47 +0000 (GMT) Subject: grouing services In-Reply-To: <4AE849C5.7060408@hp.com> References: <4AE849C5.7060408@hp.com> Message-ID: <234691.89494.qm@web26207.mail.ukl.yahoo.com> thanks but does this method works if I have host not the same as service_description, for each machine? thanks again --- On Wed, 28/10/09, Morris, Patrick wrote: > From: Morris, Patrick > Subject: Re: [Nagios-users] grouing services > To: "Melanie Pfefer" > Cc: "nagios-users at lists.sourceforge.net" > Date: Wednesday, 28 October, 2009, 15:40 > Melanie Pfefer wrote: > > hi, > > > > I am trying to group a list of services, using a > servicegroup or other methods. > > > > Currently, I have this config file > > > > define service{ > >? ? ? ???name? > ? ? ? ? ? ? ? ? > ? ? ? ? ? my-service? ? > ? ? ? ? ? ? ? use? > ? ? ? ? ? ? ? ? > ? ? ? ? > ???generic-service? ? ? ? > ? ? ? ???check_period? > ? ? ? ? ? ? ? ? > ? 24x7? ? ? ? ? ? ? > ? ? ? ? ? ? ? > max_check_attempts? ? ? ? ? ? > ? 4? ? ? ? ? ? ? > ? ? ? ? ? ? ? > ???normal_check_interval? ? ? > ? ???240? ? ? ? > ? ? ? ? ? ? ? ? > ? ???retry_check_interval? ? > ? ? ? ? 1? ? ? ? > ? ? ? ? ? ? ? ? > ? ? ???contact_groups? ? > ? ? ? ? ? ? ? > admins? ? ? ? ? ? ? > ? ? ? notification_options? ? > ? ? ? ? w,u,c,r? ? ? > ? ? ? ? ? ? ? ? > ???notification_interval? ? ? > ? ???240? ? ? ? > ? ? ? ? ? ? ? ? > ? ???notification_period? ? > ? ? ? ???24x7? ? > ? ? ? ? ? ? ? ? > ? ? ? ? register? ? ? > ? ? ? ? ? ? ? ? > ? 0? ? ? ? ? ? ? > ? ? ? ? ? ? ? > ???} > > > > define service{ > >? ? ? ???use? ? > ? ? ? ? ? ? ? ? > ? ? ? ???my-service > >? ? ? ???host? > ? ? ? ? ? ? ? ? > ? ? ? ? ? hostA > >? ? ? > ???service_description? ? ? > ? ? ???SERVICEA > >? ? ? > ???check_command? ? ? ? > ? ? ? ? > ???my_command!SERVICEA > > } > > > > define service{ > >? ? ? ???use? ? > ? ? ? ? ? ? ? ? > ? ? ? ???my-service > >? ? ? ???host? > ? ? ? ? ? ? ? ? > ? ? ? ? ? hostB > >? ? ? > ???service_description? ? ? > ? ? ???SERVICEB > >? ? ? > ???check_command? ? ? ? > ? ? ? ? > ???my_command!SEFVICEB > > } > > > > > > > > Each time, I add 1 service for each > service_description. Do you have any other optimal method? > > > > thank you > >??? > > The question isn't very clear, but it sounds like you want > to look into hostgroups.? Then you can define a check > against that hostgroup once using something like > "check_command my_command!$SERVICEDESC$." > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Charles.Breite at altertrading.com Wed Oct 28 21:01:34 2009 From: Charles.Breite at altertrading.com (Charles Breite) Date: Wed, 28 Oct 2009 15:01:34 -0500 Subject: Log Username for External Command Message-ID: <5D490E0402B4D14F836B5C4436D5949AB48A93@VMEXCHANGE2.alterscrap.com> Hi Everyone, I am trying to find a way to log the username of anyone who sends an external command to Nagios. i.e. disable notifications. I get the DISABLE_NOTIFICATIONS in my logs via logging in Nagios.cfg but I want to be able to know who sent the command. Using Nagios 3.1.2 Thanks for any help! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyleodonnell at gmail.com Thu Oct 29 00:27:29 2009 From: kyleodonnell at gmail.com (Kyle O'Donnell) Date: Wed, 28 Oct 2009 19:27:29 -0400 Subject: Log Username for External Command In-Reply-To: <5D490E0402B4D14F836B5C4436D5949AB48A93@VMEXCHANGE2.alterscrap.com> References: <5D490E0402B4D14F836B5C4436D5949AB48A93@VMEXCHANGE2.alterscrap.com> Message-ID: <2274b9c30910281627s74e327e4tc8e2f74baa92a1ed@mail.gmail.com> Use the apache log. It will tell you which user selected the extcommand.cgi (or whatever the name is) --kyleo On Wed, Oct 28, 2009 at 4:01 PM, Charles Breite < Charles.Breite at altertrading.com> wrote: > Hi Everyone, > > I am trying to find a way to log the username of anyone who sends an > external command to Nagios. i.e. disable notifications. > > I get the DISABLE_NOTIFICATIONS in my logs via logging in Nagios.cfg but I > want to be able to know who sent the command. > > Using Nagios 3.1.2 > > Thanks for any help! > > > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Charles.Breite at altertrading.com Thu Oct 29 20:23:38 2009 From: Charles.Breite at altertrading.com (Charles Breite) Date: Thu, 29 Oct 2009 14:23:38 -0500 Subject: restric user access to Disable Notifications in Web Interface Message-ID: <5D490E0402B4D14F836B5C4436D5949AB48CA2@VMEXCHANGE2.alterscrap.com> Hi All, I am trying to find out where I can restrict user access to Disable Notifications in the Web Interface. I have read and searched but cannot find this information. Any help is always appreciated..... Nagios ver. 3.1.2 Cheers! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From darose at darose.net Thu Oct 29 20:34:01 2009 From: darose at darose.net (David Rosenstrauch) Date: Thu, 29 Oct 2009 15:34:01 -0400 Subject: problem with check_url In-Reply-To: <1256673518.11717.42.camel@laptop-eddy> References: <1256673518.11717.42.camel@laptop-eddy> Message-ID: <4AE9EE29.30006@darose.net> On 10/27/2009 03:58 PM, Eddy Ruiz Azcuy wrote: > > Hi everyone, here's the problem, I have installed a monitoring server > running nagios3 in my company and we must monitor a webpage since the > clients work with it 24x7,but once I've downloaded the check_url.pl > Perl-written Nagios plugin and I have placed it in the > folder /usr/lib/nagios/plugin/ I run it from the command line > > perl /usr/lib/nagios/plugin/check_url.pl http://info.xxxx.cu > > and it returns this. > > 200 .OK > > but when I try to run it from the plugin says: > > could,nt register the host info.xxxx.cu here are the conf > files.Any help will be deeply apreciated,Thanks in advance. Why not use the check_http plugin that ships with nagios, instead of check_url.pl? DR ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Thu Oct 29 20:50:22 2009 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Thu, 29 Oct 2009 15:50:22 -0400 Subject: Restarts resetting soft critical states Message-ID: You think you know an application and every once in a while you get a surprise... I'm running Nagios 3.0.6 in a distributed configuration. We had a host that was unpingable starting at 14:45. It was configured to try the ping until it reached 10 failures, then send us an alert. At the time this was going on, I was making some changes to the configuration (other hosts/services) and doing restarts to have the changes take effect. These restarts would have occurred both on the distributed node and the reporting server. >From looking at the history of this host, it appears that the soft criticals were logged, but each time the server was restarted, it reset the counter: Host Down[10-29-2009 15:14:56] HOST ALERT: psplunk2;DOWN;HARD;10;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:13:26] HOST ALERT: psplunk2;DOWN;SOFT;9;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:12:12] HOST ALERT: psplunk2;DOWN;SOFT;8;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:10:44] HOST ALERT: psplunk2;DOWN;SOFT;7;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:09:30] HOST ALERT: psplunk2;DOWN;SOFT;6;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:08:24] HOST ALERT: psplunk2;DOWN;SOFT;5;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:07:08] HOST ALERT: psplunk2;DOWN;SOFT;4;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:06:04] HOST ALERT: psplunk2;DOWN;SOFT;3;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:04:56] HOST ALERT: psplunk2;DOWN;SOFT;2;FPING CRITICAL - psplunk2. (loss=100% ) Program Start[10-29-2009 15:03:42] Nagios 3.0.6 starting... (PID=932) Program End[10-29-2009 15:03:41] Caught SIGTERM, shutting down... Host Down[10-29-2009 15:02:33] HOST ALERT: psplunk2;DOWN;SOFT;7;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:01:23] HOST ALERT: psplunk2;DOWN;SOFT;6;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 15:00:05] HOST ALERT: psplunk2;DOWN;SOFT;5;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 14:59:05] HOST ALERT: psplunk2;DOWN;SOFT;4;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 14:57:57] HOST ALERT: psplunk2;DOWN;SOFT;3;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 14:56:55] HOST ALERT: psplunk2;DOWN;SOFT;2;FPING CRITICAL - psplunk2. (loss=100% ) Program Start[10-29-2009 14:56:19] Nagios 3.0.6 starting... (PID=31184) Program End[10-29-2009 14:56:17] Caught SIGTERM, shutting down... Host Down[10-29-2009 14:55:47] HOST ALERT: psplunk2;DOWN;SOFT;6;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 14:54:37] HOST ALERT: psplunk2;DOWN;SOFT;5;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 14:53:27] HOST ALERT: psplunk2;DOWN;SOFT;4;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 14:52:17] HOST ALERT: psplunk2;DOWN;SOFT;3;FPING CRITICAL - psplunk2. (loss=100% ) Host Down[10-29-2009 14:51:17] HOST ALERT: psplunk2;DOWN;SOFT;2;FPING CRITICAL - psplunk2. (loss=100% ) Program Start[10-29-2009 14:50:49] Nagios 3.0.6 starting... (PID=30236) Program End[10-29-2009 14:50:48] Caught SIGTERM, shutting down... Host Down[10-29-2009 14:50:07] HOST ALERT: psplunk2;DOWN;SOFT;4;FPING CRITICAL - psplunk2. (loss=100% ) Service Critical[10-29-2009 14:49:51] SERVICE ALERT: psplunk2;Splunk Daemon;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout after 10 seconds. Host Down[10-29-2009 14:48:59] HOST ALERT: psplunk2;DOWN;SOFT;3;FPING CRITICAL - psplunk2. (loss=100% ) Service Critical[10-29-2009 14:48:43] SERVICE ALERT: psplunk2;Time;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout after 15 seconds. Service Critical[10-29-2009 14:48:15] SERVICE ALERT: psplunk2;Load Average;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout after 10 seconds. Host Down[10-29-2009 14:47:57] HOST ALERT: psplunk2;DOWN;SOFT;2;FPING CRITICAL - psplunk2. (loss=100% ) Service Critical[10-29-2009 14:47:41] SERVICE ALERT: psplunk2;Network Time Daemon;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout after 10 seconds. Service Critical[10-29-2009 14:47:31] SERVICE ALERT: psplunk2;Free Memory;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout after 20 seconds. Program Start[10-29-2009 14:47:10] Nagios 3.0.6 starting... (PID=29609) Program End[10-29-2009 14:47:09] Caught SIGTERM, shutting down... Host Down[10-29-2009 14:46:48] HOST ALERT: psplunk2;DOWN;SOFT;2;FPING CRITICAL - psplunk2. (loss=100% ) Service Critical[10-29-2009 14:46:22] SERVICE ALERT: psplunk2;/opt/splunk;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout after 10 seconds. Service Critical[10-29-2009 14:46:22] SERVICE ALERT: psplunk2;/opt/splunk_index1;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout after 10 seconds. Host Down[10-29-2009 14:45:48] HOST ALERT: psplunk2;DOWN;SOFT;1;FPING CRITICAL - psplunk2. (loss=100% ) The end result being that instead of getting an alert that this host was down in approximately 10 minutes, we got notified in 30 minutes -- essentially as soon as I left the server alone long enough for it to go through 10 failures. Both the reporting server and the distributed node share the same attributes for retention and soft states: soft_state_dependencies=0 passive_host_checks_are_soft=1 retain_state_information=1 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 While I would assume the restarts would disrupt Nagios a bit what with having to do start-time tasks again, I would not have expected that it would "start over" with the status of some checks. What am I missing here? Thanks Mark ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eddy at ati.une.cu Thu Oct 29 23:15:43 2009 From: eddy at ati.une.cu (Eddy Ruiz Azcuy) Date: Thu, 29 Oct 2009 20:15:43 -0200 Subject: problem with check_url In-Reply-To: <4AE9EE29.30006@darose.net> References: <1256673518.11717.42.camel@laptop-eddy> <4AE9EE29.30006@darose.net> Message-ID: <1256854543.18629.36.camel@laptop-eddy> Because it only checks the http service in the server and there are several sitess deployed on that server. El jue, 29-10-2009 a las 15:34 -0400, David Rosenstrauch escribi?: > On 10/27/2009 03:58 PM, Eddy Ruiz Azcuy wrote: > > > > Hi everyone, here's the problem, I have installed a monitoring server > > running nagios3 in my company and we must monitor a webpage since the > > clients work with it 24x7,but once I've downloaded the check_url.pl > > Perl-written Nagios plugin and I have placed it in the > > folder /usr/lib/nagios/plugin/ I run it from the command line > > > > perl /usr/lib/nagios/plugin/check_url.pl http://info.xxxx.cu > > > > and it returns this. > > > > 200 .OK > > > > but when I try to run it from the plugin says: > > > > could,nt register the host info.xxxx.cu here are the conf > > files.Any help will be deeply apreciated,Thanks in advance. > > Why not use the check_http plugin that ships with nagios, instead of > check_url.pl? > > DR > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 30 12:35:49 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Oct 2009 06:35:49 -0500 Subject: problem with check_url In-Reply-To: <1256854543.18629.36.camel@laptop-eddy> References: <1256673518.11717.42.camel@laptop-eddy> <4AE9EE29.30006@darose.net> <1256854543.18629.36.camel@laptop-eddy> Message-ID: <8AD7EE8F-F221-4BD1-A826-379D137B454D@ena.com> On Oct 29, 2009, at 5:15 PM, Eddy Ruiz Azcuy wrote: > Because it only checks the http service in the server and there are > several sitess deployed on that server. I'd better remove all those site-specific checks I'm doing with it then ;) It's capable of checking specific sites/pages and even verifying that expected text is present. It's definitely more flexible/capable than check_url.pl is. check_http --help -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Fri Oct 30 13:46:56 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Fri, 30 Oct 2009 10:46:56 -0200 Subject: Check HTTP Message-ID: Hi All, How can I check an apache service, whichs running through port 8070? Thanks in advance Eduardo Barreto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonas.kellens at telenet.be Fri Oct 30 15:12:42 2009 From: jonas.kellens at telenet.be (jonas kellens) Date: Fri, 30 Oct 2009 15:12:42 +0100 Subject: /etc/xinetd.d/nrpe "only_from"-param for check_nrpe based on hostname Message-ID: <1256911962.4578.3.camel@jonas.jocan.local> Hello there ! I'm new to the list and rather new to Nagios also... I have the following question : I have the NRPE-plugin for Nagios running as part of the Xinetd-service on a remote server, this is its config : bash-3.2# cat /etc/xinetd.d/nrpe # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE socket_type = stream port = 5666 wait = no user = nagios group = nagios server = /usr/local/nagios/bin/nrpe server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 127.0.0.1 host.no-ip.biz } host.no-ip.biz = domain name of my Nagios Monitoring server, who has a dynamic IP-address When I put the dynamic DNS-name there, the plugin will not work. I get the following error on the Nagios Monitoring server : [root at nagios nagios]# /usr/local/nagios/libexec/check_nrpe -H CHECK_NRPE: Error - Could not complete SSL handshake. When I put the current IP-address of the Nagios Monitoring server in /etc/xinetd.d/nrpe on the remote server, I get the following output on the Nagios Monitoring server : [root at nagios nagios]# /usr/local/nagios/libexec/check_nrpe -H NRPE v2.12 Question : How can I enable the lookup of a dynamic IP-address via the DynDNS-domainname ?? How can I put my "host.no-ip.biz" into the NRPE-service ?? Tomorrow the IP-address may have changed and I need to manually edit /etc/xinetd.d/nrpe on the remote server again. Thanks for the help ! Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbayles at readytechs.com Fri Oct 30 16:25:30 2009 From: jbayles at readytechs.com (Jonathan Bayles) Date: Fri, 30 Oct 2009 11:25:30 -0400 Subject: Nagios3 distributed monitoring question In-Reply-To: <1256911962.4578.3.camel@jonas.jocan.local> References: <1256911962.4578.3.camel@jonas.jocan.local> Message-ID: <386FCF83D8086E4A89655E41CD3B53D32A55C5A6F1@rtexch01> Hello all, I am looking for a couple of generic configuration files to help me finish a proof-of-concept Nagios3 setup. This is a vanilla distributed Nagios setup, where there is a master server and a remote server, the remote server will do active checks against servers that the master cannot see, and I want to display the results on the master. I have been following a few examples in the nagios3 book I purchased as well as online directions I found. Its my intention to set active checks on the remote, NCSA client on the remote to pass the data to an NCSA daemon on the master and then use a ?remote-service? service class to catch the data and present it. I think I am missing some basic things in my understanding but I am positive that some config file examples would clear things up tremendously. If anyone wouldn?t mind sharing I would be very grateful and problem get through this much more quickly. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 30 16:51:58 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Oct 2009 10:51:58 -0500 Subject: Check HTTP In-Reply-To: References: Message-ID: <256CA585-1F2B-445C-8646-EBC25E6873F6@ena.com> On Oct 30, 2009, at 7:46 AM, Eduardo Barreto wrote: > Hi All, > > How can I check an apache service, whichs running through port 8070? Pass the port to check_http -- ./check_http --help ... This plugin tests the HTTP service on the specified host. It can test normal (http) and secure (https) servers, follow redirects, search for strings and regular expressions, check connection times, and report on certificate expiration times. Usage: check_http -H | -I [-u ] [-p ] [-w ] [-c ] [-t ] [-L] [-a auth] [-f ] [-e ] [-s string] [-l] [-r | -R ] [- P string] [-m :] [-4|-6] [-N] [-M ] [-A string] [-k string] NOTE: One or both of -H and -I must be specified Options: ... -p, --port=INTEGER Port number (default: 80) -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 30 17:03:56 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Oct 2009 11:03:56 -0500 Subject: /etc/xinetd.d/nrpe "only_from"-param for check_nrpe based on hostname In-Reply-To: <1256911962.4578.3.camel@jonas.jocan.local> References: <1256911962.4578.3.camel@jonas.jocan.local> Message-ID: <8E091E44-0AD9-4A2D-906C-EF08F0FE65EF@ena.com> On Oct 30, 2009, at 9:12 AM, jonas kellens wrote: > Hello there ! > > I'm new to the list and rather new to Nagios also... I have the > following question : > > I have the NRPE-plugin for Nagios running as part of the Xinetd- > service on a remote server, this is its config : > > bash-3.2# cat /etc/xinetd.d/nrpe > # default: on > # description: NRPE (Nagios Remote Plugin Executor) > service nrpe > { > flags = REUSE > socket_type = stream > port = 5666 > wait = no > user = nagios > group = nagios > server = /usr/local/nagios/bin/nrpe > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > log_on_failure += USERID > disable = no > only_from = 127.0.0.1 host.no-ip.biz > } > Question : How can I enable the lookup of a dynamic IP-address via > the DynDNS-domainname ?? How can I put my "host.no-ip.biz" into the > NRPE-service ?? I don't use NRPE under xinetd but on the face of it, this is a problem with your reverse DNS and the way that xinetd is doing the verification. When your nagios machine connects to NRPE, xinetd will take the IP address it sees as the source and look up the reverse DNS entry for it. If that name is not 'host.no-ip.biz', then it's going to refuse the connection. xinetd does _not_ ask what the current IP of host.no-ip.biz is on every connection. It depends entirely on the reverse DNS PTR name. When your IP changes, do you automatically update the reverse DNS for that new IP to point to that name? I'm guessing you do not. This is a very unusual situation. Most sane admins would never use DHCP or a dynamic address for a server. Your options are going to be very limited, mostly being to compromise on your security and allow more than just the single host. man xinetd.conf -- only_from determines the remote hosts to which the particular service is available. Its value is a list of IP addresses which can be specified in any combination of the following ways: [snip] d) a host name. When a connection is made to xinetd, a reverse lookup is performed, and the canonical name returned is compared to the speci- fied host name. You may also use domain names in the form of .domain.com. If the reverse lookup of the client?s IP is within .domain.com, a match occurs. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 30 17:07:14 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Oct 2009 11:07:14 -0500 Subject: Nagios3 distributed monitoring question In-Reply-To: <386FCF83D8086E4A89655E41CD3B53D32A55C5A6F1@rtexch01> References: <1256911962.4578.3.camel@jonas.jocan.local> <386FCF83D8086E4A89655E41CD3B53D32A55C5A6F1@rtexch01> Message-ID: On Oct 30, 2009, at 10:25 AM, Jonathan Bayles wrote: > I think I am missing some basic things in my understanding but I am > positive that some config file examples would clear things up > tremendously. If anyone wouldn?t mind sharing I would be very > grateful and problem get through this much more quickly. Have you seen the Distributed Monitoring section of the Nagios Documentation? http://nagios.sourceforge.net/docs/3_0/distributed.html What specific part of it do you feel like you're missing? -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eddy at ati.une.cu Fri Oct 30 17:15:20 2009 From: eddy at ati.une.cu (Eddy Ruiz Azcuy) Date: Fri, 30 Oct 2009 11:15:20 -0500 Subject: problem with check_url In-Reply-To: <8AD7EE8F-F221-4BD1-A826-379D137B454D@ena.com> References: <1256673518.11717.42.camel@laptop-eddy> <4AE9EE29.30006@darose.net> <1256854543.18629.36.camel@laptop-eddy> <8AD7EE8F-F221-4BD1-A826-379D137B454D@ena.com> Message-ID: <1256919320.2169.1.camel@laptop-eddy> OK I'll check check_http and tell you later.thanks in advance. El vie, 30-10-2009 a las 06:35 -0500, Marc Powell escribi?: > On Oct 29, 2009, at 5:15 PM, Eddy Ruiz Azcuy wrote: > > > Because it only checks the http service in the server and there are > > several sitess deployed on that server. > > I'd better remove all those site-specific checks I'm doing with it > then ;) > > It's capable of checking specific sites/pages and even verifying that > expected text is present. It's definitely more flexible/capable than > check_url.pl is. > > check_http --help > > -- > Marc > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonas.kellens at telenet.be Fri Oct 30 17:39:17 2009 From: jonas.kellens at telenet.be (jonas kellens) Date: Fri, 30 Oct 2009 17:39:17 +0100 Subject: /etc/xinetd.d/nrpe "only_from"-param for check_nrpe based on hostname In-Reply-To: <8E091E44-0AD9-4A2D-906C-EF08F0FE65EF@ena.com> References: <1256911962.4578.3.camel@jonas.jocan.local> <8E091E44-0AD9-4A2D-906C-EF08F0FE65EF@ena.com> Message-ID: <1256920757.5893.4.camel@jonas.jocan.local> Marc, thanks for your reply ! I have an online Asterisk-server with a fixed IP of course and this is the to-be-monitored-host. I've set up a Nagios Monitoring server @ my home. I do not have a fixed IP on my broadband-connection. So I guess you understand my question. I thought about making a VPN-connection. My Nagios-server @ home will then always have the IP 10.10.8.2 or something like that... Would that sound safer to you ? Greetingz, Jonas. On Fri, 2009-10-30 at 11:03 -0500, Marc Powell wrote: > On Oct 30, 2009, at 9:12 AM, jonas kellens wrote: > > > Hello there ! > > > > I'm new to the list and rather new to Nagios also... I have the > > following question : > > > > I have the NRPE-plugin for Nagios running as part of the Xinetd- > > service on a remote server, this is its config : > > > > bash-3.2# cat /etc/xinetd.d/nrpe > > # default: on > > # description: NRPE (Nagios Remote Plugin Executor) > > service nrpe > > { > > flags = REUSE > > socket_type = stream > > port = 5666 > > wait = no > > user = nagios > > group = nagios > > server = /usr/local/nagios/bin/nrpe > > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > > log_on_failure += USERID > > disable = no > > only_from = 127.0.0.1 host.no-ip.biz > > } > > > Question : How can I enable the lookup of a dynamic IP-address via > > the DynDNS-domainname ?? How can I put my "host.no-ip.biz" into the > > NRPE-service ?? > > I don't use NRPE under xinetd but on the face of it, this is a problem > with your reverse DNS and the way that xinetd is doing the > verification. When your nagios machine connects to NRPE, xinetd will > take the IP address it sees as the source and look up the reverse DNS > entry for it. If that name is not 'host.no-ip.biz', then it's going to > refuse the connection. xinetd does _not_ ask what the current IP of host.no-ip.biz > is on every connection. It depends entirely on the reverse DNS PTR > name. When your IP changes, do you automatically update the reverse > DNS for that new IP to point to that name? I'm guessing you do not. > > This is a very unusual situation. Most sane admins would never use > DHCP or a dynamic address for a server. Your options are going to be > very limited, mostly being to compromise on your security and allow > more than just the single host. > > > man xinetd.conf -- > > only_from determines the remote hosts to which the > particular > service is available. Its value is a > list of IP > addresses which can be specified in any > combination of > the following ways: > > [snip] > > d) a host name. When a connection is > made to > xinetd, a reverse lookup is > performed, and the > canonical name returned is compared to > the speci- > fied host name. You may also use domain > names in > the form of .domain.com. If the > reverse lookup > of the client?s IP is > within .domain.com, a match > occurs. > > > > -- > Marc > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbayles at readytechs.com Fri Oct 30 17:44:28 2009 From: jbayles at readytechs.com (Jonathan Bayles) Date: Fri, 30 Oct 2009 12:44:28 -0400 Subject: Nagios3 distributed monitoring question In-Reply-To: References: <1256911962.4578.3.camel@jonas.jocan.local> <386FCF83D8086E4A89655E41CD3B53D32A55C5A6F1@rtexch01> Message-ID: <386FCF83D8086E4A89655E41CD3B53D32A55C5A6FC@rtexch01> I have a working active check on the remote server and it is working fine. I moved the service check over and modified it to use the remote-service template instead of generic service but I am not seeing anything in the interface. I am guessing that I need to also setup host, hostgroup etc, but the example I am following seems to omit that information. I need a detailed explanation of how to setup the config files on the master so I can see the results of this remote active check. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Friday, October 30, 2009 12:07 PM To: Nagios-Users-Help Mailinglist Subject: Re: [Nagios-users] Nagios3 distributed monitoring question On Oct 30, 2009, at 10:25 AM, Jonathan Bayles wrote: > I think I am missing some basic things in my understanding but I am > positive that some config file examples would clear things up > tremendously. If anyone wouldn't mind sharing I would be very > grateful and problem get through this much more quickly. Have you seen the Distributed Monitoring section of the Nagios Documentation? http://nagios.sourceforge.net/docs/3_0/distributed.html What specific part of it do you feel like you're missing? -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 30 17:50:10 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Oct 2009 11:50:10 -0500 Subject: /etc/xinetd.d/nrpe "only_from"-param for check_nrpe based on hostname In-Reply-To: <1256920757.5893.4.camel@jonas.jocan.local> References: <1256911962.4578.3.camel@jonas.jocan.local> <8E091E44-0AD9-4A2D-906C-EF08F0FE65EF@ena.com> <1256920757.5893.4.camel@jonas.jocan.local> Message-ID: On Oct 30, 2009, at 11:39 AM, jonas kellens wrote: > So I guess you understand my question. Yup. Just as I pictured it... > I thought about making a VPN-connection. My Nagios-server @ home > will then always have the IP 10.10.8.2 or something like that... > Would that sound safer to you ? Yes, that would certainly be safer than the alternative of allowing large sections of your ISP's address space to query NRPE. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 30 18:06:42 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Oct 2009 12:06:42 -0500 Subject: Nagios3 distributed monitoring question In-Reply-To: <386FCF83D8086E4A89655E41CD3B53D32A55C5A6FC@rtexch01> References: <1256911962.4578.3.camel@jonas.jocan.local> <386FCF83D8086E4A89655E41CD3B53D32A55C5A6F1@rtexch01> <386FCF83D8086E4A89655E41CD3B53D32A55C5A6FC@rtexch01> Message-ID: On Oct 30, 2009, at 11:44 AM, Jonathan Bayles wrote: > I have a working active check on the remote server and it is working > fine. I moved the service check over and modified it to use the > remote-service template instead of generic service but I am not > seeing anything in the interface. I have no idea what the remote-service template is or does. From the name, it could be several different things and may not be what you're looking for. Please post it (and it's command{} definition) if you don't understand what it does. > I am guessing that I need to also setup host, hostgroup etc, but the > example I am following seems to omit that information. Yes, each nagios instance must have matching host{} and service{} definitions, at least host_name and service description should match. Other parameters may be different. These must match so that when the central nagios receives a check result from a remote machine, it knows what host and service to apply it to. > I need a detailed explanation of how to setup the config files on > the master so I can see the results of this remote active check. > > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > > Have you seen the Distributed Monitoring section of the Nagios > Documentation? http://nagios.sourceforge.net/docs/3_0/distributed.html It's pretty detailed and would be tedious to repeat. Be specific about what isn't clear in that documentation. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbayles at readytechs.com Fri Oct 30 18:51:58 2009 From: jbayles at readytechs.com (Jonathan Bayles) Date: Fri, 30 Oct 2009 13:51:58 -0400 Subject: Nagios3 distributed monitoring question In-Reply-To: References: <1256911962.4578.3.camel@jonas.jocan.local> <386FCF83D8086E4A89655E41CD3B53D32A55C5A6F1@rtexch01> <386FCF83D8086E4A89655E41CD3B53D32A55C5A6FC@rtexch01> Message-ID: <386FCF83D8086E4A89655E41CD3B53D32A55C5A707@rtexch01> I have included the service definition. Thanks for your time. I think what I need is an example of how I could setup a ping check on the remote(of a host the master cannot see due to network) and see the results on the master. I am fairly sure that I could extrapolate from one working example of this setup. I imagine that as you said, on the master I need to have some kind of definition for the host and the service, but in what way would those differ in order to point them to the data that's being fed via NSCA rather than an active check(that wont work, because the master cannot see the host being checked)? define service{ name remote-service ; The 'name' of t his service template active_checks_enabled 0 ; Active service checks are enabled passive_checks_enabled 1 ; Passive servic e checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance pro blems) obsess_over_service 1 ; We should obse ss over this service (if necessary) check_freshness 1 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifi cations are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure predic tion is enabled process_perf_data 1 ; Process perfor mance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-sta tus information across program restarts is_volatile 0 ; The service is not volatile check_period 24x7 ; The service ca n be checked at any time of the day max_check_attempts 3 ; Re-check the s ervice up to 3 times in order to determine its final (hard) state normal_check_interval 10 ; Check the serv ice every 10 minutes under normal conditions retry_check_interval 2 ; Re-check the s ervice every two minutes until a hard state can be determined contact_groups admins ; Notifications get sent out to everyone in the 'admins' group notification_options w,u,c,r ; Send notificat ions about warning, unknown, critical, and recovery events notification_interval 60 ; Re-notify abou t service problems every hour notification_period 24x7 ; Notifications can be sent out at any time register 0 ; DONT REGISTER T HIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Friday, October 30, 2009 1:07 PM To: Nagios-Users-Help Mailinglist Subject: Re: [Nagios-users] Nagios3 distributed monitoring question On Oct 30, 2009, at 11:44 AM, Jonathan Bayles wrote: > I have a working active check on the remote server and it is working > fine. I moved the service check over and modified it to use the > remote-service template instead of generic service but I am not > seeing anything in the interface. I have no idea what the remote-service template is or does. From the name, it could be several different things and may not be what you're looking for. Please post it (and it's command{} definition) if you don't understand what it does. > I am guessing that I need to also setup host, hostgroup etc, but the > example I am following seems to omit that information. Yes, each nagios instance must have matching host{} and service{} definitions, at least host_name and service description should match. Other parameters may be different. These must match so that when the central nagios receives a check result from a remote machine, it knows what host and service to apply it to. > I need a detailed explanation of how to setup the config files on > the master so I can see the results of this remote active check. > > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > > Have you seen the Distributed Monitoring section of the Nagios > Documentation? http://nagios.sourceforge.net/docs/3_0/distributed.html It's pretty detailed and would be tedious to repeat. Be specific about what isn't clear in that documentation. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonas.kellens at telenet.be Fri Oct 30 20:34:22 2009 From: jonas.kellens at telenet.be (jonas kellens) Date: Fri, 30 Oct 2009 20:34:22 +0100 Subject: You don't have permission to access /nagios/ on this server Message-ID: <1256931262.7995.13.camel@jonas.jocan.local> Dear list, I have installed nagios from source. Then executed the following commands : [root at nagios nagios-3.2.0]# chown nagios.nagios /usr/local/nagios/ [root at nagios nagios-3.2.0]# make install-webconf [root at nagios ~]# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin In my /usr/local/nagios/etc/ I have : [root at nagios ~]# ls -l /usr/local/nagios/etc/ total 88 -rw-rw-r-- 1 nagios nagios 11408 Oct 30 19:30 cgi.cfg -rw-r--r-- 1 root root 26 Oct 30 19:44 htpasswd.users -rw-rw-r-- 1 nagios nagios 43776 Oct 30 19:30 nagios.cfg drwxrwxr-x 2 nagios nagios 4096 Oct 30 19:30 objects -rw-rw---- 1 nagios nagios 1340 Oct 30 19:30 resource.cfg Is it normal that htpasswd.users has root.root ?? In my /etc/httpd/conf.d/ I have : [root at nagios ~]# ls -l /etc/httpd/conf.d/ total 32 -rw-r--r-- 1 root root 1010 Oct 30 19:42 nagios.conf -rw-r--r-- 1 root root 566 Sep 3 23:42 proxy_ajp.conf -rw-r--r-- 1 root root 392 Sep 3 23:42 README -rw-r--r-- 1 root root 299 Sep 3 23:42 welcome.conf Is it normal that nagios.conf has root.root ?? The /etc/httpd/conf.d/nagios.conf look like this : # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user "Allow from all" should let me consult the Nagios web-interface from whichever host I want to, no ?! [root at nagios ~]# ls -l /usr/local/nagios/ total 56 drwxrwxr-x 2 nagios nagios 4096 Oct 30 19:30 bin drwxrwxr-x 3 nagios nagios 4096 Oct 30 19:44 etc drwxr-xr-x 2 root root 4096 Oct 30 20:50 include drwxrwxr-x 2 nagios nagios 4096 Oct 30 20:50 libexec drwxrwxr-x 2 nagios nagios 4096 Oct 30 19:27 sbin drwxrwxr-x 10 nagios nagios 4096 Oct 30 20:50 share drwxrwxr-x 5 nagios nagios 4096 Oct 30 21:33 var All directories in /usr/local/nagios is nagios.nagios. That's OK, right ?! When I want to consult the webGUI from my portable, I get the message "You don't have permission to access /nagios/ on this server". The /var/log/httpd/error/log says : [Fri Oct 30 21:38:19 2009] [error] [client 192.168.1.250] Directory index forbidden by Options directive: /usr/local/nagios/share/ 192.168.1.250 is my ClarkConnect gateway-server. My client is 192.168.1.100. Can someone advise ? Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 30 21:43:50 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Oct 2009 15:43:50 -0500 Subject: Nagios3 distributed monitoring question In-Reply-To: <386FCF83D8086E4A89655E41CD3B53D32A55C5A707@rtexch01> References: <1256911962.4578.3.camel@jonas.jocan.local> <386FCF83D8086E4A89655E41CD3B53D32A55C5A6F1@rtexch01> <386FCF83D8086E4A89655E41CD3B53D32A55C5A6FC@rtexch01> <386FCF83D8086E4A89655E41CD3B53D32A55C5A707@rtexch01> Message-ID: <74AF63BE-7485-42E9-AA35-3E2B3D2E205A@ena.com> On Oct 30, 2009, at 12:51 PM, Jonathan Bayles wrote: > I have included the service definition. Thanks for your time. I > think what I need is an example of how I could setup a ping check on > the remote(of a host the master cannot see due to network) and see > the results on the master. I am fairly sure that I could extrapolate > from one working example of this setup. > > I imagine that as you said, on the master I need to have some kind > of definition for the host and the service, but in what way would > those differ in order to point them to the data that's being fed via > NSCA rather than an active check(that wont work, because the master > cannot see the host being checked)? It's not as simple as providing you with a sample definition. There's more to it than that but for your host/service definitions, you just need to add on the central -- active_checks_enabled 0 passive_checks_enabled 1 and on the remote -- active_checks_enabled 1 passive_checks_enabled 0 There are other things you need to enable/change in nagios.cfg (and other files), etc to make this all work though. The documentation I've repeatedly pointed you to goes into the detail you're asking about. -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Oct 30 21:53:31 2009 From: marc at ena.com (Marc Powell) Date: Fri, 30 Oct 2009 15:53:31 -0500 Subject: You don't have permission to access /nagios/ on this server In-Reply-To: <1256931262.7995.13.camel@jonas.jocan.local> References: <1256931262.7995.13.camel@jonas.jocan.local> Message-ID: <26591E42-8C40-4754-A661-8E0E68E11BCA@ena.com> On Oct 30, 2009, at 2:34 PM, jonas kellens wrote: > [root at nagios ~]# htpasswd -c /usr/local/nagios/etc/htpasswd.users > nagiosadmin You created it as root here... > -rw-r--r-- 1 root root 26 Oct 30 19:44 htpasswd.users > > > Is it normal that htpasswd.users has root.root ?? ... so yes, it would be normal that it would be root:root. Whether you want to keep it that way is your choice. As long as your web server can read the file, it's not that significant (it can with these permissions). I personally chown it to nagios to be consistent but anyone that can log in as the nagios user could edit it. > In my /etc/httpd/conf.d/ I have : > > [root at nagios ~]# ls -l /etc/httpd/conf.d/ > total 32 > -rw-r--r-- 1 root root 1010 Oct 30 19:42 nagios.conf > Is it normal that nagios.conf has root.root ?? Yes. > "Allow from all" should let me consult the Nagios web-interface from > whichever host I want to, no ?! Yes. > All directories in /usr/local/nagios is nagios.nagios. That's OK, > right ?! Yes. > When I want to consult the webGUI from my portable, I get the > message "You don't have permission to access /nagios/ on this server" > > The /var/log/httpd/error/log says : > > [Fri Oct 30 21:38:19 2009] [error] [client 192.168.1.250] Directory > index forbidden by Options directive: /usr/local/nagios/share/ Verify you have PHP installed and enabled. Verify index.php is listed as a DirectoryIndex within httpd.conf or conf.d/php.conf (depending on your OS/distribution)? -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonas.kellens at telenet.be Fri Oct 30 23:35:29 2009 From: jonas.kellens at telenet.be (jonas kellens) Date: Fri, 30 Oct 2009 23:35:29 +0100 Subject: You don't have permission to access /nagios/ on this server In-Reply-To: <1256942051.3599.3.camel@jonas.jocan.local> References: <1256931262.7995.13.camel@jonas.jocan.local> <26591E42-8C40-4754-A661-8E0E68E11BCA@ena.com> <1256942051.3599.3.camel@jonas.jocan.local> Message-ID: <1256942129.3599.4.camel@jonas.jocan.local> Thanks for your reply, Mark. PHP is not installed. I did not know that PHP was necessary for Nagios. I followed this guide : http://www.thegeekstuff.com/2008/05/nagios-30-jumpstart-guide-for-red-hat-overview-installation-and-configuration and http://nagios.sourceforge.net/docs/2_0/installing.html Jonas. > On Fri, 2009-10-30 at 15:53 -0500, Marc Powell wrote: > > > > > > When I want to consult the webGUI from my portable, I get the > > > message "You don't have permission to access /nagios/ on this server" > > > > > > The /var/log/httpd/error/log says : > > > > > > [Fri Oct 30 21:38:19 2009] [error] [client 192.168.1.250] Directory > > > index forbidden by Options directive: /usr/local/nagios/share/ > > > > Verify you have PHP installed and enabled. Verify index.php is listed > > as a DirectoryIndex within httpd.conf or conf.d/php.conf (depending on > > your OS/distribution)? > > > > -- > > Marc > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonas.kellens at telenet.be Sat Oct 31 11:06:47 2009 From: jonas.kellens at telenet.be (jonas kellens) Date: Sat, 31 Oct 2009 11:06:47 +0100 Subject: CONFIG ERROR! Reload aborted. Check your Nagios configuration. Message-ID: <1256983607.5746.9.camel@jonas.jocan.local> In /usr/local/nagios/etc/objects I have created a new asterisk.cfg : [root at nagios objects]# ls -al -rw-r--r-- 1 nagios nagios 1483 Oct 31 12:03 asterisk.cfg -rw-rw-r-- 1 nagios nagios 7714 Oct 30 19:30 commands.cfg -rw-rw-r-- 1 nagios nagios 2166 Oct 30 19:30 contacts.cfg -rw-rw-r-- 1 nagios nagios 5403 Oct 30 19:30 localhost.cfg -rw-rw-r-- 1 nagios nagios 3124 Oct 30 19:30 printer.cfg -rw-rw-r-- 1 nagios nagios 3293 Oct 30 19:30 switch.cfg -rw-rw-r-- 1 nagios nagios 10812 Oct 30 19:30 templates.cfg -rw-rw-r-- 1 nagios nagios 3209 Oct 30 19:30 timeperiods.cfg -rw-rw-r-- 1 nagios nagios 4019 Oct 30 19:30 windows.cfg In /usr/local/nagios/etc/nagios.cfg I have added : # You can specify individual object config files as shown below: cfg_file=/usr/local/nagios/etc/objects/commands.cfg cfg_file=/usr/local/nagios/etc/objects/contacts.cfg cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg cfg_file=/usr/local/nagios/etc/objects/templates.cfg # Definitions for monitoring the local (Linux) host cfg_file=/usr/local/nagios/etc/objects/localhost.cfg # Definitions for monitoring the Hosted Asterisk server cfg_file=/usr/local/nagios/etc/objects/asterisk.cfg # Definitions for monitoring a Windows machine #cfg_file=/usr/local/nagios/etc/objects/windows.cfg # Definitions for monitoring a router/switch #cfg_file=/usr/local/nagios/etc/objects/switch.cfg # Definitions for monitoring a network printer #cfg_file=/usr/local/nagios/etc/objects/printer.cfg The asterisk.cfg contains the following : # Define a host for Hosted Asterisk define host{ use linux-server ; Name of host template to use ; This host definition will inherit all variables that are defined ; in (or inherited by) the linux-server host template definition. host_name asterisk alias Hosted Asterisk address ip_address max_check_attempts 3 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 } ############################################################################### ############################################################################### # # SERVICE DEFINITIONS # ############################################################################### ############################################################################### define service{ host_name asterisk service_description Root Partition max_check_attempts 5 check_interval 5 retry_interval 3 check_period 24x7 contact_groups admins check_command check_nrpe!check_disk } But I always get the config error : [root at nagios objects]# service nagios reload Running configuration check... CONFIG ERROR! Reload aborted. Check your Nagios configuration. Could someone tell me why ?! According to the Nagios documentation (http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html) I have all the necessary fields filled in. Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Sat Oct 31 13:40:33 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Sat, 31 Oct 2009 13:40:33 +0100 Subject: CONFIG ERROR! Reload aborted. Check your Nagios configuration. In-Reply-To: <1256983607.5746.9.camel@jonas.jocan.local> References: <1256983607.5746.9.camel@jonas.jocan.local> Message-ID: <90f6e8270910310540t6a495ba5m8f3af8b8969e5688@mail.gmail.com> hi, have you done this: http://nagios.sourceforge.net/docs/3_0/verifyconfig.html it usually tells you where the error are in your configuration. -- Groeten, J.Asenjo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Oct 31 13:24:30 2009 From: marc at ena.com (Marc Powell) Date: Sat, 31 Oct 2009 07:24:30 -0500 Subject: CONFIG ERROR! Reload aborted. Check your Nagios configuration. In-Reply-To: <1256983607.5746.9.camel@jonas.jocan.local> References: <1256983607.5746.9.camel@jonas.jocan.local> Message-ID: On Oct 31, 2009, at 5:06 AM, jonas kellens wrote: > > But I always get the config error : > > [root at nagios objects]# service nagios reload > Running configuration check... CONFIG ERROR! Reload aborted. Check > your Nagios configuration. > > Could someone tell me why ?! Run /path/to/nagios -v /path/to/nagios.cfg -- Marc ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonas.kellens at telenet.be Sat Oct 31 15:56:21 2009 From: jonas.kellens at telenet.be (jonas kellens) Date: Sat, 31 Oct 2009 15:56:21 +0100 Subject: CONFIG ERROR! Reload aborted. Check your Nagios configuration. Message-ID: <1257000981.9140.1.camel@jonas.jocan.local> This helped indeed. Good advice. Thanks. Jonas. > On Sat, 2009-10-31 at 13:40 +0100, Natxo Asenjo wrote: > > > hi, > > > > > > have you done this: > > > > > > http://nagios.sourceforge.net/docs/3_0/verifyconfig.html > > > > > > it usually tells you where the error are in your configuration. > > -- > > Groeten, > > J.Asenjo > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonas.kellens at telenet.be Sat Oct 31 16:01:22 2009 From: jonas.kellens at telenet.be (jonas kellens) Date: Sat, 31 Oct 2009 16:01:22 +0100 Subject: MySQL-plugin : how to use it ?? Message-ID: <1257001282.9140.5.camel@jonas.jocan.local> I have found the following Nagios plugin to monitor MySQL : bash-3.2# wget http://oss.isg.inf.ethz.ch/nagiosplug/download/MySQL-1.3.tgz bash-3.2# ls AUTHORS ChangeLog check_mysql.pl check_mysql_slow.pl COPYING VERSION build.sh check_mysql_bytes.pl check_mysql_queries.pl check_mysql_threads.pl TODO bash-3.2# sh build.sh build.sh: line 22: rpmbuildenv: command not found error: failed to stat /usr/src/MySQL-1.3/MySQL.spec: No such file or directory error: failed to stat /usr/src/MySQL-1.3/MySQL.spec: No such file or directory Now, how can I use these check-commands ?? Greetings, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Sat Oct 31 16:14:48 2009 From: jpratt at norwich.edu (James Pratt) Date: Sat, 31 Oct 2009 11:14:48 -0400 Subject: MySQL-plugin : how to use it ?? In-Reply-To: <1257001282.9140.5.camel@jonas.jocan.local> References: <1257001282.9140.5.camel@jonas.jocan.local> Message-ID: <24B6509E4191AF44B60A24EAA3B4AD4926929F@nuexchg.norwich.edu> >> -----Original Message----- >> From: jonas kellens [mailto:jonas.kellens at telenet.be] >> Sent: Saturday, October 31, 2009 11:01 AM >> To: Nagios-Users >> Subject: [Nagios-users] MySQL-plugin : how to use it ?? >> >> I have found the following Nagios plugin to monitor MySQL : >> >> bash-3.2# wget http://oss.isg.inf.ethz.ch/nagiosplug/download/MySQL-1.3.tgz >> >> bash-3.2# ls >> AUTHORS ChangeLog check_mysql.pl check_mysql_slow.pl COPYING VERSION >> build.sh check_mysql_bytes.pl check_mysql_queries.pl check_mysql_threads.pl >> TODO >> >> bash-3.2# sh build.sh >> build.sh: line 22: rpmbuildenv: command not found >> error: failed to stat /usr/src/MySQL-1.3/MySQL.spec: No such file or directory >> error: failed to stat /usr/src/MySQL-1.3/MySQL.spec: No such file or directory >> >> Now, how can I use these check-commands ?? >> >> Greetings, >> Jonas. It appears as though build.sh is trying to build you an RPM file from the source, which is a RedHat package type - you will need the rpm , and other rpm-build utilities in order to get this to compile by using that build script. >From the looks of it above, you may be able to just copy the *.pl files over to /usr/local/nagios/libexec (or wherever your plugin folder lives), and try to use them in your commands.cfg - unless of course there is something specific placed into them from the build.sh script. Regards, Jamie ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonas.kellens at telenet.be Sat Oct 31 16:37:03 2009 From: jonas.kellens at telenet.be (jonas kellens) Date: Sat, 31 Oct 2009 16:37:03 +0100 Subject: MySQL-plugin : how to use it ?? In-Reply-To: <24B6509E4191AF44B60A24EAA3B4AD4926929F@nuexchg.norwich.edu> References: <1257001282.9140.5.camel@jonas.jocan.local> <24B6509E4191AF44B60A24EAA3B4AD4926929F@nuexchg.norwich.edu> Message-ID: <1257003423.9762.2.camel@jonas.jocan.local> This is the output when placing the perl-files in /usr/local/nagios/libexec/ : bash-3.2# /usr/local/nagios/libexec/check_mysql_threads --help bash: /usr/local/nagios/libexec/check_mysql_threads: No such file or directory bash-3.2# /usr/local/nagios/libexec/check_mysql_threads.pl Can't locate utils.pm in @INC (@INC contains: nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/libexec/check_mysql_threads.pl line 26. BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_mysql_threads.pl line 26. bash-3.2# perl /usr/local/nagios/libexec/check_mysql_threads.pl Can't locate utils.pm in @INC (@INC contains: nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/libexec/check_mysql_threads.pl line 26. BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_mysql_threads.pl line 26. Jonas. On Sat, 2009-10-31 at 11:14 -0400, James Pratt wrote: > > It appears as though build.sh is trying to build you an RPM file from the source, which is a RedHat package type - you will need the rpm , and other rpm-build utilities in order to get this to compile by using that build script. > > From the looks of it above, you may be able to just copy the *.pl files over to /usr/local/nagios/libexec (or wherever your plugin folder lives), and try to use them in your commands.cfg - unless of course there is something specific placed into them from the build.sh script. > > > Regards, > Jamie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zarrelli at linux.it Sat Oct 31 16:44:36 2009 From: zarrelli at linux.it (Giorgio Zarrelli) Date: Sat, 31 Oct 2009 16:44:36 +0100 Subject: MySQL-plugin : how to use it ?? In-Reply-To: <1257003423.9762.2.camel@jonas.jocan.local> References: <1257001282.9140.5.camel@jonas.jocan.local> <24B6509E4191AF44B60A24EAA3B4AD4926929F@nuexchg.norwich.edu> <1257003423.9762.2.camel@jonas.jocan.local> Message-ID: <1257003876.3987.2.camel@SALOTTO> Hi, look, the easy way is to put the file utils.pm in the libexec directory. The correct way would be to put utils.pm in the path required by perl. But do the first and it should work. Giorgio Il giorno sab, 31/10/2009 alle 16.37 +0100, jonas kellens ha scritto: > This is the output when placing the perl-files > in /usr/local/nagios/libexec/ : > > bash-3.2# /usr/local/nagios/libexec/check_mysql_threads --help > bash: /usr/local/nagios/libexec/check_mysql_threads: No such file or > directory > > bash-3.2# /usr/local/nagios/libexec/check_mysql_threads.pl > Can't locate utils.pm in @INC (@INC contains: > nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/libexec/check_mysql_threads.pl line 26. > BEGIN failed--compilation aborted > at /usr/local/nagios/libexec/check_mysql_threads.pl line 26. > > bash-3.2# perl /usr/local/nagios/libexec/check_mysql_threads.pl > Can't locate utils.pm in @INC (@INC contains: > nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/libexec/check_mysql_threads.pl line 26. > BEGIN failed--compilation aborted > at /usr/local/nagios/libexec/check_mysql_threads.pl line 26. > > Jonas. > > On Sat, 2009-10-31 at 11:14 -0400, James Pratt wrote: > > > > It appears as though build.sh is trying to build you an RPM file from the source, which is a RedHat package type - you will need the rpm , and other rpm-build utilities in order to get this to compile by using that build script. > > > > >From the looks of it above, you may be able to just copy the *.pl files over to /usr/local/nagios/libexec (or wherever your plugin folder lives), and try to use them in your commands.cfg - unless of course there is something specific placed into them from the build.sh script. > > > > > > Regards, > > Jamie > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From les at deltatechnicalservices.com Sat Oct 31 22:49:12 2009 From: les at deltatechnicalservices.com (Les Fenison) Date: Sat, 31 Oct 2009 14:49:12 -0700 Subject: Ignoring services when entire host is down Message-ID: <4AECB0D8.4000705@deltatechnicalservices.com> I am looking for a way to avoid notifications for all services on a host when the entire host is offline. If the host has 20 services, I am getting 21 notifications when the connection to the host goes down. Instead, I am looking for a way to get a single notification that the host is down and not for all of it's services. I have tried service dependencies but that didn't work. Is there a way to do this? ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null