RE: [Nagios-users] Tracking MySQL threads?
Nagios plugins are just scripts. Write a bash script (or your favorite language) to do something like: #!/bin/bash /usr/local/Nagios/libexec/check_mysql -H mysql_host -u read_only -p ro_passwd | grep Threads | awk "{ print $4 }" Etc. Then you can just put into your check commands in your configuration file. Let me know if that makes sense. > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of JB Segal > Sent: Tuesday, April 11, 2006 11:47 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Tracking MySQL threads? > > So, the check_mysql plugin will tell me how many threads are running: > > /usr/local/nagios/libexec/check_mysql -H mysql_host -u read_only -p > ro_passwd > Uptime: 4132404 Threads: 9 Questions: 2062339993 Slow queries: 770 > Opens: 3766477 Flush tables: 12 Open tables: 512 Queries per second > avg: 499.065 > > but as near as I can tell it won't let me alert on anything other than > a simple up/down (response/no response) test. > > Does anyone have a plugin that will alert on "Threads: nnn" >foo or > check_procs, but for a single monolithic binary.) > > Thanks! > JB > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642 > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] POLL: nagios integration with other tools
We've done little integration, except automatically building the configuration scripts based upon hosts in a database. It is likely we will integrate with Zope soon. I would suggest Zope might be a great environment long run for maintenance. > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of jeff vier > Sent: Thursday, March 16, 2006 9:51 AM > To: Jim Perrin > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] POLL: nagios integration with other tools > > On Thu, 2006-03-16 at 10:24 -0500, Jim Perrin wrote: > > I've been using nagios heavily for about a year now and have been > > quite pleased with it. It monitors nearly every aspect of the servers > > I'm responsible for, but in the interest of never sitting still, I've > > been looking to see what tools have been integrated with nagios. A > > post on the rt (bestpractical) mailing list has a patch for 1.x to > > open rt tickets etc, and I wanted to see what others are doing with > > customizations. Has anyone combined nagios with an asset management > > system, bugzilla, etc. How do others on the list work with nagios, and > > how does it fit into your environment? > > Let's see. > > Wrote a new (for me, better) MRTG RRD checker. Notifies on any > interface over-threshold (some of our switches have hundreds and > hundreds of interfaces - individual watching wouldn't be practical). > > Integrated support for Trading Technologies' SuperGuardian Agent (This > probably doesn't mean much unless you're a derivative market trading > firm). > > minor link-in to an internal asset management system (lets you pull up > serial numbers, contract numbers, purchase information, etc, etc). > > probably some other stuff I've forgotten. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] Monitoring a mail server
Depending upon what you want to check, there are many solutions. I'm not familiar with Amavisd, so I can't say for certain. However it seems that you may to look at: check_smtp, check_mailq, check_proc, and check_tcp (among others). You can even write your own quickly. I'm not sure I understand, but check_tcp will notify you if it is down. > > >I want to monitor Amavisd on localhost port 10024 with check_tcp, but if > > Amavisd is down, the notification will not make it. How can I monitor a > > localhost port? > > > > -- > > Robert --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] Question about Nagios configuration
Title: Question about Nagios configuration No. Just install the plug-ins – you can even build the ones you like separately (some of them, like mysql, require libraries you probably don’t have). From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kannberg, Andy Sent: Thursday, January 26, 2006 2:05 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Question about Nagios configuration Hi all, I'm confused about my Nagios configuration. My Nagios monitoring host is Linux (Slackware ) box. All clients I need to monitor are Tru64 boxes. So, I was able to compile NRPE on the Tru64 boxes, but it appears I need all plugins locally on the system. So I want to install the standard plugins pack (nagios-plugins-1.4.2.tar), but the README tells me it expects nagios to be installed. Do I need to install Nagios on all clients also ? best regards, Andy Kannberg
RE: [Nagios-users] Question about Linux Distros
We use Debian across the board - Debian is of course very much a philosophy as well as an OS. In my experience Red Hat tends to be bleeding edge and not very Posix or Standards compliant, although it will have all the latest software and packages. Debian tends to be slightly out of date in its packages and only tends to allow very very stable products into the distribution and the packages must follow very strict guidelines on where things are installed. Debian is frustrating at times because of its rather Nazi like policy, but at the same time I know if it's on Debian it is going to be rock solid, secure, and easy to maintain. Specific Pros (relating to Nagios): * Easy to install * Integrates easily with Apache with minimal effort * OS and security upgrades occur easily without disrupting nagios * Not bleeding edge * The Clean OS design makes it easy to figure out what is being monitored and the actual state when problems arise. Cons: * Not all the latest plugins - I only found this to be a problem in one case, with check_mysql. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sand Philipp Sent: Friday, January 13, 2006 5:42 AM To: nagios-users@lists.sourceforge.net Subject: AW: [Nagios-users] Question about Linux Distros We run Nagios on Fedora Core 2 without any Problems so far... Why wouldn't you recommend it to run Nagios on Fedora? > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] Im Auftrag von Tedman Eng > Gesendet: Freitag, 30. Dezember 2005 03:16 > An: 'Meyer, David R'; nagios-users@lists.sourceforge.net > Betreff: RE: [Nagios-users] Question about Linux Distros > > All 3 Linux distros you mention run Nagios equally well. The only > difference being the Nagios packages, which are all 3rd party. If I had > to > vote, I'd put RHEL (not Fedora) 1st, Debian 2nd, and Suse 3rd. > > My bias towards RedHat is due to their enterprise-friendly Kickstart > Installer (which is not necessarily nagios related) > > Debian probably has better repositories, but you're only installing once > and > leaving the repositories alone after that. Besides, you'll probably want > to > keep a copy of the packages that got installed, so in case of a disaster > you > can recover to the same version, which a repository won't always keep > around. > > > > -Original Message- > From: Meyer, David R [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 29, 2005 4:04 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Question about Linux Distros > > > All, > > I am going to convert my nagios-text install (no DB...just flat files) to > a > "real" install tomorrow. > > Here is my question... > > In your experience, which version of Linux is best for Nagios? I have > access to Red Hat EL, SUSE, and Debian and am equally comfortable with all > of them. BUT...I am a Nagios virgin. Have you noticed one distro being > better than another in terms of Nagios installing and running? > > Also, which backend DB - - MySQL or PostgreSQL? Same experience applies > to > both. > > Thanks for your advice! > > Dav > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null sycor plastics - die neue Branchenloesung fuer die Kunststoffindustrie www.sycor-plastics.de Diese E-Mail ist vertraulich und kann darueber hinaus persoenliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemaesse Empfaenger sind, loeschen Sie bitte die E-Mail und deren Anhaenge sofort und benachrichtigen Sie uns darueber. Die Firma sycor willigt in keine Vertraege oder vertragliche Verpflichtungen ein oder uebermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdruecklich in schriftlicher Form zwischen den Parteien vereinbart wurde. This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written
RE: [Nagios-users] check_http
I second that advice. Although I prefer awk. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Holloway Sent: Thursday, January 12, 2006 9:47 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_http Easiest way would probably be to just hack on check_http.c to suit your needs (search for HTTP OK) and then recompile and copy the executable to your libexec folder. A more convoluted way would be to write a script (sh or perl) that execs check_http and then passes the output through a stream editor and exits with the same exit code as check_http. You would need to make a new checkcommand, maybe: define command{ command_namecheck_http_formatted command_line $USER1$/check_http_formatted.sh $ARG1$ $ARG2$ $ARG3$ $USER1$ } and then for check_http_formatted.sh something like: #!/bin/bash output=`$4/check_http -H $1 -w $2 -c $3` exitcode=$? echo $output | sed -e 's/HTTP/$1 HTTP/' exit($exitcode) -mike On Jan 12, 2006, at 3:26 AM, Richard Gliebe wrote: > I'm checking some local websites with the check_http plugin. > > [...] > # 'check_http_alias' command definition > command_namecheck_http_alias > command_line$USER1$/check_http -H $ARG1$ -w $ARG2$ -c > $ARG3$ > .. > .. > where $ARG1$ is www.xyz.com ! $ARG2$ is 2 ! $ARG2$ is 5 > [...] > > Works fine ;-) > > But now I want to manipulate the output from: > > [...] > HTTP OK HTTP/1.1 200 OK - 42488 bytes in 0.013 seconds > to > www.xyz.com OK HTTP/1.1 200 OK - 42488 bytes in 0.013 seconds > [...] > > any thinks ? > > thanks in advance > Richard > > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
RE: [Nagios-users] check_mysql
We do this a lot. Where is the mysql server relative to the nagios server? Would NRPE be an option? We used to do SSH and find NRPE better because of the passwords issue. We used to due key authethentication to by pass the passwords with SSH if you still want to go that way. We have also used “expect”. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rene Nelson Sent: Thursday, January 05, 2006 3:48 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_mysql I want to check this via check_by_ssh, but do not want to use the root user nor password. (not too excited about leaving it in a clear text .cfg file) Is there a way to get the same information using a read-only user with no password? Is there a best practices for Check_MySQL via check_by_ssh?
RE: [Nagios-users] Commands after a service/host failure
Yes – “monit” another monitoring tool might be better suited for that. We use Debian and it is easily installed and configured. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McKeever Sent: Thursday, January 05, 2006 12:10 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Commands after a service/host failure Is there a way to execute code after a service failure? In particular, our nagios machines network, likes to loose subnets on occassion, resulting in notifications that hosts are down a network restart kicks it all back into gear, and we are doing that on a cron every hour or so. It would be much more efficient if after the first time the host is found to be down (before any notification) to try a network restart, therefore getting everything back online and no false notifications sent. Any ideas? -- -- please respond to the list .. if you need to contact me direct cgmckeever is the account prupref.com is the domain http://www.prupref.com">Simply Chicago Real Estate