From mlists at zoominternet.net Thu Mar 1 02:04:57 2012 From: mlists at zoominternet.net (Robert Spangler) Date: Wed, 29 Feb 2012 20:04:57 -0500 Subject: Looking for a good to great book for Nagios Message-ID: <201202292004.57156.mlists@zoominternet.net> Hello All, I have recently installed Nagios and what to learn more about this program. While searching the web for books I see that most are older books written 3+ years ago or more. I would like to ask for recommendation on what I should buy. I currently have the latest version of Nagios installed. I am looking for a book that will give me the ins and out of this program with examples. I thank you for your time. -- Regards Robert Linux The adventure of a lifetime. Linux User #296285 Get Counted http://linuxcounter.net/ ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Mar 1 09:17:04 2012 From: mad at b-care.net (MAD) Date: Thu, 01 Mar 2012 09:17:04 +0100 Subject: Host including services from another host with the same base name In-Reply-To: References: Message-ID: <4F4F3080.7030008@b-care.net> On 02/29/2012 07:58 PM, Jason J. W. Williams wrote: > Hello, > > I've got two hosts named: > > apps-1.example.com > mysql_apps-1.example.com > > For some reason mysql_apps-1.example.com is showing not only services > defined for it but also services defined for apps-1.example.com. You must probably have "use_regexp_matching" set to 1 in your nagios.cfg. Try to disable it (if you don't have other configurations based on regex usage), it should solve your problem. Marc-Andr? ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at claudiokuenzler.com Thu Mar 1 10:20:40 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Thu, 1 Mar 2012 10:20:40 +0100 Subject: check_http 1.4.15 In-Reply-To: <3D480E2907FD164191FE65820A669FFF4ED22773@POM-LA-MBX01.pomwonderful.com> References: <1330035847.76005.YahooMailNeo@web112809.mail.gq1.yahoo.com> <1330459356.24223.YahooMailNeo@web112801.mail.gq1.yahoo.com> <3D480E2907FD164191FE65820A669FFF4ED22773@POM-LA-MBX01.pomwonderful.com> Message-ID: Scott, Did you read my answer at all (Feb 27th)? You're looking for something that hasn't been implemented. Here again the post: The link you posted is a user-contributed patch for check_http, posted on the tracker on Jan 3rd 2012. Nagios Plugins v. 1.4.15 were released in July 2010 so you can be sure that this patch has not made it into 1.4.15. You have two options: - Wait and hope that this patch will make it sometime into the branch and next version release (good luck with that) - Re-compile check_http from source with the patch yourself - ck On Wed, Feb 29, 2012 at 11:38 PM, Werner, Robert wrote: > Can you include the command line you are using and what you expect it to > do? **** > > ** ** > > --**** > > Robert G. Werner**** > > Oracle Apps Systems Administrator**** > > rwerner at pomwonderful.com**** > > 559.521.5089**** > > ** ** > > *From:* Scott Ford [mailto:sm_ford at yahoo.com] > *Sent:* Tuesday, February 28, 2012 12:03 PM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] check_http 1.4.15**** > > ** ** > > All,**** > > > I installed Nagios Plugins v.1.4.15 after reading a post on Sourceforge > that showed the latest version of check_http included an option for regular > expression searches in the header of the file. That option does not seem > to be available. Can anyone shed some light on this? This is the post I > read...**** > > ** ** > > > http://sourceforge.net/tracker/index.php?func=detail&aid=3469275&group_id=29880&atid=397599 > **** > > ** ** > > Thank you in advance,**** > > ** ** > > Scott**** > > ** ** > > ----**** > > ** ** > > [sforddev plugins]# ./check_http --help > check_http v1.4.15 (nagios-plugins 1.4.15) > Copyright (c) 1999 Ethan Galstad > Copyright (c) 1999-2008 Nagios Plugin Development Team > > > 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] > [-b proxy_auth] [-f ] > [-e ] [-s string] [-l] [-r | -R regex>] > [-P string] [-m :] [-4|-6] [-N] [-M ] > [-A string] [-k string] [-S] [--sni] [-C ] [-T ] > [-j method] > NOTE: One or both of -H and -I must be specified > > Options: > -h, --help > Print detailed help screen > -V, --version > Print version information > -H, --hostname=ADDRESS > Host name argument for servers using host headers (virtual host) > Append a port to include it in the header (eg: example.com:5000) > -I, --IP-address=ADDRESS > IP address or name (use numeric address if possible to bypass DNS > lookup). > -p, --port=INTEGER > Port number (default: 80) > -4, --use-ipv4 > Use IPv4 connection > -6, --use-ipv6 > Use IPv6 connection > -e, --expect=STRING > Comma-delimited list of strings, at least one of them is expected in > the first (status) line of the server response (default: HTTP/1.) > If specified skips all other status line logic (ex: 3xx, 4xx, 5xx > processing) > -s, --string=STRING > String to expect in the content > -u, --url=PATH > URL to GET or POST (default: /) > -P, --post=STRING > URL encoded http POST data > -j, --method=STRING (for example: HEAD, OPTIONS, TRACE, PUT, DELETE) > Set HTTP method. > -N, --no-body > Don't wait for document body: stop reading after headers. > (Note that this still does an HTTP GET or POST, not a HEAD.) > -M, --max-age=SECONDS > Warn if document is more than SECONDS old. the number can also be of > the form "10m" for minutes, "10h" for hours, or "10d" for days. > -T, --content-type=STRING > specify Content-Type header media type when POSTing > > -l, --linespan > Allow regex to span newlines (must precede -r or -R) > -r, --regex, --ereg=STRING > Search page for regex STRING > -R, --eregi=STRING > Search page for case-insensitive regex STRING > --invert-regex > Return CRITICAL if found, OK if not > > -a, --authorization=AUTH_PAIR > Username:password on sites with basic authentication > -b, --proxy-authorization=AUTH_PAIR > Username:password on proxy-servers with basic authentication > -A, --useragent=STRING > String to be sent in http header as "User Agent" > -k, --header=STRING > Any other tags to be sent in http header. Use multiple times for > additional headers > -L, --link > Wrap output in HTML link (obsoleted by urlize) > -f, --onredirect= > How to handle redirected pages. sticky is like follow but stick to the > specified IP address. stickyport also ensure post stays the same. > -m, --pagesize=INTEGER<:INTEGER> > Minimum page size required (bytes) : Maximum page size required (bytes) > -w, --warning=DOUBLE > Response time to result in warning status (seconds) > -c, --critical=DOUBLE > Response time to result in critical status (seconds) > -t, --timeout=INTEGER > Seconds before connection times out (default: 10) > -v, --verbose > Show details for command-line debugging (Nagios may truncate output) > > Notes: > This plugin will attempt to open an HTTP connection with the host. > Successful connects return STATE_OK, refusals and timeouts return > STATE_CRITICAL > other errors return STATE_UNKNOWN. Successful connects, but incorrect > reponse > messages from the host result in STATE_WARNING return values. If you are > checking a virtual server that uses 'host headers' you must supply the > FQDN > (fully qualified domain name) as the [host_name] argument. > > Send email to nagios-users at lists.sourceforge.net if you have questions > regarding use of this software. To submit patches or suggest improvements, > send email to nagiosplug-devel at lists.sourceforge.net**** > > ** ** > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 Thu Mar 1 10:12:05 2012 From: m.borsani at it.net (Marco Borsani) Date: Thu, 1 Mar 2012 10:12:05 +0100 Subject: service parameters Message-ID: <006b01ccf78b$65112900$2f337b00$@it.net> Hi all My actual environment has about 1000/1500 services. Usually I set the parameter normal_check_interval at 5 and the retry_check_interval at 1. One customer ask me to set both parameters to 1 (for about 100 services) , but I am afraid this could be to heavy for the server and the network what do you think about ? Are there any parameters inside nagios.cfg that I will be able to increase the performance if is it necessary ? Regards Marco Borsani Unix and Monitoring Sysadmin Technical Operations Dpt. tel: +39 010 4310115 fax: +39 02 30130311 cell: +39 329 5953944 ITnet Srl Societ? con socio unico Direzione e Coordinamento di Libero S.r.l. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 ck at claudiokuenzler.com Thu Mar 1 11:41:21 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Thu, 1 Mar 2012 11:41:21 +0100 Subject: service parameters In-Reply-To: <006b01ccf78b$65112900$2f337b00$@it.net> References: <006b01ccf78b$65112900$2f337b00$@it.net> Message-ID: Depending on the checks/the plugins you use for the checks, this will increase the load and decrease performance on the Nagios server. Also, it doesn't make sense to check some services every minute, for example check_disk (disk utilization). I suggest you create a service definition template with the relevant parameters (check_interval 1, retry_check_interval 1) and use this template for the 100 services. On Thu, Mar 1, 2012 at 10:12 AM, Marco Borsani wrote: > Hi all**** > > ** ** > > My actual environment has about 1000/1500 services.**** > > Usually I set the parameter normal_check_interval at 5 and the > retry_check_interval at 1.**** > > ** ** > > One customer ask me to set both parameters to 1 (for about 100 services) , > but I am afraid this could be to heavy for the server and the network?what > do you think about ?**** > > ** ** > > Are there any parameters inside nagios.cfg that I will be able to increase > the performance if is it necessary ? **** > > ** ** > > Regards**** > > ** ** > > ** ** > > Marco Borsani**** > > *Unix and Monitoring Sysadmin* > > *Technical Operations Dpt.* > > tel: +39 010 4310115**** > > fax: +39 02 30130311**** > > cell: +39 329 5953944**** > > ITnet Srl**** > > Societ? con socio unico**** > > Direzione e Coordinamento di Libero S.r.l.**** > > ** ** > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 np121 at hotmail.com Thu Mar 1 11:50:13 2012 From: np121 at hotmail.com (Nick Price) Date: Thu, 1 Mar 2012 11:50:13 +0100 Subject: corruption In-Reply-To: <000901cce1b7$83177880$89466980$@gmail.com> References: <00cb01cce0f2$c5227920$4f676b60$@it.net> <002b01cce156$17d3df20$477b9d60$@iname.com> <000901cce1b7$83177880$89466980$@gmail.com> Message-ID: Helli I am running Nagios 3.3.1 on a fedora 16 server The server is up to date with all the latest patches. I have noticed the web interface doesn't show the good results. Everything shows OK and no emails go out even when things are not ok. If I issue from the command line on the server check_nrpe -H "myIPaddress" -p 5666 -c CheckDriveSize -a ShowAll=long Drive=C I get a slightly different result than shown in the web interface. CheckDriveSize is not the only command that shows different, this was just an example of 1 command In the web interface "last check" show dates in the future. If I stop the Nagios service then delete the following Nagios.lock Nagios.log Objects.cache Retention.dat Status.dat Then I restart the service, everything comes back as normal. What is becoming corrupted and how to I stop it. It has happened a few times now Any ideas please -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 fcecagno at gmail.com Thu Mar 1 12:31:07 2012 From: fcecagno at gmail.com (Felipe Cecagno) Date: Thu, 1 Mar 2012 08:31:07 -0300 Subject: Dynamically add/remove hosts on Nagios In-Reply-To: <4288A518A157EC4C8873FEE74F778BF01104FA@WPSDGQHH.OPR.STATEFARM.ORG> References: <4288A518A157EC4C8873FEE74F778BF01104FA@WPSDGQHH.OPR.STATEFARM.ORG> Message-ID: Thank you very much for your tips, guys! I did the job using a passive service on Nagios that receives a message whenever a new instance is UP. This message contains information such as IP address and others. When Nagios get a message for this service, it calls an event handler that modifies properly the hosts definition file. Also I have a cronjob that checks if there's any modification in my config files, and if is there any, it uses "killall -HUP nagios" to reload the config files. Thank you again, -- Felipe Cecagno Mconf Development Team https://mconf.org On Sat, Feb 11, 2012 at 3:14 AM, Daniel Wittenberg < daniel.wittenberg.r0ko at statefarm.com> wrote: > That depends on your definition of dynamically. I would like to see it > be able to add/remove hosts without requiring a restart of the service. I > currently use puppet, but it?s still just updating files and then you have > to restart to pickup the changes.**** > > ** ** > > Dan**** > > ** ** > > *From:* ranjib dey [mailto:dey.ranjib at gmail.com] > *Sent:* Friday, February 10, 2012 11:42 PM > *To:* Nagios Users List > *Subject:* Re: [Nagios-users] Dynamically add/remove hosts on Nagios**** > > ** ** > > Have you considered using a configuration management tool like chef or > puppet ? They address the exact usecase **** > > On Feb 10, 2012 7:08 AM, "Felipe Cecagno" wrote:**** > > Hi everybody,**** > > ** ** > > This is the first time I'm posting on this mailing list, so I'm sorry if > my question was already discussed here - I tried to find information about > it on the mailing list and also on Nagios documentation + googling, but > couldn't find it.**** > > ** ** > > Well, I'm setting up Nagios to monitor a group of servers in a cloud > environment. I decided to use passive checks, so I will have one Nagios > central monitor and all servers push statistics to Nagios using NSCA. > Everything is OK so far.**** > > ** ** > > The problem is that I want to add and remove instances dynamically, I > don't want to manually modify hosts.cfg on the central each time I change > my infrastructure. So my idea was that when a new instance gets up, it will > send to Nagios something like (always using NSCA):**** > > ** ** > > "localhost Server UP 0 "**** > > ** ** > > On Nagios I would create a new service on localhost to handle this passive > check.**** > > I've created a Python script (that uses pynag) to modify the hosts.cfg > file in order to add and remove host definitions. When Nagios receives this > passive check, I would call the script to modify the hosts definition > files, and a cron job would execute every minute to look for modifications > on hosts.cfg and make Nagios reload the definition files.**** > > ** ** > > My doubts are:**** > > - is there a smarter way to do that (dynamically add and remove hosts from > Nagios)?**** > > - since my "Server UP" service uses passive checks only, how do I make > Nagios call my script to modify hosts.cfg every time it receives the > passive check?**** > > ** ** > > Any thoughts/suggestions would be appreciated. :)**** > > ** ** > > Thank you in advance,**** > > Best regards, > **** > > ** ** > > --**** > > Felipe Cecagno**** > > Mconf Development Team**** > > https://mconf.org**** > > ** ** > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null**** > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 ae at op5.se Thu Mar 1 15:39:20 2012 From: ae at op5.se (Andreas Ericsson) Date: Thu, 01 Mar 2012 15:39:20 +0100 Subject: corruption In-Reply-To: References: <00cb01cce0f2$c5227920$4f676b60$@it.net> <002b01cce156$17d3df20$477b9d60$@iname.com> <000901cce1b7$83177880$89466980$@gmail.com> Message-ID: <4F4F8A18.7020606@op5.se> Please don't hijack mailing list threads. Those of us who read the list sorted by threads get highly annoyed by it and respond far more curtly than we'd otherwise do. That's the first (and only) warning, so I'll be polite this time even though the behaviour grates on my very soul. On 03/01/2012 11:50 AM, Nick Price wrote: > Helli > > I am running Nagios 3.3.1 on a fedora 16 server > > The server is up to date with all the latest patches. > > I have noticed the web interface doesn't show the good results. > > Everything shows OK and no emails go out even when things are not ok. > > If I issue from the command line on the server check_nrpe -H "myIPaddress" > -p 5666 -c CheckDriveSize -a ShowAll=long Drive=C I get a slightly > different result than shown in the web interface. > That's probably because the webinterface is showing the results from a check that took place a few minutes ago. Nothing to worry about. > > > CheckDriveSize is not the only command that shows different, this was just > an example of 1 command > See above. > > > > > In the web interface "last check" show dates in the future. This is more worrying though. > > If I stop the Nagios service then delete the following > > > > Nagios.lock > > Nagios.log > > Objects.cache > > Retention.dat > > Status.dat > > > > Then I restart the service, everything comes back as normal. > Most likely you have multiple Nagios instances running. It's the usual culprit behind such random corruption. -- 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. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From work at paul.dubuc.org Thu Mar 1 15:57:29 2012 From: work at paul.dubuc.org (Paul Dubuc) Date: Thu, 01 Mar 2012 09:57:29 -0500 Subject: corruption In-Reply-To: <4F4F8A18.7020606@op5.se> References: <00cb01cce0f2$c5227920$4f676b60$@it.net> <002b01cce156$17d3df20$477b9d60$@iname.com> <000901cce1b7$83177880$89466980$@gmail.com> <4F4F8A18.7020606@op5.se> Message-ID: <4F4F8E59.8040907@paul.dubuc.org> As a one time ;-), apologetic, and unintentional thread hijacker, I want to mention that this can happen easily and unintentionally by replying to a message (for the convenience of getting the email address of the list) and thinking you can start a new thread simply by completely changing the subject line. It doesn't work that way. Threads are maintained by the Message-IDs in the email header, not the subject line contents. So you must start a new thread by composing a new message using the nagios-users at lists.sourceforge.net address in your address book. Paul Dubuc Andreas Ericsson wrote: > Please don't hijack mailing list threads. Those of us who read > the list sorted by threads get highly annoyed by it and respond > far more curtly than we'd otherwise do. > > That's the first (and only) warning, so I'll be polite this time > even though the behaviour grates on my very soul. > > On 03/01/2012 11:50 AM, Nick Price wrote: >> Helli >> >> I am running Nagios 3.3.1 on a fedora 16 server >> >> The server is up to date with all the latest patches. >> >> I have noticed the web interface doesn't show the good results. >> >> Everything shows OK and no emails go out even when things are not ok. >> >> If I issue from the command line on the server check_nrpe -H "myIPaddress" >> -p 5666 -c CheckDriveSize -a ShowAll=long Drive=C I get a slightly >> different result than shown in the web interface. >> > > That's probably because the webinterface is showing the results from a > check that took place a few minutes ago. Nothing to worry about. > >> >> >> CheckDriveSize is not the only command that shows different, this was just >> an example of 1 command >> > > See above. > >> >> >> >> >> In the web interface "last check" show dates in the future. > > This is more worrying though. > >> >> If I stop the Nagios service then delete the following >> >> >> >> Nagios.lock >> >> Nagios.log >> >> Objects.cache >> >> Retention.dat >> >> Status.dat >> >> >> >> Then I restart the service, everything comes back as normal. >> > > Most likely you have multiple Nagios instances running. It's the usual > culprit behind such random corruption. > ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mguthrie at nagios.com Thu Mar 1 16:20:06 2012 From: mguthrie at nagios.com (Mike Guthrie) Date: Thu, 01 Mar 2012 09:20:06 -0600 Subject: Looking for a good to great book for Nagios In-Reply-To: <201202292004.57156.mlists@zoominternet.net> References: <201202292004.57156.mlists@zoominternet.net> Message-ID: <4F4F93A6.6010504@nagios.com> Hi Robert, I got started with Nagios Core using the following book, which I felt was pretty straight forward, but this would be more of a "getting started" book: http://www.amazon.com/Learning-Nagios-3-0-Wojciech-Kocjan/dp/1847195180/ref=sr_1_1?ie=UTF8&qid=1330614890&sr=8-1 Although the absolute best resource I know of for Nagios are the manuals that come with our training partner's Nagios Training. Obviously this is more expensive than just buying a book, but it's more interactive and would pretty much equip you to be able to do whatever you ever needed to do with Nagios. The manuals give lots of examples of how to actually do everything, as well as concepts. http://spidertools.com/nagios.php On 2/29/2012 7:04 PM, Robert Spangler wrote: > Hello All, > > I have recently installed Nagios and what to learn more about this program. > While searching the web for books I see that most are older books written 3+ > years ago or more. > > I would like to ask for recommendation on what I should buy. I currently have > the latest version of Nagios installed. I am looking for a book that will > give me the ins and out of this program with examples. > > I thank you for your time. > > -- Mike Guthrie Technical Team ___ Nagios Enterprises, LLC Email: mguthrie at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From np121 at hotmail.com Thu Mar 1 16:42:32 2012 From: np121 at hotmail.com (Nick Price) Date: Thu, 1 Mar 2012 16:42:32 +0100 Subject: corruption In-Reply-To: <4F4F8E59.8040907@paul.dubuc.org> References: <00cb01cce0f2$c5227920$4f676b60$@it.net> <002b01cce156$17d3df20$477b9d60$@iname.com> <000901cce1b7$83177880$89466980$@gmail.com> <4F4F8A18.7020606@op5.se> <4F4F8E59.8040907@paul.dubuc.org> Message-ID: Hi thanks for the input I did just pick up the email address and clean out the message. I didn't know it would add to an existing thread. Regards Nick -----Original Message----- From: Paul Dubuc [mailto:work at paul.dubuc.org] Sent: Thursday, March 01, 2012 15:57 To: Nagios Users List Subject: Re: [Nagios-users] corruption As a one time ;-), apologetic, and unintentional thread hijacker, I want to mention that this can happen easily and unintentionally by replying to a message (for the convenience of getting the email address of the list) and thinking you can start a new thread simply by completely changing the subject line. It doesn't work that way. Threads are maintained by the Message-IDs in the email header, not the subject line contents. So you must start a new thread by composing a new message using the nagios-users at lists.sourceforge.net address in your address book. Paul Dubuc Andreas Ericsson wrote: > Please don't hijack mailing list threads. Those of us who read the > list sorted by threads get highly annoyed by it and respond far more > curtly than we'd otherwise do. > > That's the first (and only) warning, so I'll be polite this time even > though the behaviour grates on my very soul. > > On 03/01/2012 11:50 AM, Nick Price wrote: >> Helli >> >> I am running Nagios 3.3.1 on a fedora 16 server >> >> The server is up to date with all the latest patches. >> >> I have noticed the web interface doesn't show the good results. >> >> Everything shows OK and no emails go out even when things are not ok. >> >> If I issue from the command line on the server check_nrpe -H "myIPaddress" >> -p 5666 -c CheckDriveSize -a ShowAll=long Drive=C I get a slightly >> different result than shown in the web interface. >> > > That's probably because the webinterface is showing the results from a > check that took place a few minutes ago. Nothing to worry about. > >> >> >> CheckDriveSize is not the only command that shows different, this was >> just an example of 1 command >> > > See above. > >> >> >> >> >> In the web interface "last check" show dates in the future. > > This is more worrying though. > >> >> If I stop the Nagios service then delete the following >> >> >> >> Nagios.lock >> >> Nagios.log >> >> Objects.cache >> >> Retention.dat >> >> Status.dat >> >> >> >> Then I restart the service, everything comes back as normal. >> > > Most likely you have multiple Nagios instances running. It's the usual > culprit behind such random corruption. > ---------------------------------------------------------------------------- -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From seirp.samoht at googlemail.com Thu Mar 1 20:25:21 2012 From: seirp.samoht at googlemail.com (Thomas Pries) Date: Thu, 01 Mar 2012 20:25:21 +0100 Subject: NRPE and IPv6 In-Reply-To: <874nudwvw1.fsf@pc8.berlin.quux.de> References: <874nudwvw1.fsf@pc8.berlin.quux.de> Message-ID: <4F4FCD21.6030100@googlemail.com> Hi, Am 26.02.2012 14:45, schrieb Jens Link: >> ... problem with NRPE. It seems, that nrpe does >> not support IPv6. > > True, at least for the nagios version of nrpe. Take a look at the nrpe > version that comes with Icinga. I searched the Icinga website but I didn't find any useful, except the information "Plugins are not distributed with Icinga". Do you have a link to the plugin you mentioned? Thomas ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dd-b at dd-b.net Thu Mar 1 22:38:05 2012 From: dd-b at dd-b.net (David Dyer-Bennet) Date: Thu, 1 Mar 2012 15:38:05 -0600 Subject: Transient errors Message-ID: I see a lot of transient errors on services and hosts I'm monitoring. Hence finding ways to keep notifications from going out on situations that will resolve themselves are kind of an issue. I've played with how many failures in a row are needed to cause a notification, and have that set differently for things I'm monitoring across long links (Beijing, say) compared to things I'm monitoring locally or in New York. Of course, one problem with that is that it makes it take longer before a real problem causes a notification. Right now it takes over 15 minutes for the total failure of our link to Beijing to cause a notification. For things that are numeric values, I can play with the critical and warning ranges to potentially reduce false positives. That, at least, doesn't slow down recognition of total failures. Some things just don't seem to fit the Nagios model -- for example it's quite normal for the SQL server to pull 100% of the cpu for periods now and then, but if it goes on too long, *that's* unusual. Hmm; I suppose I could override the number of failures needed to cause a notification in the service definition for htose, couldn't I? There may be some things I should just stop monitoring (there aren't clear-cut "okay" and "bad" behaviors that I can quantify). I guess I'm wondering if there are useful basic approaches to handling this problem that I'm missing, or if I just need to work through the details more carefully. I'm startled at how often I get isolated failures for no apparent reason. Is that normal for most people monitoring services? I think I'm finding my connections time out now and then due simply to load, without the load actually being at all high. -- David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Thu Mar 1 23:01:09 2012 From: benny at bennyvision.com (C. Bensend) Date: Thu, 1 Mar 2012 16:01:09 -0600 Subject: Nagios 3.2.3 -> 3.3.1 upgrade path Message-ID: <74786603444248b2e35d4a87960b89a9.squirrel@webmail.stinkweasel.net> Hey folks, I'm planning a migration to 3.3.1, and I had a quick question for those of you that have done it. I have a manual failover setup, with one monitoring node that sends all results to another warm standby system via NSCA. If I rebuild one system to 3.3.1 and the active monitoring node remains on 3.2.3 for a week or two, are there going to be any issues? I want to be sure they're compatible enough to run for a short time, so I'm not rebuilding my entire environment in an afternoon. Normally, I'd just upgrade the software and go, but I'm taking this opportunity to make some other adjustments to my system, so I'll be doing bare-metal installs from the OS up. I just want to make sure my 3.2.3 system and my 3.3.1 system will be able to talk. :) Thanks much! Benny -- "The problem with quotes on the internet is that it's very hard to verify their authenticity." -- Abraham Lincoln ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlists at zoominternet.net Thu Mar 1 23:16:56 2012 From: mlists at zoominternet.net (Robert Spangler) Date: Thu, 1 Mar 2012 17:16:56 -0500 Subject: Looking for a good to great book for Nagios In-Reply-To: <4F4F93A6.6010504@nagios.com> References: <201202292004.57156.mlists@zoominternet.net> <4F4F93A6.6010504@nagios.com> Message-ID: <201203011716.56860.mlists@zoominternet.net> On Thursday 01 March 2012 10:20, the following was written: Hello Mike, Thank you for your input. > Hi Robert, > > I got started with Nagios Core using the following book, which I felt > was pretty straight forward, but this would be more of a "getting > started" book: > > http://www.amazon.com/Learning-Nagios-3-0-Wojciech-Kocjan/dp/1847195180/ref >=sr_1_1?ie=UTF8&qid=1330614890&sr=8-1 > > Although the absolute best resource I know of for Nagios are the manuals > that come with our training partner's Nagios Training. Obviously this > is more expensive than just buying a book, but it's more interactive and > would pretty much equip you to be able to do whatever you ever needed to > do with Nagios. The manuals give lots of examples of how to actually do > everything, as well as concepts. > http://spidertools.com/nagios.php > > On 2/29/2012 7:04 PM, Robert Spangler wrote: > > Hello All, > > > > I have recently installed Nagios and what to learn more about this > > program. While searching the web for books I see that most are older > > books written 3+ years ago or more. > > > > I would like to ask for recommendation on what I should buy. I > > currently have the latest version of Nagios installed. I am looking for > > a book that will give me the ins and out of this program with examples. > > > > I thank you for your time. -- Regards Robert Linux The adventure of a lifetime. Linux User #296285 Get Counted http://linuxcounter.net/ ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonny.mosco at gmail.com Fri Mar 2 00:30:47 2012 From: jonny.mosco at gmail.com (Jonny Mosco) Date: Thu, 1 Mar 2012 18:30:47 -0500 Subject: Looking for a good to great book for Nagios In-Reply-To: <201203011716.56860.mlists@zoominternet.net> References: <201202292004.57156.mlists@zoominternet.net> <4F4F93A6.6010504@nagios.com> <201203011716.56860.mlists@zoominternet.net> Message-ID: http://www.amazon.com/Nagios-Network-Monitoring-Wolfgang-Barth/dp/1593271794/ref=sr_1_1?ie=UTF8&qid=1330644624&sr=8-1 There is a lot of good reference in this book as well. On Thu, Mar 1, 2012 at 5:16 PM, Robert Spangler wrote: > On Thursday 01 March 2012 10:20, the following was written: > > Hello Mike, > > Thank you for your input. > > > Hi Robert, > > > > I got started with Nagios Core using the following book, which I felt > > was pretty straight forward, but this would be more of a "getting > > started" book: > > > > > http://www.amazon.com/Learning-Nagios-3-0-Wojciech-Kocjan/dp/1847195180/ref > >=sr_1_1?ie=UTF8&qid=1330614890&sr=8-1 > > > > Although the absolute best resource I know of for Nagios are the manuals > > that come with our training partner's Nagios Training. Obviously this > > is more expensive than just buying a book, but it's more interactive and > > would pretty much equip you to be able to do whatever you ever needed to > > do with Nagios. The manuals give lots of examples of how to actually do > > everything, as well as concepts. > > http://spidertools.com/nagios.php > > > > On 2/29/2012 7:04 PM, Robert Spangler wrote: > > > Hello All, > > > > > > I have recently installed Nagios and what to learn more about this > > > program. While searching the web for books I see that most are older > > > books written 3+ years ago or more. > > > > > > I would like to ask for recommendation on what I should buy. I > > > currently have the latest version of Nagios installed. I am looking > for > > > a book that will give me the ins and out of this program with > examples. > > > > > > I thank you for your time. > > -- > > Regards > Robert > > Linux > The adventure of a lifetime. > > Linux User #296285 > Get Counted > http://linuxcounter.net/ > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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.frost1 at pepsico.com Fri Mar 2 04:19:11 2012 From: mark.frost1 at pepsico.com (Frost, Mark {BIS}) Date: Thu, 1 Mar 2012 22:19:11 -0500 Subject: Transient errors In-Reply-To: References: Message-ID: David, I'm afraid I don't have a simple answer for you there. It sounds like you're monitoring some things that are far away network-wise. If this were my environment I would try to setup a distributed Nagios installation with locally situated Nagios servers to monitor services that were local. You could either use Merlin and a poller/NOC setup or possibly something like "Multi-Site" to allow you to see all the different locations from one central location. If you're talking about things like ping for host checks (or better yet 'fping'), then you should be able to adjust the threshold upwards to allow for longer and longer round-trip times. Otherwise, I would say that the approaches you mention are what you generally have to wind up doing. For instance, we try to have standard thresholds for CPU alerting on Windows servers, but we have some reporting servers that can peg the CPU for 30 minutes. So the teams who own those servers have asked us to raise the threshold for hard criticals to 45 consecutive failures (roughly 45 minutes with the way we schedule checks to run). So you kind of have to take each check on a case by case basis. Usually because you saw the failures and dug into what the exact issue was and determined what, if anything, a resolution for that was. One other example. We do some checks of Oracle databases and the way the Oracle client libraries work, if a database is down, the library could make the code wait for 5 minutes before it returns anything. Obviously that's sort of a problem for Nagios in terms of scheduling, latency, and check execution times. So the solution was to modify the code itself to have a timeout that kill the Oracle connection attempt and abort the check script. As a related thing from that last example, if you're using check_nrpe and you're getting timeouts, you *could* increase the timeout value, but again, that has implications to your Nagios server's instance if those run too long. You usually want checks executing quickly. Mark -----Original Message----- From: David Dyer-Bennet [mailto:dd-b at dd-b.net] Sent: Thursday, March 01, 2012 4:38 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Transient errors I see a lot of transient errors on services and hosts I'm monitoring. Hence finding ways to keep notifications from going out on situations that will resolve themselves are kind of an issue. I've played with how many failures in a row are needed to cause a notification, and have that set differently for things I'm monitoring across long links (Beijing, say) compared to things I'm monitoring locally or in New York. Of course, one problem with that is that it makes it take longer before a real problem causes a notification. Right now it takes over 15 minutes for the total failure of our link to Beijing to cause a notification. For things that are numeric values, I can play with the critical and warning ranges to potentially reduce false positives. That, at least, doesn't slow down recognition of total failures. Some things just don't seem to fit the Nagios model -- for example it's quite normal for the SQL server to pull 100% of the cpu for periods now and then, but if it goes on too long, *that's* unusual. Hmm; I suppose I could override the number of failures needed to cause a notification in the service definition for htose, couldn't I? There may be some things I should just stop monitoring (there aren't clear-cut "okay" and "bad" behaviors that I can quantify). I guess I'm wondering if there are useful basic approaches to handling this problem that I'm missing, or if I just need to work through the details more carefully. I'm startled at how often I get isolated failures for no apparent reason. Is that normal for most people monitoring services? I think I'm finding my connections time out now and then due simply to load, without the load actually being at all high. -- David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From np121 at hotmail.com Fri Mar 2 07:21:08 2012 From: np121 at hotmail.com (Nick Price) Date: Fri, 2 Mar 2012 07:21:08 +0100 Subject: Coruption Message-ID: Hello Hope this generates a new thread now I am running Nagios 3.3.1 on a fedora 16 server The server is up to date with all the latest patches. I have noticed the web interface doesn't show the good results. Everything shows OK and no emails go out even when things are not ok. If I issue from the command line on the server check_nrpe -H "myIPaddress" -p 5666 -c CheckDriveSize -a ShowAll=long Drive=C I get a slightly different result than shown in the web interface. CheckDriveSize is not the only command that shows different, this was just an example of 1 command In the web interface "last check" show dates in the future. Like 15/2/2012 today's date is 1/3/12 If I stop the Nagios service then delete the following Nagios.lock Nagios.log Objects.cache Retention.dat Status.dat Then I restart the service, everything comes back as normal. What is becoming corrupted and how to I stop it. It has happened a few times now Any ideas please -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 ae at op5.se Fri Mar 2 11:08:38 2012 From: ae at op5.se (Andreas Ericsson) Date: Fri, 02 Mar 2012 11:08:38 +0100 Subject: Nagios 3.2.3 -> 3.3.1 upgrade path In-Reply-To: <74786603444248b2e35d4a87960b89a9.squirrel@webmail.stinkweasel.net> References: <74786603444248b2e35d4a87960b89a9.squirrel@webmail.stinkweasel.net> Message-ID: <4F509C26.7000307@op5.se> On 03/01/2012 11:01 PM, C. Bensend wrote: > > Hey folks, > > I'm planning a migration to 3.3.1, and I had a quick question > for those of you that have done it. > > I have a manual failover setup, with one monitoring node that > sends all results to another warm standby system via NSCA. If I > rebuild one system to 3.3.1 and the active monitoring node remains > on 3.2.3 for a week or two, are there going to be any issues? No. The external command format hasn't changed in any way. > I > want to be sure they're compatible enough to run for a short time, > so I'm not rebuilding my entire environment in an afternoon. > > Normally, I'd just upgrade the software and go, but I'm taking > this opportunity to make some other adjustments to my system, so > I'll be doing bare-metal installs from the OS up. > > I just want to make sure my 3.2.3 system and my 3.3.1 system > will be able to talk. :) > They will, so no worries there. -- 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. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 2 11:15:20 2012 From: ae at op5.se (Andreas Ericsson) Date: Fri, 02 Mar 2012 11:15:20 +0100 Subject: Transient errors In-Reply-To: References: Message-ID: <4F509DB8.6030907@op5.se> On 03/01/2012 10:38 PM, David Dyer-Bennet wrote: > > I see a lot of transient errors on services and hosts I'm monitoring. > Hence finding ways to keep notifications from going out on situations that > will resolve themselves are kind of an issue. > > I've played with how many failures in a row are needed to cause a > notification, and have that set differently for things I'm monitoring > across long links (Beijing, say) compared to things I'm monitoring locally > or in New York. Of course, one problem with that is that it makes it take > longer before a real problem causes a notification. Right now it takes > over 15 minutes for the total failure of our link to Beijing to cause a > notification. > > For things that are numeric values, I can play with the critical and > warning ranges to potentially reduce false positives. That, at least, > doesn't slow down recognition of total failures. Some things just don't > seem to fit the Nagios model -- for example it's quite normal for the SQL > server to pull 100% of the cpu for periods now and then, but if it goes on > too long, *that's* unusual. Hmm; I suppose I could override the number of > failures needed to cause a notification in the service definition for > htose, couldn't I? There may be some things I should just stop monitoring > (there aren't clear-cut "okay" and "bad" behaviors that I can quantify). > > I guess I'm wondering if there are useful basic approaches to handling > this problem that I'm missing, or if I just need to work through the > details more carefully. I'm startled at how often I get isolated > failures for no apparent reason. Is that normal for most people > monitoring services? I think I'm finding my connections time out now and > then due simply to load, without the load actually being at all high. Apart from the great writeup Mark wrote, I'd like to add that you can also set "first_notification_delay" for both hosts and services. That will make the services and hosts appear red and critical in the ui, but it will delay notifications for AT LEAST the specified amount of time (multiplied with interval_length, so usually it means minutes). I've stressed AT LEAST, since first_notification_delay requires that a check is run in order to trigger the notification, so the delay could sometimes be greater than what you specify. Some people are a bit freaked out by that, so you'd best know it before you start using it. -- 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. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 2 11:17:42 2012 From: ae at op5.se (Andreas Ericsson) Date: Fri, 02 Mar 2012 11:17:42 +0100 Subject: Coruption In-Reply-To: References: Message-ID: <4F509E46.9010408@op5.se> I already answered some of your questions in reply to your first mail. I won't be writing them here again, so go read the first response top to bottom once more. On 03/02/2012 07:21 AM, Nick Price wrote: > Hello > > > > Hope this generates a new thread now > > > > > > > > > > I am running Nagios 3.3.1 on a fedora 16 server > > The server is up to date with all the latest patches. > > > > > > I have noticed the web interface doesn't show the good results. > > > > > > Everything shows OK and no emails go out even when things are not ok. > > > > If I issue from the command line on the server check_nrpe -H "myIPaddress" > -p 5666 -c CheckDriveSize -a ShowAll=long Drive=C I get a slightly > different result than shown in the web interface. > > > > CheckDriveSize is not the only command that shows different, this was just > an example of 1 command > > > > > > In the web interface "last check" show dates in the future. Like 15/2/2012 > today's date is 1/3/12 > > > > If I stop the Nagios service then delete the following > > > > Nagios.lock > > Nagios.log > > Objects.cache > > Retention.dat > > Status.dat > > > > Then I restart the service, everything comes back as normal. > > > > What is becoming corrupted and how to I stop it. It has happened a few > times now > > > > > > Any ideas please > > > > > > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se 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. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Fri Mar 2 12:10:39 2012 From: benny at bennyvision.com (C. Bensend) Date: Fri, 2 Mar 2012 05:10:39 -0600 Subject: Nagios 3.2.3 -> 3.3.1 upgrade path In-Reply-To: <4F509C26.7000307@op5.se> References: <74786603444248b2e35d4a87960b89a9.squirrel@webmail.stinkweasel.net> <4F509C26.7000307@op5.se> Message-ID: <473cdc401c94d71a3b12959487849356.squirrel@webmail.stinkweasel.net> >> I just want to make sure my 3.2.3 system and my 3.3.1 system >> will be able to talk. :) >> > > They will, so no worries there. Fantastic. Thanks, Andreas! Benny -- "The problem with quotes on the internet is that it's very hard to verify their authenticity." -- Abraham Lincoln ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasont at xobni.com Fri Mar 2 01:39:36 2012 From: jasont at xobni.com (Jason Tyler) Date: Thu, 1 Mar 2012 16:39:36 -0800 Subject: check_procs --metric=CPU with multiple CPUs Message-ID: I have a Ubuntu server with multiple CPUs and a process which is spread across a few CPUs. When I watch top, I see the %CPU bouncing between 100 and 300 for that process. However, I have the warn set for 85% and it?s not warning: check_procs -a '-w 85 -c 95 --metric=CPU -v' If I drop the warn level to 75% it does warn. How is the warn|critical level determined in a multi-CPU environment? TIA! ~Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 roser at touchgroup.net Fri Mar 2 08:26:49 2012 From: roser at touchgroup.net (REDONDO, Rose I.) Date: Fri, 02 Mar 2012 15:26:49 +0800 Subject: Disk I/O monitoring in Nagios Message-ID: <4F507639.2010907@touchgroup.net> Hi Would like to ask how to add Disk I/O monitoring on Nagios? We are using NSClient++ agent. Do we still have to use specific "check_io" or something like that to monitor it? If there is a documentation, we would be glad to look into it. Hoping for your support. -- Thank you and God bless */Rose /* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 benny at bennyvision.com Fri Mar 2 18:07:12 2012 From: benny at bennyvision.com (C. Bensend) Date: Fri, 2 Mar 2012 11:07:12 -0600 Subject: Disk I/O monitoring in Nagios In-Reply-To: <4F507639.2010907@touchgroup.net> References: <4F507639.2010907@touchgroup.net> Message-ID: > Would like to ask how to add Disk I/O monitoring on Nagios? We are using > NSClient++ agent. Do we still have to use specific "check_io" or > something like that to monitor it? > > If there is a documentation, we would be glad to look into it. I use the CheckCounter functionality built in to NSClient++ to monitor the performance counter for the particular volume. It works very well, and I get performance data to graph it with PNP4Nagios. Benny -- "The problem with quotes on the internet is that it's very hard to verify their authenticity." -- Abraham Lincoln ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sb at maniladev.com Fri Mar 2 20:17:05 2012 From: sb at maniladev.com (Sigmund Brandstaetter) Date: Sat, 03 Mar 2012 03:17:05 +0800 Subject: Disk I/O monitoring in Nagios In-Reply-To: <4F507639.2010907@touchgroup.net> References: <4F507639.2010907@touchgroup.net> Message-ID: <4F511CB1.5070106@maniladev.com> Hi Rose, You can use the built in checkcounter function to check virtually any performance counter that the OS gives you To find which specific counter you need, you can use perfmon http://nsclient.org/nscp/wiki/CheckCounter Hope this helps, have a nice weekend Cheers Sigmund -- --------------------- Sigmund Brandstaetter Check my Blog Live from Manila http://maniladev.com --------------------- On 3/2/2012 15:26, REDONDO, Rose I. wrote: > Hi > > Would like to ask how to add Disk I/O monitoring on Nagios? We are > using NSClient++ agent. Do we still have to use specific "check_io" or > something like that to monitor it? > > If there is a documentation, we would be glad to look into it. > > Hoping for your support. > > -- > Thank you and God bless > */Rose /* > > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- --------------------- Sigmund Brandstaetter Check my Blog Live from Manila http://maniladev.com --------------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.hocke at nyu.edu Fri Mar 2 22:20:41 2012 From: michael.hocke at nyu.edu (Michael Hocke) Date: Fri, 2 Mar 2012 16:20:41 -0500 Subject: Nagios 3.3.1 segfaulting Message-ID: <7B318ABF-049A-48D3-B9EA-AC5DC8A5FB9A@nyu.edu> -----BEGIN PGP SIGNED MESSAGE----- Hello, I did a complete new install of Nagios 3.3.1 on Solaris 10 (update 10) by compiling the source. Unfortunately, nagios segfaulted almost immediately after start-up right after logging these messages: [1330706952] Nagios 3.3.1 starting... (PID=27830) [1330706952] Local time is Fri Mar 02 11:49:12 EST 2012 [1330706952] LOG VERSION: 2.0 [1330706952] ndomod: NDOMOD 1.5 (02-03-2012) Copyright (c) 2009 Nagios Core Development Team and Community Contributors [1330706952] ndomod: Successfully connected to data sink. 0 queued items to flush. [1330706952] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully. [1330706952] Finished daemonizing... (New PID=27833) [1330706952] INITIAL HOST STATE: sysmon1;UP;HARD;1; In order to nail down what's happening I ran it under gdb control and found the culprit: it's the asprintf call within log_service_states in base/logging.c asprintf(&temp_buffer,"%s SERVICE STATE: %s;%s;$SERVICESTATE$;$SERVICESTATETYPE$;$SERVICEATTEMPT$;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_service->host_name,temp_service->description,temp_service->plugin_output); because the last parameter 'temp_service->plugin_output' is NULL. I looked through the rest of the code and I realized that the struct member 'plugin_output' is usually used as '(xxx -> plugin_output == NULL) ? "" : xxx -> plugin_output'. I changed it to make it look like just that, recompiled, and I didn't get any segmentation faults anymore. I was a bit perplexed, though, because I went back and checked a previous release of Nagios 3 (3.2.1 and 3.2.3) and I didn't see any differences. I checked the mailing lists but it seems that I am the only one who ran into this problem. Then I checked my configuration files again and browsed the source a bit more and realized that the code in question comes across this buf only if the 'type' is INITIAL_STATES and my configuration has 'log_initial_sta tes' set to '1'. And indeed Centreon (my front-end of choice) does set 'log_initial_states' to '1' which doesn't seem to be very common considering how long this bug has been in Nagios. Anyway, is it okay to post a bug report here or are there other/better channels? Thanks. - - Michael -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 10.0.3 (Build 1) Charset: us-ascii wsBVAwUBT1E5qpbfnpCg64TVAQEgBgf/Uxya/iYpDHKHYyCjjuFg7kdbcyP0rPz1 RSpjhhidRKc4a/G64WH7SE7g13EJfb7vMdK3kxouNdTuVJbHnv+Der07JfLyYYTA 5HjQBnG0CoNGg++4xaoWiTV4sxTeeOO0JhcnGI+fE66Iei60qOWPHIoCbiSzcjYv hCIYO9fBfQlxuITCSLKNJsADvbksEqrrBUxobdF4ZZtZoSkGQfSw9yqUqpEip18c h9LyCfWnpboqUrlGQ9CMDv/ptIgWabhTKw2BS9lvw9IkVQ2xdbuqX0S2CUI+Q1Lw zdLqOaGxofiLALahTLd+nGQuzX2IdrmNz9xAxKTLOk+wQt/gTLdTlQ== =d9+m -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 2 22:56:47 2012 From: ae at op5.se (Andreas Ericsson) Date: Fri, 02 Mar 2012 22:56:47 +0100 Subject: Nagios 3.3.1 segfaulting In-Reply-To: <7B318ABF-049A-48D3-B9EA-AC5DC8A5FB9A@nyu.edu> References: <7B318ABF-049A-48D3-B9EA-AC5DC8A5FB9A@nyu.edu> Message-ID: <4F51421F.30407@op5.se> On 03/02/2012 10:20 PM, Michael Hocke wrote: > -----BEGIN PGP SIGNED MESSAGE----- > > > Hello, > > I did a complete new install of Nagios 3.3.1 on Solaris 10 (update > 10) by compiling the source. Unfortunately, nagios segfaulted almost > immediately after start-up right after logging these messages: > > [1330706952] Nagios 3.3.1 starting... (PID=27830) [1330706952] Local > time is Fri Mar 02 11:49:12 EST 2012 [1330706952] LOG VERSION: 2.0 > [1330706952] ndomod: NDOMOD 1.5 (02-03-2012) Copyright (c) 2009 > Nagios Core Development Team and Community Contributors [1330706952] > ndomod: Successfully connected to data sink. 0 queued items to > flush. [1330706952] Event broker module > '/usr/local/nagios/bin/ndomod.o' initialized successfully. > [1330706952] Finished daemonizing... (New PID=27833) [1330706952] > INITIAL HOST STATE: sysmon1;UP;HARD;1; > > In order to nail down what's happening I ran it under gdb control and > found the culprit: it's the asprintf call within log_service_states > in base/logging.c > > asprintf(&temp_buffer,"%s SERVICE STATE: > %s;%s;$SERVICESTATE$;$SERVICESTATETYPE$;$SERVICEATTEMPT$;%s\n",(type==INITIAL_STATES)?"INITIAL":"CURRENT",temp_service->host_name,temp_service->description,temp_service->plugin_output); > > because the last parameter 'temp_service->plugin_output' is NULL. I > looked through the rest of the code and I realized that the struct > member 'plugin_output' is usually used as '(xxx -> plugin_output == > NULL) ? "" : xxx -> plugin_output'. I changed it to make it look > like just that, recompiled, and I didn't get any segmentation faults > anymore. I was a bit perplexed, though, because I went back and > checked a previous release of Nagios 3 (3.2.1 and 3.2.3) and I didn't > see any differences. I checked the mailing lists but it seems that I > am the only one who ran into this problem. Then I checked my > configuration files again and browsed the source a bit more and > realized that the code in question comes across this buf only if the > 'type' is INITIAL_STATES and my configuration has > 'log_initial_states' set to '1'. And indeed Centreon (my front-end of > choice) does set 'log_initial_states' to '1' which doesn't seem to be > very common considering how long this bug has been in Nagios. > I think the primary reason is that most people who run Nagios do so using Linux, where recent versions of glibc help developers avoid the issue of printing NULL strings by replacing it with "(null)". > Anyway, is it okay to post a bug report here or are there > other/better channels? > This is a good channel. I'll take care of it. > Thanks. > > - - Michael > > > -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 10.0.3 (Build 1) > Charset: us-ascii > > wsBVAwUBT1E5qpbfnpCg64TVAQEgBgf/Uxya/iYpDHKHYyCjjuFg7kdbcyP0rPz1 > RSpjhhidRKc4a/G64WH7SE7g13EJfb7vMdK3kxouNdTuVJbHnv+Der07JfLyYYTA > 5HjQBnG0CoNGg++4xaoWiTV4sxTeeOO0JhcnGI+fE66Iei60qOWPHIoCbiSzcjYv > hCIYO9fBfQlxuITCSLKNJsADvbksEqrrBUxobdF4ZZtZoSkGQfSw9yqUqpEip18c > h9LyCfWnpboqUrlGQ9CMDv/ptIgWabhTKw2BS9lvw9IkVQ2xdbuqX0S2CUI+Q1Lw > zdLqOaGxofiLALahTLd+nGQuzX2IdrmNz9xAxKTLOk+wQt/gTLdTlQ== =d9+m > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ Nagios-users mailing > list Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please > include Nagios version, plugin version (-v) and OS when reporting any > issue. ::: Messages without supporting info will risk being sent to > /dev/null -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se 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. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mester at freemail.hu Sat Mar 3 19:23:42 2012 From: mester at freemail.hu (Mester) Date: Sat, 03 Mar 2012 19:23:42 +0100 Subject: Check multiple ports of a switch with snmp Message-ID: <4F5261AE.5090307@freemail.hu> Hi All, I try to check our switch for bad packets. I have succesfully made the configuration file, but for some reason it always sais SNMP OK. This is the command I use for checking: /usr/local/nagios/libexec/check_snmp -H ip_address -C name -o ifInErrors.101 -w 10 -c 100, -o ifInErrors.102 -w 10 -c 100 -o ifInErrors.103 -w 10 -c 100, -o ifInErrors.104 -w 10 -c 100 And the result is: SNMP OK - 0 20 0 0 | RFC1213-MIB::ifInErrors.101=0c RFC1213-MIB::ifInErrors.102=20c RFC1213-MIB::ifInErrors.103=0c RFC1213-MIB::ifInErrors.104=0c As you can see I have bad backets on the second port of the switch (102), but for some reason the -w and -c part of the command only check the first number of the returned string. (In this case this is 0 so it thinks everything is ok) If I put the bad port on the first place it reports warning: /usr/local/nagios/libexec/check_snmp -H ip_address -C name -o ifInErrors.102 -w 10 -c 100, -o ifInErrors.101 -w 10 -c 100 -o ifInErrors.103 -w 10 -c 100, -o ifInErrors.104 -w 10 -c 100 SNMP WARNING - *20* 0 0 0 | RFC1213-MIB::ifInErrors.102=20c RFC1213-MIB::ifInErrors.101=0c RFC1213-MIB::ifInErrors.103=0c RFC1213-MIB::ifInErrors.104=0c So is there a way to check the whole array of result and no only the first number of it? Attila Mesterhazy ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at zarzax.com Sun Mar 4 00:38:14 2012 From: mark at zarzax.com (Mark Young) Date: Sat, 3 Mar 2012 17:38:14 -0600 Subject: nagios ndoutils problem In-Reply-To: <1330427737.86200.YahooMailClassic@web15601.mail.cnb.yahoo.com> References: <1330427737.86200.YahooMailClassic@web15601.mail.cnb.yahoo.com> Message-ID: You really need to give more details with your message. But it seems you are running the latest NDOUtils version 1.5 and having some of the same problems I was having. This is related to the latest update that adds asynchronous database queries. Read about the patch here http://exchange.nagios.org/directory/Patches/NDOUtils/ndoutils-2Dasync/details. The problem is that NDOUtils is filling up the message queue before it has a chance to read the messages back. You will need to increase the kernel message queue parameters for your system. I do not know the 'optimal' parameters for your system. But in my case I increased my parameters substancially (in /etc/sysctl.conf and applied by `/sbin/sysctl -p`) to: kernel.msgmax = 131072000 kernel.msgmnb = 131072000 kernel.msgmni = 65536000 I learned about message queue parameters from this IBM site http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=%2Fcom.ibm.db2.udb.uprun.doc%2Fdoc%2Ft0008238.htm. Good luck Mark On Feb 28, 2012, at 5:15 AM, ??? wrote: > Feb 28 19:04:37 monitor nagios: ndomod: Successfully connected to data sink. 0 queued items to flush. > Feb 28 19:04:37 monitor nagios: Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully. > Feb 28 19:04:37 monitor nagios: Finished daemonizing... (New PID=3160) > Feb 28 19:04:37 monitor ndo2db-3x: Error: queue send error. > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Mar 5 20:13:45 2012 From: benny at bennyvision.com (C. Bensend) Date: Mon, 5 Mar 2012 13:13:45 -0600 Subject: Performance data not being written to file with 3.3.1 Message-ID: Hey folks, So, I have the following setup after some re-architecting this past weekend: * Primary Nagios server running 3.2.3 * Secondary Nagios server running 3.3.1, receiving all check results via NSCA Everything should be identical between the primary and secondary servers, other than the secondary system not running active checks and having notifications disabled. Each system should process its own performance data. However, I'm wrestling with the new secondary server... I have it configured to write host and service perfdata to a file, and then npcd processes that perfdata from there. Unfortunately, the host and service perfdata files are being written with no data in them (0 bytes). I'm *getting* the perfdata from the primary host - I can view it in the secondary hosts' web interface. It's there. But for some reason, the secondary Nagios daemon isn't writing that data into the file, but it *is* creating the file. I don't know of any reason this shouldn't work... Does anyone with more knowledge of the nuts-n-bolts know why a passive Nagios daemon (no active checks, all data received via NSCA) wouldn't write the perfdata it receives? It thinks it has data - the host and service perfdata files are created and removed as the Nagios daemon creates them, and the process_* commands process them. I'll provide whatever details are necessary, I just want to verify the basic premise of my setup before flooding you with information. :) Thanks much! Benny -- "The problem with quotes on the internet is that it's very hard to verify their authenticity." -- Abraham Lincoln ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Mon Mar 5 23:01:47 2012 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 5 Mar 2012 17:01:47 -0500 Subject: recommended plug-in to monitor error/collision rates of a client's network connection Message-ID: Hello -- Can anyone recommend a plug-in that can monitor the amount of errors and/or collisions that is occurring on a particular client? The version of Nagios that is currently being used is the 3.3.1 release. Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -------------- 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 tom at limepepper.co.uk Tue Mar 6 02:24:55 2012 From: tom at limepepper.co.uk (Tom H) Date: Tue, 06 Mar 2012 01:24:55 +0000 Subject: recommended plug-in to monitor error/collision rates of a client's network connection In-Reply-To: References: Message-ID: <4F556767.1060304@limepepper.co.uk> On 05/03/12 22:01, Kaplan, Andrew H. wrote: > > Hello -- > > Can anyone recommend a plug-in that can monitor the amount of errors > and/or collisions that > is occurring on a particular client? > > The version of Nagios that is currently being used is the 3.3.1 release. > If you don't have any luck with an existing nrpe script, then there are some munin plugins that appear to take aim at the collisions metric, which you could probably convert to nrpe if you had no luck elsewhere.... http://munin-monitoring.org/changeset/4659 http://wa.lzer.net/wiki/shortnotes/monitoring_network-collisions_counter_with_munin/ Cheers, Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -------------- 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 werner.flamme at ufz.de Tue Mar 6 11:32:25 2012 From: werner.flamme at ufz.de (Werner Flamme) Date: Tue, 06 Mar 2012 11:32:25 +0100 Subject: Question about NSCA Message-ID: <4F55E7B9.7060203@ufz.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have a question about the way NSCA works. We have a distributed nagios system, where one server does most of the checks and sends them to the master server via NSCA. This works. Some other checks are done by the master server directly, this works too. Now we added some hosts that can't be reached by neither master nor slave server. We had to install a third server, that acts as a slave and sends its results to the master. In case of a failure of the nagios master server, the "old" slave takes its place. Now the results should be sent to the slave instead of the master (which is not available). What happens if the new slave sends the check results to the old slave? Will they be forwarded to to the master? Works it like a pyramid (several levels of check aggregation) or like a star (every distributed server has to reach the master)? Or should the new slave send the results to both old servers? On , I found "In order to force the distributed server to report all service check results, [...]" "all" would mean that passive check results were transmitted too. Am I right here? Regards, Werner -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9V57kACgkQk33Krq8b42PA5ACcD1gRt4C7kBscO3W81wZVxaoQ GisAn2Y/1KlGpDzAVPxuQVF0+0H0vDDC =fnOa -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rumcho at gmail.com Mon Mar 5 20:37:54 2012 From: rumcho at gmail.com (Roumen Semov) Date: Mon, 5 Mar 2012 11:37:54 -0800 Subject: jboss2nagios Message-ID: <20120305193754.GA14906@rumcho.localdomain> Hi, I was able to get the jboss2nagios plugin set up, now I'm trying to find out how to monitor garbage collection but the script is coming back with an error: #./check_mbean_collector -H dhrlmsappdev1 -p 5566 -m java.lang:type=GarbageCollector -a CollectionCount -w 90 -c 100 UNKNOWN COLLECTIONCOUNT UNKNOWN - MBean java.lang:type=GarbageCollector could not be found Am I using the correct mbean name for the CollectionCount attribute? ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From luis at forestaldelatlantico.com Tue Mar 6 17:37:13 2012 From: luis at forestaldelatlantico.com (Luis Seijas) Date: Tue, 6 Mar 2012 17:37:13 +0100 Subject: from spain Message-ID: <003501ccfbb7$62f51e80$28df5b80$@forestaldelatlantico.com> Hello from spain, I would like that you help me. Im trying to configure SNMP CHECKS from my Groundwork to several devices in my network. With Nagios XI was easy to configure -w (warning) and -c (Critical) values for the response but in Groundwork I don't be able to do that. How is the sintaxis in the example below for avoid Error message? CHECK_SNMP uses snmpget and this version dont support -w option? Thank you in advance. Luis Seijas www.forestaldelatlantico.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 47741 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -------------- 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 mchasse at radixx.com Tue Mar 6 16:13:13 2012 From: mchasse at radixx.com (Chasse, Michael) Date: Tue, 6 Mar 2012 10:13:13 -0500 Subject: Nagios Plugin check_diskstat Message-ID: <7C2648423DC17E4BBB513AB5181FD27813500F16@rem-server.radixx.net> The plugin is working great for local disk such as /sda etc. However I am trying to use it to check disk stats on SAN devices. In our case we use EMC Powerpath so devices are presented on emc's multipathing, for each lun there is 4 devices for redundancy so the system addresses these by emcpowerX. These devices are still listed under /sys/block however when I point the plugin at them it errors out. Have you encountered this before and is there a way to monitor IO on LUN's presented over Fiber and ISCSI. Thank you, Michael Chasse Radixx Solutions International Office: 407.856.9009 x129 This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -------------- 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 Mar 7 17:36:21 2012 From: jpratt at norwich.edu (James Pratt) Date: Wed, 7 Mar 2012 16:36:21 +0000 Subject: Script to import Ip's into basic hosts.cfg? Message-ID: <838D552D6FE6A942A53134195C53C2DE09AFF581@NUEXCH1.norwich.edu> Hi, does anyone know of/have a perl/shell/python script that can take a list of ip addresses from a text file and auto-build a basic hosts.cfg file from it? Thanks, I searched the exchange, but couldn't find anything that would do this without a lot of fuss... Regards, Jamie ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonjwwilliams at gmail.com Wed Mar 7 18:15:19 2012 From: jasonjwwilliams at gmail.com (Jason J. W. Williams) Date: Wed, 7 Mar 2012 10:15:19 -0700 Subject: Script to import Ip's into basic hosts.cfg? In-Reply-To: <838D552D6FE6A942A53134195C53C2DE09AFF581@NUEXCH1.norwich.edu> References: <838D552D6FE6A942A53134195C53C2DE09AFF581@NUEXCH1.norwich.edu> Message-ID: <2C6FF3EB-7762-416B-9C17-B6272C9E3590@gmail.com> We're using Chef to do this. -J Sent via iPhone Is your email Premiere? On Mar 7, 2012, at 9:36, James Pratt wrote: > Hi, does anyone know of/have a perl/shell/python script that can take a list of ip addresses from a text file and auto-build a basic hosts.cfg file from it? > > Thanks, I searched the exchange, but couldn't find anything that would do this without a lot of fuss... > > Regards, > Jamie > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlpaneda at sciodev.com Wed Mar 7 17:48:39 2012 From: jlpaneda at sciodev.com (=?iso-8859-1?Q?Jorge_Pa=F1eda?=) Date: Wed, 7 Mar 2012 10:48:39 -0600 Subject: Monitor Directory (Folders) Size with NSClient++ Message-ID: <899f70fb-8f2d-40ab-82d7-9cfadeb9c65c@sciodev.com> Hello all, I?m using NSClient++ 0.3.9, nsca and passive checks to monitor my Windows server behind a firewall. In one of this servers I have a folder that inside have many other folders and files, I want to monitor this folder and let Nagios send me a warning or critical notification when the size of this folder grows too much (Ex. Folder Size 50 GB, warning when is over 70 GB and critical when is over 80 GB). I tried to accomplish this using CheckFileSize and CheckDriveSize but not succeeded at all. When I use CheckFileSize like this: alias_individual=CheckFileSize ShowAll MaxWarn=60G MaxCrit=70G "File:_Individual=d:/Network Shares/individual/*.*" I got that the result is ok but 0 Bytes. I even got the same result if I eliminate the *.* at the end of the path. When CheckDriveSize is used: alias_individual=CheckDriveSize MaxWarn=60G MaxCrit=70G ShowAll=long "Drive=\\servername\\individual" I got the size but this size is the size of all the Hard Disk and not the size of the folder. Hope you can help me to solve this issue or give any ideas to accomplish the monitoring of size folders. Thanks in advance. Jorge L. Pa?eda Systems Administrator Scio Consulting | IT & Infrastructure Dept. Las Ca?adas 501 Int. 230 Col. Tres Mar?as Morelia, Mich., M?xico Tel. (443) 310-96-01 y (443) 310-96-02 ext. 402 U.S. Phone: 408 404 3897 Ext. 402 www.sciodev.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 12915 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3466 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 dgrgicevic at gmail.com Wed Mar 7 18:19:08 2012 From: dgrgicevic at gmail.com (davor grgicevic) Date: Wed, 07 Mar 2012 18:19:08 +0100 Subject: Script to import Ip's into basic hosts.cfg? In-Reply-To: <838D552D6FE6A942A53134195C53C2DE09AFF581@NUEXCH1.norwich.edu> References: <838D552D6FE6A942A53134195C53C2DE09AFF581@NUEXCH1.norwich.edu> Message-ID: <4F57988C.1010504@gmail.com> On 3/7/2012 5:36 PM, James Pratt wrote: > Hi, does anyone know of/have a perl/shell/python script that can take a list of ip addresses from a text file and auto-build a basic hosts.cfg file from it? > > Thanks, I searched the exchange, but couldn't find anything that would do this without a lot of fuss... > > Regards, > Jamie > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null try Nmap script for nagios . http://sourceforge.net/projects/nmap2nagios/ davor ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom at limepepper.co.uk Wed Mar 7 19:16:02 2012 From: tom at limepepper.co.uk (Tom H) Date: Wed, 07 Mar 2012 18:16:02 +0000 Subject: Script to import Ip's into basic hosts.cfg? In-Reply-To: <2C6FF3EB-7762-416B-9C17-B6272C9E3590@gmail.com> References: <838D552D6FE6A942A53134195C53C2DE09AFF581@NUEXCH1.norwich.edu> <2C6FF3EB-7762-416B-9C17-B6272C9E3590@gmail.com> Message-ID: <4F57A5E2.4000408@limepepper.co.uk> On 07/03/12 17:15, Jason J. W. Williams wrote: > We're using Chef to do this. +1 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From phil.randal at hoopleltd.co.uk Wed Mar 7 19:05:24 2012 From: phil.randal at hoopleltd.co.uk (Randal, Phil) Date: Wed, 7 Mar 2012 18:05:24 +0000 Subject: Monitor Directory (Folders) Size with NSClient++ In-Reply-To: <899f70fb-8f2d-40ab-82d7-9cfadeb9c65c@sciodev.com> References: <899f70fb-8f2d-40ab-82d7-9cfadeb9c65c@sciodev.com> Message-ID: <7CA580B59C1ABD45B4614ED90D4C7B853D11FDD1@HC-EXMBX04.herefordshire.gov.uk> GetFileSize works for me using backslashes and not forward slashes. Try using "\" or "\\" instead of "/" in the path. e.g. d:\\Network Shares\\individual\\*.* This might be a bug in NSClient++ and/or its documentation. Cheers, Phil -- Phil Randal Infrastructure Engineer Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT Tel: 01432 260415 | Email: phil.randal at hoopleltd.co.uk From: Jorge Pa?eda [mailto:jlpaneda at sciodev.com] Sent: 07 March 2012 16:49 To: 'Nagios Users List' Subject: [Nagios-users] Monitor Directory (Folders) Size with NSClient++ Hello all, I'm using NSClient++ 0.3.9, nsca and passive checks to monitor my Windows server behind a firewall. In one of this servers I have a folder that inside have many other folders and files, I want to monitor this folder and let Nagios send me a warning or critical notification when the size of this folder grows too much (Ex. Folder Size 50 GB, warning when is over 70 GB and critical when is over 80 GB). I tried to accomplish this using CheckFileSize and CheckDriveSize but not succeeded at all. When I use CheckFileSize like this: alias_individual=CheckFileSize ShowAll MaxWarn=60G MaxCrit=70G "File:_Individual=d:/Network Shares/individual/*.*" I got that the result is ok but 0 Bytes. I even got the same result if I eliminate the *.* at the end of the path. [cid:image002.png at 01CCFC8C.DE38D7F0] When CheckDriveSize is used: alias_individual=CheckDriveSize MaxWarn=60G MaxCrit=70G ShowAll=long "Drive=\\servername\\individual" I got the size but this size is the size of all the Hard Disk and not the size of the folder. Hope you can help me to solve this issue or give any ideas to accomplish the monitoring of size folders. Thanks in advance. Jorge L. Pa?eda [Description: Description: scio] Systems Administrator Scio Consulting | IT & Infrastructure Dept. Las Ca?adas 501 Int. 230 Col. Tres Mar?as Morelia, Mich., M?xico Tel. (443) 310-96-01 y (443) 310-96-02 ext. 402 U.S. Phone: 408 404 3897 Ext. 402 www.sciodev.com "Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 12915 bytes Desc: image002.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 3466 bytes Desc: image003.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 jlpaneda at sciodev.com Thu Mar 8 17:02:29 2012 From: jlpaneda at sciodev.com (=?iso-8859-1?Q?Jorge_Pa=F1eda?=) Date: Thu, 8 Mar 2012 10:02:29 -0600 Subject: Monitor Directory (Folders) Size with NSClient++ Message-ID: Thank you Phil for your help. That was helpful. I didn?t find the GetFileSize command but I accomplish to make it work with the command CheckFileSize using the following syntax: alias_individual=CheckFileSize ShowAll MaxWarn=17G MaxCrit=20G "File:_Individual=d:\Network Shares\individual\*.*" The only problem that I have now is that when I apply the syntax to my individual folder (d:\Network Shares\individual\*.*), nsclient++ service crash and stops working. But if I try to monitor a folder inside individual it works perfectly, I don?t know if it has something to do with the fact that my individual folder actual size is over 50GB, because I tried monitoring a folder inside individual directory with almost 20 GB of size and it worked perfectly. 1. Does CheckFileSize command has a limitation size to monitor? or maybe, 2. Could be that my individual folder had a lot of subfolders that also have subfolders and files? 3. Also, Does CheckFileSize command has a directory depth level limitation?, Windows has a limitation on name lengths for the folders in the path, could be this limitation affecting? (I know some of the folders inside individual directory has a very deep directory structure) Anyone who can help me figure out this? I almost forgot this is the Error logged in Event Viewer when NSClient++ crashes. Thanks in advance, Jorge L. Pa?eda Systems Administrator Scio Consulting | IT & Infrastructure Dept. Las Ca?adas 501 Int. 230 Col. Tres Mar?as Morelia, Mich., M?xico Tel. (443) 310-96-01 y (443) 310-96-02 ext. 402 U.S. Phone: 408 404 3897 Ext. 402 www.sciodev.com From: Randal, Phil [mailto:phil.randal at hoopleltd.co.uk] Sent: mi?rcoles, 07 de marzo de 2012 12:05 p.m. To: Jorge Pa?eda; Nagios Users List Subject: RE: [Nagios-users] Monitor Directory (Folders) Size with NSClient++ GetFileSize works for me using backslashes and not forward slashes. Try using ?\? or ?\\? instead of ?/? in the path. e.g. d:\\Network Shares\\individual\\*.* This might be a bug in NSClient++ and/or its documentation. Cheers, Phil -- Phil Randal Infrastructure Engineer Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT Tel: 01432 260415 | Email: phil.randal at hoopleltd.co.uk From: Jorge Pa?eda [mailto:jlpaneda at sciodev.com] Sent: 07 March 2012 16:49 To: 'Nagios Users List' Subject: [Nagios-users] Monitor Directory (Folders) Size with NSClient++ Hello all, I?m using NSClient++ 0.3.9, nsca and passive checks to monitor my Windows server behind a firewall. In one of this servers I have a folder that inside have many other folders and files, I want to monitor this folder and let Nagios send me a warning or critical notification when the size of this folder grows too much (Ex. Folder Size 50 GB, warning when is over 70 GB and critical when is over 80 GB). I tried to accomplish this using CheckFileSize and CheckDriveSize but not succeeded at all. When I use CheckFileSize like this: alias_individual=CheckFileSize ShowAll MaxWarn=60G MaxCrit=70G "File:_Individual=d:/Network Shares/individual/*.*" I got that the result is ok but 0 Bytes. I even got the same result if I eliminate the *.* at the end of the path. When CheckDriveSize is used: alias_individual=CheckDriveSize MaxWarn=60G MaxCrit=70G ShowAll=long "Drive=\\servername\\individual" I got the size but this size is the size of all the Hard Disk and not the size of the folder. Hope you can help me to solve this issue or give any ideas to accomplish the monitoring of size folders. Thanks in advance. Jorge L. Pa?eda Systems Administrator Scio Consulting | IT & Infrastructure Dept. Las Ca?adas 501 Int. 230 Col. Tres Mar?as Morelia, Mich., M?xico Tel. (443) 310-96-01 y (443) 310-96-02 ext. 402 U.S. Phone: 408 404 3897 Ext. 402 www.sciodev.com ?Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 6453 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 12915 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3466 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 Timothy.Boyer at opm.gov Thu Mar 8 17:49:17 2012 From: Timothy.Boyer at opm.gov (Boyer, Timothy A.) Date: Thu, 8 Mar 2012 11:49:17 -0500 Subject: check_disk '/sys not accessable' Message-ID: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do is get a total disk space reading. So nrpe is running on both, with the identical command in nrpe.cfg: command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ Running as user nagios from the central server. One works fine: -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c check_all_disk -a 20% 10% DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); the other gives me this: -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c check_all_disk -a 20% 10% DISK CRITICAL - /sys is not accessible: Permission denied Identical versions of nrpe (2.12); a diff on check_disk shows they're both identical; both commands work correctly locally run as user Nagios: [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% inode=99%); /boot 387 MB (84% inode=99%); Multiple other nrpe commands running on both; this is the only thing they're having problems with. /sys is user-readable in both. Logs show nothing. I've run out of ideas. Pointers in the right direction appreciated... Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 AHKAPLAN at PARTNERS.ORG Thu Mar 8 21:33:50 2012 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 8 Mar 2012 20:33:50 +0000 Subject: firewall ports to open on windows 7 for opmon agent Message-ID: <8741782C9747224DA16B653752DC604D016537@PHSX10MB4.partners.org> Hello -- One of our systems is running Windows 7 with the firewall enabled. The opmon agent has been installed on the workstation, and I am in the process of setting up a firewall exception to allow communication with the Nagios server. What protocols and ports should be opened to allow this communication to take place? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 sb at maniladev.com Thu Mar 8 22:11:56 2012 From: sb at maniladev.com (Sigmund Brandstaetter) Date: Fri, 09 Mar 2012 05:11:56 +0800 Subject: check_disk '/sys not accessable' In-Reply-To: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> Message-ID: <4F59209C.7040107@maniladev.com> Tim, How about SELinux, is it maybe on only on the one that is making the problem? Cheers Sigmund On 3/9/2012 00:49, Boyer, Timothy A. wrote: > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I?m trying to do > is get a total disk space reading. So nrpe is running on both, with > the identical command in nrpe.cfg: > command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > -c $ARG2$ > command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > -c $ARG2$ > Running as user nagios from the central server. > One works fine: > -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c > check_all_disk -a 20% 10% > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > inode=99%); > the other gives me this: > -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c > check_all_disk -a 20% 10% > DISK CRITICAL - /sys is not accessible: Permission denied > Identical versions of nrpe (2.12); a diff on check_disk shows they?re > both identical; both commands work correctly locally run as user Nagios: > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > inode=99%); > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > (100% inode=99%); /boot 387 MB (84% inode=99%); > Multiple other nrpe commands running on both; this is the only thing > they?re having problems with. > /sys is user-readable in both. Logs show nothing. > I?ve run out of ideas. Pointers in the right direction appreciated? > Tim > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- --------------------- Sigmund Brandstaetter Check my Blog Live from Manila http://maniladev.com --------------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sb at maniladev.com Thu Mar 8 22:27:11 2012 From: sb at maniladev.com (Sigmund Brandstaetter) Date: Fri, 09 Mar 2012 05:27:11 +0800 Subject: firewall ports to open on windows 7 for opmon agent In-Reply-To: <8741782C9747224DA16B653752DC604D016537@PHSX10MB4.partners.org> References: <8741782C9747224DA16B653752DC604D016537@PHSX10MB4.partners.org> Message-ID: <4F59242F.7080201@maniladev.com> Hi Andrew, You can check the opmonagent.ini probably, but as far as I remember, it is utilizing the nrpe port which is TCP 5666 Cheers Sigmund -- --------------------- Sigmund Brandstaetter Check my Blog Live from Manila http://maniladev.com --------------------- On 3/9/2012 04:33, Kaplan, Andrew H. wrote: > Hello -- > One of our systems is running Windows 7 with the firewall enabled. The > opmon agent has been installed > on the workstation, and I am in the process of setting up a firewall > exception to allow communication with > the Nagios server. > What protocols and ports should be opened to allow this communication > to take place? > Thanks. > > > The information in this e-mail is intended only for the person to whom > it is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you > in error > but does not contain patient information, please contact the sender > and properly > dispose of the e-mail. > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- --------------------- Sigmund Brandstaetter Check my Blog Live from Manila http://maniladev.com --------------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yribbens at nagios.com Thu Mar 8 22:31:55 2012 From: yribbens at nagios.com (Yancy Ribbens) Date: Thu, 08 Mar 2012 15:31:55 -0600 Subject: firewall ports to open on windows 7 for opmon agent In-Reply-To: <8741782C9747224DA16B653752DC604D016537@PHSX10MB4.partners.org> References: <8741782C9747224DA16B653752DC604D016537@PHSX10MB4.partners.org> Message-ID: <4F59254B.8090303@nagios.com> Kaplan, I haven't used OpMon, but looking at opmonagent.ini, it looks like it uses 5667 for check_nt and 5666 for NRPE just like nsclient++. -Yancy Yancy Ribbens --- Tech Team yribbens at nagios.com On 3/8/2012 2:33 PM, Kaplan, Andrew H. wrote: > Hello -- > One of our systems is running Windows 7 with the firewall enabled. The opmon agent has been installed > on the workstation, and I am in the process of setting up a firewall exception to allow > communication with > the Nagios server. > What protocols and ports should be opened to allow this communication to take place? > Thanks. > > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the e-mail > contains patient information, please contact the Partners Compliance HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in error > but does not contain patient information, please contact the sender and properly > dispose of the e-mail. > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jasonjwwilliams at gmail.com Fri Mar 9 01:59:20 2012 From: jasonjwwilliams at gmail.com (Jason J. W. Williams) Date: Thu, 8 Mar 2012 17:59:20 -0700 Subject: Host including services from another host with the same base name In-Reply-To: <4F4F3080.7030008@b-care.net> References: <4F4F3080.7030008@b-care.net> Message-ID: > > You must probably have "use_regexp_matching" set to 1 in your > nagios.cfg. Try to disable it (if you don't have other configurations > based on regex usage), it should solve your problem. That was indeed the case. Thank you very much. -J ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jm+nagios-users at roth.lu Fri Mar 9 09:40:17 2012 From: jm+nagios-users at roth.lu (Marki) Date: Fri, 9 Mar 2012 08:40:17 +0000 (UTC) Subject: monitoring batch jobs Message-ID: Hey there, is there a recommended way of monitoring batch jobs when the only kind-of log available are mails sent by each part of the job? In that case one should also find out if a certain mail was NOT sent, i.e. has not arrived in a certain timeperiod. While all of this is somehow scriptable, I thought I would ask first if there exists something to build such a solution upon... Thanks marki ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom at limepepper.co.uk Fri Mar 9 10:07:24 2012 From: tom at limepepper.co.uk (Tom H) Date: Fri, 09 Mar 2012 09:07:24 +0000 Subject: monitoring batch jobs In-Reply-To: References: Message-ID: <4F59C84C.7010605@limepepper.co.uk> On 09/03/12 08:40, Marki wrote: > Hey there, > > is there a recommended way of monitoring batch jobs when the only kind-of log > available are mails sent by each part of the job? > > In that case one should also find out if a certain mail was NOT sent, i.e. has > not arrived in a certain timeperiod. > > While all of this is somehow scriptable, I thought I would ask first if there > exists something to build such a solution upon... I am looking for something similar, to integrate with some backup jobs that run as a script and then upload to a cloud service. Mainly because we have the alert, acknowledge, resolve (or escalate) and all the contacts etc setup in nagios by chef. You could modify one of the pop3 or IMAP checks to login to an account and parse the results... for example.. http://exchange.nagios.org/directory/Plugins/Network-Protocols/IMAP4-and-POP3 Cheers, Tom ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at claudiokuenzler.com Fri Mar 9 10:44:19 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Fri, 9 Mar 2012 10:44:19 +0100 Subject: monitoring batch jobs In-Reply-To: References: Message-ID: On Fri, Mar 9, 2012 at 9:40 AM, Marki wrote: > Hey there, > > is there a recommended way of monitoring batch jobs when the only kind-of > log > available are mails sent by each part of the job? > In the batchfile you could add a status output to an external file, which is then checked by Nagios. Probably the easiest way to do this. > > In that case one should also find out if a certain mail was NOT sent, i.e. > has > not arrived in a certain timeperiod. > While all of this is somehow scriptable, I thought I would ask first if > there > exists something to build such a solution upon... > > Thanks > > marki > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 mariog at absi.be Fri Mar 9 10:34:45 2012 From: mariog at absi.be (Mario Garcia Ortiz) Date: Fri, 9 Mar 2012 10:34:45 +0100 Subject: nagios doesn't respect the freshness_threshold Message-ID: Hello, we have backups running everyday in which we send the status of the backup via nsca to nagios, we have set a freshness_threshold of 26 hours in case the status of the backups is not received after 26hours the check becomes critical. the problem is that nagios all of sudden doesn't respect that; when the backup OK message is received by nagios via nsca, it becomes critical after a couple of minutes instead of waiting the specified freshness threshold period.. is there a way to solve this issue? this happens with nagios running on solaris 10. thank you. -- Mario Garcia Ortiz ABSI SA 224 Bd de l'Humanit? 1190 Brussels ?Belgium www.absi.be Tel 00 322 333 40 00 ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dey.ranjib at gmail.com Fri Mar 9 11:02:42 2012 From: dey.ranjib at gmail.com (ranjib dey) Date: Fri, 9 Mar 2012 15:32:42 +0530 Subject: monitoring batch jobs In-Reply-To: References: Message-ID: yeah, thats one approach, to write the status in a file from the batch job, and then check it via nagios plugin or nrpe plugins. Also, you can consider the batch job to submit a passive check via nsca , upon completion. This way you can avoid repeatedly checking the status file , regards ranjib On Fri, Mar 9, 2012 at 3:14 PM, Claudio Kuenzler wrote: > > > On Fri, Mar 9, 2012 at 9:40 AM, Marki wrote: > >> Hey there, >> >> is there a recommended way of monitoring batch jobs when the only kind-of >> log >> available are mails sent by each part of the job? >> > > In the batchfile you could add a status output to an external file, which > is then checked by Nagios. Probably the easiest way to do this. > > >> >> In that case one should also find out if a certain mail was NOT sent, >> i.e. has >> not arrived in a certain timeperiod. > > >> While all of this is somehow scriptable, I thought I would ask first if >> there >> exists something to build such a solution upon... >> >> Thanks >> >> marki >> >> >> > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 jm+nagios-users at roth.lu Fri Mar 9 11:17:14 2012 From: jm+nagios-users at roth.lu (Marki) Date: Fri, 9 Mar 2012 10:17:14 +0000 (UTC) Subject: monitoring batch jobs References: Message-ID: Claudio Kuenzler claudiokuenzler.com> writes: > In the batchfile you could add a status output to an external file, which is then checked by Nagios. Probably the easiest way to do this.? Now *that* is not really possible since those are batch jobs on exotic platforms without send_ncsa or nrpe or alike. I'm afraid we have to work with the mails I believe. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Timothy.Boyer at opm.gov Fri Mar 9 13:16:09 2012 From: Timothy.Boyer at opm.gov (Boyer, Timothy A.) Date: Fri, 9 Mar 2012 07:16:09 -0500 Subject: check_disk '/sys not accessable' In-Reply-To: <4F59209C.7040107@maniladev.com> References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> <4F59209C.7040107@maniladev.com> Message-ID: <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> It's Permissive, so that can't be it. Thanks... -----Original Message----- From: Sigmund Brandstaetter [mailto:sb at maniladev.com] Sent: Thursday, March 08, 2012 4:12 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_disk '/sys not accessable' Tim, How about SELinux, is it maybe on only on the one that is making the problem? Cheers Sigmund On 3/9/2012 00:49, Boyer, Timothy A. wrote: > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do > is get a total disk space reading. So nrpe is running on both, with > the identical command in nrpe.cfg: > command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > -c $ARG2$ > command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > -c $ARG2$ > Running as user nagios from the central server. > One works fine: > -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c > check_all_disk -a 20% 10% > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > inode=99%); > the other gives me this: > -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c > check_all_disk -a 20% 10% > DISK CRITICAL - /sys is not accessible: Permission denied > Identical versions of nrpe (2.12); a diff on check_disk shows they're > both identical; both commands work correctly locally run as user Nagios: > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > inode=99%); > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > (100% inode=99%); /boot 387 MB (84% inode=99%); > Multiple other nrpe commands running on both; this is the only thing > they're having problems with. > /sys is user-readable in both. Logs show nothing. > I've run out of ideas. Pointers in the right direction appreciated... > Tim > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- --------------------- Sigmund Brandstaetter Check my Blog Live from Manila http://maniladev.com --------------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wolf.halton at gmail.com Fri Mar 9 13:19:24 2012 From: wolf.halton at gmail.com (Wolf Halton) Date: Fri, 9 Mar 2012 07:19:24 -0500 Subject: Root_partition check not reading correctly Message-ID: All my machines show a similar output, regardless of how much is available on their root partitions. Root Partition OK 03-09-2012 07:11:08 28d 22h 18m 15s 1/3 DISK OK - free space: / 15903 MB (86% inode=93%): Up to and including ones that are 100% full. No alarms - ever. Is a client app needed on the monitored clients that has not been mentioned? -Wolf -- This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries Together - http://LYRASIS.org ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at claudiokuenzler.com Fri Mar 9 13:46:18 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Fri, 9 Mar 2012 13:46:18 +0100 Subject: check_disk '/sys not accessable' In-Reply-To: <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> <4F59209C.7040107@maniladev.com> <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> Message-ID: > > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I?m trying to do is > get a total disk space reading. > Well the systems are not identical as the manually launched plugin output of yours shows: [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% > inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); > > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% > inode=99%); /boot 387 MB (84% inode=99%); > Note the /home mount point. Have you checked the servers for the different mount points? It looks like on server2 /sys is seen as a partition or mount point while on server1 the check seems to "ignore" it successfully? Any idea why server2 thinks /sys is a partition or mount point? Can you try to launch it specifically on /sys and output the results (on both servers)? ./check_disk -w 10% -c 5% -p /sys Then try to exclude /sys from the check: ./check_disk -w 10% -c 5% -x /sys By the way the error you're seeing seems to be triggered from this code (at the bottom of the source file): void stat_path (struct parameter_list *p) { /* Stat entry to check that dir exists and is accessible */ if (verbose >= 3) printf("calling stat on %s\n", p->name); if (stat (p->name, &stat_buf[0])) { if (verbose >= 3) printf("stat failed on %s\n", p->name); * printf("DISK %s - ", _("CRITICAL")); die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not accessible"), strerror(errno));* } } On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. wrote: > It's Permissive, so that can't be it. Thanks... > > -----Original Message----- > From: Sigmund Brandstaetter [mailto:sb at maniladev.com] > Sent: Thursday, March 08, 2012 4:12 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > Tim, > > How about SELinux, is it maybe on only on the one that is making the > problem? > > Cheers > Sigmund > > > > On 3/9/2012 00:49, Boyer, Timothy A. wrote: > > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do > > is get a total disk space reading. So nrpe is running on both, with > > the identical command in nrpe.cfg: > > command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > > -c $ARG2$ > > command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > > -c $ARG2$ > > Running as user nagios from the central server. > > One works fine: > > -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c > > check_all_disk -a 20% 10% > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > > inode=99%); > > the other gives me this: > > -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c > > check_all_disk -a 20% 10% > > DISK CRITICAL - /sys is not accessible: Permission denied > > Identical versions of nrpe (2.12); a diff on check_disk shows they're > > both identical; both commands work correctly locally run as user Nagios: > > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > > inode=99%); > > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > > (100% inode=99%); /boot 387 MB (84% inode=99%); > > Multiple other nrpe commands running on both; this is the only thing > > they're having problems with. > > /sys is user-readable in both. Logs show nothing. > > I've run out of ideas. Pointers in the right direction appreciated... > > Tim > > > > > > > ------------------------------------------------------------------------------ > > Virtualization& Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > -- > --------------------- > Sigmund Brandstaetter > Check my Blog > Live from Manila > http://maniladev.com > --------------------- > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 ck at claudiokuenzler.com Fri Mar 9 13:49:53 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Fri, 9 Mar 2012 13:49:53 +0100 Subject: Root_partition check not reading correctly In-Reply-To: References: Message-ID: Please show the service definition. How do you launch the check? By ssh, by nrpe? Seems you're using the same IP address or dns name as the hostname value. Can you verify this? On Fri, Mar 9, 2012 at 1:19 PM, Wolf Halton wrote: > All my machines show a similar output, regardless of how much is > available on their root partitions. > > > Root Partition > > OK 03-09-2012 07:11:08 28d 22h 18m 15s 1/3 > DISK OK - free space: > / 15903 MB (86% inode=93%): > > Up to and including ones that are 100% full. No alarms - ever. Is a > client app needed on the monitored clients that has not been > mentioned? > > -Wolf > > > -- > This Apt Has Super Cow Powers - http://sourcefreedom.com > Advancing Libraries Together - http://LYRASIS.org > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 AHKAPLAN at PARTNERS.ORG Fri Mar 9 15:22:20 2012 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 9 Mar 2012 14:22:20 +0000 Subject: firewall ports to open on windows 7 for opmon agent In-Reply-To: <4F59254B.8090303@nagios.com> References: <8741782C9747224DA16B653752DC604D016537@PHSX10MB4.partners.org> <4F59254B.8090303@nagios.com> Message-ID: <8741782C9747224DA16B653752DC604D01C523@phsx10mb1.partners.org> Hello -- Thanks for the replies. I went ahead and opened ports 5666 and 5667 on the firewall, and that has allowed the connection between the client and server to occur. Thanks again. -----Original Message----- From: Yancy Ribbens [mailto:yribbens at nagios.com] Sent: Thursday, March 08, 2012 4:32 PM To: Nagios Users List Subject: Re: [Nagios-users] firewall ports to open on windows 7 for opmon agent Kaplan, I haven't used OpMon, but looking at opmonagent.ini, it looks like it uses 5667 for check_nt and 5666 for NRPE just like nsclient++. -Yancy Yancy Ribbens --- Tech Team yribbens at nagios.com On 3/8/2012 2:33 PM, Kaplan, Andrew H. wrote: > Hello -- > One of our systems is running Windows 7 with the firewall enabled. The opmon agent has been installed > on the workstation, and I am in the process of setting up a firewall exception to allow > communication with > the Nagios server. > What protocols and ports should be opened to allow this communication to take place? > Thanks. > > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the e-mail > contains patient information, please contact the Partners Compliance HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in error > but does not contain patient information, please contact the sender and properly > dispose of the e-mail. > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frnkblk at iname.com Sun Mar 11 22:13:35 2012 From: frnkblk at iname.com (Frank Bulk) Date: Sun, 11 Mar 2012 16:13:35 -0500 Subject: Transient errors In-Reply-To: <4F509DB8.6030907@op5.se> References: <4F509DB8.6030907@op5.se> Message-ID: <0d7d01ccffcb$d2612e90$77238bb0$@iname.com> Yes, we have to make the same kinds of tweaks in our environment. Sometimes I've had to develop a new plugin or monitor different elements that will alert me to the situation more quickly. Frank -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Friday, March 02, 2012 4:15 AM To: Nagios Users List Subject: Re: [Nagios-users] Transient errors On 03/01/2012 10:38 PM, David Dyer-Bennet wrote: > > I see a lot of transient errors on services and hosts I'm monitoring. > Hence finding ways to keep notifications from going out on situations that > will resolve themselves are kind of an issue. > > I've played with how many failures in a row are needed to cause a > notification, and have that set differently for things I'm monitoring > across long links (Beijing, say) compared to things I'm monitoring locally > or in New York. Of course, one problem with that is that it makes it take > longer before a real problem causes a notification. Right now it takes > over 15 minutes for the total failure of our link to Beijing to cause a > notification. > > For things that are numeric values, I can play with the critical and > warning ranges to potentially reduce false positives. That, at least, > doesn't slow down recognition of total failures. Some things just don't > seem to fit the Nagios model -- for example it's quite normal for the SQL > server to pull 100% of the cpu for periods now and then, but if it goes on > too long, *that's* unusual. Hmm; I suppose I could override the number of > failures needed to cause a notification in the service definition for > htose, couldn't I? There may be some things I should just stop monitoring > (there aren't clear-cut "okay" and "bad" behaviors that I can quantify). > > I guess I'm wondering if there are useful basic approaches to handling > this problem that I'm missing, or if I just need to work through the > details more carefully. I'm startled at how often I get isolated > failures for no apparent reason. Is that normal for most people > monitoring services? I think I'm finding my connections time out now and > then due simply to load, without the load actually being at all high. Apart from the great writeup Mark wrote, I'd like to add that you can also set "first_notification_delay" for both hosts and services. That will make the services and hosts appear red and critical in the ui, but it will delay notifications for AT LEAST the specified amount of time (multiplied with interval_length, so usually it means minutes). I've stressed AT LEAST, since first_notification_delay requires that a check is run in order to trigger the notification, so the delay could sometimes be greater than what you specify. Some people are a bit freaked out by that, so you'd best know it before you start using it. -- 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. ---------------------------------------------------------------------------- -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6517 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 frnkblk at iname.com Sun Mar 11 22:20:18 2012 From: frnkblk at iname.com (Frank Bulk) Date: Sun, 11 Mar 2012 16:20:18 -0500 Subject: Check multiple ports of a switch with snmp In-Reply-To: <4F5261AE.5090307@freemail.hu> References: <4F5261AE.5090307@freemail.hu> Message-ID: <0d8a01ccffcc$c254f260$46fed720$@iname.com> I would suggest looking at this script: http://nagios.manubulon.com/snmp_int.html Frank -----Original Message----- From: Mester [mailto:mester at freemail.hu] Sent: Saturday, March 03, 2012 12:24 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Check multiple ports of a switch with snmp Hi All, I try to check our switch for bad packets. I have succesfully made the configuration file, but for some reason it always sais SNMP OK. This is the command I use for checking: /usr/local/nagios/libexec/check_snmp -H ip_address -C name -o ifInErrors.101 -w 10 -c 100, -o ifInErrors.102 -w 10 -c 100 -o ifInErrors.103 -w 10 -c 100, -o ifInErrors.104 -w 10 -c 100 And the result is: SNMP OK - 0 20 0 0 | RFC1213-MIB::ifInErrors.101=0c RFC1213-MIB::ifInErrors.102=20c RFC1213-MIB::ifInErrors.103=0c RFC1213-MIB::ifInErrors.104=0c As you can see I have bad backets on the second port of the switch (102), but for some reason the -w and -c part of the command only check the first number of the returned string. (In this case this is 0 so it thinks everything is ok) If I put the bad port on the first place it reports warning: /usr/local/nagios/libexec/check_snmp -H ip_address -C name -o ifInErrors.102 -w 10 -c 100, -o ifInErrors.101 -w 10 -c 100 -o ifInErrors.103 -w 10 -c 100, -o ifInErrors.104 -w 10 -c 100 SNMP WARNING - *20* 0 0 0 | RFC1213-MIB::ifInErrors.102=20c RFC1213-MIB::ifInErrors.101=0c RFC1213-MIB::ifInErrors.103=0c RFC1213-MIB::ifInErrors.104=0c So is there a way to check the whole array of result and no only the first number of it? Attila Mesterhazy ---------------------------------------------------------------------------- -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6517 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 Timothy.Boyer at opm.gov Mon Mar 12 18:17:28 2012 From: Timothy.Boyer at opm.gov (Boyer, Timothy A.) Date: Mon, 12 Mar 2012 13:17:28 -0400 Subject: check_disk '/sys not accessable' In-Reply-To: References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> <4F59209C.7040107@maniladev.com> <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> Message-ID: <0F3D91EA70124C468301FF70A8ED16D40306564CCC@BOYV7EXVS1.opm.gov> $ ./check_disk -w 10% -c 5% -p /sys DISK UNKNOWN - free space:| is the result on both servers. But that's running locally, which works. The problem is when running via nrpe. Running check_nrpe with -x /sys in the command line returns: DISK CRITICAL - /dev/pts is not accessible: Permission denied Doing the next obvious thing and including /dev in the excludes works, and is a workaround. Thanks much... From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] Sent: Friday, March 09, 2012 7:46 AM To: Nagios Users List Subject: Re: [Nagios-users] check_disk '/sys not accessable' Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do is get a total disk space reading. Well the systems are not identical as the manually launched plugin output of yours shows: [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% inode=99%); /boot 387 MB (84% inode=99%); Note the /home mount point. Have you checked the servers for the different mount points? It looks like on server2 /sys is seen as a partition or mount point while on server1 the check seems to "ignore" it successfully? Any idea why server2 thinks /sys is a partition or mount point? Can you try to launch it specifically on /sys and output the results (on both servers)? ./check_disk -w 10% -c 5% -p /sys Then try to exclude /sys from the check: ./check_disk -w 10% -c 5% -x /sys By the way the error you're seeing seems to be triggered from this code (at the bottom of the source file): void stat_path (struct parameter_list *p) { /* Stat entry to check that dir exists and is accessible */ if (verbose >= 3) printf("calling stat on %s\n", p->name); if (stat (p->name, &stat_buf[0])) { if (verbose >= 3) printf("stat failed on %s\n", p->name); printf("DISK %s - ", _("CRITICAL")); die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not accessible"), strerror(errno)); } } On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. > wrote: It's Permissive, so that can't be it. Thanks... -----Original Message----- From: Sigmund Brandstaetter [mailto:sb at maniladev.com] Sent: Thursday, March 08, 2012 4:12 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_disk '/sys not accessable' Tim, How about SELinux, is it maybe on only on the one that is making the problem? Cheers Sigmund On 3/9/2012 00:49, Boyer, Timothy A. wrote: > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do > is get a total disk space reading. So nrpe is running on both, with > the identical command in nrpe.cfg: > command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > -c $ARG2$ > command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > -c $ARG2$ > Running as user nagios from the central server. > One works fine: > -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c > check_all_disk -a 20% 10% > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > inode=99%); > the other gives me this: > -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c > check_all_disk -a 20% 10% > DISK CRITICAL - /sys is not accessible: Permission denied > Identical versions of nrpe (2.12); a diff on check_disk shows they're > both identical; both commands work correctly locally run as user Nagios: > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > inode=99%); > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > (100% inode=99%); /boot 387 MB (84% inode=99%); > Multiple other nrpe commands running on both; this is the only thing > they're having problems with. > /sys is user-readable in both. Logs show nothing. > I've run out of ideas. Pointers in the right direction appreciated... > Tim > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- --------------------- Sigmund Brandstaetter Check my Blog Live from Manila http://maniladev.com --------------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -------------- 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 dgrgicevic at gmail.com Mon Mar 12 18:32:10 2012 From: dgrgicevic at gmail.com (davor grgicevic) Date: Mon, 12 Mar 2012 18:32:10 +0100 Subject: check_disk '/sys not accessable' In-Reply-To: <0F3D91EA70124C468301FF70A8ED16D40306564CCC@BOYV7EXVS1.opm.gov> References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> <4F59209C.7040107@maniladev.com> <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> <0F3D91EA70124C468301FF70A8ED16D40306564CCC@BOYV7EXVS1.opm.gov> Message-ID: Hi Timothy localy u r workiong as root.. if you try as user Nagios, it wont work .. u have to run sudo for this "DISK CRITICAL - /dev/pts is not accessible: Permission denied" davor On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. wrote: > $ ./check_disk -w 10% -c 5% -p /sys > > DISK UNKNOWN - free space:| > > > > is the result on both servers. > > > > But that?s running locally, which works.? The problem is when running via > nrpe. > > > > Running check_nrpe with ?x /sys in the command line returns: > > > > DISK CRITICAL - /dev/pts is not accessible: Permission denied > > > > Doing the next obvious thing and including /dev in the excludes works, and > is a workaround. > > > > Thanks much? > > > > > > From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] > Sent: Friday, March 09, 2012 7:46 AM > To: Nagios Users List > > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > Nagios 3.3.1.? Two identical RHEL6.1 systems, and all I?m trying to do is > get a total disk space reading. > > > Well the systems are not identical as the manually launched plugin output of > yours shows: > > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% > inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); > > > > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% > inode=99%); /boot 387 MB (84% inode=99%); > > > Note the /home mount point. > > Have you checked the servers for the different mount points? It looks like > on server2 /sys is seen as a partition or mount point while on server1 the > check seems to "ignore" it successfully? Any idea why server2 thinks /sys is > a partition or mount point? > > Can you try to launch it specifically on /sys and output the results (on > both servers)? > > ./check_disk -w 10% -c 5% -p /sys > > Then try to exclude /sys from the check: > > ./check_disk -w 10% -c 5% -x /sys > > By the way the error you're seeing seems to be triggered from this code (at > the bottom of the source file): > > void > stat_path (struct parameter_list *p) > { > ? /* Stat entry to check that dir exists and is accessible */ > ? if (verbose >= 3) > ??? printf("calling stat on %s\n", p->name); > ? if (stat (p->name, &stat_buf[0])) { > ??? if (verbose >= 3) > ????? printf("stat failed on %s\n", p->name); > ??? printf("DISK %s - ", _("CRITICAL")); > ??? die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not accessible"), > strerror(errno)); > ? } > } > > > > On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. > wrote: > > It's Permissive, so that can't be it. ?Thanks... > > > -----Original Message----- > From: Sigmund Brandstaetter [mailto:sb at maniladev.com] > Sent: Thursday, March 08, 2012 4:12 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > Tim, > > How about SELinux, is it maybe on only on the one that is making the > problem? > > Cheers > Sigmund > > > > On 3/9/2012 00:49, Boyer, Timothy A. wrote: >> Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do >> is get a total disk space reading. So nrpe is running on both, with >> the identical command in nrpe.cfg: >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ >> -c $ARG2$ >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ >> -c $ARG2$ >> Running as user nagios from the central server. >> One works fine: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c >> check_all_disk -a 20% 10% >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% >> inode=99%); >> the other gives me this: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c >> check_all_disk -a 20% 10% >> DISK CRITICAL - /sys is not accessible: Permission denied >> Identical versions of nrpe (2.12); a diff on check_disk shows they're >> both identical; both commands work correctly locally run as user Nagios: >> [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% >> inode=99%); >> [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% >> DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB >> (100% inode=99%); /boot 387 MB (84% inode=99%); >> Multiple other nrpe commands running on both; this is the only thing >> they're having problems with. >> /sys is user-readable in both. Logs show nothing. > >> I've run out of ideas. Pointers in the right direction appreciated... > >> Tim >> >> >> >> ------------------------------------------------------------------------------ >> Virtualization& ?Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > -- > --------------------- > Sigmund Brandstaetter > Check my Blog > Live from Manila > http://maniladev.com > --------------------- > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sunny_Jaisinghani at symantec.com Mon Mar 12 10:04:12 2012 From: Sunny_Jaisinghani at symantec.com (Sunny Jaisinghani) Date: Mon, 12 Mar 2012 02:04:12 -0700 Subject: check_http issue Message-ID: Hello, I am using the check_http plugin for checking the SSL cert expiry. Even if the cert is not due to expire very soon, the plugin reports as CRITICAL. I have few more certs for which the plugin reports correct status. What could be going wrong over here. ?? BAD # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX -p 8001 -w 30 -c 30 -C 30 CRITICAL - Certificate expired on 02/17/2062 22:44. # openssl x509 -in abc.example.com.crt -noout ?enddate notAfter=Feb 17 22:57:24 2062 GMT GOOD # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX -p 8000 -w 30 -c 30 -C 30 OK - Certificate will expire on 02/09/2013 23:59. # openssl x509 -in xyz.example.com.crt -noout ?enddate notAfter=Feb 10 23:59:59 2013 GMT Thanks Sunny -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -------------- 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 mamuduri.jeevan at gmail.com Mon Mar 12 10:30:39 2012 From: mamuduri.jeevan at gmail.com (Jeevan Mamuduri) Date: Mon, 12 Mar 2012 15:00:39 +0530 Subject: automating the output Message-ID: Hi How can we capture first 10 most CPU consuming processes and put that output in the body in the email alerts. *Regards Jeevan.Mamuduri* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -------------- 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 ck at claudiokuenzler.com Mon Mar 12 18:43:01 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Mon, 12 Mar 2012 18:43:01 +0100 Subject: check_disk '/sys not accessable' In-Reply-To: References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> <4F59209C.7040107@maniladev.com> <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> <0F3D91EA70124C468301FF70A8ED16D40306564CCC@BOYV7EXVS1.opm.gov> Message-ID: > > Doing the next obvious thing and including /dev in the excludes works, and > is a workaround. > Good, but workarounds aren't that nice ;-) Before we think too far, could you make a diff of your different nrpe.cfg's? Maybe you include another file in which the command check_all_disk is defined a second time? That would be a simple explanation... What happens if you add a sudoers entry to allow the nagios user (or the user you're running the nrpe daemon as) to launch check_disk? Modify the check_command so you use sudo before the check_disk command. On Mon, Mar 12, 2012 at 6:32 PM, davor grgicevic wrote: > Hi Timothy > > localy u r workiong as root.. if you try as user Nagios, it > wont work .. > > u have to run sudo for this > > "DISK CRITICAL - /dev/pts is not accessible: Permission denied" > > davor > > > > On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. > wrote: > > $ ./check_disk -w 10% -c 5% -p /sys > > > > DISK UNKNOWN - free space:| > > > > > > > > is the result on both servers. > > > > > > > > But that?s running locally, which works. The problem is when running via > > nrpe. > > > > > > > > Running check_nrpe with ?x /sys in the command line returns: > > > > > > > > DISK CRITICAL - /dev/pts is not accessible: Permission denied > > > > > > > > Doing the next obvious thing and including /dev in the excludes works, > and > > is a workaround. > > > > > > > > Thanks much? > > > > > > > > > > > > From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] > > Sent: Friday, March 09, 2012 7:46 AM > > To: Nagios Users List > > > > > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > > > > > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I?m trying to do is > > get a total disk space reading. > > > > > > Well the systems are not identical as the manually launched plugin > output of > > yours shows: > > > > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% > > inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); > > > > > > > > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% > > inode=99%); /boot 387 MB (84% inode=99%); > > > > > > Note the /home mount point. > > > > Have you checked the servers for the different mount points? It looks > like > > on server2 /sys is seen as a partition or mount point while on server1 > the > > check seems to "ignore" it successfully? Any idea why server2 thinks > /sys is > > a partition or mount point? > > > > Can you try to launch it specifically on /sys and output the results (on > > both servers)? > > > > ./check_disk -w 10% -c 5% -p /sys > > > > Then try to exclude /sys from the check: > > > > ./check_disk -w 10% -c 5% -x /sys > > > > By the way the error you're seeing seems to be triggered from this code > (at > > the bottom of the source file): > > > > void > > stat_path (struct parameter_list *p) > > { > > /* Stat entry to check that dir exists and is accessible */ > > if (verbose >= 3) > > printf("calling stat on %s\n", p->name); > > if (stat (p->name, &stat_buf[0])) { > > if (verbose >= 3) > > printf("stat failed on %s\n", p->name); > > printf("DISK %s - ", _("CRITICAL")); > > die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not > accessible"), > > strerror(errno)); > > } > > } > > > > > > > > On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. > > > wrote: > > > > It's Permissive, so that can't be it. Thanks... > > > > > > -----Original Message----- > > From: Sigmund Brandstaetter [mailto:sb at maniladev.com] > > Sent: Thursday, March 08, 2012 4:12 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > Tim, > > > > How about SELinux, is it maybe on only on the one that is making the > > problem? > > > > Cheers > > Sigmund > > > > > > > > On 3/9/2012 00:49, Boyer, Timothy A. wrote: > >> Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do > >> is get a total disk space reading. So nrpe is running on both, with > >> the identical command in nrpe.cfg: > >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > >> -c $ARG2$ > >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > >> -c $ARG2$ > >> Running as user nagios from the central server. > >> One works fine: > >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c > >> check_all_disk -a 20% 10% > >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > >> inode=99%); > >> the other gives me this: > >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c > >> check_all_disk -a 20% 10% > >> DISK CRITICAL - /sys is not accessible: Permission denied > >> Identical versions of nrpe (2.12); a diff on check_disk shows they're > >> both identical; both commands work correctly locally run as user Nagios: > >> [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > >> inode=99%); > >> [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > >> DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > >> (100% inode=99%); /boot 387 MB (84% inode=99%); > >> Multiple other nrpe commands running on both; this is the only thing > >> they're having problems with. > >> /sys is user-readable in both. Logs show nothing. > > > >> I've run out of ideas. Pointers in the right direction appreciated... > > > >> Tim > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Virtualization& Cloud Management Using Capacity Planning > >> Cloud computing makes use of virtualization - but cloud computing > >> also focuses on allowing computing to be delivered as a service. > >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ > >> > >> > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when > >> reporting any issue. > >> ::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > > --------------------- > > Sigmund Brandstaetter > > Check my Blog > > Live from Manila > > http://maniladev.com > > --------------------- > > > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -------------- 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 ck at claudiokuenzler.com Mon Mar 12 18:51:25 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Mon, 12 Mar 2012 18:51:25 +0100 Subject: check_http issue In-Reply-To: References: Message-ID: I know this doesn't answer your questions, but did you give the check_ssl_cert plugin a try? https://svn.id.ethz.ch/nagios_plugins/check_ssl_cert/check_ssl_cert I'm using this plugin to check ssl certificates, not only on http but also tls.... On Mon, Mar 12, 2012 at 10:04 AM, Sunny Jaisinghani < Sunny_Jaisinghani at symantec.com> wrote: > Hello, > > I am using the check_http plugin for checking the SSL cert expiry. Even if > the cert is not due to expire very soon, the plugin reports as CRITICAL. > I have few more certs for which the plugin reports correct status. > > What could be going wrong over here. ?? > > BAD > > # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX -p 8001 -w 30 > -c 30 -C 30 > CRITICAL - Certificate expired on 02/17/2062 22:44. > > # openssl x509 -in abc.example.com.crt -noout ?enddate > notAfter=Feb 17 22:57:24 2062 GMT > > GOOD > > # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX -p 8000 -w 30 > -c 30 -C 30 > OK - Certificate will expire on 02/09/2013 23:59. > > # openssl x509 -in xyz.example.com.crt -noout ?enddate > notAfter=Feb 10 23:59:59 2013 GMT > > > Thanks > Sunny > > > > > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -------------- 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 jeffrey.w.watts at gmail.com Mon Mar 12 18:58:12 2012 From: jeffrey.w.watts at gmail.com (Jeffrey Watts) Date: Mon, 12 Mar 2012 12:58:12 -0500 Subject: check_http issue In-Reply-To: References: Message-ID: I wonder if it's an epoch thing... Are all of the certs that are failing ones in which the expiry year is 2038 or greater? Jeffrey. On Mon, Mar 12, 2012 at 4:04 AM, Sunny Jaisinghani < Sunny_Jaisinghani at symantec.com> wrote: > Hello, > > I am using the check_http plugin for checking the SSL cert expiry. Even if > the cert is not due to expire very soon, the plugin reports as CRITICAL. > I have few more certs for which the plugin reports correct status. > > What could be going wrong over here. ?? > > BAD > > # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX -p 8001 -w 30 > -c 30 -C 30 > CRITICAL - Certificate expired on 02/17/2062 22:44. > > # openssl x509 -in abc.example.com.crt -noout ?enddate > notAfter=Feb 17 22:57:24 2062 GMT > > GOOD > > # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX -p 8000 -w 30 > -c 30 -C 30 > OK - Certificate will expire on 02/09/2013 23:59. > > # openssl x509 -in xyz.example.com.crt -noout ?enddate > notAfter=Feb 10 23:59:59 2013 GMT > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -------------- 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 T.AtLee at cfertech.com Mon Mar 12 18:46:06 2012 From: T.AtLee at cfertech.com (Tim AtLee) Date: Mon, 12 Mar 2012 11:46:06 -0600 Subject: automating the output In-Reply-To: References: Message-ID: <0421E521817FC542AF7BA8F20E099B810121ACB66E@exchsrv.cfertech.com> Hi There may be an easier way, but I do this using Check_mk (http://mathias-kettner.de/check_mk.html), and an external script that issues a query to cmk and emails the results. Might be a bit overkill for what you're looking to do. Tim From: Jeevan Mamuduri [mailto:mamuduri.jeevan at gmail.com] Sent: Monday, March 12, 2012 3:31 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] automating the output Hi How can we capture first 10 most CPU consuming processes and put that output in the body in the email alerts. Regards Jeevan.Mamuduri -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 -------------- 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 Timothy.Boyer at opm.gov Mon Mar 12 20:56:46 2012 From: Timothy.Boyer at opm.gov (Boyer, Timothy A.) Date: Mon, 12 Mar 2012 15:56:46 -0400 Subject: check_disk '/sys not accessable' In-Reply-To: References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> <4F59209C.7040107@maniladev.com> <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> <0F3D91EA70124C468301FF70A8ED16D40306564CCC@BOYV7EXVS1.opm.gov> Message-ID: <0F3D91EA70124C468301FF70A8ED16D40306564CDB@BOYV7EXVS1.opm.gov> Works fine on all of the other RHEL6 systems. # su - nagios -bash-4.1$ /usr/lib64/nagios/plugins/check_nrpe -H system3 -c check_all_disk 20 10 DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); ... with nothing at all in sudoers. -----Original Message----- From: davor grgicevic [mailto:dgrgicevic at gmail.com] Sent: Monday, March 12, 2012 1:32 PM To: Nagios Users List Subject: Re: [Nagios-users] check_disk '/sys not accessable' Hi Timothy localy u r workiong as root.. if you try as user Nagios, it wont work .. u have to run sudo for this "DISK CRITICAL - /dev/pts is not accessible: Permission denied" davor On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. wrote: > $ ./check_disk -w 10% -c 5% -p /sys > > DISK UNKNOWN - free space:| > > > > is the result on both servers. > > > > But that?s running locally, which works.? The problem is when running via > nrpe. > > > > Running check_nrpe with ?x /sys in the command line returns: > > > > DISK CRITICAL - /dev/pts is not accessible: Permission denied > > > > Doing the next obvious thing and including /dev in the excludes works, and > is a workaround. > > > > Thanks much? > > > > > > From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] > Sent: Friday, March 09, 2012 7:46 AM > To: Nagios Users List > > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > Nagios 3.3.1.? Two identical RHEL6.1 systems, and all I?m trying to do is > get a total disk space reading. > > > Well the systems are not identical as the manually launched plugin output of > yours shows: > > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% > inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); > > > > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% > inode=99%); /boot 387 MB (84% inode=99%); > > > Note the /home mount point. > > Have you checked the servers for the different mount points? It looks like > on server2 /sys is seen as a partition or mount point while on server1 the > check seems to "ignore" it successfully? Any idea why server2 thinks /sys is > a partition or mount point? > > Can you try to launch it specifically on /sys and output the results (on > both servers)? > > ./check_disk -w 10% -c 5% -p /sys > > Then try to exclude /sys from the check: > > ./check_disk -w 10% -c 5% -x /sys > > By the way the error you're seeing seems to be triggered from this code (at > the bottom of the source file): > > void > stat_path (struct parameter_list *p) > { > ? /* Stat entry to check that dir exists and is accessible */ > ? if (verbose >= 3) > ??? printf("calling stat on %s\n", p->name); > ? if (stat (p->name, &stat_buf[0])) { > ??? if (verbose >= 3) > ????? printf("stat failed on %s\n", p->name); > ??? printf("DISK %s - ", _("CRITICAL")); > ??? die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not accessible"), > strerror(errno)); > ? } > } > > > > On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. > wrote: > > It's Permissive, so that can't be it. ?Thanks... > > > -----Original Message----- > From: Sigmund Brandstaetter [mailto:sb at maniladev.com] > Sent: Thursday, March 08, 2012 4:12 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > Tim, > > How about SELinux, is it maybe on only on the one that is making the > problem? > > Cheers > Sigmund > > > > On 3/9/2012 00:49, Boyer, Timothy A. wrote: >> Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do >> is get a total disk space reading. So nrpe is running on both, with >> the identical command in nrpe.cfg: >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ >> -c $ARG2$ >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ >> -c $ARG2$ >> Running as user nagios from the central server. >> One works fine: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c >> check_all_disk -a 20% 10% >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% >> inode=99%); >> the other gives me this: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c >> check_all_disk -a 20% 10% >> DISK CRITICAL - /sys is not accessible: Permission denied >> Identical versions of nrpe (2.12); a diff on check_disk shows they're >> both identical; both commands work correctly locally run as user Nagios: >> [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% >> inode=99%); >> [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% >> DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB >> (100% inode=99%); /boot 387 MB (84% inode=99%); >> Multiple other nrpe commands running on both; this is the only thing >> they're having problems with. >> /sys is user-readable in both. Logs show nothing. > >> I've run out of ideas. Pointers in the right direction appreciated... > >> Tim >> >> >> >> ------------------------------------------------------------------------------ >> Virtualization& ?Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > -- > --------------------- > Sigmund Brandstaetter > Check my Blog > Live from Manila > http://maniladev.com > --------------------- > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Tue Mar 13 02:37:14 2012 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Mon, 12 Mar 2012 21:37:14 -0400 Subject: nagios doesn't respect the freshness_threshold In-Reply-To: References: Message-ID: <4F5EA4CA.40105@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12-03-09 04:34 AM, Mario Garcia Ortiz wrote: > Hello, > we have backups running everyday in which we send the status of the > backup via nsca to nagios, we have set a freshness_threshold of 26 > hours in case the status of the backups is not received after 26hours > the check becomes critical. > > the problem is that nagios all of sudden doesn't respect that; when > the backup OK message is received by nagios via nsca, it becomes > critical after a couple of minutes instead of waiting the specified > freshness threshold period.. > > is there a way to solve this issue? this happens with nagios running > on solaris 10. Please DO NOT spam the list by posting multiple times - you should expect at least one day to get an answer, if not more. Check that your check has "Active check disabled" from the interface - if active checks are enabled that's your issue. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9epMAACgkQ6dZ+Kt5BchYatACfZMZN5keQvBUPxTtF766G2KVH 5RUAoKcR3R1KbFDlznRlOsIRu+9iFDJX =cGpR -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.wenig at ww-informatik.de Tue Mar 13 09:03:39 2012 From: michael.wenig at ww-informatik.de (Wenig, Michael (IT/I4Z)) Date: Tue, 13 Mar 2012 09:03:39 +0100 Subject: check_disk '/sys not accessable' In-Reply-To: <0F3D91EA70124C468301FF70A8ED16D40306564CDB@BOYV7EXVS1.opm.gov> References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov><4F59209C.7040107@maniladev.com><0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov><0F3D91EA70124C468301FF70A8ED16D40306564CCC@BOYV7EXVS1.opm.gov> <0F3D91EA70124C468301FF70A8ED16D40306564CDB@BOYV7EXVS1.opm.gov> Message-ID: <632DAB77DEC92645BB9AD18656CF59DE0735B214@EXCH03CL60.ww-intern.de> We had some similar issues which were originated in missing policies for SELinux. -----Urspr?ngliche Nachricht----- Von: Boyer, Timothy A. [mailto:Timothy.Boyer at opm.gov] Gesendet: Montag, 12. M?rz 2012 20:57 An: Nagios Users List Betreff: Re: [Nagios-users] check_disk '/sys not accessable' Works fine on all of the other RHEL6 systems. # su - nagios -bash-4.1$ /usr/lib64/nagios/plugins/check_nrpe -H system3 -c check_all_disk 20 10 DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); ... with nothing at all in sudoers. -----Original Message----- From: davor grgicevic [mailto:dgrgicevic at gmail.com] Sent: Monday, March 12, 2012 1:32 PM To: Nagios Users List Subject: Re: [Nagios-users] check_disk '/sys not accessable' Hi Timothy localy u r workiong as root.. if you try as user Nagios, it wont work .. u have to run sudo for this "DISK CRITICAL - /dev/pts is not accessible: Permission denied" davor On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. wrote: > $ ./check_disk -w 10% -c 5% -p /sys > > DISK UNKNOWN - free space:| > > > > is the result on both servers. > > > > But that?s running locally, which works.? The problem is when running > via nrpe. > > > > Running check_nrpe with ?x /sys in the command line returns: > > > > DISK CRITICAL - /dev/pts is not accessible: Permission denied > > > > Doing the next obvious thing and including /dev in the excludes works, > and is a workaround. > > > > Thanks much? > > > > > > From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] > Sent: Friday, March 09, 2012 7:46 AM > To: Nagios Users List > > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > Nagios 3.3.1.? Two identical RHEL6.1 systems, and all I?m trying to do > is get a total disk space reading. > > > Well the systems are not identical as the manually launched plugin > output of yours shows: > > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > inode=99%); > > > > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > (100% inode=99%); /boot 387 MB (84% inode=99%); > > > Note the /home mount point. > > Have you checked the servers for the different mount points? It looks > like on server2 /sys is seen as a partition or mount point while on > server1 the check seems to "ignore" it successfully? Any idea why > server2 thinks /sys is a partition or mount point? > > Can you try to launch it specifically on /sys and output the results > (on both servers)? > > ./check_disk -w 10% -c 5% -p /sys > > Then try to exclude /sys from the check: > > ./check_disk -w 10% -c 5% -x /sys > > By the way the error you're seeing seems to be triggered from this > code (at the bottom of the source file): > > void > stat_path (struct parameter_list *p) > { > ? /* Stat entry to check that dir exists and is accessible */ > ? if (verbose >= 3) > ??? printf("calling stat on %s\n", p->name); > ? if (stat (p->name, &stat_buf[0])) { > ??? if (verbose >= 3) > ????? printf("stat failed on %s\n", p->name); > ??? printf("DISK %s - ", _("CRITICAL")); > ??? die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not > accessible"), strerror(errno)); > ? } > } > > > > On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. > > wrote: > > It's Permissive, so that can't be it. ?Thanks... > > > -----Original Message----- > From: Sigmund Brandstaetter [mailto:sb at maniladev.com] > Sent: Thursday, March 08, 2012 4:12 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > Tim, > > How about SELinux, is it maybe on only on the one that is making the > problem? > > Cheers > Sigmund > > > > On 3/9/2012 00:49, Boyer, Timothy A. wrote: >> Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do >> is get a total disk space reading. So nrpe is running on both, with >> the identical command in nrpe.cfg: >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ >> -c $ARG2$ command[check_all_disk]=/usr/lib/nagios/plugins/check_disk >> -w $ARG1$ -c $ARG2$ Running as user nagios from the central server. >> One works fine: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c >> check_all_disk -a 20% 10% DISK OK - free space: / 24673 MB (98% >> inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% >> inode=99%); /home 7507 MB (98% inode=99%); the other gives me this: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c >> check_all_disk -a 20% 10% DISK CRITICAL - /sys is not accessible: >> Permission denied Identical versions of nrpe (2.12); a diff on >> check_disk shows they're both identical; both commands work correctly >> locally run as user Nagios: >> [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% >> inode=99%); >> [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% >> DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB >> (100% inode=99%); /boot 387 MB (84% inode=99%); Multiple other nrpe >> commands running on both; this is the only thing they're having >> problems with. >> /sys is user-readable in both. Logs show nothing. > >> I've run out of ideas. Pointers in the right direction appreciated... > >> Tim >> >> >> >> --------------------------------------------------------------------- >> --------- Virtualization& ?Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to >> /dev/null > > > -- > --------------------- > Sigmund Brandstaetter > Check my Blog > Live from Manila > http://maniladev.com > --------------------- > > > ---------------------------------------------------------------------- > -------- Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing also > focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ---------------------------------------------------------------------- > -------- Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing also > focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ---------------------------------------------------------------------- > -------- Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft > developers is just $99.99! Visual Studio, SharePoint, SQL - plus > HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ******************************************************************************* Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. This email may contain confidential and/or privileged information. If you are not the intended recipient (or have received this email in error) please notify the sender immediately and destroy this email. Any unauthorized copying, disclosure or distribution of the material in this email is strictly forbidden. ******************************************************************************* ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Manish_Kmr at mahindrasatyam.com Tue Mar 13 10:16:18 2012 From: Manish_Kmr at mahindrasatyam.com (Manish_Kmr) Date: Tue, 13 Mar 2012 09:16:18 +0000 Subject: Disable Event Handlers for all hosts in a hostgroup Message-ID: Hi, Is there any way we can disable and enable event handlers for all hosts in a particular hostgroup in one go. Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -------------- 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 Manish_Kmr at mahindrasatyam.com Tue Mar 13 10:19:00 2012 From: Manish_Kmr at mahindrasatyam.com (Manish_Kmr) Date: Tue, 13 Mar 2012 09:19:00 +0000 Subject: How to import modified host and service files in DB from CLI Message-ID: Hi, We are using NagiosXI, but still we prefer to do most of the things from CLI. Most often we are adding or removing some service from a no. of files and again we need to import these modified files into DB using NagiosXI UI. Its very difficult to search and import a large no. of these files using UI. Is there any way i can import these modified files into NagiosXI DB from command line without using NagiosXI User Interface. Thanks, Manish Kumar, Mahindra Satyam, Tools Team ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -------------- 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 ae at op5.se Tue Mar 13 10:30:17 2012 From: ae at op5.se (Andreas Ericsson) Date: Tue, 13 Mar 2012 10:30:17 +0100 Subject: How to import modified host and service files in DB from CLI In-Reply-To: References: Message-ID: <4F5F13A9.6010206@op5.se> On 03/13/2012 10:19 AM, Manish_Kmr wrote: > Hi, > > We are using NagiosXI, but still we prefer to do most of the things > from CLI. Most often we are adding or removing some service from a > no. of files and again we need to import these modified files into DB > using NagiosXI UI. Its very difficult to search and import a large > no. of these files using UI. Is there any way i can import these > modified files into NagiosXI DB from command line without using > NagiosXI User Interface. > You'll want to ask the Nagios XI forums for things concerning everything but the Nagios core. -- 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. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlgibbs at utica.edu Tue Mar 13 14:34:35 2012 From: jlgibbs at utica.edu (Jeremy Gibbs) Date: Tue, 13 Mar 2012 09:34:35 -0400 Subject: Nagios flooding outside email addresses Message-ID: I have sendmail setup to use our smtp server as a forwarder. This has been working great so far. The only issue I am seeing is, outside email addresses such as a cell number @vtext.com is having messages sent to it several times a second; until Verizon finally rate limits the messages. This in turn queues up the messages, and a large number come through again. This does NOT happen with any internal email addresses. If I check the mail log, I can see Nagios sending the message several times a second to only outside email addresses and only once to internal email addresses. I am not sure what the issue is. I will give you a sample of my config 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 contact{ contact_name guys-cell use generic-contact alias John Doe email xxx8777xxx at vtext.com } define contactgroup{ contactgroup_name network-admin alias Switches and networking admins members guys-cell } Thanks -- Jeremy L. Gibbs Systems Administrator Utica College Integrated Information Technology Services (315) 223-2383 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -------------- 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 ftlnagios at gmail.com Tue Mar 13 15:57:23 2012 From: ftlnagios at gmail.com (FTL Nagios) Date: Tue, 13 Mar 2012 14:57:23 -0000 Subject: Encrypt Domain log in details inside my cfg files Message-ID: <006001cd0129$995e6680$cc1b3380$@gmail.com> Hi all, For a couple of my SQL checks I need to connect using a domain user account. Now I have to put this information in plain text into my sqlserver.cfg file. How can I go about encrypting this username/password or any other method that means I don't have to put domain login details in plain text into my cfg file? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d -------------- 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 flatto.net Wed Mar 14 10:49:35 2012 From: nagios at flatto.net (Assaf Flatto) Date: Wed, 14 Mar 2012 09:49:35 +0000 Subject: Nagios flooding outside email addresses In-Reply-To: References: Message-ID: <4F6069AF.1050809@flatto.net> What is your definition for rechecks and notification intervals ,and first and last notifications ( see service and service escalation definitions )? Also how many issue does your system has that are un handled that nagios is producing so many alerts ? On 13/03/12 13:34, Jeremy Gibbs wrote: > I have sendmail setup to use our smtp server as a forwarder. This has > been working great so far. The only issue I am seeing is, outside > email addresses such as a cell number @vtext.com is > having messages sent to it several times a second; until Verizon > finally rate limits the messages. This in turn queues up the > messages, and a large number come through again. This does NOT happen > with any internal email addresses. If I check the mail log, I can see > Nagios sending the message several times a second to only outside > email addresses and only once to internal email addresses. > > > I am not sure what the issue is. > > I will give you a sample of my config > > > 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 contact{ > contact_name guys-cell > use generic-contact > alias John Doe > email xxx8777xxx at vtext.com > } > > > define contactgroup{ > contactgroup_name network-admin > alias Switches and networking admins > members guys-cell > } > > > Thanks > > > -- > Jeremy L. Gibbs > Systems Administrator > Utica College > Integrated Information Technology Services > (315) 223-2383 > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 andrew at fulgent.co.uk Wed Mar 14 13:44:57 2012 From: andrew at fulgent.co.uk (Andrew Thompson) Date: Wed, 14 Mar 2012 12:44:57 +0000 Subject: "Ackowledge this service" link is missing Message-ID: Hi all Nagios 3.3.1 on Ubuntu 11.04 Desktop. I have just come to acknowledge a critical service and much to my surprise I don't have the option too. Is this a known bug? Any help appreciated. Kind Regards Andrew T: 01386 834000 F: 01386 834100 Andrew at fulgent.co.uk www.fulgent.co.uk Fulgent Technologies Limited, Haddonsacre, Station Road, Offenham, Evesham, WR11 8JJ. This communication contains information which is confidential and may also be privileged or protected by copyright. It is for the exclusive use of the addressee. If you are not the addressee please note that any distribution, reproduction, copying, publication or use of this communication or the information is prohibited. If you have received this communication in error, please telephone us immediately and also delete the communication from your computer. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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.frost1 at pepsico.com Wed Mar 14 14:01:45 2012 From: mark.frost1 at pepsico.com (Frost, Mark {BIS}) Date: Wed, 14 Mar 2012 09:01:45 -0400 Subject: "Ackowledge this service" link is missing In-Reply-To: References: Message-ID: Andrew, I don't know that this is it, but you can only acknowledge something that is in a hard critical state. That is, it has to have hit the threshold of failures before it is considered in a hard state. The service details should tell you if it is, but I've had times where I've thought the same thing only to realize that the service hadn't gotten all the way to a hard state just yet. Mark ________________________________ From: Andrew Thompson [andrew at fulgent.co.uk] Sent: Wednesday, March 14, 2012 8:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] "Ackowledge this service" link is missing Hi all Nagios 3.3.1 on Ubuntu 11.04 Desktop. I have just come to acknowledge a critical service and much to my surprise I don?t have the option too. Is this a known bug? Any help appreciated. Kind Regards Andrew T: 01386 834000 F: 01386 834100 Andrew at fulgent.co.uk www.fulgent.co.uk Fulgent Technologies Limited, Haddonsacre, Station Road, Offenham, Evesham, WR11 8JJ. This communication contains information which is confidential and may also be privileged or protected by copyright. It is for the exclusive use of the addressee. If you are not the addressee please note that any distribution, reproduction, copying, publication or use of this communication or the information is prohibited. If you have received this communication in error, please telephone us immediately and also delete the communication from your computer. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Eliot.Picken at wenaas.co.uk Wed Mar 14 14:02:49 2012 From: Eliot.Picken at wenaas.co.uk (Eliot Picken) Date: Wed, 14 Mar 2012 13:02:49 +0000 Subject: AUTO: Eliot Picken is out of the office (returning 19/03/2012) Message-ID: I am out of the office until 19/03/2012. I am currently out of the office on leave, and your email has not been forwarded. For emergency issues, please contact Alex Lawrie on +44 (0) 1224 894 000 otherwise I will respond to your email upon my return Note: This is an automated response to your message "[Nagios-users] "Ackowledge this service" link is missing" sent on 3/14/2012 12:44:57 PM. This is the only notification you will receive while this person is away. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ollie.Campbell at bbh.co.uk Wed Mar 14 14:25:47 2012 From: Ollie.Campbell at bbh.co.uk (Ollie Campbell) Date: Wed, 14 Mar 2012 13:25:47 +0000 Subject: "Ackowledge this service" link is missing In-Reply-To: References: Message-ID: Just a shot in the dark, but could it be that the user you're logging in with doesn't have access to run the commands on the interface? On 14 March 2012 13:01, Frost, Mark {BIS} wrote: > Andrew, > > I don't know that this is it, but you can only acknowledge something that > is in a hard critical state. That is, it has to have hit the threshold of > failures before it is considered in a hard state. The service details > should tell you if it is, but I've had times where I've thought the same > thing only to realize that the service hadn't gotten all the way to a hard > state just yet. > > > Mark > > ________________________________ > From: Andrew Thompson [andrew at fulgent.co.uk] > Sent: Wednesday, March 14, 2012 8:44 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] "Ackowledge this service" link is missing > > Hi all > > Nagios 3.3.1 on Ubuntu 11.04 Desktop. > > I have just come to acknowledge a critical service and much to my surprise > I don?t have the option too. > > Is this a known bug? Any help appreciated. > > Kind Regards > Andrew > > T: 01386 834000 > F: 01386 834100 > > Andrew at fulgent.co.uk > www.fulgent.co.uk > > > Fulgent Technologies Limited, Haddonsacre, Station Road, Offenham, > Evesham, WR11 8JJ. This communication contains information which is > confidential and may also be privileged or protected by copyright. It is > for the exclusive use of the addressee. If you are not the addressee please > note that any distribution, reproduction, copying, publication or use of > this communication or the information is prohibited. If you have received > this communication in error, please telephone us immediately and also > delete the communication from your computer. > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 transmission is from BBH Partners LLP, it is confidential and intended solely for the person or organisation to whom it is addressed. This transmission may contain confidential information within its content or any attachment. You should not copy, use or distribute in any way any of the information contained within this transmission other than in accordance with the prior written permission of an authorised BBH representative. Partnership Information: Registered name: BBH Partners LLP Registered office: 60 Kingly Street London W1B 5DS Place of registration: England and Wales Registered number: OC355051 Although all messages/file attachments passing through this gateway are scanned for viruses we cannot guarantee that any file is 100% virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ -------------- 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 andrew at fulgent.co.uk Wed Mar 14 15:08:08 2012 From: andrew at fulgent.co.uk (Andrew Thompson) Date: Wed, 14 Mar 2012 14:08:08 +0000 Subject: "Ackowledge this service" link is missing In-Reply-To: References: Message-ID: Mark you are absolutely spot on. Thought I was going mad because I knew I had used it before! Cheers -----Original Message----- From: Frost, Mark {BIS} [mailto:mark.frost1 at pepsico.com] Sent: 14 March 2012 13:02 To: Nagios Users List Subject: Re: [Nagios-users] "Ackowledge this service" link is missing Andrew, I don't know that this is it, but you can only acknowledge something that is in a hard critical state. That is, it has to have hit the threshold of failures before it is considered in a hard state. The service details should tell you if it is, but I've had times where I've thought the same thing only to realize that the service hadn't gotten all the way to a hard state just yet. Mark ________________________________ From: Andrew Thompson [andrew at fulgent.co.uk] Sent: Wednesday, March 14, 2012 8:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] "Ackowledge this service" link is missing Hi all Nagios 3.3.1 on Ubuntu 11.04 Desktop. I have just come to acknowledge a critical service and much to my surprise I don't have the option too. Is this a known bug? Any help appreciated. Kind Regards Andrew T: 01386 834000 F: 01386 834100 Andrew at fulgent.co.uk www.fulgent.co.uk Fulgent Technologies Limited, Haddonsacre, Station Road, Offenham, Evesham, WR11 8JJ. This communication contains information which is confidential and may also be privileged or protected by copyright. It is for the exclusive use of the addressee. If you are not the addressee please note that any distribution, reproduction, copying, publication or use of this communication or the information is prohibited. If you have received this communication in error, please telephone us immediately and also delete the communication from your computer. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agriffin at nagios.com Wed Mar 14 15:56:31 2012 From: agriffin at nagios.com (Alex Griffin) Date: Wed, 14 Mar 2012 09:56:31 -0500 Subject: How to import modified host and service files in DB from CLI In-Reply-To: References: Message-ID: <4F60B19F.8000401@nagios.com> You can simply run /usr/local/nagiosxi/scripts/reconfigure_nagios.sh after dropping your config files into /usr/local/nagios/etc/import/. Alex Griffin --- Tech Team agriffin at nagios.com Manish_Kmr wrote: > Hi, > > We are using NagiosXI, but still we prefer to do most of the things from > CLI. Most often we are adding or removing some service from a no. of > files and again we need to import these modified files into DB using > NagiosXI UI. Its very difficult to search and import a large no. of > these files using UI. Is there any way i can import these modified files > into NagiosXI DB from command line without using NagiosXI User Interface. > > Thanks, > Manish Kumar, > Mahindra Satyam, Tools Team > > > ------------------------------------------------------------------------ > > DISCLAIMER: > This email (including any attachments) is intended for the sole use of > the intended recipient/s and may contain material that is CONFIDENTIAL > AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or > copying or distribution or forwarding of any or all of the contents in > this message is STRICTLY PROHIBITED. If you are not the intended > recipient, please contact the sender by email and delete all copies; > your cooperation in this regard is appreciated. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From divan at s-tainment.co.za Wed Mar 14 19:52:35 2012 From: divan at s-tainment.co.za (Divan Santana) Date: Wed, 14 Mar 2012 20:52:35 +0200 Subject: escalations question Message-ID: <4039096.z9rEJDQBiJ@htf3333000l> Hi All, I'm wondering if one can do this with Nagios. One can do similar things with check_mk unfortunately check_mk doesn't support anyway to define escalations so this needs to be done in nagios core. Challenge 1 ========= With this set in nagios.cfg use_regexp_matching=1 use_true_regexp_matching=0 define serviceescalation{ hostgroup_name hostgroup service_description !fs_/app.*,.* first_notification 3 last_notification 0 notification_interval 15 contact_groups tsdmidrangelinux-admins-escalate } results in this error: Error: Could not find a service matching host name 'example1.blah.com' and description '!fs_/app.*' (config file '/etc/nagios/objects/escalations.cfg', starting on line 41) Challenge 2 ========= With this set in nagios.cfg use_regexp_matching=1 use_true_regexp_matching=0 define serviceescalation{ hostgroup_name hostgroup service_description ExampleService first_notification 3 last_notification 0 notification_interval 15 contact_groups tsdmidrangelinux-admins-escalate } results in this error: Error: Could not find a service matching host name 'example1.blah.com' and description 'ExampleService' (config file '/etc/nagios/objects/escalations.cfg', starting on line 41) This ExampleService would exist on another example2.blah.com . It would be nice if one could achieve this in Nagios. -- Divan Santana ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mariog at absi.be Thu Mar 15 11:40:11 2012 From: mariog at absi.be (Mario Garcia Ortiz) Date: Thu, 15 Mar 2012 11:40:11 +0100 Subject: nagios doesn't respect the freshness_threshold In-Reply-To: <4F5EA4CA.40105@aei.ca> References: <4F5EA4CA.40105@aei.ca> Message-ID: Hello, thank you for your answer. I don't know what are you saying about spamming, I have sent the message just once and this six days ago! kind regards -- Mario Garcia Ortiz ABSI SA 224 Bd de l'Humanit? 1190 Brussels ?Belgium www.absi.be Tel 00 322 333 40 00 On 13 March 2012 02:37, Thomas Guyot-Sionnest wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 12-03-09 04:34 AM, Mario Garcia Ortiz wrote: > > Hello, > > we have backups running everyday in which we send the status of the > > backup via nsca to nagios, we have set a freshness_threshold of 26 > > hours in case the status of the backups is not received after 26hours > > the check becomes critical. > > > > the problem is that nagios all of sudden doesn't respect that; when > > the backup OK message is received by nagios via nsca, it becomes > > critical after a couple of minutes instead of waiting the specified > > freshness threshold period.. > > > > is there a way to solve this issue? this happens with nagios running > > on solaris 10. > > Please DO NOT spam the list by posting multiple times - you should > expect at least one day to get an answer, if not more. > > Check that your check has "Active check disabled" from the interface - > if active checks are enabled that's your issue. > > - -- > Thomas > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk9epMAACgkQ6dZ+Kt5BchYatACfZMZN5keQvBUPxTtF766G2KVH > 5RUAoKcR3R1KbFDlznRlOsIRu+9iFDJX > =cGpR > -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Julian_Grunnell at tdwh.co.uk Thu Mar 15 11:31:40 2012 From: Julian_Grunnell at tdwh.co.uk (Julian_Grunnell at tdwh.co.uk) Date: Thu, 15 Mar 2012 10:31:40 +0000 Subject: service checks could not be rescheduled properly. In-Reply-To: <~B4ec10cb70000.4ec12a690000.0001.mml.720207884@TDWH.co.uk> References: <~B4ec10cb70000.4ec12a690000.0001.mml.720207884@TDWH.co.uk> Message-ID: Anyone ... thought I'd go back to this. Does anyone have any ideas why I would get the following in the Nagios logs: nagios-03-10-2012-00.log:[1331336760] Warning: Check of service 'DEAL SERVER SERVICE TCP 4099' on host 'TDUKUBS01' could not be rescheduled properly. Scheduling check for next week... nagios-03-10-2012-00.log:[1331336760] Warning: Check of service 'DEAL SERVER SERVICE TCP 4099' on host 'TDUKUBS02' could not be rescheduled properly. Scheduling check for next week... As mentioed below, I've checked the config multiple times, I run 1100+ service checks across 100+ hosts and just these two are causing a problem - they differ in that they have specific time periods defined - all detailed below. I've checked the various reports that NTP is at fault but it made no difference at all. And if I force a check, it works and then schedules to run again tonight at 23:46 when I want the time period to begin: Thanks - Julian. Julian Grunnell | Unix Analyst, Infrastructure | TD Direct Investing T: +44 (0) 113 346 2824 | M: +44 (0) 7889 352527 Julian_Grunnell at tdwh.co.uk 14/11/2011 14:49 Please respond to Nagios Users List To nagios-users at lists.sourceforge.net cc Subject Re: [Nagios-users] service checks could not be rescheduled properly. Hi - thanks, should have said this is one of the first posts I read. Lots of mentions of NTPD and it should be fixed / still doesn't work. And in my case whether I enable NTPD or not makes no difference. My checks for specific hosts are still getting rescheduled for next week. I run multiple Nagios instances and its only affecting this one - and annoyingly these checks are some of the most important but just happen to need to run at specific times of the day. Any other help / ideas would be appreciated. Thanks - J. Julian Grunnell | Unix Analyst, Infrastructure | TD Waterhouse T: +44 (0) 113 346 2824 | M: +44 (0) 7889 352527 Brandon Phelps 11/11/2011 16:03 Please respond to Nagios Users List To nagios-users at lists.sourceforge.net cc Subject Re: [Nagios-users] service checks could not be rescheduled properly. Check out this bug report on the nagios.org bug tracker: http://tracker.nagios.org/view.php?id=31 On 11/11/2011 10:39 AM, Julian_Grunnell at tdwh.co.uk wrote: > > Hi - does anyone know the answer to the following errors I'm getting in > the nagios.log for a handful of hosts that have a specific timeperiod > for checks set. > > [Wed Nov 9 23:46:00 2011] Warning: Check of service 'DEAL SERVER SERVICE > TCP 4099' on host 'TDUKUBS02' could not be rescheduled properly. > Scheduling check for next week... > [Wed Nov 9 23:46:00 2011] Warning: Check of service 'DEAL SERVER SERVICE > TCP 4099' on host 'TDUKUBS01' could not be rescheduled properly. > Scheduling check for next week... > > Obviously this is causing major issues as checks are just not being > carried out as expected, the hosts / services are defined as follows: > > define host{ > use unix_host_template ; Name of host template to use > icon_image win40.jpg > host_name TDUKUBS01 > address 192.168.75.84 > alias TDUKUBS01 192.168.75.84 > } > > define service{ > use ubs-service > hostgroup_name ubsdealservers > service_description DEAL SERVER SERVICE TCP 4099 > check_command check_ubs!4099 > check_period ubs4099hours > } > > define service{ > name ubs-service > is_volatile 0 > max_check_attempts 5 > normal_check_interval 1 > notification_interval 5 > retry_check_interval 1 > contact_groups dtns-ooh > 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 > register 0 > } > > define timeperiod{ > timeperiod_name ubs4099hours > alias UBS 4099 Dealserver Monitoring Hours > monday 23:46-20:30 > tuesday 23:46-20:30 > wednesday 23:46-20:30 > thursday 23:46-20:30 > friday 23:46-20:30 > } > > It all looks ok to me, if I manually re-schedule the check above it will > run fine but when it comes to the check being carried out as defined by > the timeperiod above again it will not run and then get scheduled for > the following week. > > Any help would be appreciated. > > Thanks - Julian. > > > Julian Grunnell | Unix Analyst, Infrastructure | TD Waterhouse > T: +44 (0) 113 346 2824 | M: +44 (0) 7889 352527 > > > -------------------------------------------------------------------------------- > > > Consider the environment. Please don't print this e-mail unless you > really need to. > > Confidentiality: This email and its attachments are intended for the > above named only and may be confidential. If they have come to you in > error you must take no action based on them, nor must you copy or show > them to anyone; please reply to this email and highlight the error. > > Viruses: Although we have taken steps to ensure that this email and > attachments are free from any virus, we advise that in keeping with good > computing practice the recipient should ensure that they are actually > virus-free. > > Brokerage services provided by TD Waterhouse Investor Services (Europe) > Limited (a subsidiary of The Toronto-Dominion Bank). Authorised and > regulated by the Financial Services Authority (FSA registered number > 141282), member of the London Stock Exchange and the PLUS market. > Incorporated in England and Wales under registration number 2101863. > Registered office: Exchange Court, Duncombe Street, Leeds LS1 4AX. > Banking services provided by TD Waterhouse Bank N.V. authorised and > regulated by De Nederlandsche Bank and the Financial Services Authority > for UK Business (FSA registered number 216791). Incorporated in the > Netherlands and registered as a branch in England and Wales under branch > registration number BR006780. > > > -------------------------------------------------------------------------------- > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------------------------------------------------------------------------- Consider the environment. Please don't print this e-mail unless you really need to. Confidentiality: This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure that they are actually virus-free. Brokerage services provided by TD Waterhouse Investor Services (Europe) Limited (a subsidiary of The Toronto-Dominion Bank). Authorised and regulated by the Financial Services Authority (FSA registered number 141282), member of the London Stock Exchange and the PLUS market. Incorporated in England and Wales under registration number 2101863. Registered office: Exchange Court, Duncombe Street, Leeds LS1 4AX. Banking services provided by TD Waterhouse Bank N.V. authorised and regulated by De Nederlandsche Bank and the Financial Services Authority for UK Business (FSA registered number 216791). Incorporated in the Netherlands and registered as a branch in England and Wales under branch registration number BR006780. -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ----------------------------------------------- Consider the environment: Please don't print this e-mail unless you really need to. Confidentiality:? This email and its attachments are intended for the above named only and may be confidential.? If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Viruses:? Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure that they are actually virus-free. Brokerage services provided by TD Direct Investing (Europe) Limited (a subsidiary of The Toronto-Dominion Bank).? Authorised and regulated by the Financial Services Authority (FSA registered number 141282), member of the London Stock Exchange and the PLUS market. Incorporated in England and Wales under registration number 2101863.? Registered office: Exchange Court, Duncombe Street, Leeds LS1 4AX.?Banking services provided by TD Bank N.V. authorised and regulated by De Nederlandsche Bank and the Financial Services Authority for UK Business (FSA registered number 216791).? Incorporated in the Netherlands and registered as a branch in England and Wales under branch registration number BR006780. ------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 6700 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 6641 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 miskobs at yahoo.com Thu Mar 15 13:07:41 2012 From: miskobs at yahoo.com (miskobs at yahoo.com) Date: Thu, 15 Mar 2012 05:07:41 -0700 (PDT) Subject: (no subject) Message-ID: <1331813261.5015.YahooMailNeo@web160706.mail.bf1.yahoo.com> http://remiracco.com.br/imoveis.old/images/phocafavicon/test.php?bowl1.bmp -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Thu Mar 15 15:10:23 2012 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Thu, 15 Mar 2012 10:10:23 -0400 Subject: nagios doesn't respect the freshness_threshold In-Reply-To: References: <4F5EA4CA.40105@aei.ca> Message-ID: <4F61F84F.9010305@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12-03-15 06:40 AM, Mario Garcia Ortiz wrote: > Hello, > thank you for your answer. > > I don't know what are you saying about spamming, I have sent the > message just once and this six days ago! Indeed, after inspecting the mail headers is seems Sourceforge delivered the same message to my ISP 5 times - how strange... Please accept my apologies. Regards, - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9h+CMACgkQ6dZ+Kt5BchbKCwCfS6TBdkHosvGEZpWPSccomk3X mlcAoN9r031SFx6v+1udU3A97GupFmjg =fI1B -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From robertsullivan8 at gmail.com Wed Mar 14 20:09:04 2012 From: robertsullivan8 at gmail.com (Robert Sullivan) Date: Wed, 14 Mar 2012 12:09:04 -0700 Subject: help with check_http Message-ID: Hi, I'm trying to set up a check_http test for a web server but am having some difficulty. I can do the test using curl from the command line but I want to know if I can do it with the check_http utility. This is what it looks like using curl curl --data-ascii "version=1&mineLogin=atp_qa1 at mine.com&minePassword=testing" https://stage-mine-tto.mine.com/api/cclookup Returns: {"result":"SUCCESS","ccid":18711} I've tried this but it does not work. ./check_http -H stage-mine-tto.mine.com -a atp_qa1:testing -u https://stage-mine-tto.mine.com/api/cclookup Returns Connetion refused HTTP CRITICAL ? Unable to open TCP socket I might be going about this the wrong way. Is there a way to send an ascii string to a URL using check_http or some other Nagios tool? If I sent just a string to the URL which is basically all I'm doing with curl it should work. Any help would be appreciated. Thanks, Robert ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From light_dark at live.fr Wed Mar 14 11:30:43 2012 From: light_dark at live.fr (Amine) Date: Wed, 14 Mar 2012 10:30:43 +0000 (UTC) Subject: =?utf-8?q?=5BSOLUCIONADO=5D_RE=3A_Install_Error_wi?= =?utf-8?q?th_fresh_install=09of_Nagios_=28nagios=2Ecfg_-_Line_465?= =?utf-8?q?=29?= References: <003801cc5241$6c4254a0$44c6fde0$@com> <005e01cc52a3$20f38980$62da9c80$@com> Message-ID: hello everyone my name is amine and I have just compiled the source of nagios on my ubuntu machine and i got the same problem "Line 465 (Check result path is not a valid directory)" whene I cd /usr/local/nagios/var/spool/ it told me it tells me that there is no such directory.what can I do should I just make those directories?? I need help plz. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at claudiokuenzler.com Thu Mar 15 16:34:12 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Thu, 15 Mar 2012 16:34:12 +0100 Subject: [SOLUCIONADO] RE: Install Error with fresh install of Nagios (nagios.cfg - Line 465) In-Reply-To: References: <003801cc5241$6c4254a0$44c6fde0$@com> <005e01cc52a3$20f38980$62da9c80$@com> Message-ID: Hi Amine, Please don't hijack old threads. Create a new mail with your question. Yes, if the directory doesn't exist, create it yourself and give it the correct permissions. Had to do that too in Core 3.3.1 (in previous versions the folders were always correctly created). On Wed, Mar 14, 2012 at 11:30 AM, Amine wrote: > hello everyone my name is amine and I have just compiled the source of > nagios > on my ubuntu machine and i got the same problem "Line 465 (Check result > path > is not a valid directory)" whene I cd /usr/local/nagios/var/spool/ it told > me > it tells me that there is no such directory.what can I do should I just > make > those directories?? I need help plz. > > > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 ck at claudiokuenzler.com Thu Mar 15 16:44:15 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Thu, 15 Mar 2012 16:44:15 +0100 Subject: check_disk '/sys not accessable' In-Reply-To: <632DAB77DEC92645BB9AD18656CF59DE0735B214@EXCH03CL60.ww-intern.de> References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> <4F59209C.7040107@maniladev.com> <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> <0F3D91EA70124C468301FF70A8ED16D40306564CCC@BOYV7EXVS1.opm.gov> <0F3D91EA70124C468301FF70A8ED16D40306564CDB@BOYV7EXVS1.opm.gov> <632DAB77DEC92645BB9AD18656CF59DE0735B214@EXCH03CL60.ww-intern.de> Message-ID: Hey Timothy, By reading some old mails in the mailing list, I stumbled over a topic similar to your case from 2011-12-09 (SELinux and RHEL6.2 preventing disk checks via NRPE). I know you said you didn't use SELinux, but I think it doesn't hurt if you read it in the archive: http://sourceforge.net/mailarchive/forum.php?thread_name=15tzkf1x503.fsf%40tux.uio.no&forum_name=nagios-users On Tue, Mar 13, 2012 at 9:03 AM, Wenig, Michael (IT/I4Z) < michael.wenig at ww-informatik.de> wrote: > We had some similar issues which were originated in missing policies for > SELinux. > > -----Urspr?ngliche Nachricht----- > Von: Boyer, Timothy A. [mailto:Timothy.Boyer at opm.gov] > Gesendet: Montag, 12. M?rz 2012 20:57 > An: Nagios Users List > Betreff: Re: [Nagios-users] check_disk '/sys not accessable' > > Works fine on all of the other RHEL6 systems. > > # su - nagios > -bash-4.1$ /usr/lib64/nagios/plugins/check_nrpe -H system3 -c > check_all_disk 20 10 DISK OK - free space: / 24673 MB (98% inode=99%); > /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); > > ... with nothing at all in sudoers. > > > -----Original Message----- > From: davor grgicevic [mailto:dgrgicevic at gmail.com] > Sent: Monday, March 12, 2012 1:32 PM > To: Nagios Users List > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > Hi Timothy > > localy u r workiong as root.. if you try as user Nagios, it wont > work .. > > u have to run sudo for this > > "DISK CRITICAL - /dev/pts is not accessible: Permission denied" > > davor > > > > On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. > wrote: > > $ ./check_disk -w 10% -c 5% -p /sys > > > > DISK UNKNOWN - free space:| > > > > > > > > is the result on both servers. > > > > > > > > But that?s running locally, which works. The problem is when running > > via nrpe. > > > > > > > > Running check_nrpe with ?x /sys in the command line returns: > > > > > > > > DISK CRITICAL - /dev/pts is not accessible: Permission denied > > > > > > > > Doing the next obvious thing and including /dev in the excludes works, > > and is a workaround. > > > > > > > > Thanks much? > > > > > > > > > > > > From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] > > Sent: Friday, March 09, 2012 7:46 AM > > To: Nagios Users List > > > > > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > > > > > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I?m trying to do > > is get a total disk space reading. > > > > > > Well the systems are not identical as the manually launched plugin > > output of yours shows: > > > > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > > (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > > inode=99%); > > > > > > > > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > > (100% inode=99%); /boot 387 MB (84% inode=99%); > > > > > > Note the /home mount point. > > > > Have you checked the servers for the different mount points? It looks > > like on server2 /sys is seen as a partition or mount point while on > > server1 the check seems to "ignore" it successfully? Any idea why > > server2 thinks /sys is a partition or mount point? > > > > Can you try to launch it specifically on /sys and output the results > > (on both servers)? > > > > ./check_disk -w 10% -c 5% -p /sys > > > > Then try to exclude /sys from the check: > > > > ./check_disk -w 10% -c 5% -x /sys > > > > By the way the error you're seeing seems to be triggered from this > > code (at the bottom of the source file): > > > > void > > stat_path (struct parameter_list *p) > > { > > /* Stat entry to check that dir exists and is accessible */ > > if (verbose >= 3) > > printf("calling stat on %s\n", p->name); > > if (stat (p->name, &stat_buf[0])) { > > if (verbose >= 3) > > printf("stat failed on %s\n", p->name); > > printf("DISK %s - ", _("CRITICAL")); > > die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not > > accessible"), strerror(errno)); > > } > > } > > > > > > > > On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. > > > > wrote: > > > > It's Permissive, so that can't be it. Thanks... > > > > > > -----Original Message----- > > From: Sigmund Brandstaetter [mailto:sb at maniladev.com] > > Sent: Thursday, March 08, 2012 4:12 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > Tim, > > > > How about SELinux, is it maybe on only on the one that is making the > > problem? > > > > Cheers > > Sigmund > > > > > > > > On 3/9/2012 00:49, Boyer, Timothy A. wrote: > >> Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do > >> is get a total disk space reading. So nrpe is running on both, with > >> the identical command in nrpe.cfg: > >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ > >> -c $ARG2$ command[check_all_disk]=/usr/lib/nagios/plugins/check_disk > >> -w $ARG1$ -c $ARG2$ Running as user nagios from the central server. > >> One works fine: > >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c > >> check_all_disk -a 20% 10% DISK OK - free space: / 24673 MB (98% > >> inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% > >> inode=99%); /home 7507 MB (98% inode=99%); the other gives me this: > >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c > >> check_all_disk -a 20% 10% DISK CRITICAL - /sys is not accessible: > >> Permission denied Identical versions of nrpe (2.12); a diff on > >> check_disk shows they're both identical; both commands work correctly > >> locally run as user Nagios: > >> [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB > >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% > >> inode=99%); > >> [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > >> DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB > >> (100% inode=99%); /boot 387 MB (84% inode=99%); Multiple other nrpe > >> commands running on both; this is the only thing they're having > >> problems with. > >> /sys is user-readable in both. Logs show nothing. > > > >> I've run out of ideas. Pointers in the right direction appreciated... > > > >> Tim > >> > >> > >> > >> --------------------------------------------------------------------- > >> --------- Virtualization& Cloud Management Using Capacity Planning > >> Cloud computing makes use of virtualization - but cloud computing > >> also focuses on allowing computing to be delivered as a service. > >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ > >> > >> > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when > >> reporting any issue. > >> ::: Messages without supporting info will risk being sent to > >> /dev/null > > > > > > -- > > --------------------- > > Sigmund Brandstaetter > > Check my Blog > > Live from Manila > > http://maniladev.com > > --------------------- > > > > > > ---------------------------------------------------------------------- > > -------- Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing also > > focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ---------------------------------------------------------------------- > > -------- Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing also > > focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > ---------------------------------------------------------------------- > > -------- Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft > > developers is just $99.99! Visual Studio, SharePoint, SQL - plus > > HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you > subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers is > just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro > Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers is > just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro > Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ******************************************************************************* > Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte > Informationen. > Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich > erhalten > haben, informieren Sie bitte sofort den Absender und vernichten Sie diese > Mail. > Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist > nicht > gestattet. > > This email may contain confidential and/or privileged information. > If you are not the intended recipient (or have received this email > in error) please notify the sender immediately and destroy this email. > Any unauthorized copying, disclosure or distribution of the material > in this email is strictly forbidden. > > ******************************************************************************* > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 RWerner at pomwonderful.com Thu Mar 15 18:59:51 2012 From: RWerner at pomwonderful.com (Werner, Robert) Date: Thu, 15 Mar 2012 17:59:51 +0000 Subject: help with check_http In-Reply-To: References: Message-ID: <3D480E2907FD164191FE65820A669FFF4ED2D882@POM-LA-MBX01.pomwonderful.com> I think you need to add the -S flag to tell check_http to use HTTPS: -S, --ssl Connect via SSL. Port defaults to 443 -- Robert G. Werner Oracle Apps Systems Administrator rwerner at pomwonderful.com 559.521.5089 -----Original Message----- From: Robert Sullivan [mailto:robertsullivan8 at gmail.com] Sent: Wednesday, March 14, 2012 12:09 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] help with check_http Hi, I'm trying to set up a check_http test for a web server but am having some difficulty. I can do the test using curl from the command line but I want to know if I can do it with the check_http utility. This is what it looks like using curl curl --data-ascii "version=1&mineLogin=atp_qa1 at mine.com&minePassword=testing" https://stage-mine-tto.mine.com/api/cclookup Returns: {"result":"SUCCESS","ccid":18711} I've tried this but it does not work. ./check_http -H stage-mine-tto.mine.com -a atp_qa1:testing -u https://stage-mine-tto.mine.com/api/cclookup Returns Connetion refused HTTP CRITICAL - Unable to open TCP socket I might be going about this the wrong way. Is there a way to send an ascii string to a URL using check_http or some other Nagios tool? If I sent just a string to the URL which is basically all I'm doing with curl it should work. Any help would be appreciated. Thanks, Robert ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pradhanparas at gmail.com Thu Mar 15 22:01:36 2012 From: pradhanparas at gmail.com (Paras pradhan) Date: Thu, 15 Mar 2012 16:01:36 -0500 Subject: Recommendation needed Message-ID: Hi, We are planning to implement nagios with a graphing tool. I came across nagiosgraph, php4nagios and munin. Among these which is relatively easier to configure or are there other graphing tools that is recommended?. and which one is popular among nagios users? Thanks Paras. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel.wittenberg.r0ko at statefarm.com Thu Mar 15 22:10:17 2012 From: daniel.wittenberg.r0ko at statefarm.com (Daniel Wittenberg) Date: Thu, 15 Mar 2012 21:10:17 +0000 Subject: Recommendation needed In-Reply-To: References: Message-ID: <4288A518A157EC4C8873FEE74F778BF015377D@WPSDGQHH.OPR.STATEFARM.ORG> I like pnp4nagios, easy to integrate and flexible. Using it with multisite as the front-end make it all "just work" out of the box. Dan -----Original Message----- From: Paras pradhan [mailto:pradhanparas at gmail.com] Sent: Thursday, March 15, 2012 4:02 PM To: Nagios Users List Subject: [Nagios-users] Recommendation needed Hi, We are planning to implement nagios with a graphing tool. I came across nagiosgraph, php4nagios and munin. Among these which is relatively easier to configure or are there other graphing tools that is recommended?. and which one is popular among nagios users? Thanks Paras. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at claudiokuenzler.com Thu Mar 15 22:22:22 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Thu, 15 Mar 2012 22:22:22 +0100 Subject: Recommendation needed In-Reply-To: <4288A518A157EC4C8873FEE74F778BF015377D@WPSDGQHH.OPR.STATEFARM.ORG> References: <4288A518A157EC4C8873FEE74F778BF015377D@WPSDGQHH.OPR.STATEFARM.ORG> Message-ID: It depends on your own "skills". If you know a little bit regex (regular expressions), then you're good with Nagiosgraph. I couldn't live without it anymore. PNP4Nagios is, as Daniel said, "just working" out of the box for many plugins. But on the other hand with Nagiosgraph you're more flexible when it comes to your own plugins or other special plugins. Haven't tried munin myself. On Thu, Mar 15, 2012 at 10:10 PM, Daniel Wittenberg < daniel.wittenberg.r0ko at statefarm.com> wrote: > I like pnp4nagios, easy to integrate and flexible. Using it with > multisite as the front-end make it all "just work" out of the box. > > Dan > > > -----Original Message----- > From: Paras pradhan [mailto:pradhanparas at gmail.com] > Sent: Thursday, March 15, 2012 4:02 PM > To: Nagios Users List > Subject: [Nagios-users] Recommendation needed > > Hi, > > We are planning to implement nagios with a graphing tool. I came > across nagiosgraph, php4nagios and munin. Among these which is > relatively easier to configure or are there other graphing tools that > is recommended?. and which one is popular among nagios users? > > Thanks > Paras. > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 dey.ranjib at gmail.com Fri Mar 16 04:20:12 2012 From: dey.ranjib at gmail.com (ranjib dey) Date: Thu, 15 Mar 2012 20:20:12 -0700 Subject: Recommendation needed In-Reply-To: References: <4288A518A157EC4C8873FEE74F778BF015377D@WPSDGQHH.OPR.STATEFARM.ORG> Message-ID: I'll strongly recommend Graphios+ Graphite. Its bit more work than pnp4nagios or nagiosgraph, bit its totally worth. You can compose custom graphs, overlay multiple graphs etc. Graphite is a graphing/charting solution, while graphios is the nagios add on that can parse nagios performance data and push it in graphite. On Thu, Mar 15, 2012 at 2:22 PM, Claudio Kuenzler wrote: > It depends on your own "skills". > If you know a little bit regex (regular expressions), then you're good > with Nagiosgraph. I couldn't live without it anymore. > PNP4Nagios is, as Daniel said, "just working" out of the box for many > plugins. But on the other hand with Nagiosgraph you're more flexible when > it comes to your own plugins or other special plugins. > Haven't tried munin myself. > > > On Thu, Mar 15, 2012 at 10:10 PM, Daniel Wittenberg < > daniel.wittenberg.r0ko at statefarm.com> wrote: > >> I like pnp4nagios, easy to integrate and flexible. Using it with >> multisite as the front-end make it all "just work" out of the box. >> >> Dan >> >> >> -----Original Message----- >> From: Paras pradhan [mailto:pradhanparas at gmail.com] >> Sent: Thursday, March 15, 2012 4:02 PM >> To: Nagios Users List >> Subject: [Nagios-users] Recommendation needed >> >> Hi, >> >> We are planning to implement nagios with a graphing tool. I came >> across nagiosgraph, php4nagios and munin. Among these which is >> relatively easier to configure or are there other graphing tools that >> is recommended?. and which one is popular among nagios users? >> >> Thanks >> Paras. >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Fri Mar 16 09:19:09 2012 From: pitchfork at ederdrom.de (Joerg Linge) Date: Fri, 16 Mar 2012 09:19:09 +0100 Subject: Recommendation needed In-Reply-To: References: <4288A518A157EC4C8873FEE74F778BF015377D@WPSDGQHH.OPR.STATEFARM.ORG> Message-ID: <99388195-4E48-4825-A992-D7BB1899A645@ederdrom.de> The next version on PNP4Nagios will be able to push data to Graphite. So you are able to use all PNP4Nagios internal functions + all available Graphite GUIs out there. I'am just working on that. Joerg Am 16.03.2012 um 04:20 schrieb ranjib dey: > I'll strongly recommend Graphios+ Graphite. Its bit more work than pnp4nagios or nagiosgraph, bit its totally worth. You can compose custom graphs, overlay multiple graphs etc. Graphite is a graphing/charting solution, while graphios is the nagios add on that can parse nagios performance data and push it in graphite. > > On Thu, Mar 15, 2012 at 2:22 PM, Claudio Kuenzler wrote: > It depends on your own "skills". > If you know a little bit regex (regular expressions), then you're good with Nagiosgraph. I couldn't live without it anymore. > PNP4Nagios is, as Daniel said, "just working" out of the box for many plugins. But on the other hand with Nagiosgraph you're more flexible when it comes to your own plugins or other special plugins. > Haven't tried munin myself. > > > On Thu, Mar 15, 2012 at 10:10 PM, Daniel Wittenberg wrote: > I like pnp4nagios, easy to integrate and flexible. Using it with multisite as the front-end make it all "just work" out of the box. > > Dan > > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Mar 16 11:05:59 2012 From: ae at op5.se (Andreas Ericsson) Date: Fri, 16 Mar 2012 11:05:59 +0100 Subject: service checks could not be rescheduled properly. In-Reply-To: References: Message-ID: <4F631087.8090000@op5.se> On 03/15/2012 11:31 AM, Julian_Grunnell at tdwh.co.uk wrote: > Anyone ... thought I'd go back to this. Does anyone have any ideas why I > would get the following in the Nagios logs: > > nagios-03-10-2012-00.log:[1331336760] Warning: Check of service 'DEAL > SERVER SERVICE TCP 4099' on host 'TDUKUBS01' could not be rescheduled > properly. Scheduling check for next week... > nagios-03-10-2012-00.log:[1331336760] Warning: Check of service 'DEAL > SERVER SERVICE TCP 4099' on host 'TDUKUBS02' could not be rescheduled > properly. Scheduling check for next week... > > As mentioed below, I've checked the config multiple times, I run 1100+ > service checks across 100+ hosts and just these two are causing a problem > - they differ in that they have specific time periods defined - all > detailed below. I've checked the various reports that NTP is at fault but > it made no difference at all. > >> define timeperiod{ >> timeperiod_name ubs4099hours >> alias UBS 4099 Dealserver Monitoring Hours >> monday 23:46-20:30 >> tuesday 23:46-20:30 >> wednesday 23:46-20:30 >> thursday 23:46-20:30 >> friday 23:46-20:30 >> } >> This timeperiod isn't valid. FROM 23:46 TO 20:30 on the same date, there is no time for any checks to be executed in. 00:00-20:30,23:46-00:00 should work better, unless you meant "20:30-23:46", but I guess you wouldn't have screwed it up if that's what you intended. hth -- 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. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Leo.Arnts at PinkRoccade.nl Fri Mar 16 10:31:54 2012 From: Leo.Arnts at PinkRoccade.nl (Arnts, Leo) Date: Fri, 16 Mar 2012 10:31:54 +0100 Subject: question about check results Message-ID: <2130C029DD8D0C45978C00437322541B3D06D40A@MB01-01.prhc.lan> Hello, I have a question Is it possible with a addon to calculated how much storage a group of servers is using for billing a customer? All server do have a nagios disk space check of the Windows C drive and Windows D drive and others. Regards, Leo Arnts Technisch Consultant ZorgComputerCentrum -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 wfournier at comscore.com Fri Mar 16 15:02:47 2012 From: wfournier at comscore.com (Fournier, Wim) Date: Fri, 16 Mar 2012 10:02:47 -0400 Subject: check_snmp -s (and -r) not working In-Reply-To: <9e1eda6536a2cd5f523f4aeba93f5423.squirrel@webmail.dd-b.net> References: <9e1eda6536a2cd5f523f4aeba93f5423.squirrel@webmail.dd-b.net> Message-ID: Don't know if you've solved this already. For integer values, I use -c x:x The regexp and string (-s) matches expect a string and return OK if otherwise. -- Wim Fournier Senior Technical Appl. Administrator | comScore, Inc. (NASDAQ:SCOR) t +31 (0)20 5195476 | f +31 (0)20 6953786 | w.fournier at nedstat.com ........................................................................... ............ comScore Measuring the Digital World Nedstat is now part of comScore www.comscore.com www.nedstat.nl On 2/20/12 11:29 PM, "David Dyer-Bennet" wrote: >Using check_snmp v1.4.15 (nagios-plugins 1.4.15) > >[ddb at prc-mn-lnx01 dev]$ /usr/lib64/nagios/plugins/check_snmp -H >192.168.1.254 -C XXXXXX -o 1.3.6.1.2.1.2.2.1.8.10125 -l ifOperStatus -s >"loser" -v >/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 192.168.1.254:161 >1.3.6.1.2.1.2.2.1.8.10125 >iso.3.6.1.2.1.2.2.1.8.10125 = INTEGER: 2 >SNMP OK - ifOperStatus 2 | ifOperStatus=2 > >I'm trying to check an OID value that isn't range-related, >ifOperStatus.. As you see, I'm getting back the enum value that >means "down". This does NOT in any way match the -s string I supplied. >I'm still getting an "OK" return value. > >(Obviously it's easy to wrap this with a script that finds the >"ifOperStatus=" and returns what I need. I'll do that if I have to.) > >But...am I misunderstanding what the -s switch does? Or is the -s switch >completely non-functional in this version? (I've read about a change >rolled back to restore 1.4.14 behavior, but I didn't read the description >as saying the string matching was completely non-functional before that.) > >I've also tried -r for regexps, same results; they seem to be completely >ignored. >-- >David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/ >Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ >Photos: http://dd-b.net/photography/gallery/ >Dragaera: http://dragaera.info > > >-------------------------------------------------------------------------- >---- >Try before you buy = See our experts in action! >The most comprehensive online learning library for Microsoft developers >is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >Metro Style Apps, more. Free future releases when you subscribe now! >http://p.sf.net/sfu/learndevnow-dev2 >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 5527 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 benny at bennyvision.com Fri Mar 16 19:40:39 2012 From: benny at bennyvision.com (C. Bensend) Date: Fri, 16 Mar 2012 13:40:39 -0500 Subject: Can someone at Nagios Enterprises please take a look at old.nagios.org? Message-ID: I've been trying to get to the external commands reference for several hours, keep getting "Error connecting to MySQL server"... Thanks! Benny -- "The problem with quotes on the internet is that it's very hard to verify their authenticity." -- Abraham Lincoln ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at claudiokuenzler.com Fri Mar 16 20:14:20 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Fri, 16 Mar 2012 20:14:20 +0100 Subject: Can someone at Nagios Enterprises please take a look at old.nagios.org? In-Reply-To: References: Message-ID: This one? http://nagios.sourceforge.net/docs/3_0/extcommands.html On Fri, Mar 16, 2012 at 7:40 PM, C. Bensend wrote: > > I've been trying to get to the external commands reference for several > hours, keep getting "Error connecting to MySQL server"... > > Thanks! > > Benny > > > -- > "The problem with quotes on the internet is that it's very hard to > verify their authenticity." -- Abraham Lincoln > > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 benny at bennyvision.com Fri Mar 16 20:29:25 2012 From: benny at bennyvision.com (C. Bensend) Date: Fri, 16 Mar 2012 14:29:25 -0500 Subject: Can someone at Nagios Enterprises please take a look at old.nagios.org? In-Reply-To: References: Message-ID: <5612dfc06e5ca19ee181b1f623413138.squirrel@webmail.stinkweasel.net> Nope, the actual list of commands linked at the bottom of that page. Benny > This one? > > http://nagios.sourceforge.net/docs/3_0/extcommands.html > > On Fri, Mar 16, 2012 at 7:40 PM, C. Bensend wrote: > >> >> I've been trying to get to the external commands reference for several >> hours, keep getting "Error connecting to MySQL server"... >> >> Thanks! >> >> Benny >> >> >> -- >> "The problem with quotes on the internet is that it's very hard to >> verify their authenticity." -- Abraham Lincoln >> >> >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 problem with quotes on the internet is that it's very hard to verify their authenticity." -- Abraham Lincoln ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mguthrie at nagios.com Fri Mar 16 20:34:35 2012 From: mguthrie at nagios.com (Mike Guthrie) Date: Fri, 16 Mar 2012 14:34:35 -0500 Subject: Can someone at Nagios Enterprises please take a look at old.nagios.org? In-Reply-To: References: Message-ID: <4F6395CB.3010109@nagios.com> We're in the process of transferring some of our domains to new servers / IP addresses as we speak. We'll have it back up and running ASAP. On 3/16/2012 1:40 PM, C. Bensend wrote: > I've been trying to get to the external commands reference for several > hours, keep getting "Error connecting to MySQL server"... > > Thanks! > > Benny > > -- Mike Guthrie Technical Team ___ Nagios Enterprises, LLC Email: mguthrie at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From egalstad at nagios.com Fri Mar 16 21:03:41 2012 From: egalstad at nagios.com (Ethan Galstad) Date: Fri, 16 Mar 2012 15:03:41 -0500 Subject: Can someone at Nagios Enterprises please take a look at old.nagios.org? In-Reply-To: <4F6395CB.3010109@nagios.com> References: <4F6395CB.3010109@nagios.com> Message-ID: <4F639C9D.4020003@nagios.com> Its fixed now. We moved our web server yesterday and missed transition credentials for one of the databases. Thanks for the note! Ethan Galstad Mike Guthrie wrote: > We're in the process of transferring some of our domains to new servers > / IP addresses as we speak. We'll have it back up and running ASAP. > > > > On 3/16/2012 1:40 PM, C. Bensend wrote: >> I've been trying to get to the external commands reference for several >> hours, keep getting "Error connecting to MySQL server"... >> >> Thanks! >> >> Benny >> >> > > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Timothy.Boyer at opm.gov Sun Mar 18 17:46:35 2012 From: Timothy.Boyer at opm.gov (Boyer, Timothy A.) Date: Sun, 18 Mar 2012 12:46:35 -0400 Subject: check_disk '/sys not accessable' In-Reply-To: References: <0F3D91EA70124C468301FF70A8ED16D40306564C31@BOYV7EXVS1.opm.gov> <4F59209C.7040107@maniladev.com> <0F3D91EA70124C468301FF70A8ED16D40306564C51@BOYV7EXVS1.opm.gov> <0F3D91EA70124C468301FF70A8ED16D40306564CCC@BOYV7EXVS1.opm.gov> Message-ID: <0F3D91EA70124C468301FF70A8ED16D40306564DA4@BOYV7EXVS1.opm.gov> diff shows the only difference is the '-x /sys /dev' on the one server. Removing that gives me as before: /usr/lib/nagios/plugins/check_nrpe -H sys1 -c check_all_disk 20% 10% DISK CRITICAL - /sys is not accessible: Permission denied but adding nagios to wheel, and changing the nrpe command to this: command[check_all_disk]=sudo /usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ results in something completely unexpected: /usr/lib/nagios/plugins/check_nrpe -H sys1 -c check_all_disk 20% 10% NRPE: Unable to read output From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] Sent: Monday, March 12, 2012 1:43 PM To: Nagios Users List Subject: Re: [Nagios-users] check_disk '/sys not accessable' Doing the next obvious thing and including /dev in the excludes works, and is a workaround. Good, but workarounds aren't that nice ;-) Before we think too far, could you make a diff of your different nrpe.cfg's? Maybe you include another file in which the command check_all_disk is defined a second time? That would be a simple explanation... What happens if you add a sudoers entry to allow the nagios user (or the user you're running the nrpe daemon as) to launch check_disk? Modify the check_command so you use sudo before the check_disk command. On Mon, Mar 12, 2012 at 6:32 PM, davor grgicevic > wrote: Hi Timothy localy u r workiong as root.. if you try as user Nagios, it wont work .. u have to run sudo for this "DISK CRITICAL - /dev/pts is not accessible: Permission denied" davor On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. > wrote: > $ ./check_disk -w 10% -c 5% -p /sys > > DISK UNKNOWN - free space:| > > > > is the result on both servers. > > > > But that's running locally, which works. The problem is when running via > nrpe. > > > > Running check_nrpe with -x /sys in the command line returns: > > > > DISK CRITICAL - /dev/pts is not accessible: Permission denied > > > > Doing the next obvious thing and including /dev in the excludes works, and > is a workaround. > > > > Thanks much... > > > > > > From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] > Sent: Friday, March 09, 2012 7:46 AM > To: Nagios Users List > > > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > > > Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do is > get a total disk space reading. > > > Well the systems are not identical as the manually launched plugin output of > yours shows: > > [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > > DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% > inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); > > > > [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% > DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% > inode=99%); /boot 387 MB (84% inode=99%); > > > Note the /home mount point. > > Have you checked the servers for the different mount points? It looks like > on server2 /sys is seen as a partition or mount point while on server1 the > check seems to "ignore" it successfully? Any idea why server2 thinks /sys is > a partition or mount point? > > Can you try to launch it specifically on /sys and output the results (on > both servers)? > > ./check_disk -w 10% -c 5% -p /sys > > Then try to exclude /sys from the check: > > ./check_disk -w 10% -c 5% -x /sys > > By the way the error you're seeing seems to be triggered from this code (at > the bottom of the source file): > > void > stat_path (struct parameter_list *p) > { > /* Stat entry to check that dir exists and is accessible */ > if (verbose >= 3) > printf("calling stat on %s\n", p->name); > if (stat (p->name, &stat_buf[0])) { > if (verbose >= 3) > printf("stat failed on %s\n", p->name); > printf("DISK %s - ", _("CRITICAL")); > die (STATE_CRITICAL, _("%s %s: %s\n"), p->name, _("is not accessible"), > strerror(errno)); > } > } > > > > On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. > > wrote: > > It's Permissive, so that can't be it. Thanks... > > > -----Original Message----- > From: Sigmund Brandstaetter [mailto:sb at maniladev.com] > Sent: Thursday, March 08, 2012 4:12 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk '/sys not accessable' > > Tim, > > How about SELinux, is it maybe on only on the one that is making the > problem? > > Cheers > Sigmund > > > > On 3/9/2012 00:49, Boyer, Timothy A. wrote: >> Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do >> is get a total disk space reading. So nrpe is running on both, with >> the identical command in nrpe.cfg: >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ >> -c $ARG2$ >> command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ >> -c $ARG2$ >> Running as user nagios from the central server. >> One works fine: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c >> check_all_disk -a 20% 10% >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% >> inode=99%); >> the other gives me this: >> -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c >> check_all_disk -a 20% 10% >> DISK CRITICAL - /sys is not accessible: Permission denied >> Identical versions of nrpe (2.12); a diff on check_disk shows they're >> both identical; both commands work correctly locally run as user Nagios: >> [nagios at server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% >> DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB >> (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% >> inode=99%); >> [nagios at server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% >> DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB >> (100% inode=99%); /boot 387 MB (84% inode=99%); >> Multiple other nrpe commands running on both; this is the only thing >> they're having problems with. >> /sys is user-readable in both. Logs show nothing. > >> I've run out of ideas. Pointers in the right direction appreciated... > >> Tim >> >> >> >> ------------------------------------------------------------------------------ >> Virtualization& Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > -- > --------------------- > Sigmund Brandstaetter > Check my Blog > Live from Manila > http://maniladev.com > --------------------- > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Julian_Grunnell at tdwh.co.uk Mon Mar 19 09:03:36 2012 From: Julian_Grunnell at tdwh.co.uk (Julian_Grunnell at tdwh.co.uk) Date: Mon, 19 Mar 2012 08:03:36 +0000 Subject: service checks could not be rescheduled properly. In-Reply-To: <4F631087.8090000@op5.se> References: <4F631087.8090000@op5.se> Message-ID: Julian Grunnell | Unix Analyst, Infrastructure | TD Direct Investing T: +44 (0) 113 346 2824 | M: +44 (0) 7889 352527 Andreas Ericsson 16/03/2012 10:14 Please respond to Nagios Users List To Nagios Users List cc Julian_Grunnell at tdwh.co.uk Subject Re: [Nagios-users] service checks could not be rescheduled properly. On 03/15/2012 11:31 AM, Julian_Grunnell at tdwh.co.uk wrote: > Anyone ... thought I'd go back to this. Does anyone have any ideas why I > would get the following in the Nagios logs: > > nagios-03-10-2012-00.log:[1331336760] Warning: Check of service 'DEAL > SERVER SERVICE TCP 4099' on host 'TDUKUBS01' could not be rescheduled > properly. Scheduling check for next week... > nagios-03-10-2012-00.log:[1331336760] Warning: Check of service 'DEAL > SERVER SERVICE TCP 4099' on host 'TDUKUBS02' could not be rescheduled > properly. Scheduling check for next week... > > As mentioed below, I've checked the config multiple times, I run 1100+ > service checks across 100+ hosts and just these two are causing a problem > - they differ in that they have specific time periods defined - all > detailed below. I've checked the various reports that NTP is at fault but > it made no difference at all. > >> define timeperiod{ >> timeperiod_name ubs4099hours >> alias UBS 4099 Dealserver Monitoring Hours >> monday 23:46-20:30 >> tuesday 23:46-20:30 >> wednesday 23:46-20:30 >> thursday 23:46-20:30 >> friday 23:46-20:30 >> } >> This timeperiod isn't valid. FROM 23:46 TO 20:30 on the same date, there is no time for any checks to be executed in. 00:00-20:30,23:46-00:00 should work better, unless you meant "20:30-23:46", but I guess you wouldn't have screwed it up if that's what you intended. hth -- Thanks Andreas - well your right, changed my times as above and the scheduling now works. tbh no idea why I thought it would work how I had it just didn't occur to me. So thanks again - happy now. J. ----------------------------------------------- Consider the environment: Please don't print this e-mail unless you really need to. Confidentiality:? This email and its attachments are intended for the above named only and may be confidential.? If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Viruses:? Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure that they are actually virus-free. Brokerage services provided by TD Direct Investing (Europe) Limited (a subsidiary of The Toronto-Dominion Bank).? Authorised and regulated by the Financial Services Authority (FSA registered number 141282), member of the London Stock Exchange and the PLUS market. Incorporated in England and Wales under registration number 2101863.? Registered office: Exchange Court, Duncombe Street, Leeds LS1 4AX.?Banking services provided by TD Bank N.V. authorised and regulated by De Nederlandsche Bank and the Financial Services Authority for UK Business (FSA registered number 216791).? Incorporated in the Netherlands and registered as a branch in England and Wales under branch registration number BR006780. ------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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.Morgan at iaea.org Mon Mar 19 08:56:36 2012 From: K.Morgan at iaea.org (K.Morgan at iaea.org) Date: Mon, 19 Mar 2012 07:56:36 +0000 Subject: notes field missing in hostgroups table in ndoutils Message-ID: <0356EBBE092D394F9291DA01E8D28EC2061EB215@sem002pd.sg.iaea.org> I am trying to build a custom component for nagios and I need to access the "notes" field from the hostgroup definitions, but when I make a backend call to the function get_xml_hostgroup_objects($args=null) found in /usr/local/nagiosxi/html/includes/utils-objects.inc.php, the notes field is not returned. I tried to modify the code to request the notes field, but the result was always blank. Upon further inspection I found that the notes field does not appear to even make it into the ndoutils database at all (see copy of mysql output below). Is there a way I can reconfigure nagios to put that information in the database for later retrieval? mysql> use nagios; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> desc nagios_hostgroups; +---------------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------------------+--------------+------+-----+---------+----------------+ | hostgroup_id | int(11) | NO | PRI | NULL | auto_increment | | instance_id | smallint(6) | NO | MUL | 0 | | | config_type | smallint(6) | NO | | 0 | | | hostgroup_object_id | int(11) | NO | | 0 | | | alias | varchar(255) | NO | | | | +---------------------+--------------+------+-----+---------+----------------+ 5 rows in set (0.00 sec) mysql> -- Keith S. Morgan Remote Monitoring Unit Safeguards, IAEA Vienna, Austria Office: +43 1 2600 26672 Handy: +43 699 165 26672 k.morgan at iaea.org This email message is intended only for the use of the named recipient. Information contained in this email message and its attachments may be privileged, confidential and protected from disclosure. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others. Also please notify the sender by replying to this message and then delete it from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 wolf.halton at gmail.com Mon Mar 19 15:37:12 2012 From: wolf.halton at gmail.com (Wolf Halton) Date: Mon, 19 Mar 2012 10:37:12 -0400 Subject: Root_partition check not reading correctly In-Reply-To: References: Message-ID: I am not sure how I am launching the service, which I admit is bad, but I inherited the setup. I am not sure if it ever worked properly, because it took a catastrophic rampant application running amok, spewing 9GB files to clue me in. I am running nagios 3.3.1 and nagios-plugins 1.4.15 the application is check_local_disk but I think that must have been a check from the previous nagios the one in libexec is check_disk so I tried [code] define service{ use local-service host_name LTS-MASTERKEY-000 service_description Root Partition check_command check_disk -w 20% -c 10% --path=/ notifications_enabled 1 max_check_attempts 3 check_interval 5 retry_interval 3 check_period 24x7 notification_interval 15 notification_period 24x7 notification_options w,c,r contact_groups admins } [/code] and nagios will not start - says there is a configuration error On Fri, Mar 9, 2012 at 7:49 AM, Claudio Kuenzler wrote: > Please show the service definition. > How do you launch the check? By ssh, by nrpe? > > Seems you're using the same IP address or dns name as the hostname value. > Can you verify this? > > On Fri, Mar 9, 2012 at 1:19 PM, Wolf Halton wrote: >> >> All my machines show a similar output, regardless of how much is >> available on their root partitions. >> >> >> Root Partition >> >> ? ? ? ?OK ? ? ?03-09-2012 07:11:08 ? ? 28d 22h 18m 15s ? ? ? ? 1/3 >> DISK OK - free space: >> / 15903 MB (86% inode=93%): >> >> Up to and including ones that are 100% full. No alarms - ever. ?Is a >> client app needed on the monitored clients that has not been >> mentioned? >> >> -Wolf >> >> >> -- >> This Apt Has Super Cow Powers - http://sourcefreedom.com >> Advancing Libraries Together - http://LYRASIS.org >> >> >> ------------------------------------------------------------------------------ >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries Together - http://LYRASIS.org ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wolf.halton at gmail.com Mon Mar 19 16:27:26 2012 From: wolf.halton at gmail.com (Wolf Halton) Date: Mon, 19 Mar 2012 11:27:26 -0400 Subject: Root_partition check not reading correctly In-Reply-To: References: Message-ID: I found it check_command check_disk! -w 20% -c 10% --path=/ It was missing the "!" Thanks for helping me sort it out. Wolf On Mon, Mar 19, 2012 at 10:37 AM, Wolf Halton wrote: > I am not sure how I am launching the service, which I admit is bad, > but I inherited the setup. > I am not sure if it ever worked properly, because it took a > catastrophic rampant application running amok, spewing 9GB files to > clue me in. > I am running nagios 3.3.1 and nagios-plugins 1.4.15 > the application is check_local_disk > but I think that must have been a check from the previous nagios > the one in libexec is check_disk > so I tried > [code] > define service{ > ? ? ? ?use ? ? ? ? ? ? ? ? ? ? ? ? ? ? local-service > ? ? ? ?host_name ? ? ? ? ? ? ? ? ? ? ? LTS-MASTERKEY-000 > ? ? ? ?service_description ? ? ? ? ? ? Root Partition > ? ? ? ?check_command ? ? ? ? ? ? ? ? ? check_disk -w 20% -c 10% --path=/ > ? ? ? ?notifications_enabled ? ? ? ? ? 1 > ? ? ? ?max_check_attempts ? ? ? ? ? ? ?3 > ? ? ? ?check_interval ? ? ? ? ? ? ? ? ?5 > ? ? ? ?retry_interval ? ? ? ? ? ? ? ? ?3 > ? ? ? ?check_period ? ? ? ? ? ? ? ? ? ?24x7 > ? ? ? ?notification_interval ? ? ? ? ? 15 > ? ? ? ?notification_period ? ? ? ? ? ? 24x7 > ? ? ? ?notification_options ? ? ? ? ? ?w,c,r > ? ? ? ?contact_groups ? ? ? ? ? ? ? ? ?admins > ? ? ? ?} > [/code] > > and nagios will not start - says there is a configuration error > > On Fri, Mar 9, 2012 at 7:49 AM, Claudio Kuenzler wrote: >> Please show the service definition. >> How do you launch the check? By ssh, by nrpe? >> >> Seems you're using the same IP address or dns name as the hostname value. >> Can you verify this? >> >> On Fri, Mar 9, 2012 at 1:19 PM, Wolf Halton wrote: >>> >>> All my machines show a similar output, regardless of how much is >>> available on their root partitions. >>> >>> >>> Root Partition >>> >>> ? ? ? ?OK ? ? ?03-09-2012 07:11:08 ? ? 28d 22h 18m 15s ? ? ? ? 1/3 >>> DISK OK - free space: >>> / 15903 MB (86% inode=93%): >>> >>> Up to and including ones that are 100% full. No alarms - ever. ?Is a >>> client app needed on the monitored clients that has not been >>> mentioned? >>> >>> -Wolf >>> >>> >>> -- >>> This Apt Has Super Cow Powers - http://sourcefreedom.com >>> Advancing Libraries Together - http://LYRASIS.org >>> >>> >>> ------------------------------------------------------------------------------ >>> Virtualization & Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >> >> >> >> ------------------------------------------------------------------------------ >> Virtualization & Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 Apt Has Super Cow Powers - http://sourcefreedom.com > Advancing Libraries Together - http://LYRASIS.org -- This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries Together - http://LYRASIS.org ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wolf.halton at gmail.com Mon Mar 19 17:49:30 2012 From: wolf.halton at gmail.com (Wolf Halton) Date: Mon, 19 Mar 2012 12:49:30 -0400 Subject: Root_partition check not reading correctly In-Reply-To: References: Message-ID: More stuff I am in commands.cfg and added check_disk as a command to check discks on the remote server as well as check_local_disk, which I understand to be about checking the nagios server disk. [code] define command{ command_name check_local_disk command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ } define command{ command_name check_disk command_line $USER1$/check_disc -w $ARGS$ -c $ARGS$ -p $ARGS$ #command_line $USER1$/check_disc } The front-end error is now "(Return code of 127 is out of bounds - plugin may be missing) " On Mon, Mar 19, 2012 at 11:27 AM, Wolf Halton wrote: > I found it > ?check_command ? ? ? ? ? ? ? ? ? check_disk! -w 20% -c 10% --path=/ > It was missing the "!" > > Thanks for helping me sort it out. > > Wolf > > On Mon, Mar 19, 2012 at 10:37 AM, Wolf Halton wrote: >> I am not sure how I am launching the service, which I admit is bad, >> but I inherited the setup. >> I am not sure if it ever worked properly, because it took a >> catastrophic rampant application running amok, spewing 9GB files to >> clue me in. >> I am running nagios 3.3.1 and nagios-plugins 1.4.15 >> the application is check_local_disk >> but I think that must have been a check from the previous nagios >> the one in libexec is check_disk >> so I tried >> [code] >> define service{ >> ? ? ? ?use ? ? ? ? ? ? ? ? ? ? ? ? ? ? local-service >> ? ? ? ?host_name ? ? ? ? ? ? ? ? ? ? ? LTS-MASTERKEY-000 >> ? ? ? ?service_description ? ? ? ? ? ? Root Partition >> ? ? ? ?check_command ? ? ? ? ? ? ? ? ? check_disk -w 20% -c 10% --path=/ >> ? ? ? ?notifications_enabled ? ? ? ? ? 1 >> ? ? ? ?max_check_attempts ? ? ? ? ? ? ?3 >> ? ? ? ?check_interval ? ? ? ? ? ? ? ? ?5 >> ? ? ? ?retry_interval ? ? ? ? ? ? ? ? ?3 >> ? ? ? ?check_period ? ? ? ? ? ? ? ? ? ?24x7 >> ? ? ? ?notification_interval ? ? ? ? ? 15 >> ? ? ? ?notification_period ? ? ? ? ? ? 24x7 >> ? ? ? ?notification_options ? ? ? ? ? ?w,c,r >> ? ? ? ?contact_groups ? ? ? ? ? ? ? ? ?admins >> ? ? ? ?} >> [/code] >> >> and nagios will not start - says there is a configuration error >> >> On Fri, Mar 9, 2012 at 7:49 AM, Claudio Kuenzler wrote: >>> Please show the service definition. >>> How do you launch the check? By ssh, by nrpe? >>> >>> Seems you're using the same IP address or dns name as the hostname value. >>> Can you verify this? >>> >>> On Fri, Mar 9, 2012 at 1:19 PM, Wolf Halton wrote: >>>> >>>> All my machines show a similar output, regardless of how much is >>>> available on their root partitions. >>>> >>>> >>>> Root Partition >>>> >>>> ? ? ? ?OK ? ? ?03-09-2012 07:11:08 ? ? 28d 22h 18m 15s ? ? ? ? 1/3 >>>> DISK OK - free space: >>>> / 15903 MB (86% inode=93%): >>>> >>>> Up to and including ones that are 100% full. No alarms - ever. ?Is a >>>> client app needed on the monitored clients that has not been >>>> mentioned? >>>> >>>> -Wolf >>>> >>>> >>>> -- >>>> This Apt Has Super Cow Powers - http://sourcefreedom.com >>>> Advancing Libraries Together - http://LYRASIS.org >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Virtualization & Cloud Management Using Capacity Planning >>>> Cloud computing makes use of virtualization - but cloud computing >>>> also focuses on allowing computing to be delivered as a service. >>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: Please include Nagios version, plugin version (-v) and OS when >>>> reporting any issue. >>>> ::: Messages without supporting info will risk being sent to /dev/null >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Virtualization & Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: 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 Apt Has Super Cow Powers - http://sourcefreedom.com >> Advancing Libraries Together - http://LYRASIS.org > > > > -- > This Apt Has Super Cow Powers - http://sourcefreedom.com > Advancing Libraries Together - http://LYRASIS.org -- This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries Together - http://LYRASIS.org ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at fulgent.co.uk Mon Mar 19 18:31:30 2012 From: andrew at fulgent.co.uk (Andrew Thompson) Date: Mon, 19 Mar 2012 17:31:30 +0000 Subject: Root_partition check not reading correctly In-Reply-To: References: Message-ID: Check out the command lines and the way you are spelling disk/disc as you have 2 different spellings. command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ command_line $USER1$/check_disc -w $ARGS$ -c $ARGS$ -p $ARGS$ Check the actual name of the file in the libexec folder. Also what is $ARGS$ shouldn?t it be a $ARGnumber$ as you correctly have in the top example? -----Original Message----- From: Wolf Halton [mailto:wolf.halton at gmail.com] Sent: 19 March 2012 16:50 To: Nagios Users List Subject: Re: [Nagios-users] Root_partition check not reading correctly More stuff I am in commands.cfg and added check_disk as a command to check discks on the remote server as well as check_local_disk, which I understand to be about checking the nagios server disk. [code] define command{ command_name check_local_disk command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ } define command{ command_name check_disk command_line $USER1$/check_disc -w $ARGS$ -c $ARGS$ -p $ARGS$ #command_line $USER1$/check_disc } The front-end error is now "(Return code of 127 is out of bounds - plugin may be missing) " On Mon, Mar 19, 2012 at 11:27 AM, Wolf Halton wrote: > I found it > ?check_command ? ? ? ? ? ? ? ? ? check_disk! -w 20% -c 10% --path=/ It > was missing the "!" > > Thanks for helping me sort it out. > > Wolf > > On Mon, Mar 19, 2012 at 10:37 AM, Wolf Halton wrote: >> I am not sure how I am launching the service, which I admit is bad, >> but I inherited the setup. >> I am not sure if it ever worked properly, because it took a >> catastrophic rampant application running amok, spewing 9GB files to >> clue me in. >> I am running nagios 3.3.1 and nagios-plugins 1.4.15 the application >> is check_local_disk but I think that must have been a check from the >> previous nagios the one in libexec is check_disk so I tried [code] >> define service{ >> ? ? ? ?use ? ? ? ? ? ? ? ? ? ? ? ? ? ? local-service >> ? ? ? ?host_name ? ? ? ? ? ? ? ? ? ? ? LTS-MASTERKEY-000 >> ? ? ? ?service_description ? ? ? ? ? ? Root Partition >> ? ? ? ?check_command ? ? ? ? ? ? ? ? ? check_disk -w 20% -c 10% >> --path=/ >> ? ? ? ?notifications_enabled ? ? ? ? ? 1 >> ? ? ? ?max_check_attempts ? ? ? ? ? ? ?3 >> ? ? ? ?check_interval ? ? ? ? ? ? ? ? ?5 >> ? ? ? ?retry_interval ? ? ? ? ? ? ? ? ?3 >> ? ? ? ?check_period ? ? ? ? ? ? ? ? ? ?24x7 >> ? ? ? ?notification_interval ? ? ? ? ? 15 >> ? ? ? ?notification_period ? ? ? ? ? ? 24x7 >> ? ? ? ?notification_options ? ? ? ? ? ?w,c,r >> ? ? ? ?contact_groups ? ? ? ? ? ? ? ? ?admins >> ? ? ? ?} >> [/code] >> >> and nagios will not start - says there is a configuration error >> >> On Fri, Mar 9, 2012 at 7:49 AM, Claudio Kuenzler wrote: >>> Please show the service definition. >>> How do you launch the check? By ssh, by nrpe? >>> >>> Seems you're using the same IP address or dns name as the hostname value. >>> Can you verify this? >>> >>> On Fri, Mar 9, 2012 at 1:19 PM, Wolf Halton wrote: >>>> >>>> All my machines show a similar output, regardless of how much is >>>> available on their root partitions. >>>> >>>> >>>> Root Partition >>>> >>>> ? ? ? ?OK ? ? ?03-09-2012 07:11:08 ? ? 28d 22h 18m 15s ? ? ? ? 1/3 >>>> DISK OK - free space: >>>> / 15903 MB (86% inode=93%): >>>> >>>> Up to and including ones that are 100% full. No alarms - ever. ?Is >>>> a client app needed on the monitored clients that has not been >>>> mentioned? >>>> >>>> -Wolf >>>> >>>> >>>> -- >>>> This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing >>>> Libraries Together - http://LYRASIS.org >>>> >>>> >>>> ------------------------------------------------------------------- >>>> ----------- Virtualization & Cloud Management Using Capacity >>>> Planning Cloud computing makes use of virtualization - but cloud >>>> computing also focuses on allowing computing to be delivered as a >>>> service. >>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: Please include Nagios version, plugin version (-v) and OS when >>>> reporting any issue. >>>> ::: Messages without supporting info will risk being sent to >>>> /dev/null >>> >>> >>> >>> -------------------------------------------------------------------- >>> ---------- Virtualization & Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: 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 Apt Has Super Cow Powers - http://sourcefreedom.com Advancing >> Libraries Together - http://LYRASIS.org > > > > -- > This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing > Libraries Together - http://LYRASIS.org -- This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries Together - http://LYRASIS.org ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wolf.halton at gmail.com Mon Mar 19 20:28:04 2012 From: wolf.halton at gmail.com (Wolf Halton) Date: Mon, 19 Mar 2012 15:28:04 -0400 Subject: Root_partition check not reading correctly In-Reply-To: References: Message-ID: I checked that, and I had made that error, however when I fixed that error, I still have a reading only from the nagios server rather than the masterkey server ------- In my spare time, I found "check_by_ssh and added that to the commands.cfg and its's counterpart lines in my service definitions for that server. The error there is that the -H $HOSTNAME$ that is suggested in "check_by_ssh" is wanting a FQDN or an IP address. It says the hostname is invalid (and it is) Remote Root Partition UNKNOWN 03-19-2012 14:58:39 0d 0h 6m 51s 3/3 check_by_ssh: Invalid hostname/address - LTS-MASTERKEY-000 I changed $HOSTNAME$ to $HOSTADDRESS$ which gives me an access denied error, so at least the system is believing in the HOSTADDRESS Remote Root Partition UNKNOWN 03-19-2012 15:16:56 0d 0h 27m 11s 3/3 Remote command execution failed: Permission denied, please try again. Running direct gets me a real answer: # /usr/local/nagios/libexec/check_by_ssh -H 192.168.10.160 /nagios/check_diskfree.sh sda2 70 90 OK. Free Space: 24GB, 95% What user is the thing expecting? On Mon, Mar 19, 2012 at 1:31 PM, Andrew Thompson wrote: > Check out the command lines and the way you are spelling disk/disc as you have 2 different spellings. > > command_line ? ?$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ > > command_line ? ?$USER1$/check_disc -w $ARGS$ -c $ARGS$ -p $ARGS$ > > Check the actual name of the file in the libexec folder. > > Also what is $ARGS$ shouldn?t it be a $ARGnumber$ as you correctly have in the top example? > > > -----Original Message----- > From: Wolf Halton [mailto:wolf.halton at gmail.com] > Sent: 19 March 2012 16:50 > To: Nagios Users List > Subject: Re: [Nagios-users] Root_partition check not reading correctly > > More stuff > I am in commands.cfg and added > > check_disk as a command to check discks on the remote server as well as check_local_disk, which I understand to be about checking the nagios server disk. > > [code] > define command{ > ? ? ? ?command_name ? ?check_local_disk > ? ? ? ?command_line ? ?$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ > ? ? ? ?} > > define command{ > ? ? ? ?command_name ? ?check_disk > ? ? ? ?command_line ? ?$USER1$/check_disc -w $ARGS$ -c $ARGS$ -p $ARGS$ > ? ? ? ?#command_line ? $USER1$/check_disc > ? ? ? } > > The front-end error is now > "(Return code of 127 is out of bounds - plugin may be missing) " > > > > On Mon, Mar 19, 2012 at 11:27 AM, Wolf Halton wrote: >> I found it >> ?check_command ? ? ? ? ? ? ? ? ? check_disk! -w 20% -c 10% --path=/ It >> was missing the "!" >> >> Thanks for helping me sort it out. >> >> Wolf >> >> On Mon, Mar 19, 2012 at 10:37 AM, Wolf Halton wrote: >>> I am not sure how I am launching the service, which I admit is bad, >>> but I inherited the setup. >>> I am not sure if it ever worked properly, because it took a >>> catastrophic rampant application running amok, spewing 9GB files to >>> clue me in. >>> I am running nagios 3.3.1 and nagios-plugins 1.4.15 the application >>> is check_local_disk but I think that must have been a check from the >>> previous nagios the one in libexec is check_disk so I tried [code] >>> define service{ >>> ? ? ? ?use ? ? ? ? ? ? ? ? ? ? ? ? ? ? local-service >>> ? ? ? ?host_name ? ? ? ? ? ? ? ? ? ? ? LTS-MASTERKEY-000 >>> ? ? ? ?service_description ? ? ? ? ? ? Root Partition >>> ? ? ? ?check_command ? ? ? ? ? ? ? ? ? check_disk -w 20% -c 10% >>> --path=/ >>> ? ? ? ?notifications_enabled ? ? ? ? ? 1 >>> ? ? ? ?max_check_attempts ? ? ? ? ? ? ?3 >>> ? ? ? ?check_interval ? ? ? ? ? ? ? ? ?5 >>> ? ? ? ?retry_interval ? ? ? ? ? ? ? ? ?3 >>> ? ? ? ?check_period ? ? ? ? ? ? ? ? ? ?24x7 >>> ? ? ? ?notification_interval ? ? ? ? ? 15 >>> ? ? ? ?notification_period ? ? ? ? ? ? 24x7 >>> ? ? ? ?notification_options ? ? ? ? ? ?w,c,r >>> ? ? ? ?contact_groups ? ? ? ? ? ? ? ? ?admins >>> ? ? ? ?} >>> [/code] >>> >>> and nagios will not start - says there is a configuration error >>> >>> On Fri, Mar 9, 2012 at 7:49 AM, Claudio Kuenzler wrote: >>>> Please show the service definition. >>>> How do you launch the check? By ssh, by nrpe? >>>> >>>> Seems you're using the same IP address or dns name as the hostname value. >>>> Can you verify this? >>>> >>>> On Fri, Mar 9, 2012 at 1:19 PM, Wolf Halton wrote: >>>>> >>>>> All my machines show a similar output, regardless of how much is >>>>> available on their root partitions. >>>>> >>>>> >>>>> Root Partition >>>>> >>>>> ? ? ? ?OK ? ? ?03-09-2012 07:11:08 ? ? 28d 22h 18m 15s ? ? ? ? 1/3 >>>>> DISK OK - free space: >>>>> / 15903 MB (86% inode=93%): >>>>> >>>>> Up to and including ones that are 100% full. No alarms - ever. ?Is >>>>> a client app needed on the monitored clients that has not been >>>>> mentioned? >>>>> >>>>> -Wolf >>>>> >>>>> >>>>> -- >>>>> This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing >>>>> Libraries Together - http://LYRASIS.org >>>>> >>>>> >>>>> ------------------------------------------------------------------- >>>>> ----------- Virtualization & Cloud Management Using Capacity >>>>> Planning Cloud computing makes use of virtualization - but cloud >>>>> computing also focuses on allowing computing to be delivered as a >>>>> service. >>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>>> _______________________________________________ >>>>> Nagios-users mailing list >>>>> Nagios-users at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> ::: Please include Nagios version, plugin version (-v) and OS when >>>>> reporting any issue. >>>>> ::: Messages without supporting info will risk being sent to >>>>> /dev/null >>>> >>>> >>>> >>>> -------------------------------------------------------------------- >>>> ---------- Virtualization & Cloud Management Using Capacity Planning >>>> Cloud computing makes use of virtualization - but cloud computing >>>> also focuses on allowing computing to be delivered as a service. >>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: 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 Apt Has Super Cow Powers - http://sourcefreedom.com Advancing >>> Libraries Together - http://LYRASIS.org >> >> >> >> -- >> This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing >> Libraries Together - http://LYRASIS.org > > > > -- > This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries Together - http://LYRASIS.org > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries Together - http://LYRASIS.org ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Manish_Kmr at mahindrasatyam.com Tue Mar 20 06:00:45 2012 From: Manish_Kmr at mahindrasatyam.com (Manish_Kmr) Date: Tue, 20 Mar 2012 05:00:45 +0000 Subject: Commenting in host and service config file....... Message-ID: Hi List, Actually I am using Nagios since a long but still I am not sure of one thing how can I comment some lines in nagios host and service config files. For example:- define service { host_name localhost service_description NPCD status use local-service check_command check_local_npcd!1:1!npcd! max_check_attempts 2 check_interval 5 retry_interval 1 #event_handler restart-npcd notification_interval 15 contact_groups admins register 1 } Will it work like this... Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 ck at claudiokuenzler.com Tue Mar 20 07:56:59 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Tue, 20 Mar 2012 07:56:59 +0100 Subject: Commenting in host and service config file....... In-Reply-To: References: Message-ID: Yep, that works. On Tue, Mar 20, 2012 at 6:00 AM, Manish_Kmr wrote: > Hi List, > > > > Actually I am using Nagios since a long but still I am not sure of one > thing how can I comment some lines in nagios host and service config files. > For example:- > > > > > > define service { > > host_name localhost > > service_description NPCD status > > use local-service > > check_command check_local_npcd!1:1!npcd! > > max_check_attempts 2 > > check_interval 5 > > retry_interval 1 > > * #event_handler restart-npcd* > > notification_interval 15 > > contact_groups admins > > register 1 > > } > > > > Will it work like this? > > > > Thanks, > > Manish Kumar > > Open Source Tools Team, IMS, Mahindra Satyam > > Mob: +919035435306 > > > > ------------------------------ > > DISCLAIMER: > This email (including any attachments) is intended for the sole use of the > intended recipient/s and may contain material that is CONFIDENTIAL AND > PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or > distribution or forwarding of any or all of the contents in this message is > STRICTLY PROHIBITED. If you are not the intended recipient, please contact > the sender by email and delete all copies; your cooperation in this regard > is appreciated. > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Manish_Kmr at mahindrasatyam.com Tue Mar 20 09:56:12 2012 From: Manish_Kmr at mahindrasatyam.com (Manish_Kmr) Date: Tue, 20 Mar 2012 08:56:12 +0000 Subject: Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios Message-ID: Dear List, Can Nagios help me in monitoring vpn tunnels on network devices and what type of information I can get while monitoring the same and can I monitor things like application firewall and hardware firewalls using nagios. Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 flatto.net Tue Mar 20 10:26:22 2012 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 20 Mar 2012 09:26:22 +0000 Subject: Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios In-Reply-To: References: Message-ID: <4F684D3E.8000200@flatto.net> On 20/03/12 08:56, Manish_Kmr wrote: > > Dear List, > > Can Nagios help me in monitoring vpn tunnels on network devices and > what type of information I can get while monitoring the same and can I > monitor things like application firewall and hardware firewalls using > nagios. > > Thanks, > > Manish Kumar > > Open Source Tools Team, IMS, Mahindra Satyam > > Mob: +919035435306 > > > ------------------------------------------------------------------------ > You may want to look on the nagiosexchange site : https://www.monitoringexchange.org/search?query=vpn if these match what you need I am not sure , but they might give you a hint on how to go on checking what you want. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 ae at op5.se Tue Mar 20 11:08:49 2012 From: ae at op5.se (Andreas Ericsson) Date: Tue, 20 Mar 2012 11:08:49 +0100 Subject: Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios In-Reply-To: References: Message-ID: <4F685731.2050704@op5.se> On 03/20/2012 09:56 AM, Manish_Kmr wrote: > Dear List, > > Can Nagios help me in monitoring vpn tunnels on network devices Yes. > what type of information I can get while monitoring the same A lot. > can I monitor things like application firewall and hardware > firewalls using nagios. > Yes. > Thanks, You're welcome. -- 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. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Manish_Kmr at mahindrasatyam.com Tue Mar 20 11:11:33 2012 From: Manish_Kmr at mahindrasatyam.com (Manish_Kmr) Date: Tue, 20 Mar 2012 10:11:33 +0000 Subject: Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios In-Reply-To: <4F685731.2050704@op5.se> References: <4F685731.2050704@op5.se> Message-ID: Hi Andreas, How ???? Are there some popular plug-ins available which I can refer to for monitoring these kind of information. Thanks, Manish Kumar -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, March 20, 2012 3:39 PM To: Nagios Users List Cc: Manish_Kmr Subject: Re: [Nagios-users] Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios On 03/20/2012 09:56 AM, Manish_Kmr wrote: > Dear List, > > Can Nagios help me in monitoring vpn tunnels on network devices Yes. > what type of information I can get while monitoring the same A lot. > can I monitor things like application firewall and hardware firewalls > using nagios. > Yes. > Thanks, You're welcome. -- 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. ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Mar 20 11:36:54 2012 From: ae at op5.se (Andreas Ericsson) Date: Tue, 20 Mar 2012 11:36:54 +0100 Subject: Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios In-Reply-To: References: <4F685731.2050704@op5.se> Message-ID: <4F685DC6.9030400@op5.se> On 03/20/2012 11:11 AM, Manish_Kmr wrote: > Hi Andreas, > > How ???? By using the appropriate plugins and configuration. >Are there some popular plug-ins available which I can refer to for monitoring these kind of information. > Almost certainly. I usually try google.com first when I'm looking for answers. It's really an amazing source of information that doesn't force anyone else to do my homework for me. You should try it some time too. I'm sure you'll absolutely LOVE it!!! On a more serious note; Stop being such a lazy arse and start asking questions about specific problems you've encountered *while doing some work yourself* and you might actually get some useful answers. -- 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. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Manish_Kmr at mahindrasatyam.com Tue Mar 20 11:47:39 2012 From: Manish_Kmr at mahindrasatyam.com (Manish_Kmr) Date: Tue, 20 Mar 2012 10:47:39 +0000 Subject: Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios In-Reply-To: <4F685DC6.9030400@op5.se> References: <4F685731.2050704@op5.se> <4F685DC6.9030400@op5.se> Message-ID: Anyways thanks for the suggestions...... already looked on Google and I too LOVE it as you, but didn't find any plug-in that will exactly meet the requirements. Thanks. Please also assume that Google is quite reachable and people might have tried before coming here for some good suggestions and anyways not forcing any particular to answer me. I believed this is all users mailing list and not limited to some particular ones. Thanks, Manish Kumar -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Tuesday, March 20, 2012 4:07 PM To: Manish_Kmr Cc: Nagios Users List Subject: Re: [Nagios-users] Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios On 03/20/2012 11:11 AM, Manish_Kmr wrote: > Hi Andreas, > > How ???? By using the appropriate plugins and configuration. >Are there some popular plug-ins available which I can refer to for monitoring these kind of information. > Almost certainly. I usually try google.com first when I'm looking for answers. It's really an amazing source of information that doesn't force anyone else to do my homework for me. You should try it some time too. I'm sure you'll absolutely LOVE it!!! On a more serious note; Stop being such a lazy arse and start asking questions about specific problems you've encountered *while doing some work yourself* and you might actually get some useful answers. -- 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. ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jatin_kumar.davey at alcatel-lucent.com Tue Mar 20 13:53:33 2012 From: jatin_kumar.davey at alcatel-lucent.com (Davey, Jatin Kumar (Jatin Kumar)) Date: Tue, 20 Mar 2012 18:23:33 +0530 Subject: check_snmp (External Command Error) Message-ID: Hi All I have the latest stable version of Nagios Core and Nagios Plugins installed in a CentOS 6.2 machine. While using the check_snmp in my object files I am getting the following error in the UI: External command error: snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable) Text in the host file where I have defined the service is: define service{ host_name Dslam-XXX service_description XXXX:1-1-5-1 check_command check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx max_check_attempts 5 check_interval 1 retry_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 contact_groups admins } Text in the commands file for the above used custom command is: define command{ command_name check_xdsl_line command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -c 1 } Please let me know how to solve this issue. Thanks Jatin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 jatin_kumar.davey at alcatel-lucent.com Tue Mar 20 13:58:56 2012 From: jatin_kumar.davey at alcatel-lucent.com (Davey, Jatin Kumar (Jatin Kumar)) Date: Tue, 20 Mar 2012 18:28:56 +0530 Subject: check_snmp (External Command Error) In-Reply-To: References: Message-ID: Want to add one more information , the same command if I try using the plugin present in the libexec directory works fine. Thanks Jatin ________________________________ From: Davey, Jatin Kumar (Jatin Kumar) [mailto:jatin_kumar.davey at alcatel-lucent.com] Sent: Tuesday, March 20, 2012 6:24 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_snmp (External Command Error) Hi All I have the latest stable version of Nagios Core and Nagios Plugins installed in a CentOS 6.2 machine. While using the check_snmp in my object files I am getting the following error in the UI: External command error: snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable) Text in the host file where I have defined the service is: define service{ host_name Dslam-XXX service_description XXXX:1-1-5-1 check_command check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx max_check_attempts 5 check_interval 1 retry_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 contact_groups admins } Text in the commands file for the above used custom command is: define command{ command_name check_xdsl_line command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -c 1 } Please let me know how to solve this issue. Thanks Jatin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Ollie.Campbell at bbh.co.uk Tue Mar 20 15:00:57 2012 From: Ollie.Campbell at bbh.co.uk (Ollie Campbell) Date: Tue, 20 Mar 2012 14:00:57 +0000 Subject: CheckSchedTask problems Message-ID: Hello, I've setup NRPE to check that scheduled tasks are running without error on a Windows 2008 R2 64bit server. I'm running into these two bugs: http://www.nsclient.com/nscp/ticket/411 http://www.nsclient.com/nscp/ticket/444 Is there another way to monitor scheduled tasks until these are fixed? -- Ollie Campbell * 60 Kingly Street, London, W1B 5DS* D: +44 20 7453 4930 M: +44 7584 518539 www.bartleboglehegarty.com This transmission is from BBH Partners LLP, it is confidential and intended solely for the person or organisation to whom it is addressed. This transmission may contain confidential information within its content or any attachment. You should not copy, use or distribute in any way any of the information contained within this transmission other than in accordance with the prior written permission of an authorised BBH representative. Partnership Information: Registered name: BBH Partners LLP Registered office: 60 Kingly Street London W1B 5DS Place of registration: England and Wales Registered number: OC355051 Although all messages/file attachments passing through this gateway are scanned for viruses we cannot guarantee that any file is 100% virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 flatto.net Tue Mar 20 15:11:04 2012 From: nagios at flatto.net (Assaf Flatto) Date: Tue, 20 Mar 2012 14:11:04 +0000 Subject: CheckSchedTask problems In-Reply-To: References: Message-ID: <4F688FF8.8060807@flatto.net> On 20/03/12 14:00, Ollie Campbell wrote: > Hello, > > I've setup NRPE to check that scheduled tasks are running without > error on a Windows 2008 R2 64bit server. I'm running into these two bugs: > > http://www.nsclient.com/nscp/ticket/411 > http://www.nsclient.com/nscp/ticket/444 > > Is there another way to monitor scheduled tasks until these are fixed? > > -- > Ollie Campbell > > *60 Kingly Street, London, W1B 5DS* > D: +44 20 7453 4930 > M: +44 7584 518539 > > www.bartleboglehegarty.com > > I seem to remember something i used in the passed , but i am not sure it will help you. Instead of trying to monitor the task itself , we monitored the event log to the output of the task itself , granted it was a while back and the windows platform was 2000 server , so things might have changed since then, but that might be a work around for you . -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 rjm399 at nyu.edu Tue Mar 20 15:14:52 2012 From: rjm399 at nyu.edu (Robert J Molerio) Date: Tue, 20 Mar 2012 10:14:52 -0400 Subject: nagios xi active directory agent Message-ID: Anyone have the quck setup for getting the AD agent to talk to an AD server? -- Thank you, Bob Molerio Systems Administrator New York University ITS Computer Facilities Services/Infrastructure Level C-2 75 Third Avenue New York NY 10003-5527 office: 212-998-1110 email:robert.molerio at nyu.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 mguthrie at nagios.com Tue Mar 20 15:33:18 2012 From: mguthrie at nagios.com (Mike Guthrie) Date: Tue, 20 Mar 2012 09:33:18 -0500 Subject: nagios xi active directory agent In-Reply-To: References: Message-ID: <4F68952E.4040709@nagios.com> For Nagios XI specific questions, please repost to the Nagios XI forum. This list is primarily intended for Nagios Core. http://support.nagios.com/forum/viewforum.php?f=6 Thanks. On 3/20/2012 9:14 AM, Robert J Molerio wrote: > Anyone have the quck setup for getting the AD agent to talk to an AD > server? > > -- > Thank you, > > Bob Molerio > Systems Administrator > New York University > ITS Computer Facilities Services/Infrastructure > Level C-2 > 75 Third Avenue > New York NY 10003-5527 > office: 212-998-1110 > email:robert.molerio at nyu.edu > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Mike Guthrie Technical Team ___ Nagios Enterprises, LLC Email: mguthrie at nagios.com Web: www.nagios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 xml.devel at gmail.com Tue Mar 20 16:58:58 2012 From: xml.devel at gmail.com (Kumar, Ashish) Date: Tue, 20 Mar 2012 15:58:58 +0000 Subject: Building a reliable uptime monitoring model Message-ID: Greetings of the day, We are trying to figure a reliable Uptime monitoring solution. Sometimes the server reboots too fast, within the limits of check_interval and max_check_attempts, that Nagios misses to generate an alert. Which sometimes create a chaos and makes people lose faith in Nagios (no flame wars please). We have tried different solutions over the months and here are some findings. SNMPtraps sounds good but it has it's own cons and added complexity, so no thanks http://nagios.frank4dd.com/howto/windows-reboot-monitoring-nagios.htm SNMP is out of question. A good read for people relying on net-snmp for uptime: http://www.mail-archive.com/net-snmp-users at lists.sourceforge.net/msg27570.html We rolled out NRPE for uptime and other monitoring requirements. NRPE is awesome but to avoid raising too many alerts we made Uptime checks dependant upon NRPE (connection). Now this creates it's own problems while the server is rebooting. On a rainy day there would be two alerts - NRPE connection refused and then host going down, considering the fact that it takes server a while before it shuts down all services before going down itself. However, on a snowy day there would be three alerts - NRPE connection refused then server going down and later Uptime threshold is less than (n) minutes. SSH checks including all of them above are too bound to failure when the server is under heavy load and not honouring any external requests, I am sure most of us have witnessed that. So I was wondering how is everyone reliably checking and notifying the intended audience of server reboots with high rate of success. Can we please use this thread to develop a robust uptime check model, if there isn't one already? Many thanks for your time. Regards, Ashish Kumar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 benny at bennyvision.com Tue Mar 20 17:07:18 2012 From: benny at bennyvision.com (C. Bensend) Date: Tue, 20 Mar 2012 11:07:18 -0500 Subject: Building a reliable uptime monitoring model In-Reply-To: References: Message-ID: <69f8f8e31333b459ad50fb6fe844ef8e.squirrel@webmail.stinkweasel.net> > So I was wondering how is everyone reliably checking and notifying the > intended audience of server reboots with high rate of success. I use check_logfiles from the Consol.de guys to watch for the actual event or log entry specifying a reboot. I don't count on the server being down long enough to trigger a host down/host up alert. Benny -- "The problem with quotes on the internet is that it's very hard to verify their authenticity." -- Abraham Lincoln ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RWerner at pomwonderful.com Tue Mar 20 18:31:31 2012 From: RWerner at pomwonderful.com (Werner, Robert) Date: Tue, 20 Mar 2012 17:31:31 +0000 Subject: check_snmp (External Command Error) In-Reply-To: References: Message-ID: <3D480E2907FD164191FE65820A669FFF4F1F9EAB@POM-LA-MBX01.pomwonderful.com> I think your OID needs to be all numerical. (translate iso into the numerical prefix). -- Robert G. Werner Oracle Apps Systems Administrator rwerner at pomwonderful.com 559.521.5089 From: Davey, Jatin Kumar (Jatin Kumar) [mailto:jatin_kumar.davey at alcatel-lucent.com] Sent: Tuesday, March 20, 2012 5:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_snmp (External Command Error) Hi All I have the latest stable version of Nagios Core and Nagios Plugins installed in a CentOS 6.2 machine. While using the check_snmp in my object files I am getting the following error in the UI: External command error: snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable) Text in the host file where I have defined the service is: define service{ host_name Dslam-XXX service_description XXXX:1-1-5-1 check_command check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx max_check_attempts 5 check_interval 1 retry_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 contact_groups admins } Text in the commands file for the above used custom command is: define command{ command_name check_xdsl_line command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -c 1 } Please let me know how to solve this issue. Thanks Jatin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 nagiosusers at edcint.co.nz Wed Mar 21 00:03:23 2012 From: nagiosusers at edcint.co.nz (Matthew Jurgens) Date: Wed, 21 Mar 2012 10:03:23 +1100 Subject: Building a reliable uptime monitoring model In-Reply-To: <69f8f8e31333b459ad50fb6fe844ef8e.squirrel@webmail.stinkweasel.net> References: <69f8f8e31333b459ad50fb6fe844ef8e.squirrel@webmail.stinkweasel.net> Message-ID: <4F690CBB.3030608@edcint.co.nz> >> So I was wondering how is everyone reliably checking and notifying the >> intended audience of server reboots with high rate of success. >> Get a plugin that checks the actual device uptime value. You can then alert on it when values of uptime are less than whatever suits your check frequency and max check attempts values eg 30 minutes. How you actually check is going to be dependent on the OS of the device For Windows servers I use check_wmi_plus.pl -m checkuptime This particular plugin also provides performance data and I get a nice graph like this - I also do that same thing (using other plugins) for linux, wireless access points etc I imagine that SNMP probably can get at the uptime values for various devices also. > Smartmon System Monitoring > www.smartmon.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dfehgfbc.png Type: image/png Size: 13399 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 jatin_kumar.davey at alcatel-lucent.com Wed Mar 21 06:45:18 2012 From: jatin_kumar.davey at alcatel-lucent.com (Davey, Jatin Kumar (Jatin Kumar)) Date: Wed, 21 Mar 2012 11:15:18 +0530 Subject: check_snmp (External Command Error) In-Reply-To: <3D480E2907FD164191FE65820A669FFF4F1F9EAB@POM-LA-MBX01.pomwonderful.com> References: <3D480E2907FD164191FE65820A669FFF4F1F9EAB@POM-LA-MBX01.pomwonderful.com> Message-ID: Ok , Thanks. For the benefit of all I did two changes and it worked. Change 1: Mentioned the full OID as mentioned by Werner. Change 2: Instead of using the $HOSTADDRESS$ , I used $ARG1$ Thanks Jatin ________________________________ From: Werner, Robert [mailto:RWerner at pomwonderful.com] Sent: Tuesday, March 20, 2012 11:02 PM To: Nagios Users List Subject: Re: [Nagios-users] check_snmp (External Command Error) I think your OID needs to be all numerical. (translate iso into the numerical prefix). -- Robert G. Werner Oracle Apps Systems Administrator rwerner at pomwonderful.com 559.521.5089 From: Davey, Jatin Kumar (Jatin Kumar) [mailto:jatin_kumar.davey at alcatel-lucent.com] Sent: Tuesday, March 20, 2012 5:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_snmp (External Command Error) Hi All I have the latest stable version of Nagios Core and Nagios Plugins installed in a CentOS 6.2 machine. While using the check_snmp in my object files I am getting the following error in the UI: External command error: snmp_build: unknown failuresnmpget: Error building ASN.1 representation (Can't build OID for variable) Text in the host file where I have defined the service is: define service{ host_name Dslam-XXX service_description XXXX:1-1-5-1 check_command check_xdsl_line!x.x.x.x!iso.3.6.1.2.1.2.2.1.8.134610945!xxx max_check_attempts 5 check_interval 1 retry_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 contact_groups admins } Text in the commands file for the above used custom command is: define command{ command_name check_xdsl_line command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -c 1 } Please let me know how to solve this issue. Thanks Jatin -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 jm+nagios-users at roth.lu Wed Mar 21 11:13:16 2012 From: jm+nagios-users at roth.lu (Marki) Date: Wed, 21 Mar 2012 10:13:16 +0000 (UTC) Subject: one shot check at specific time of day Message-ID: Hi people, I have problems defining a check so that it only runs once each day (at a specified time). Inspired by http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg24221.html I tried define timeperiod { timeperiod_name tp_backupcheck alias mornin checks day 1 - -1 08:00-08:15 } as well as define timeperiod { timeperiod_name tp_backupcheck alias mornin checks monday 08:00-08:15 tuesday 08:00-08:15 wednesday 08:00-08:15 thursday 08:00-08:15 friday 08:00-08:15 saturday 08:00-08:15 sunday 08:00-08:15 } combined with define service { use normal host_name bla01 service_description bla backup check_command check_bla_backup max_check_attempts 1 check_interval 30 check_period tp_backupcheck ... } Now it schedules the check each day for 07:58 or 07:59 or 07:59:58 or alike and obviously it is never run. How do I do this properly? Thanks Marki ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 21 11:32:09 2012 From: ae at op5.se (Andreas Ericsson) Date: Wed, 21 Mar 2012 11:32:09 +0100 Subject: one shot check at specific time of day In-Reply-To: References: Message-ID: <4F69AE29.4010307@op5.se> On 03/21/2012 11:13 AM, Marki wrote: > Hi people, > > I have problems defining a check so that it only runs once each day (at a > specified time). > > Inspired by > http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg24221.html I tried > define timeperiod { > timeperiod_name tp_backupcheck > alias mornin checks > day 1 - -1 08:00-08:15 > } > as well as > define timeperiod { > timeperiod_name tp_backupcheck > alias mornin checks > monday 08:00-08:15 > tuesday 08:00-08:15 > wednesday 08:00-08:15 > thursday 08:00-08:15 > friday 08:00-08:15 > saturday 08:00-08:15 > sunday 08:00-08:15 > } > > combined with > > define service { > use normal > host_name bla01 > service_description bla backup > check_command check_bla_backup > max_check_attempts 1 > check_interval 30 > check_period tp_backupciheck > ... > } > > Now it schedules the check each day for 07:58 or 07:59 or 07:59:58 or alike and > obviously it is never run. > That's really odd. I wonder if we're randomizing unduly when scheduling checks. > How do I do this properly? > First thought; Set the check_interval to less than the checking window. Assuming you're using minutes (like most people), the check_interval should probably be something like 10, so it fits once but not twice within the scheduled window. -- 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. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jm+nagios-users at roth.lu Wed Mar 21 15:00:58 2012 From: jm+nagios-users at roth.lu (Marki) Date: Wed, 21 Mar 2012 14:00:58 +0000 (UTC) Subject: one shot check at specific time of day References: <4F69AE29.4010307@op5.se> Message-ID: Andreas Ericsson op5.se> writes: > > > > I have problems defining a check so that it only runs once each day (at a > > specified time). > First thought; Set the check_interval to less than the checking window. > Assuming you're using minutes (like most people), the check_interval > should probably be something like 10, so it fits once but not twice > within the scheduled window. > That seems to help. Sidenote: day 1 - -1 doesn't work at all. If used today, it sets next scheduled time to April 1. Haha. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbeattie at geninfo.com Wed Mar 21 15:11:00 2012 From: cbeattie at geninfo.com (Chris Beattie) Date: Wed, 21 Mar 2012 10:11:00 -0400 Subject: one shot check at specific time of day In-Reply-To: References: Message-ID: <4F69E174.7050602@geninfo.com> On 3/21/2012 6:13 AM, Marki wrote: > Hi people, > > I have problems defining a check so that it only runs once each day (at a > specified time). If setting the check_period doesn't work out and you can tolerate the check being run more often, you can set the notification_period to a smaller time period instead. The state shown in the web interface will be more up-to-date, which may be different from the last notification sent out. For example, I get notified of expiring SSL certificates once per day, starting a month before they actually expire. If I replace an expiring certificate, the web interface will let me know if the replacement was successful without having to wait until tomorrow to find out. -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 21 23:43:49 2012 From: stuart.browne at ausregistry.com.au (Stuart Browne) Date: Thu, 22 Mar 2012 09:43:49 +1100 Subject: one shot check at specific time of day In-Reply-To: References: Message-ID: <8CEF048B9EC83748B1517DC64EA130FB7165915BED@off-win2003-01.ausregistrygroup.local> > -----Original Message----- > From: Marki [mailto:jm+nagios-users at roth.lu] > Sent: Wednesday, 21 March 2012 9:13 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] one shot check at specific time of day > > Hi people, > > I have problems defining a check so that it only runs once each day (at a > specified time). > If it's just to run once a day, why not use cron and submit a passive check result, with a 24hr freshness window? > Thanks > > Marki Stuart ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Thu Mar 22 11:18:26 2012 From: mad at b-care.net (MAD) Date: Thu, 22 Mar 2012 11:18:26 +0100 Subject: "Integer length too long" in NET::SNMP requests Message-ID: <4F6AFC72.10604@b-care.net> Hi list, I'm trying to monitor the CPU load on *nix servers by walking on the OIDs hrProcessorLoad. Unfortunately, on some servers (Solaris one I think) I get the error "INTEGER length too long (5 Bytes)". If i run "snmpwalk -v2c -c mycommunity myserver hrProcessorLoad" everything works fine, or at least no errors are printed. Does someone know how I could work around this ? I know this is not really about Nagios but about Net:SNMP but I googled the error and I wasn't able to find something relevant :/ Thanks a lot, Marc-Andr? ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Manish_Kmr at mahindrasatyam.com Thu Mar 22 13:37:27 2012 From: Manish_Kmr at mahindrasatyam.com (Manish_Kmr) Date: Thu, 22 Mar 2012 12:37:27 +0000 Subject: How to check the scheduled downtime for a server for a particular past day in the logs to confirm.... Message-ID: Hi List, For a particular server there was a complaint that even it was in scheduled downtime for some specific period on a particular past day, it sent a host down notification and the ticket has been raised for the same in the integrated ticketing tool. Now I need to check somehow in the logs, is that server was really put into downtime on that day for that specific duration. Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Ollie.Campbell at bbh.co.uk Thu Mar 22 13:59:51 2012 From: Ollie.Campbell at bbh.co.uk (Ollie Campbell) Date: Thu, 22 Mar 2012 12:59:51 +0000 Subject: How to check the scheduled downtime for a server for a particular past day in the logs to confirm.... In-Reply-To: References: Message-ID: You could run an availability report for the host. That would tell you when the scheduled downtime started/stopped and when the host down alert was sent out. Under reports on the left of the web interface, choose availability. Change the drop down to Host and choose your host. You're away. On 22 March 2012 12:37, Manish_Kmr wrote: > Hi List, > > > > For a particular server there was a complaint that even it was in > scheduled downtime for some specific period on a particular past day, it > sent a host down notification and the ticket has been raised for the same > in the integrated ticketing tool. Now I need to check somehow in the logs, > is that server was really put into downtime on that day for that specific > duration. > > > > Thanks, > > Manish Kumar > > Open Source Tools Team, IMS, Mahindra Satyam > > Mob: +919035435306 > > > > ------------------------------ > > DISCLAIMER: > This email (including any attachments) is intended for the sole use of the > intended recipient/s and may contain material that is CONFIDENTIAL AND > PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or > distribution or forwarding of any or all of the contents in this message is > STRICTLY PROHIBITED. If you are not the intended recipient, please contact > the sender by email and delete all copies; your cooperation in this regard > is appreciated. > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Ollie Campbell * 60 Kingly Street, London, W1B 5DS* D: +44 20 7453 4930 M: +44 7584 518539 www.bartleboglehegarty.com -- This transmission is from BBH Partners LLP, it is confidential and intended solely for the person or organisation to whom it is addressed. This transmission may contain confidential information within its content or any attachment. You should not copy, use or distribute in any way any of the information contained within this transmission other than in accordance with the prior written permission of an authorised BBH representative. Partnership Information: Registered name: BBH Partners LLP Registered office: 60 Kingly Street London W1B 5DS Place of registration: England and Wales Registered number: OC355051 Although all messages/file attachments passing through this gateway are scanned for viruses we cannot guarantee that any file is 100% virus-free. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 ck at claudiokuenzler.com Thu Mar 22 14:04:09 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Thu, 22 Mar 2012 14:04:09 +0100 Subject: How to check the scheduled downtime for a server for a particular past day in the logs to confirm.... In-Reply-To: References: Message-ID: Hi Yes you can check that in the nagios log files. Here an example: nagios-01-13-2012-00.log:[1326360203] HOST DOWNTIME ALERT: myhost;STARTED; Host has entered a period of scheduled downtime In the logs it's also shown when the host exits the scheduled downtime On Thu, Mar 22, 2012 at 1:37 PM, Manish_Kmr wrote: > Hi List, > > > > For a particular server there was a complaint that even it was in > scheduled downtime for some specific period on a particular past day, it > sent a host down notification and the ticket has been raised for the same > in the integrated ticketing tool. Now I need to check somehow in the logs, > is that server was really put into downtime on that day for that specific > duration. > > > > Thanks, > > Manish Kumar > > Open Source Tools Team, IMS, Mahindra Satyam > > Mob: +919035435306 > > > > ------------------------------ > > DISCLAIMER: > This email (including any attachments) is intended for the sole use of the > intended recipient/s and may contain material that is CONFIDENTIAL AND > PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or > distribution or forwarding of any or all of the contents in this message is > STRICTLY PROHIBITED. If you are not the intended recipient, please contact > the sender by email and delete all copies; your cooperation in this regard > is appreciated. > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Stuart.Jones at health.wa.gov.au Fri Mar 23 00:09:31 2012 From: Stuart.Jones at health.wa.gov.au (Jones, Stuart) Date: Fri, 23 Mar 2012 07:09:31 +0800 Subject: Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios In-Reply-To: References: Message-ID: We use the proprietary MIBs, with the associated SNMP Gets for the VPN Gateway and Firewalls. It can be daunting at the outset, so you need patience and a clear direction as to what you actually want to know/understand about your device. ________________________________ From: Manish_Kmr [mailto:Manish_Kmr at mahindrasatyam.com] Sent: Tuesday, 20 March 2012 4:56 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Monitoring vpn tunnels and application firewalls on network devices and hardware firewalls using nagios Dear List, Can Nagios help me in monitoring vpn tunnels on network devices and what type of information I can get while monitoring the same and can I monitor things like application firewall and hardware firewalls using nagios. Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 csbender at bellsouth.net Fri Mar 23 20:20:08 2012 From: csbender at bellsouth.net (csbender) Date: Fri, 23 Mar 2012 12:20:08 -0700 (PDT) Subject: question about alert Message-ID: <1332530408.74426.YahooMailRC@web180708.mail.sp1.yahoo.com> Hi Group, I am having a bit of a time understanding a NAGIOS alert that was setup be my predecessor. I will show the alert that is on disc availability, and then below that I show the NAGIOS display of the alert conditions of dic conditions and lastly I show the actual values of the disc "df" command from the Server itself. My question is this.....what is the service complaining about? There appears tobe plenty of disk space based on the email. The actual "df" itself seems to be that there is space issues looking at bits but the availabile percentage seems high. Thanks for your help in advance. 1. ***** Nagios ***** Notification Type: PROBLEM Service: NRPE Check Disk Space Host: serv2 Address: 172.19.4.192 State: WARNING Date/Time: Fri Mar 23 18:41:10 UTC 2012 Additional Info: DISK WARNING - free space: / 9019 MB (66% inode=92%): /usr01 24905 MB (20% inode=89%): /usr02 11731 MB (85% inode=99%): /opt 106873 MB (92% inode=99%): /export/home 6746 MB (98% inode=99%): 2. Service State Information Current Status: WARNING (for 1d 20h 40m 17s) Status Information: DISK WARNING - free space: / 9019 MB (66% inode=92%): /usr01 24894 MB (20% inode=89%): /usr02 11731 MB (85% inode=99%): /opt 106873 MB (92% inode=99%): /export/home 6746 MB (98% inode=99%): ?>??>2H@ Performance Data: /=4622MB;11024;12402;0;13780 /usr01=96952MB;98461;110769;0;123077 /usr02=1910MB;11024;12402;0;13780 /opt=8151MB;92948;104567;0;116186 /export/home=74MB;5512;6201;0;6890 Current Attempt: 3/3 (HARD state) Last Check Time: 03-23-2012 19:11:06 Check Type: ACTIVE Check Latency / Duration: 0.169 / 0.054 seconds Next Scheduled Check: 03-23-2012 19:21:06 Last State Change: 03-21-2012 22:35:06 Last Notification: 03-23-2012 18:41:10 (notification 45) Is This Service Flapping? NO (0.00% state change) In Scheduled Downtime? NO Last Update: 03-23-2012 19:15:20 ( 0d 0h 0m 3s ago) Active Checks: ENABLED Passive Checks: ENABLED Obsessing: ENABLED Notifications: ENABLED Event Handler: ENABLED Flap Detection: ENABLED Service Commands Disable active checks of this service Re-schedule the next check of this service Submit passive check result for this service Stop accepting passive checks for this service Stop obsessing over this service Acknowledge this service problem Disable notifications for this service Delay next service notification Send custom service notification Schedule downtime for this service Disable event handler for this service Disable flap detection for this service 3. # df -F ufs -o i Filesystem iused ifree %iused Mounted on /dev/dsk/c0t0d0s0 133920 1562592 8% / /dev/dsk/c0t0d0s3 1598566 13531674 11% /usr01 /dev/dsk/c0t1d0s0 71653 14216347 1% /opt /dev/dsk/c0t1d0s3 22 1696490 0% /usr02 /dev/dsk/c0t1d0s4 5906 842350 1% /export/home ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ck at claudiokuenzler.com Sat Mar 24 17:37:29 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Sat, 24 Mar 2012 17:37:29 +0100 Subject: question about alert In-Reply-To: <1332530408.74426.YahooMailRC@web180708.mail.sp1.yahoo.com> References: <1332530408.74426.YahooMailRC@web180708.mail.sp1.yahoo.com> Message-ID: Hello, I agree that the server still has plenty of space and also inodes look OK. So what you need to find out now is the WARNING and CRITICAL thresholds. These thresholds determine when a warning or critical notification should be sent by Nagios. The warning threshold is probably set very low. As this check is a NRPE check, you have to find this information on your host serv2 (172.19.4.192) in the nrpe.cfg file. You have to look for the check_command[*] lines and find the check responsible for the disk space. There you will find the warning (-w) and critical (-c) thresholds which you can adapt and then restart the nrpe daemon. On Fri, Mar 23, 2012 at 8:20 PM, csbender wrote: > Hi Group, > > I am having a bit of a time understanding a NAGIOS alert that was setup be > my > predecessor. > I will show the alert that is on disc availability, and then below that I > show > the NAGIOS display > of the alert conditions of dic conditions and lastly I show the actual > values > of the disc "df" command > from the Server itself. > > My question is this.....what is the service complaining about? There > appears > tobe plenty of disk space based on the email. The actual "df" itself seems > to be that there is space issues looking at bits but the availabile > percentage > seems high. > > Thanks for your help in advance. > > 1. > > ***** Nagios ***** > > Notification Type: PROBLEM > > Service: NRPE Check Disk Space > Host: serv2 > Address: 172.19.4.192 > State: WARNING > > Date/Time: Fri Mar 23 18:41:10 UTC 2012 > > Additional Info: > > DISK WARNING - free space: / 9019 MB (66% inode=92%): /usr01 24905 MB (20% > inode=89%): /usr02 11731 MB (85% inode=99%): /opt 106873 MB (92% > inode=99%): > /export/home 6746 MB (98% inode=99%): > > > > > 2. > > Service State Information > Current Status: WARNING (for 1d 20h 40m 17s) > Status Information: DISK WARNING - free space: / 9019 MB (66% inode=92%): > /usr01 24894 MB (20% inode=89%): /usr02 11731 MB (85% inode=99%): /opt > 106873 > MB (92% inode=99%): /export/home 6746 MB (98% inode=99%): > ?>??>2H@ > > Performance Data: /=4622MB;11024;12402;0;13780 > /usr01=96952MB;98461;110769;0;123077 /usr02=1910MB;11024;12402;0;13780 > /opt=8151MB;92948;104567;0;116186 /export/home=74MB;5512;6201;0;6890 > > Current Attempt: 3/3 (HARD state) > Last Check Time: 03-23-2012 19:11:06 > Check Type: ACTIVE > Check Latency / Duration: 0.169 / 0.054 seconds > Next Scheduled Check: 03-23-2012 19:21:06 > Last State Change: 03-21-2012 22:35:06 > Last Notification: 03-23-2012 18:41:10 (notification 45) > Is This Service Flapping? NO (0.00% state change) > In Scheduled Downtime? NO > Last Update: 03-23-2012 19:15:20 ( 0d 0h 0m 3s ago) > Active Checks: ENABLED > Passive Checks: ENABLED > Obsessing: ENABLED > Notifications: ENABLED > Event Handler: ENABLED > Flap Detection: ENABLED Service Commands > Disable active checks of this service > Re-schedule the next check of this service > Submit passive check result for this service > Stop accepting passive checks for this service > Stop obsessing over this service > Acknowledge this service problem > Disable notifications for this service > Delay next service notification > Send custom service notification > Schedule downtime for this service > Disable event handler for this service > Disable flap detection for this service > > > > > 3. > > # df -F ufs -o i > Filesystem iused ifree %iused Mounted on > /dev/dsk/c0t0d0s0 133920 1562592 8% / > /dev/dsk/c0t0d0s3 1598566 13531674 11% /usr01 > /dev/dsk/c0t1d0s0 71653 14216347 1% /opt > /dev/dsk/c0t1d0s3 22 1696490 0% /usr02 > /dev/dsk/c0t1d0s4 5906 842350 1% /export/home > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Sat Mar 24 18:06:05 2012 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Sat, 24 Mar 2012 17:06:05 +0000 Subject: question about alert In-Reply-To: References: Message-ID: Is this a Linux server you are checking? From: Claudio Kuenzler [mailto:ck at claudiokuenzler.com] Sent: Saturday, March 24, 2012 11:37 AM To: Nagios Users List Subject: Re: [Nagios-users] question about alert Hello, I agree that the server still has plenty of space and also inodes look OK. So what you need to find out now is the WARNING and CRITICAL thresholds. These thresholds determine when a warning or critical notification should be sent by Nagios. The warning threshold is probably set very low. As this check is a NRPE check, you have to find this information on your host serv2 (172.19.4.192) in the nrpe.cfg file. You have to look for the check_command[*] lines and find the check responsible for the disk space. There you will find the warning (-w) and critical (-c) thresholds which you can adapt and then restart the nrpe daemon. On Fri, Mar 23, 2012 at 8:20 PM, csbender > wrote: Hi Group, I am having a bit of a time understanding a NAGIOS alert that was setup be my predecessor. I will show the alert that is on disc availability, and then below that I show the NAGIOS display of the alert conditions of dic conditions and lastly I show the actual values of the disc "df" command from the Server itself. My question is this.....what is the service complaining about? There appears tobe plenty of disk space based on the email. The actual "df" itself seems to be that there is space issues looking at bits but the availabile percentage seems high. Thanks for your help in advance. 1. ***** Nagios ***** Notification Type: PROBLEM Service: NRPE Check Disk Space Host: serv2 Address: 172.19.4.192 State: WARNING Date/Time: Fri Mar 23 18:41:10 UTC 2012 Additional Info: DISK WARNING - free space: / 9019 MB (66% inode=92%): /usr01 24905 MB (20% inode=89%): /usr02 11731 MB (85% inode=99%): /opt 106873 MB (92% inode=99%): /export/home 6746 MB (98% inode=99%): 2. Service State Information Current Status: WARNING (for 1d 20h 40m 17s) Status Information: DISK WARNING - free space: / 9019 MB (66% inode=92%): /usr01 24894 MB (20% inode=89%): /usr02 11731 MB (85% inode=99%): /opt 106873 MB (92% inode=99%): /export/home 6746 MB (98% inode=99%): ?>??>2H@ Performance Data: /=4622MB;11024;12402;0;13780 /usr01=96952MB;98461;110769;0;123077 /usr02=1910MB;11024;12402;0;13780 /opt=8151MB;92948;104567;0;116186 /export/home=74MB;5512;6201;0;6890 Current Attempt: 3/3 (HARD state) Last Check Time: 03-23-2012 19:11:06 Check Type: ACTIVE Check Latency / Duration: 0.169 / 0.054 seconds Next Scheduled Check: 03-23-2012 19:21:06 Last State Change: 03-21-2012 22:35:06 Last Notification: 03-23-2012 18:41:10 (notification 45) Is This Service Flapping? NO (0.00% state change) In Scheduled Downtime? NO Last Update: 03-23-2012 19:15:20 ( 0d 0h 0m 3s ago) Active Checks: ENABLED Passive Checks: ENABLED Obsessing: ENABLED Notifications: ENABLED Event Handler: ENABLED Flap Detection: ENABLED Service Commands Disable active checks of this service Re-schedule the next check of this service Submit passive check result for this service Stop accepting passive checks for this service Stop obsessing over this service Acknowledge this service problem Disable notifications for this service Delay next service notification Send custom service notification Schedule downtime for this service Disable event handler for this service Disable flap detection for this service 3. # df -F ufs -o i Filesystem iused ifree %iused Mounted on /dev/dsk/c0t0d0s0 133920 1562592 8% / /dev/dsk/c0t0d0s3 1598566 13531674 11% /usr01 /dev/dsk/c0t1d0s0 71653 14216347 1% /opt /dev/dsk/c0t1d0s3 22 1696490 0% /usr02 /dev/dsk/c0t1d0s4 5906 842350 1% /export/home ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Manish_Kmr at mahindrasatyam.com Mon Mar 26 11:05:39 2012 From: Manish_Kmr at mahindrasatyam.com (Manish_Kmr) Date: Mon, 26 Mar 2012 09:05:39 +0000 Subject: service check time out issue Message-ID: Hope you are doing fine list, There is one problem which I am facing continuously. I see service check time out issue happening very often for few remote servers. What can be the issue and probable fix for the same. Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 ________________________________ DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 AHKAPLAN at PARTNERS.ORG Mon Mar 26 14:23:57 2012 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 26 Mar 2012 12:23:57 +0000 Subject: Installing the opmon agent or nrpe client on a virtual host Message-ID: <8741782C9747224DA16B653752DC604D089912@PHSX10MB4.partners.org> Hello -- We run a series of virtual servers on a variety of Linux and Windows hosts. I wanted to get feedback from the group on the merits, if any, of installing the nrpe and opmon agent clients on the virtual hosts respective operating systems. What are the group members' thoughts on this? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 eliezer at ngtech.co.il Mon Mar 26 17:01:21 2012 From: eliezer at ngtech.co.il (Eliezer Croitoru) Date: Mon, 26 Mar 2012 17:01:21 +0200 Subject: Installing the opmon agent or nrpe client on a virtual host In-Reply-To: <8741782C9747224DA16B653752DC604D089912@PHSX10MB4.partners.org> References: <8741782C9747224DA16B653752DC604D089912@PHSX10MB4.partners.org> Message-ID: <4F7084C1.30000@ngtech.co.il> On 26/03/2012 14:23, Kaplan, Andrew H. wrote: > Hello -- > We run a series of virtual servers on a variety of Linux and Windows > hosts. I wanted to get feedback from the group > on the merits, if any, of installing the nrpe and opmon agent clients on > the virtual hosts respective operating systems. > What are the group members' thoughts on this? > Thanks. out of curiosity, what hyper-visor you are using for these VMs? i'm building nagios lab on VM right now. Thanks, Eliezer > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you > in error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Eliezer Croitoru https://www1.ngtech.co.il IT consulting for Nonprofit organizations eliezer ngtech.co.il ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Mon Mar 26 17:36:13 2012 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 26 Mar 2012 15:36:13 +0000 Subject: Installing the opmon agent or nrpe client on a virtual host In-Reply-To: <4F7084C1.30000@ngtech.co.il> References: <8741782C9747224DA16B653752DC604D089912@PHSX10MB4.partners.org>, <4F7084C1.30000@ngtech.co.il> Message-ID: <8741782C9747224DA16B653752DC604D094759@PHSX10MB4.partners.org> Hello -- The hypervisor for the Windows box is the Hyper-V utility, while that on the Linux systems are either VMWare server or VirtualBox. ________________________________________ From: Eliezer Croitoru [eliezer at ngtech.co.il] Sent: Monday, March 26, 2012 11:01 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Installing the opmon agent or nrpe client on a virtual host On 26/03/2012 14:23, Kaplan, Andrew H. wrote: > Hello -- > We run a series of virtual servers on a variety of Linux and Windows > hosts. I wanted to get feedback from the group > on the merits, if any, of installing the nrpe and opmon agent clients on > the virtual hosts respective operating systems. > What are the group members' thoughts on this? > Thanks. out of curiosity, what hyper-visor you are using for these VMs? i'm building nagios lab on VM right now. Thanks, Eliezer > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you > in error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > > > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Eliezer Croitoru https://www1.ngtech.co.il IT consulting for Nonprofit organizations eliezer ngtech.co.il ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwinkle at doit.wisc.edu Mon Mar 26 20:04:00 2012 From: jwinkle at doit.wisc.edu (Jim Winkle) Date: Mon, 26 Mar 2012 13:04:00 -0500 Subject: Nagios implied and additive inheritance In-Reply-To: <7750c957b52d.4f70af2b@wiscmail.wisc.edu> References: <76b0b03cc2d2.4f70ac1a@wiscmail.wisc.edu> <76b0cfc7c2c9.4f70ac57@wiscmail.wisc.edu> <76e0a6ded3f5.4f70accf@wiscmail.wisc.edu> <76e0d784bbec.4f70ad0c@wiscmail.wisc.edu> <7760bfbbc719.4f70ad48@wiscmail.wisc.edu> <77d0a5269e18.4f70ad85@wiscmail.wisc.edu> <7710aa0ebdb6.4f70ae75@wiscmail.wisc.edu> <7670b7a0bd5f.4f70aeb2@wiscmail.wisc.edu> <76e0be89f0b4.4f70aeee@wiscmail.wisc.edu> <7750c957b52d.4f70af2b@wiscmail.wisc.edu> Message-ID: <7710d070a8d7.4f706940@wiscmail.wisc.edu> I'd like to set up Nagios so that: 1) In general, contact_groups for a host are notified about problems with the host and any service on the host. 2) Occasionally, we'd like other contact_groups to be notified about problems with certain services on the host. If I'm understanding the documentation at http://nagios.sourceforge.net/docs/nagioscore/3/en/objectinheritance.html correctly, it indicates that #1 can be done using implied inheritance and #2 by using additive inheritance, but it's not working as expected.? I've found other posts from people with the same issue, but never any resolution. For example, if I define: define host{ ??????? host_name?????????????? linux-server ??????? contact_groups????????? linux-admins ??????? ... ??????? } define service{ ??????? host_name?????????????? linux-server ??????? service_description???? l_proc_sshd ??????? contact_groups????????? +management ??????? ... ??????? } I would like this to be equivalent to: define service{ ??????? host_name?????????????? linux-server ??????? service_description???? l_proc_sshd ??????? contact_groups????????? linux-admins,management ??????? ... ??????? } But instead, the implied inheritance of "linux-admins" is ignored, and it's equivalent to: define service{ ??????? host_name?????????????? linux-server ??????? service_description???? l_proc_sshd ??????? contact_groups????????? management ??????? ... ??????? } So contact_groups is overwritten rather than added to.? No warnings/errors were generated about the plus sign being used inappropriately or anything else. Am I misunderstanding the documentation?? Is this possibly a bug? If this is not the way it's intended to work, could Nagios be easily enhanced to support this?? It seems very logical and powerful, and apparently other people are thinking along the same lines as I am.? I'm not using escalations, but a cursory read makes it appear to be supported there. Thanks in advance for any light you can shed on this! -- Jim ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbeattie at geninfo.com Mon Mar 26 22:11:04 2012 From: cbeattie at geninfo.com (Chris Beattie) Date: Mon, 26 Mar 2012 16:11:04 -0400 Subject: Nagios implied and additive inheritance In-Reply-To: <7710d070a8d7.4f706940@wiscmail.wisc.edu> References: <76b0b03cc2d2.4f70ac1a@wiscmail.wisc.edu> <76b0cfc7c2c9.4f70ac57@wiscmail.wisc.edu> <76e0a6ded3f5.4f70accf@wiscmail.wisc.edu> <76e0d784bbec.4f70ad0c@wiscmail.wisc.edu> <7760bfbbc719.4f70ad48@wiscmail.wisc.edu> <77d0a5269e18.4f70ad85@wiscmail.wisc.edu> <7710aa0ebdb6.4f70ae75@wiscmail.wisc.edu> <7670b7a0bd5f.4f70aeb2@wiscmail.wisc.edu> <76e0be89f0b4.4f70aeee@wiscmail.wisc.edu> <7750c957b52d.4f70af2b@wiscmail.wisc.edu> <7710d070a8d7.4f706940@wiscmail.wisc.edu> Message-ID: <4F70CD58.50600@geninfo.com> On 3/26/2012 2:04 PM, Jim Winkle wrote: > I'd like to set up Nagios so that: > 1) In general, contact_groups for a host are notified about problems with the host and any service on the host. > 2) Occasionally, we'd like other contact_groups to be notified about problems with certain services on the host. > > Am I misunderstanding the documentation? Is this possibly a bug? I couldn't get it to work that way, either. Instead, I defined a service escalation that activates on the first notification. Something like this might work: define serviceescalation { host_name linux-server service_description 1_proc_sshd contact_groups management first_notification 1 last_notification 0 escalation_options w,c,r } I assign services to hosts with hostgroups, so I have a hostgroup_name in my escalation definition instead of just a host_name. -- -Chris Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mnagel at willingminds.com Tue Mar 27 18:35:26 2012 From: mnagel at willingminds.com (Mark D. Nagel) Date: Tue, 27 Mar 2012 09:35:26 -0700 Subject: Nagios implied and additive inheritance In-Reply-To: <4F70CD58.50600@geninfo.com> References: <76b0b03cc2d2.4f70ac1a@wiscmail.wisc.edu> <76b0cfc7c2c9.4f70ac57@wiscmail.wisc.edu> <76e0a6ded3f5.4f70accf@wiscmail.wisc.edu> <76e0d784bbec.4f70ad0c@wiscmail.wisc.edu> <7760bfbbc719.4f70ad48@wiscmail.wisc.edu> <77d0a5269e18.4f70ad85@wiscmail.wisc.edu> <7710aa0ebdb6.4f70ae75@wiscmail.wisc.edu> <7670b7a0bd5f.4f70aeb2@wiscmail.wisc.edu> <76e0be89f0b4.4f70aeee@wiscmail.wisc.edu> <7750c957b52d.4f70af2b@wiscmail.wisc.edu> <7710d070a8d7.4f706940@wiscmail.wisc.edu> <4F70CD58.50600@geninfo.com> Message-ID: <4F71EC4E.9000207@willingminds.com> On 3/26/2012 1:11 PM, Chris Beattie wrote: > I couldn't get it to work that way, either. Instead, I defined a > service escalation that activates on the first notification. Something > like this might work: > > define serviceescalation { > host_name linux-server > service_description 1_proc_sshd > contact_groups management > first_notification 1 > last_notification 0 > escalation_options w,c,r > } > > I assign services to hosts with hostgroups, so I have a hostgroup_name > in my escalation definition instead of just a host_name. > We do something similar, but recently found that 'first_notification_delay' on hosts and services is not honored when you handle notifications this way. Really doesn't seem like it makes sense, so I imagine it is just a bug. Worked around it by having a null target for the first escalation. Mark -- Mark D. Nagel, CCIE #3177 Principal Consultant, Willing Minds LLC (http://www.willingminds.com) cell: 949-279-5817, desk: 714-495-4001, fax: 714-646-8277 ** For faster support response time, please ** email support at willingminds.com or call 714-495-4000 ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Mikhail_Parkman at cable.comcast.com Wed Mar 28 03:01:50 2012 From: Mikhail_Parkman at cable.comcast.com (Parkman, Mikhail) Date: Wed, 28 Mar 2012 01:01:50 +0000 Subject: Status Information (null) - using Syabru Nagios Message Broker Message-ID: Hello, I am trying to use nagios-msg-broker-0.0.4 from http://snippets.syabru.ch/nagios-msg-broker/. I unzipped plugin and moved to the the /usr/local/nagios/libexec directory nagios-msg-broker.sh # file config.xml #file lib #directory content of the nagios-msg-broker.sh file is ================= #!/bin/sh java -DnagiosCommandFile=/usr/local/nagios/var/rw/nagios.cmd \ -DconfigFile=./config.xml \ -jar lib/nagios-msg-broker-0.0.4.jar ================== Content of the config.xml file is ============= service:jmx:rmi:///jndi/rmi://mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts localhost processServiceCheckResult: UsageStats passive check 0 Passive check is OK localhost scheduleServiceCheck - serviceDescription: UsageStats passive check ========================= When I run manually from /usr/local/nagios/libexec ./ nagios-msg-broker.sh I get the output: =================== [root at mypc libexec]$ ./nagios-msg-broker.sh 2012-03-27 17:22:46,908 INFO ConfigurationImpl - Reading configuration [file [/usr/local/nagios/libexec/./config.xml]]) 2012-03-27 17:22:46,933 DEBUG ConfigurationImpl - Created JMX listener [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts] 2012-03-27 17:22:46,935 DEBUG ConfigurationImpl - Created matcher [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, ProcessServiceCheckResultCommandFactory] 2012-03-27 17:22:46,935 DEBUG ConfigurationImpl - Created matcher [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, ScheduleServiceCheckCommandFactory] 2012-03-27 17:22:47,081 INFO Version - Syabru Nagios Message Broker - Version 0.0.4 2012-03-27 17:22:47,081 INFO Version - Copyright 2010 - 2012 Felix Roethenbacher 2012-03-27 17:22:47,396 INFO JmxMessageListener - Registered JMX notification listener [JMX listener service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts] 2012-03-27 17:22:55,979 DEBUG MessageHandlerImpl - Message received [ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]] 2012-03-27 17:22:55,980 DEBUG JmxMatcher - Message matched [classNamePattern=.*, messagePattern=.*, typePattern=.*, sourcePattern=.*, message=ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]] 2012-03-27 17:22:55,981 DEBUG JmxMatcher - Message matched [classNamePattern=.*, messagePattern=.*, typePattern=.*, sourcePattern=.*, message=ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]] 2012-03-27 17:22:55,982 DEBUG MessageHandlerImpl - Matching actions found: 2 2012-03-27 17:22:55,982 DEBUG ProcessServiceCheckResultCommand - [1332894175] PROCESS_SERVICE_CHECK_RESULT;localhost;processServiceCheckResult: UsageStats passive check;0;Passive check is OK 2012-03-27 17:22:55,982 DEBUG ScheduleServiceCheckCommand - [1332894175] SCHEDULE_SVC_CHECK;localhost;scheduleServiceCheck - serviceDescription: UsageStats passive check;1332894175 2012-03-27 17:23:05,968 DEBUG MessageHandlerImpl - Message received [ch.syabru.nagios.broker.jmx.JmxMessage at 694b081b[className=javax.management.Notification,message=No requests received from any CASMR for 2205 ms.,type=NoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]] ===================== >From /usr/local/nagios/objects /commands.cfg on the monitoring machine among others are ====================== define command{ command_name dlg_notifications command_line $USER1$/nagios-msg-broker.sh } =================== >From /usr/local/nagios/etc/dlg/mypc.cfg on the monitoring machine among other are: ============== define host{ use remote-linux-server host_name mypc.abc-d.efg.hhhhhhhh.net alias mypc address 22.333.44.55 passive_checks_enabled 1 } define service { name mypc use remote-service host_name mypc.abc-d.efg.hhhhhhhh.net } define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications passive_checks_enabled 1 } ======================== >From /usr/local/nagios/etc/nagios.cfg among other are ================= check_external_commands=1 command_check_interval=15s command_file=/usr/local/nagios/var/rw/nagios.cmd log_passive_checks=1 accept_passive_service_checks=1 ===================== Here are the ownerships/permissions of the key players: =================== In /usr/local/nagios/libexec: =================== -rwxr-xr-x 1 nagios nagcmd 149 Mar 26 11:58 nagios-msg-broker.sh drwxr-xr-x 4 nagios nagcmd 4096 Mar 26 12:05 lib -rwxr-xr-x 1 nagios nagcmd 1361 Mar 26 11:59 config.xml =================== In /usr/local/nagios/var/rw ============= prw-rw---- 1 nagios nagios 0 Mar 27 17:48 nagios.cmd ============= When I login to nagios monitoring machine through the web, All my other checks that I didn't mention here run fine. For the above mentioned service, for mypc target machine, I see the following Under column "service: dlg_Alerts_notifications Under column "Status": Warning Under column "Last Check": 03-27-2012 17:53:53 Under column "Duration": 0d 4h 2m 19s Under column "Attempt": 3/3 Under column "Status Information": (null) ============== Can you please provide me with information to how get rid of the (null) in the "Status Information" column and get there meaningful data? Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Mikhail_Parkman at cable.comcast.com Wed Mar 28 06:00:14 2012 From: Mikhail_Parkman at cable.comcast.com (Parkman, Mikhail) Date: Wed, 28 Mar 2012 04:00:14 +0000 Subject: Status Information (null) - using Syabru Nagios Message Broker In-Reply-To: References: Message-ID: Nagios(r) Core(tm) Version 3.3.1 nagios-msg-broker-0.0.4 OS on monitoring and target machines: [root at perfserver-10 nagios]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.3 (Tikanga) [root at perfserver-10 nagios]$ From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Tuesday, March 27, 2012 6:02 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Status Information (null) - using Syabru Nagios Message Broker Hello, I am trying to use nagios-msg-broker-0.0.4 from http://snippets.syabru.ch/nagios-msg-broker/. I unzipped plugin and moved to the the /usr/local/nagios/libexec directory nagios-msg-broker.sh # file config.xml #file lib #directory content of the nagios-msg-broker.sh file is ================= #!/bin/sh java -DnagiosCommandFile=/usr/local/nagios/var/rw/nagios.cmd \ -DconfigFile=./config.xml \ -jar lib/nagios-msg-broker-0.0.4.jar ================== Content of the config.xml file is ============= service:jmx:rmi:///jndi/rmi://mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts localhost processServiceCheckResult: UsageStats passive check 0 Passive check is OK localhost scheduleServiceCheck - serviceDescription: UsageStats passive check ========================= When I run manually from /usr/local/nagios/libexec ./ nagios-msg-broker.sh I get the output: =================== [root at mypc libexec]$ ./nagios-msg-broker.sh 2012-03-27 17:22:46,908 INFO ConfigurationImpl - Reading configuration [file [/usr/local/nagios/libexec/./config.xml]]) 2012-03-27 17:22:46,933 DEBUG ConfigurationImpl - Created JMX listener [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts] 2012-03-27 17:22:46,935 DEBUG ConfigurationImpl - Created matcher [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, ProcessServiceCheckResultCommandFactory] 2012-03-27 17:22:46,935 DEBUG ConfigurationImpl - Created matcher [service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, ScheduleServiceCheckCommandFactory] 2012-03-27 17:22:47,081 INFO Version - Syabru Nagios Message Broker - Version 0.0.4 2012-03-27 17:22:47,081 INFO Version - Copyright 2010 - 2012 Felix Roethenbacher 2012-03-27 17:22:47,396 INFO JmxMessageListener - Registered JMX notification listener [JMX listener service:jmx:rmi:///jndi/rmi:// mypc.abc-d.efg.hhhhhhhh.net:1090/jmxrmi, com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts] 2012-03-27 17:22:55,979 DEBUG MessageHandlerImpl - Message received [ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]] 2012-03-27 17:22:55,980 DEBUG JmxMatcher - Message matched [classNamePattern=.*, messagePattern=.*, typePattern=.*, sourcePattern=.*, message=ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]] 2012-03-27 17:22:55,981 DEBUG JmxMatcher - Message matched [classNamePattern=.*, messagePattern=.*, typePattern=.*, sourcePattern=.*, message=ch.syabru.nagios.broker.jmx.JmxMessage at 74b9a74[className=javax.management.Notification,message=Request received from CASMR, clearing alert,type=ClearNoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]] 2012-03-27 17:22:55,982 DEBUG MessageHandlerImpl - Matching actions found: 2 2012-03-27 17:22:55,982 DEBUG ProcessServiceCheckResultCommand - [1332894175] PROCESS_SERVICE_CHECK_RESULT;localhost;processServiceCheckResult: UsageStats passive check;0;Passive check is OK 2012-03-27 17:22:55,982 DEBUG ScheduleServiceCheckCommand - [1332894175] SCHEDULE_SVC_CHECK;localhost;scheduleServiceCheck - serviceDescription: UsageStats passive check;1332894175 2012-03-27 17:23:05,968 DEBUG MessageHandlerImpl - Message received [ch.syabru.nagios.broker.jmx.JmxMessage at 694b081b[className=javax.management.Notification,message=No requests received from any CASMR for 2205 ms.,type=NoCasmrRequestReceived,source=com.hhhhhhhh.cvs.dlg:name=alert.DlgAlerts]] ===================== >From /usr/local/nagios/objects /commands.cfg on the monitoring machine among others are ====================== define command{ command_name dlg_notifications command_line $USER1$/nagios-msg-broker.sh } =================== >From /usr/local/nagios/etc/dlg/mypc.cfg on the monitoring machine among other are: ============== define host{ use remote-linux-server host_name mypc.abc-d.efg.hhhhhhhh.net alias mypc address 22.333.44.55 passive_checks_enabled 1 } define service { name mypc use remote-service host_name mypc.abc-d.efg.hhhhhhhh.net } define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications passive_checks_enabled 1 } ======================== >From /usr/local/nagios/etc/nagios.cfg among other are ================= check_external_commands=1 command_check_interval=15s command_file=/usr/local/nagios/var/rw/nagios.cmd log_passive_checks=1 accept_passive_service_checks=1 ===================== Here are the ownerships/permissions of the key players: =================== In /usr/local/nagios/libexec: =================== -rwxr-xr-x 1 nagios nagcmd 149 Mar 26 11:58 nagios-msg-broker.sh drwxr-xr-x 4 nagios nagcmd 4096 Mar 26 12:05 lib -rwxr-xr-x 1 nagios nagcmd 1361 Mar 26 11:59 config.xml =================== In /usr/local/nagios/var/rw ============= prw-rw---- 1 nagios nagios 0 Mar 27 17:48 nagios.cmd ============= When I login to nagios monitoring machine through the web, All my other checks that I didn't mention here run fine. For the above mentioned service, for mypc target machine, I see the following Under column "service: dlg_Alerts_notifications Under column "Status": Warning Under column "Last Check": 03-27-2012 17:53:53 Under column "Duration": 0d 4h 2m 19s Under column "Attempt": 3/3 Under column "Status Information": (null) ============== Can you please provide me with information to how get rid of the (null) in the "Status Information" column and get there meaningful data? Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 jwinkle at doit.wisc.edu Wed Mar 28 18:41:21 2012 From: jwinkle at doit.wisc.edu (Jim Winkle) Date: Wed, 28 Mar 2012 11:41:21 -0500 Subject: Nagios implied and additive inheritance In-Reply-To: <7710d070a8d7.4f706940@wiscmail.wisc.edu> References: <76b0b03cc2d2.4f70ac1a@wiscmail.wisc.edu> <76b0cfc7c2c9.4f70ac57@wiscmail.wisc.edu> <76e0a6ded3f5.4f70accf@wiscmail.wisc.edu> <76e0d784bbec.4f70ad0c@wiscmail.wisc.edu> <7760bfbbc719.4f70ad48@wiscmail.wisc.edu> <77d0a5269e18.4f70ad85@wiscmail.wisc.edu> <7710aa0ebdb6.4f70ae75@wiscmail.wisc.edu> <7670b7a0bd5f.4f70aeb2@wiscmail.wisc.edu> <76e0be89f0b4.4f70aeee@wiscmail.wisc.edu> <7750c957b52d.4f70af2b@wiscmail.wisc.edu> <7710d070a8d7.4f706940@wiscmail.wisc.edu> Message-ID: Thanks for the workarounds. I'm still not sure if this is a bug or if this is the way it's intended to work, so I will repost on the nagios-dev list. -- Jim On Mon, 26 Mar 2012 13:04:00 -0500 Jim Winkle wrote > I'd like to set up Nagios so that: > 1) In general, contact_groups for a host are notified about problems with the > host and any service on the host. > 2) Occasionally, we'd like other contact_groups to be notified about problems > with certain services on the host. > > If I'm understanding the documentation at > http://nagios.sourceforge.net/docs/nagioscore/3/en/objectinheritance.html > correctly, it indicates that #1 can be done using implied inheritance and #2 > by using additive inheritance, but it's not working as expected.? I've found > other posts from people with the same issue, but never any resolution. > > For example, if I define: > > define host{ > ??????? host_name?????????????? linux-server > ??????? contact_groups????????? linux-admins > ??????? ... > ??????? } > > define service{ > ??????? host_name?????????????? linux-server > ??????? service_description???? l_proc_sshd > ??????? contact_groups????????? +management > ??????? ... > ??????? } > > > I would like this to be equivalent to: > > define service{ > ??????? host_name?????????????? linux-server > ??????? service_description???? l_proc_sshd > ??????? contact_groups????????? linux-admins,management > ??????? ... > ??????? } > > But instead, the implied inheritance of "linux-admins" is ignored, and it's > equivalent to: > > define service{ > ??????? host_name?????????????? linux-server > ??????? service_description???? l_proc_sshd > ??????? contact_groups????????? management > ??????? ... > ??????? } > > So contact_groups is overwritten rather than added to.? No warnings/errors > were generated about the plus sign being used inappropriately or anything > else. > > Am I misunderstanding the documentation?? Is this possibly a bug? > > If this is not the way it's intended to work, could Nagios be easily enhanced > to support this?? It seems very logical and powerful, and apparently other > people are thinking along the same lines as I am.? I'm not using escalations, > but a cursory read makes it appear to be supported there. > > Thanks in advance for any light you can shed on this! > > -- > Jim > > ----------------------------------------------------------------------------- > - > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Jim ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From apgm17 at wp.pl Tue Mar 27 12:02:26 2012 From: apgm17 at wp.pl (apgm17 at wp.pl) Date: Tue, 27 Mar 2012 12:02:26 +0200 Subject: nagios login Message-ID: <4f71903293b689.50346812@wp.pl> hello when opening a report, "Availability- Services" see "Service Log Entries": In it various times in the "event DURATION" what are the entries? A one time of 1 day, the second one hours, 23 hours. 03-04-2012 00:00:00 03-07-2012 12:22:03 3d 12h 22m 3s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): 03-07-2012 12:22:03 03-07-2012 12:22:03 0d 0h 0m 0s PROGRAM (RE)START Program restart 03-07-2012 12:22:03 03-07-2012 12:22:10 0d 0h 0m 7s PROGRAM (RE)START Program start 03-07-2012 12:22:10 03-11-2012 00:00:00 3d 11h 37m 50s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): 03-11-2012 00:00:00 03-18-2012 00:00:00 7d 0h 0m 0s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): 03-18-2012 00:00:00 03-25-2012 00:00:00 7d 0h 0m 0s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): 03-25-2012 00:00:00 03-26-2012 12:31:22 1d 11h 31m 22s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): 03-26-2012 12:31:22 03-26-2012 12:31:22 0d 0h 0m 0s PROGRAM (RE)START Program restart 03-26-2012 12:31:22 03-26-2012 12:31:29 0d 0h 0m 7s PROGRAM (RE)START Program start 03-26-2012 12:31:29 03-26-2012 12:31:47 0d 0h 0m 18s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): 03-26-2012 12:31:47 03-26-2012 12:31:47 0d 0h 0m 0s PROGRAM (RE)START Program restart 03-26-2012 12:31:47 03-26-2012 12:31:53 0d 0h 0m 6s PROGRAM (RE)START Program start 03-26-2012 12:31:53 03-27-2012 12:00:59 0d 23h 29m 6s+ SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Mar 29 13:23:30 2012 From: ae at op5.se (Andreas Ericsson) Date: Thu, 29 Mar 2012 13:23:30 +0200 Subject: nagios login In-Reply-To: <4f71903293b689.50346812@wp.pl> References: <4f71903293b689.50346812@wp.pl> Message-ID: <4F744632.6070909@op5.se> On 03/27/2012 12:02 PM, apgm17 at wp.pl wrote: > hello > when opening a report, "Availability- Services" see "Service Log Entries": > In it various times in the "event DURATION" what are the entries? Event duration shows the duration of the state set by the listed event. I'd have thought that was obvious. > A one time of 1 day, the second one hours, 23 hours. > 24 (1 day) vs 23 hours is an interesting thing to talk about right around now though, as most of Europe switched from daylight savings time ("winter time") to normal time ("summer time") last sunday. Judging by your log-entries and your question though, I'm guessing you're not asking about that. > 03-04-2012 00:00:00 03-07-2012 12:22:03 3d 12h 22m 3s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): > 03-07-2012 12:22:03 03-07-2012 12:22:03 0d 0h 0m 0s PROGRAM (RE)START Program restart > 03-07-2012 12:22:03 03-07-2012 12:22:10 0d 0h 0m 7s PROGRAM (RE)START Program start > 03-07-2012 12:22:10 03-11-2012 00:00:00 3d 11h 37m 50s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): > 03-11-2012 00:00:00 03-18-2012 00:00:00 7d 0h 0m 0s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): > 03-18-2012 00:00:00 03-25-2012 00:00:00 7d 0h 0m 0s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): > 03-25-2012 00:00:00 03-26-2012 12:31:22 1d 11h 31m 22s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): > 03-26-2012 12:31:22 03-26-2012 12:31:22 0d 0h 0m 0s PROGRAM (RE)START Program restart > 03-26-2012 12:31:22 03-26-2012 12:31:29 0d 0h 0m 7s PROGRAM (RE)START Program start > 03-26-2012 12:31:29 03-26-2012 12:31:47 0d 0h 0m 18s SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): > 03-26-2012 12:31:47 03-26-2012 12:31:47 0d 0h 0m 0s PROGRAM (RE)START Program restart > 03-26-2012 12:31:47 03-26-2012 12:31:53 0d 0h 0m 6s PROGRAM (RE)START Program start > 03-26-2012 12:31:53 03-27-2012 12:00:59 0d 23h 29m 6s+ SERVICE OK (HARD) DISK OK - free space: /tmp 920 MB (98% inode=99%): > -- 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. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Mar 29 15:57:03 2012 From: m.borsani at it.net (Marco Borsani) Date: Thu, 29 Mar 2012 15:57:03 +0200 Subject: accept trap snmp Message-ID: <00f201cd0db3$d7b590c0$8720b240$@it.net> Hi all Actually I make many query via snmp to routers, fw, etc. Is it possible (and how) received trap snmp from Nagios server? Regards Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 victorsanchez2 at gmail.com Thu Mar 29 16:29:02 2012 From: victorsanchez2 at gmail.com (Victor Sanchez2) Date: Thu, 29 Mar 2012 16:29:02 +0200 Subject: accept trap snmp In-Reply-To: <00f201cd0db3$d7b590c0$8720b240$@it.net> References: <00f201cd0db3$d7b590c0$8720b240$@it.net> Message-ID: On 29 March 2012 15:57, Marco Borsani wrote: > Hi all**** > > ** ** > > Actually I make many query via snmp to routers, fw, etc.**** > > ** ** > > Is it possible (and how) received trap snmp from Nagios server?**** > > ** ** > > Regards**** > > Marco**** > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Hi Marco, if you need to receibe traps from routers, switches, etc., snmptt is a good option: http://snmptt.sourceforge.net/docs/snmptt.shtml An also, you can integrate Nagios with NagTrap: http://nagtrap.org/doku.php/en:nagtrap Search for a HOWTO. For example the following looks good: http://highsecurity.blogspot.com.es/2009/11/nagios-receive-traps-with-snmptt_08.html Best regards, v?ctor. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Thu Mar 29 19:45:05 2012 From: mark.elsen at gmail.com (Mark Elsen) Date: Thu, 29 Mar 2012 19:45:05 +0200 Subject: accept trap snmp In-Reply-To: <00f201cd0db3$d7b590c0$8720b240$@it.net> References: <00f201cd0db3$d7b590c0$8720b240$@it.net> Message-ID: > Hi all**** > > ** ** > > Actually I make many query via snmp to routers, fw, etc.**** > > ** ** > > Is it possible (and how) received trap snmp from Nagios server? > - Checkout the Nagios SNMP Trap Interface M. **** > > ** > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Samuel.Kidman at panres.com Fri Mar 30 07:03:24 2012 From: Samuel.Kidman at panres.com (Samuel Kidman) Date: Fri, 30 Mar 2012 13:03:24 +0800 Subject: Macros do not expand when debugging Message-ID: <2017228CAF598D4F8B68E7555B958761024E1DA8@pr-pro-exch01-3.SMY.local> Hello [1333083426.020333] [2320.2] [pid=19230] Raw Command Input: $USER1$/check_ping -H $HOSTADDRESS$ -4 -w 1000,33% -c 1000,100% -p 3 -t 1000 [1333083426.020347] [2320.2] [pid=19230] Expanded Command Output: $USER1$/check_ping -H $HOSTADDRESS$ -4 -w 1000,33% -c 1000,100% -p 3 -t 1000 I have enabled debugging in my nagios.cfg file: 1281 # DEBUG LEVEL 1282 # This option determines how much (if any) debugging information will 1283 # be written to the debug file. OR values together to log multiple 1284 # types of information. 1285 # Values: 1286 # -1 = Everything 1287 # 0 = Nothing 1288 # 1 = Functions 1289 # 2 = Configuration 1290 # 4 = Process information 1291 # 8 = Scheduled events 1292 # 16 = Host/service checks 1293 # 32 = Notifications 1294 # 64 = Event broker 1295 # 128 = External commands 1296 # 256 = Commands 1297 # 512 = Scheduled downtime 1298 # 1024 = Comments 1299 # 2048 = Macros 1300 1301 debug_level=256 1302 1303 1304 1305 # DEBUG VERBOSITY 1306 # This option determines how verbose the debug log out will be. 1307 # Values: 0 = Brief output 1308 # 1 = More detailed 1309 # 2 = Very detailed 1310 1311 debug_verbosity=2 1312 1313 1314 1315 # DEBUG FILE 1316 # This option determines where Nagios should write debugging information. 1317 1318 debug_file=/usr/local/nagios/var/nagios.debug 1319 1320 However when the commands are output into the debug file, the macros don't expand. This make debugging difficult. Anyone know what is going on? Sam Kidman IT System Administrator -------------------------- T: 08 9225 0944 M: 0466137318 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 18659 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 ck at claudiokuenzler.com Fri Mar 30 08:07:16 2012 From: ck at claudiokuenzler.com (Claudio Kuenzler) Date: Fri, 30 Mar 2012 08:07:16 +0200 Subject: Macros do not expand when debugging In-Reply-To: <2017228CAF598D4F8B68E7555B958761024E1DA8@pr-pro-exch01-3.SMY.local> References: <2017228CAF598D4F8B68E7555B958761024E1DA8@pr-pro-exch01-3.SMY.local> Message-ID: Umm.... 1299 # 2048 = Macros Right now you've set 1301 debug_level=256 this is to mainly debug the commands. For real debugging of the whole chain you can use the value -1 (for everything). Gives you a whole lot of log but that's always good for debugging. On Fri, Mar 30, 2012 at 7:03 AM, Samuel Kidman wrote: > Hello**** > > ** ** > > [1333083426.020333] [2320.2] [pid=19230] Raw Command Input: > $USER1$/check_ping -H $HOSTADDRESS$ -4 -w 1000,33% -c 1000,100% -p 3 -t 1000 > **** > > [1333083426.020347] [2320.2] [pid=19230] Expanded Command Output: > $USER1$/check_ping -H $HOSTADDRESS$ -4 -w 1000,33% -c 1000,100% -p 3 -t 1000 > **** > > ** ** > > I have enabled debugging in my nagios.cfg file:**** > > ** ** > > 1281 # DEBUG LEVEL**** > > 1282 # This option determines how much (if any) debugging information will > **** > > 1283 # be written to the debug file. OR values together to log multiple** > ** > > 1284 # types of information.**** > > 1285 # Values:**** > > 1286 # -1 = Everything**** > > 1287 # 0 = Nothing**** > > 1288 # 1 = Functions**** > > 1289 # 2 = Configuration**** > > 1290 # 4 = Process information**** > > 1291 # 8 = Scheduled events**** > > 1292 # 16 = Host/service checks**** > > 1293 # 32 = Notifications**** > > 1294 # 64 = Event broker**** > > 1295 # 128 = External commands**** > > 1296 # 256 = Commands**** > > 1297 # 512 = Scheduled downtime**** > > 1298 # 1024 = Comments**** > > 1299 # 2048 = Macros**** > > 1300**** > > 1301 debug_level=256**** > > 1302**** > > 1303**** > > 1304**** > > 1305 # DEBUG VERBOSITY**** > > 1306 # This option determines how verbose the debug log out will be.**** > > 1307 # Values: 0 = Brief output**** > > 1308 # 1 = More detailed**** > > 1309 # 2 = Very detailed**** > > 1310**** > > 1311 debug_verbosity=2**** > > 1312**** > > 1313**** > > 1314**** > > 1315 # DEBUG FILE**** > > 1316 # This option determines where Nagios should write debugging > information.**** > > 1317**** > > 1318 debug_file=/usr/local/nagios/var/nagios.debug**** > > 1319**** > > 1320**** > > ** ** > > However when the commands are output into the debug file, the macros don?t > expand. This make debugging difficult. Anyone know what is going on?**** > > ** ** > > *Sam Kidman***** > > *IT System Administrator* > > --------------------------**** > > *T:* 08 9225 0944**** > > *M: *0466137318**** > > * * > > ** ** > > ** ** > > [image: Description: panres]**** > > ** ** > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 yveslorenzo at yahoo.fr Fri Mar 30 13:09:57 2012 From: yveslorenzo at yahoo.fr (yves laurent) Date: Fri, 30 Mar 2012 12:09:57 +0100 (BST) Subject: (no subject) Message-ID: <1333105797.79996.YahooMailNeo@web171501.mail.ir2.yahoo.com> ?yveslorenzo at yahoo.fr Yves-laurent SOUMELONG EWOUNE El?ve Ing?nieur Polytechnique Yaound? Option Informatique, 5e ann?e Membre JCI - YDE EXCEL www.jci.cc CEO Intelligentsia Corporation www.intelligentsiacorporation.com T?l: +237 96 78 00 19 ?"Faillir mourir ne change rien, mourir change tout" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 esteban at nuevaeralatam.com Fri Mar 30 16:25:02 2012 From: esteban at nuevaeralatam.com (Esteban Monge) Date: Fri, 30 Mar 2012 09:25:02 -0500 Subject: The router - two providers - only one can be up Message-ID: Hi folks: I have the following scenario: One router with two interfaces, each interfaces have one different internet provider. When the primary link is up, the secundary link is down, when the primary internet provider fails, the secundary link up and waiting to solve the problem of the primary link. I have configured this scenario with two hosts differents: fuck_router_provider1 fuck_router_provider2 But always I have one host down... the quick and dirty solution is disable notifications for secundary link and check with ping manually after but not practical. Can I tell to Nagios that if primary link if up, not alert me about the secundary link? How? With host dependency? Thanks for your help... ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mguthrie at nagios.com Fri Mar 30 17:57:53 2012 From: mguthrie at nagios.com (Mike Guthrie) Date: Fri, 30 Mar 2012 10:57:53 -0500 Subject: The router - two providers - only one can be up In-Reply-To: References: Message-ID: <4F75D801.1090405@nagios.com> You could monitor this using Nagios BPI. You can create a business process out of these two hosts and then monitor the business process so that you only get alerted if both hosts are down. http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-%28BPI%29/details It could be a little overkill if you only have to do this once, but if you have multiple scenarios like this it could come in handy. On 3/30/2012 9:25 AM, Esteban Monge wrote: > Hi folks: > > I have the following scenario: > One router with two interfaces, each interfaces have one different > internet provider. > > When the primary link is up, the secundary link is down, when the primary > internet provider fails, the secundary link up and waiting to solve the > problem of the primary link. > > I have configured this scenario with two hosts differents: > fuck_router_provider1 > fuck_router_provider2 > > But always I have one host down... the quick and dirty solution is disable > notifications for secundary link and check with ping manually after but > not practical. > > Can I tell to Nagios that if primary link if up, not alert me about the > secundary link? How? With host dependency? > > Thanks for your help... > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Mike Guthrie Technical Team ___ Nagios Enterprises, LLC Email: mguthrie at nagios.com Web: www.nagios.com ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Mikhail_Parkman at cable.comcast.com Fri Mar 30 18:43:25 2012 From: Mikhail_Parkman at cable.comcast.com (Parkman, Mikhail) Date: Fri, 30 Mar 2012 16:43:25 +0000 Subject: how to associate /bin/bash with shell script in Nagios Message-ID: Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can't run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Fri Mar 30 18:52:44 2012 From: jpratt at norwich.edu (James Pratt) Date: Fri, 30 Mar 2012 16:52:44 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: References: Message-ID: <838D552D6FE6A942A53134195C53C2DE09B2E781@NUEXCH1.norwich.edu> I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can't run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Eliot.Picken at wenaas.co.uk Fri Mar 30 18:58:47 2012 From: Eliot.Picken at wenaas.co.uk (Eliot Picken) Date: Fri, 30 Mar 2012 17:58:47 +0100 Subject: AUTO: Eliot Picken is out of the office (returning 10/04/2012) Message-ID: I am out of the office until 10/04/2012. I am currently out of the office on leave, and your email has not been forwarded. For emergency issues, please contact Alex Lawrie on +44 (0) 1224 894 000 otherwise I will respond to your email upon my return Note: This is an automated response to your message "[Nagios-users] how to associate /bin/bash with shell script in Nagios" sent on 3/30/2012 5:43:25 PM. This is the only notification you will receive while this person is away. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Mikhail_Parkman at cable.comcast.com Fri Mar 30 19:27:35 2012 From: Mikhail_Parkman at cable.comcast.com (Parkman, Mikhail) Date: Fri, 30 Mar 2012 17:27:35 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: <838D552D6FE6A942A53134195C53C2DE09B2E781@NUEXCH1.norwich.edu> References: <838D552D6FE6A942A53134195C53C2DE09B2E781@NUEXCH1.norwich.edu> Message-ID: Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can't run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 low at modog.com Fri Mar 30 19:53:27 2012 From: low at modog.com (Seth Low) Date: Fri, 30 Mar 2012 13:53:27 -0400 Subject: The router - two providers - only one can be up In-Reply-To: <4F75D801.1090405@nagios.com> References: <4F75D801.1090405@nagios.com> Message-ID: <-1538102824333263743@unknownmsgid> Looked at check_cluster? -Seth Sent from my mobile device, please forgive the typos. On Mar 30, 2012, at 11:58 AM, Mike Guthrie wrote: > You could monitor this using Nagios BPI. You can create a business > process out of these two hosts and then monitor the business process so > that you only get alerted if both hosts are down. > http://exchange.nagios.org/directory/Addons/Components/Nagios-Business-Process-Intelligence-%28BPI%29/details > > It could be a little overkill if you only have to do this once, but if > you have multiple scenarios like this it could come in handy. > > > On 3/30/2012 9:25 AM, Esteban Monge wrote: >> Hi folks: >> >> I have the following scenario: >> One router with two interfaces, each interfaces have one different >> internet provider. >> >> When the primary link is up, the secundary link is down, when the primary >> internet provider fails, the secundary link up and waiting to solve the >> problem of the primary link. >> >> I have configured this scenario with two hosts differents: >> fuck_router_provider1 >> fuck_router_provider2 >> >> But always I have one host down... the quick and dirty solution is disable >> notifications for secundary link and check with ping manually after but >> not practical. >> >> Can I tell to Nagios that if primary link if up, not alert me about the >> secundary link? How? With host dependency? >> >> Thanks for your help... >> >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > -- > > > Mike Guthrie > Technical Team > ___ > Nagios Enterprises, LLC > Email: mguthrie at nagios.com > Web: www.nagios.com > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Fri Mar 30 20:32:39 2012 From: jpratt at norwich.edu (James Pratt) Date: Fri, 30 Mar 2012 18:32:39 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: References: <838D552D6FE6A942A53134195C53C2DE09B2E781@NUEXCH1.norwich.edu> Message-ID: <838D552D6FE6A942A53134195C53C2DE09B2E832@NUEXCH1.norwich.edu> Ok, so it's working fine when you run it from the command line, but not for nagios user, correct? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)? I usually su - nagios user, then try and run it from that user account - that's usually where the problem is, it runs fine for root or whoever, but fails for the nagios user for whatever reason... Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 1:28 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can't run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Fri Mar 30 20:36:35 2012 From: jpratt at norwich.edu (James Pratt) Date: Fri, 30 Mar 2012 18:36:35 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: References: <838D552D6FE6A942A53134195C53C2DE09B2E781@NUEXCH1.norwich.edu> Message-ID: <838D552D6FE6A942A53134195C53C2DE09B2E852@NUEXCH1.norwich.edu> Sorry, I also remembered you can add an "-x" to the end of the "#!/bin/bash line and it will execute in verbose mode - it's a bit noisy, but it may help figure out where/why it's failing. From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 1:28 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can't run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Fri Mar 30 20:41:04 2012 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Fri, 30 Mar 2012 18:41:04 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: References: Message-ID: Is be run on a remote host or local? From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:27 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can?t run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Mikhail_Parkman at cable.comcast.com Fri Mar 30 20:50:39 2012 From: Mikhail_Parkman at cable.comcast.com (Parkman, Mikhail) Date: Fri, 30 Mar 2012 18:50:39 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: <838D552D6FE6A942A53134195C53C2DE09B2E832@NUEXCH1.norwich.edu> References: <838D552D6FE6A942A53134195C53C2DE09B2E781@NUEXCH1.norwich.edu> <838D552D6FE6A942A53134195C53C2DE09B2E832@NUEXCH1.norwich.edu> Message-ID: Actually I verified that this script runs fine manually using default (Bourne) shell too. So now I have "#!/bin/sh" in the beginning of my script and it still is not being picked up by service. And I restart Nagios to initiate the service attempt. Do you refer to Bourne shell ("#!/bin/sh" ) in this part of your explanation: " (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)?" If you do, and since I still can't initiate the script should I su - nagios user anyway? And responding to Edwin's question, it is on local host. Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 11:33 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Ok, so it's working fine when you run it from the command line, but not for nagios user, correct? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)? I usually su - nagios user, then try and run it from that user account - that's usually where the problem is, it runs fine for root or whoever, but fails for the nagios user for whatever reason... Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 1:28 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can't run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Fri Mar 30 21:11:22 2012 From: Edwin.Zoeller at ama-assn.org (Edwin Zoeller) Date: Fri, 30 Mar 2012 19:11:22 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: References: Message-ID: If this is run on a remote host using nrpe this what I would check: - type "which bash" on the remote host and make sure the path matches what's in your script. - verify your nrpe.cfg has an entry in it for your script I.e "check_myscript" - verify on the master that check commands matches the remote entry Ed From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 01:50 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Actually I verified that this script runs fine manually using default (Bourne) shell too. So now I have "#!/bin/sh" in the beginning of my script and it still is not being picked up by service. And I restart Nagios to initiate the service attempt. Do you refer to Bourne shell ("#!/bin/sh" ) in this part of your explanation: ? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)?? If you do, and since I still can?t initiate the script should I su - nagios user anyway? And responding to Edwin?s question, it is on local host. Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 11:33 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Ok, so it's working fine when you run it from the command line, but not for nagios user, correct? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)? I usually su - nagios user, then try and run it from that user account - that's usually where the problem is, it runs fine for root or whoever, but fails for the nagios user for whatever reason... Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 1:28 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can?t run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Fri Mar 30 21:18:47 2012 From: jpratt at norwich.edu (James Pratt) Date: Fri, 30 Mar 2012 19:18:47 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: References: Message-ID: <838D552D6FE6A942A53134195C53C2DE09B2E8BB@NUEXCH1.norwich.edu> Yes I agree with Ed as well on the remote stuff - And yes, the *nix OS determines what shell/program (eg perl/bash/sh/zsh etc) to execute the script with by the shebang line in the top of the file, and whether or not it's executable. I would definitely try and execute it as the nagios user - that is all that is left in your case it seems (?) From: Edwin Zoeller [mailto:Edwin.Zoeller at ama-assn.org] Sent: Friday, March 30, 2012 3:11 PM To: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios If this is run on a remote host using nrpe this what I would check: - type "which bash" on the remote host and make sure the path matches what's in your script. - verify your nrpe.cfg has an entry in it for your script I.e "check_myscript" - verify on the master that check commands matches the remote entry Ed From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 01:50 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Actually I verified that this script runs fine manually using default (Bourne) shell too. So now I have "#!/bin/sh" in the beginning of my script and it still is not being picked up by service. And I restart Nagios to initiate the service attempt. Do you refer to Bourne shell ("#!/bin/sh" ) in this part of your explanation: ? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)?? If you do, and since I still can?t initiate the script should I su - nagios user anyway? And responding to Edwin?s question, it is on local host. Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 11:33 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Ok, so it's working fine when you run it from the command line, but not for nagios user, correct? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)? I usually su - nagios user, then try and run it from that user account - that's usually where the problem is, it runs fine for root or whoever, but fails for the nagios user for whatever reason... Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 1:28 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can?t run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Mikhail_Parkman at cable.comcast.com Sat Mar 31 02:43:20 2012 From: Mikhail_Parkman at cable.comcast.com (Parkman, Mikhail) Date: Sat, 31 Mar 2012 00:43:20 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: <838D552D6FE6A942A53134195C53C2DE09B2E8BB@NUEXCH1.norwich.edu> References: <838D552D6FE6A942A53134195C53C2DE09B2E8BB@NUEXCH1.norwich.edu> Message-ID: The script represents in Nagios terms external application. It runs on the local (monitoring) box. Script due to its content makes connection to the mbeans on the remote server (target box), receives notifications from mbeans, and then writes to the external fifo file (usr/local/nagios/var/rw/nagios.cmd) message in the predefined format: PROCESS_SERVICE_CHECK_RESULT;;;; One message for one notification. It looks to me that ?remote stuff? is not applicable in that case. When I run this script manually on the local monitoring host, it runs and writes data to the file. When it is initiated by service defined on the same monitoring host in the .cfg file, nothing happens. If I want this script to be initiated by ?su ? nagios?, how exactly I incorporate it within existing command and service definitions on the monitoring host? Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 12:19 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Yes I agree with Ed as well on the remote stuff - And yes, the *nix OS determines what shell/program (eg perl/bash/sh/zsh etc) to execute the script with by the shebang line in the top of the file, and whether or not it's executable. I would definitely try and execute it as the nagios user - that is all that is left in your case it seems (?) From: Edwin Zoeller [mailto:Edwin.Zoeller at ama-assn.org] Sent: Friday, March 30, 2012 3:11 PM To: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios If this is run on a remote host using nrpe this what I would check: - type "which bash" on the remote host and make sure the path matches what's in your script. - verify your nrpe.cfg has an entry in it for your script I.e "check_myscript" - verify on the master that check commands matches the remote entry Ed From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 01:50 PM To: Nagios Users List > Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Actually I verified that this script runs fine manually using default (Bourne) shell too. So now I have "#!/bin/sh" in the beginning of my script and it still is not being picked up by service. And I restart Nagios to initiate the service attempt. Do you refer to Bourne shell ("#!/bin/sh" ) in this part of your explanation: ? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)?? If you do, and since I still can?t initiate the script should I su - nagios user anyway? And responding to Edwin?s question, it is on local host. Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 11:33 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Ok, so it's working fine when you run it from the command line, but not for nagios user, correct? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)? I usually su - nagios user, then try and run it from that user account - that's usually where the problem is, it runs fine for root or whoever, but fails for the nagios user for whatever reason... Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 1:28 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can?t run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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 Mar 31 04:22:18 2012 From: jpratt at norwich.edu (James Pratt) Date: Sat, 31 Mar 2012 02:22:18 +0000 Subject: how to associate /bin/bash with shell script in Nagios In-Reply-To: References: <838D552D6FE6A942A53134195C53C2DE09B2E8BB@NUEXCH1.norwich.edu> Message-ID: <838D552D6FE6A942A53134195C53C2DE09B2EC91@NUEXCH1.norwich.edu> ok it's really very simple - find the exact command definition string you want to execute in your commands.cfg, and su - nagios (as root) and then interactively (like actually type it right?) the same exact command that the command definition is attempting to execute as the nagios user, and see if it works - Note, this is only to debug, or test your configuration - you do not want to setup your script to su - nagios or anything like that ... sorry if i was not clear on that - what you want to do is "mimic exactly" the command nagios is attempting to execute, that is all, it's just for testing. if you can figure out why that is not working as the nagios user (This is the account the nagios program runs as right?), then that is where your problem is, so i'm sorry - it's not a solution, it's only the best way to find your problem, as that is the apparent issue - as you say - it runs correctly otherwise. Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 8:43 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios The script represents in Nagios terms external application. It runs on the local (monitoring) box. Script due to its content makes connection to the mbeans on the remote server (target box), receives notifications from mbeans, and then writes to the external fifo file (usr/local/nagios/var/rw/nagios.cmd) message in the predefined format: PROCESS_SERVICE_CHECK_RESULT;;;; One message for one notification. It looks to me that ?remote stuff? is not applicable in that case. When I run this script manually on the local monitoring host, it runs and writes data to the file. When it is initiated by service defined on the same monitoring host in the .cfg file, nothing happens. If I want this script to be initiated by ?su ? nagios?, how exactly I incorporate it within existing command and service definitions on the monitoring host? Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 12:19 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Yes I agree with Ed as well on the remote stuff - And yes, the *nix OS determines what shell/program (eg perl/bash/sh/zsh etc) to execute the script with by the shebang line in the top of the file, and whether or not it's executable. I would definitely try and execute it as the nagios user - that is all that is left in your case it seems (?) From: Edwin Zoeller [mailto:Edwin.Zoeller at ama-assn.org] Sent: Friday, March 30, 2012 3:11 PM To: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios If this is run on a remote host using nrpe this what I would check: - type "which bash" on the remote host and make sure the path matches what's in your script. - verify your nrpe.cfg has an entry in it for your script I.e "check_myscript" - verify on the master that check commands matches the remote entry Ed From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 01:50 PM To: Nagios Users List > Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Actually I verified that this script runs fine manually using default (Bourne) shell too. So now I have "#!/bin/sh" in the beginning of my script and it still is not being picked up by service. And I restart Nagios to initiate the service attempt. Do you refer to Bourne shell ("#!/bin/sh" ) in this part of your explanation: ? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)?? If you do, and since I still can?t initiate the script should I su - nagios user anyway? And responding to Edwin?s question, it is on local host. Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 11:33 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Ok, so it's working fine when you run it from the command line, but not for nagios user, correct? (If it's a shell script, nagios will execute it using the proper interpreter, so there is no way to "tell" nagios to use bash if that makes sense)? I usually su - nagios user, then try and run it from that user account - that's usually where the problem is, it runs fine for root or whoever, but fails for the nagios user for whatever reason... Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 1:28 PM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios Sorry for confusion - I was just trying different combinations. But initially my command definition was following: define command{ command_name dlg_notifications command_line /usr/local/nagios/libexec/nagios-msg-broker.sh } I have "#!/bin/bash" in the top of my shell script, and shell script is set to be executable. perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh Thanks. Mikhail. From: James Pratt [mailto:jpratt at norwich.edu] Sent: Friday, March 30, 2012 9:53 AM To: Nagios Users List Subject: Re: [Nagios-users] how to associate /bin/bash with shell script in Nagios I'm slightly confused - Do you have "#!/bin/bash" in the top of your shell script, and is it set to be executable by (at least) the nagios user? (Not sure why you are calling bash then the script name as an arg, that is odd to me, but maybe I'm missing something)? Cheers, Jamie From: Parkman, Mikhail [mailto:Mikhail_Parkman at cable.comcast.com] Sent: Friday, March 30, 2012 12:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to associate /bin/bash with shell script in Nagios Hello, I have the following command: define command{ command_name dlg_notifications command_line /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh } And the following service define service{ use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 } /bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually. Service defined above can?t run it though. While googling around, I found out that apparently Nagios does not know that script should be executed by /bin/bash How would I let Nagios know about /bin/bash Thanks. Mikhail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -------------- 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