Re: [Nagios-users] Nagios to monitor Syslog Server
Shaun Saravana wrote: Request your help in configuring Nagios - for monitoring a Fedora6 syslog server ( syslog service on the server).I have configured Nagios Server to monitor the Syslog server , to be more effective i want the syslog service to be monitored . I wrote a plugin to monitor a syslog server which uses a MySQL database. If you have a MySQL database backend, then this is the thing to use: http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F1381.html;d=1 -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] DHCP hosts
Morris, Patrick wrote: G. S. Marzot wrote: Thank you for the pointer to this cool plugin... Unfortunately no solutions to date really fill the bill as the leases are allocated by a router that does not publish them in a way I know how to get... nor can I put anything on the DHCP hosts... they are not under my control... Maybe there is a way to hack into my router and get the lease info... or maybe I need a little daemon that will just go and probe for all possible hosts... I would just like to see an accurate depiction of who is on the net at any given time... maybe this is not something nagios is good at (i.e., dynamic host groups). Nagios is good at what it does, and it really sounds like this just isn't it. However, I don't see a reason you couldn't hack together a really simple check using a tool that *is* good at this sort of thing (like, say, nmap), and based on the results of that tool, feed the results back to Nagios . I would say that the best thing to do would be to turn off dhcp on that router and use dhcpd instead. Open and accessible and then you can just use the plugin I wrote... at least I think that would be least amount of work for you to get to working solution. Dhcpd isn't hard and doesn't take long to set up, but I'm not sure on your wording, you mean the hosts aren't under your control or the router isn't under your control to replace the dhcp service with dhcpd? If turning off the dhcp from the router isn't an option then you need to go back to the drawing board, consider how you can access the system, if you have a shell, if you have snmp etc and then come up with another solution using that, possibly custom writing your own plugin to integrate this in to Nagios. -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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] Using Nagios to Scan a Network for Rogue AP's
Kevin Holleran wrote: I was wondering if Nagios had the capabilities to scan a network for rogue AP's? We need to generate a report that lists the results of scanning for wireless AP's that may be placed on our networks. Is this something that Nagios can do? I'm not familiar with a plugin to do this. If you want a real good solution and are willing to pay for it, there are things like Air Defense... Have you tried monitoringexchange.org? I'm not sure anything we could hack up would be as good as Air Defense though.. -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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] Using Nagios to Scan a Network for Rogue AP's
James Pratt wrote: Thanks for the response. I was thinking of maybe some kind of plugin to interface with NMap and NMap modules. Does anything like that exist? Yes - strangely enough, Marc Powell and I both suggested this same plugin/site just yesterday on another thread: http://ubermonkey.wordpress.com/2006/09/28/nagios-nmap-plugin/ Isn't that for port scanning a given host to detect port changes rather than being able to detect entire rogue wifi access points which from my exploration of this a year or two ago actually requires wifi sensors and equipment at both ends, which is what the (very good) proprietary solutions do. I found that it was mainly the cost that was the biggest inhibitor with those systems and management may well take the stance that they simply don't want to spend that much to close this potential hole. -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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] Monitor Postfix Mail Queue
Scott Miller wrote: I'm trying to get Nagios to monitor a local Postfix Mail Queue, with no luck. The service keeps reporting OK: Postfix mailq has 0 messages queued, when I know for a fact there are messages in the queue. I'm wanting to use Nagios on this local machine to monitor the queue, and alarm/notify when it reaches a certain threshold. I have modified the check_mailq to the following: (retrieved from http://wiki.osuosl.org/display/LNX/Nagios+Postfix+Mailq+Plugin ) Still - it reports (OK: Postfix mailq has 0 messages queued), when at this time there are 9 messages in queue. Anyone have any luck implementing this with postfix? If so, can anyone see what I'm doing wrong? Or if anyone has a better way of doing this, I'd be happy to hear about it. Why don't you just use the standard check_mailq plugin? I use that to monitor my Postfix mail queues... -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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] DHCP hosts
G. S. Marzot wrote: Does anyone have a good solution for monitoring DHCP hosts which may come and go? I would like to see them in some hostgroup when they are active but not generate any alerts when gone... ideas? I wrote a plugin for dhcpd which lists hosts that currently have leases: http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F1450.html;d=1 -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ 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] dhcp new lease notification
Tobias Exner wrote: I would like to know when my dhcp-server leases a new ip-adress. The check_dhcp plugin seems to be not the right tool for that. Is there a easy way to do that with nagios Nagios isn't the best/right/ideal tool for this really, you would want log based alerting which is entirely different and more real time as well. You can try this dhcp leases plugin that I wrote which will display all current leases and macs in the nagios interface if you want: http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F1450.html;d=1 You could make Nagios do what you asked via a nagios check of the logfile for a string indicating a lease grant or something similar but I don't consider this to be a very good solution. -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] dhcp new lease notification
Hari Sekhon wrote: Tobias Exner wrote: I would like to know when my dhcp-server leases a new ip-adress. The check_dhcp plugin seems to be not the right tool for that. Is there a easy way to do that with nagios Nagios isn't the best/right/ideal tool for this really, you would want log based alerting which is entirely different and more real time as well. You can try this dhcp leases plugin that I wrote which will display all current leases and macs in the nagios interface if you want: http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F1450.html;d=1 You could make Nagios do what you asked via a nagios check of the logfile for a string indicating a lease grant or something similar but I don't consider this to be a very good solution. Technically you could kind of use my plugin mentioned about to do what you want by simply specifying a whitelist host (doesn't have to exist) so that Nagios raises critical on any host that gets a lease. You wouldn't be notified of new leases being handed out for the remainder of the notification interval though. I consider this a bit of a hack to be honest. Back to my first recommendation, real time log based alerting, that's what I do for stuff like this and it is _good_. -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] service definitions use
Natalie Aloi wrote: does anyone have any documentation about the USE parameter listed below - I have been unable to locate this option in the nagios documentation It inherits settings from a class that you define beforehand (ie register 0) http://nagios.sourceforge.net/docs/2_0/templaterecursion.html -h -- Hari Sekhon http://www.linkedin.com/in/harisekhon -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ 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] nagios to detect collisions
Melanie Pfefer wrote: Is there a plugin available on nagios to monitor collisions on extreme switches Have you checked NagiosExchange? If the switches have snmp, it may be worth checking to see if they offer up any OID on collision statistics and then using an snmp check on that. -h -- Hari Sekhon Currently open to new opportunity http://www.linkedin.com/in/harisekhon -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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] nagios exchange publishing question
shadih rahman wrote: I have a quick question about licensing and trademarks. If I publish some scripts in nagiosexchange.org http://nagiosexchange.org what license or trademark am I publishing under? Please advise on this. You can specify the license you want, I suggest the GPL license as people know and trust it. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, Big Spaceship. http://www.creativitycat.com ___ 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] Trac/Nagios integration
John Andrunas wrote: The company I work for uses Trac quite heavily, and I was recently tasked with getting Nagios up and running to replace our current monitoring system, I was wondering if anyone had done any kind of trac/nagios integration that would allow creation of a trac ticket from a nagios alert? I did some searching but didn't come up with anything. A bit of creative scripting could make this work, if you deem it worth the time. You'd need to look at either your notification commands or some kind of event handlers. I tend to write event handlers for reactionary stuff like this, as I think it's the better choice. Don't know of anything that is ready made to do it off the top of my head. I use Trac, but again it's not that important compared to everything else I do, so I haven't bothered with this as I find the ticket bureaucracy slows me down. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ 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 root su.
Jussi Sallinen wrote: Has someone done email/sms monitoring service to nagios for monitoring use of su? I would like to certain contact or contact group to be notified when someone su's or logins as root to the system - any recommendations for the best way to do such monitoring? Nagios is not really the right tool for this job, look into logservers and automated alerting from syslog, this is how I do, much much better. Usually you would code any notification method you want, email or sms doesn't matter at that point, you can do what you want once you have the method of detection. Google log analysis. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 Plugin check_svn
Manuel Höbel wrote: Hi Hari Sekhon, I have a question about your Nagios Plugin ‘check_svn’. I only want to check if SVN is reachable. So I only use the Command Line $USER1$/check_svn -H $HOSTADDRESS$ in my Nagios Configuration to do so. But in Nagios, I always get the failure: UNKNOWN: 'svn' cannot be found in path. Please install the subversion client or fix your PATH environment variable Now to my question: Where do I have to change/set the ‘PATH environment variable’? Should I write it in the Command Line, for example: $USER1$/check_svn -H $HOSTADDRESS$ /usr/bin/svn or somewhere in your Plugin File? Sorry, I have no idea and I’m new to the hole ‘Nagios thing’… ;) It would give me great pleasure if you could help me with this little problem. J Hi Manuel, I'm sending this to the Nagios-Users mailing list as well as I think it's a generally useful thing to know/discuss. Firstly, the path is set in the user's profile as per unix standards, so you may want to check the path of the user account that the plugin is running as (if it's running from the nagios server as you imply then this is the user that Nagios itself runs as). Secondly, if you want to change the PATH environment variable to include the directory containing the svn binary only for the check_svn definition then you can try another standard unix trick which is to prepend the environment variable to the beginning of the command line as follows: PATH=$PATH:/path/to/directory $USER1$/check_svn -H $HOSTADDRESS$ which will append the directory /path/to/directory to the PATH environment variable and allow the plugin to find the svn executable. Replace /path/to/directory with the directory where your svn executable is located, something like /usr/local/bin etc... I've noticed that Nagios runs shells for some plugins and not for others. It looks like Nagios runs a shell for anything that isn't an obvious full plugin path... so you can use all sorts of constructs like cd /dir ./plugin _name etc just as you would if you were typing into a shell. rant Probably the only thing I disagree with on the Plugin Coding Guidelines is specifying the full path to any binaries used as this makes things horribly non-portable across distros and platforms which may have programs in different places. I don't think that you should have to be editing plugin code to make it work on different platforms, that's just horrible to maintain if you run more than 1 distro/platform (and a lot of us do). PATH is so standard in unix, we should just use it. Security worries regarding PATH are usually ridiculous since if someone can modify your path, you've got serious problems and inconveniences like hard coding full paths to binaries just isn't going to save your bacon, we don't write /path/to/ls every time we execute it on the command line, do we? end rant Thanks -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Recommended Plugin for Monitoring iptables
Marc Powell wrote: The script does not (and can not) detect stupid rules. It's purpose is to ensure that iptables and the configured rules (whatever they may be) are loaded. It is useful to identify situations such as: - forgetting to start iptables at boot - stopping iptables for testing and forgetting to restart - etc Normal condition is where all tables have 1 or more rules. Critical condition is when a table (any table) has 0 rules. I simply have my rules re-applied from known-good versions, which mostly negates the need for such a check. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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] VNC port : connection refused
Anirudh Srinivasan wrote: The nagios web interface shows critical message for VNC port 5900 : connection refused message.The plugin that is used is check_tcp!5900. I am not able to confirm whether its a firewall problem . But when i do telnet ipaddress 5900 i get connection refused message . please help me . The VNC Service is simply stopped/down. You simply need to restart the service. For the record check_tcp is a pretty weak test of last resort. I know from experience there have been times when check_tcp returns OK, the port is open, but vnc is wedged in a way that you cannot actually use it to retrieve the screen. You may want to check out the check_vnc plugin I wrote, it is freely available here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1558.html;d=1 or just search at NagiosExchange.org, it is the only vnc plugin there. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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] VNC port : connection refused
Hari Sekhon wrote: Anirudh Srinivasan wrote: The nagios web interface shows critical message for VNC port 5900 : connection refused message.The plugin that is used is check_tcp!5900. I am not able to confirm whether its a firewall problem . But when i do telnet ipaddress 5900 i get connection refused message . please help me . The VNC Service is simply stopped/down. You simply need to restart the service. For the record check_tcp is a pretty weak test of last resort. I know from experience there have been times when check_tcp returns OK, the port is open, but vnc is wedged in a way that you cannot actually use it to retrieve the screen. You may want to check out the check_vnc plugin I wrote, it is freely available here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1558.html;d=1 or just search at NagiosExchange.org, it is the only vnc plugin there. -h Just to confirm the most likely explanation is that the service is down, as firewalls usually drop rather than reject, in which case you'd see a timeout or lack of response, but this is dependent on your environment. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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] Nagios for client management?
Paul Weaver wrote: Nagios seems to be a good client monitor system. I was wondering if anyone also uses it as a client management system? By management, I mean running update scripts and other software on various Linux clients. The closest thing we do is monitor patches on machines. For debian machines, we use a modified check-apt perl script (originally from http://www.logix.cz/michal/devel/nagios, modified to do things like run apt-get update first) For windows machines, we snmp-poll the server and compare the listed KB patches against an internal list For solaris machines we're looking at check_solaris_pca Add to that list: Redhat / CentOS - check_yum Gentoo - check_gentoo_portage For patch monitoring on those Linux distros. I wrote both and you can get them from NagiosExchange.org. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Best Practises for a *NIX environment over multiple WAN's
I think this screams for an NSCA relay agent so that you don't have to actually have to make the changes on more than 1 nagios server, which is what you'd currently have to do. Such an agent should work just like a dhcp relay, get a request, buffer and try passing it on to the remote nagios server, retry if the wan link is down etc... Alternatively, for right now, a config framework like puppet + revision control + scripted auto update/config change to passive check forwarding on remote nagios server + reload would probably be a workaround to do what you want so you only have to modify nagios in one place and the other follows suit automatically. I love doing stuff like that. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon David Jacobson wrote: Hi There, We monitor a large amount of services for all our customers. We do not have the luxury of all the networks being on the same WAN/LAN infrastructure. A lot of our servers have public IP’s and a lot do not. Typically, we have been monitoring the *NIX servers using a combination of active and passive (active where we can, passive where the server does not have a public IP) What the above creates, is quite a mess and a difficult process to try and explain to all our support agents on how to monitor our customer servers, due to all differences. We are now redoing our monitoring from scratch (using Groundwork) - in an ideal world each server would be accessible via an active check and we could ensure that 99% of all monitoring changes are doing via the Groundwork interface (assuming we run NRPE on each server and have external arguments accepted) - what’s great about this, the junior support engineers could easily make changes via an interface. However, as discussed not all servers are accessible directly, so I’m considering just doing an all passive approach to simplify the process – to install nagios on every server which submits its active checks back via NSCA. The thing I hate about this, is the fact that we have to log on to every server to make a monitoring change, which is what I was trying to avoid. I guess we could make the passive approach a bit better, by making use of something like puppet and version control so we don’t really have to log on to the servers... Before I start this whole project, I would like to know if anyone has any ideas on the “Best way” to do this, any advise would be appreciated. At the moment, I’m steering towards passive for everything and version control. My main goal here is monitoring that works, that is simple to modify moving forward. (KISS methodology) -- Regards, David Jacobson Technical Director SYNAQ (Pty) Ltd Tel: 011 262 3628 Direct: 011 262 3626 Fax: 086 637 8868 Cell: 083 235 0760 Mail: [EMAIL PROTECTED] Web: http://www.synaq.com Key Fingerprint 8246 FCE1 3C22 7EFB E61B 18DF 6E8B 65E8 BD50 78A1 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] How-to DO NOT check_alive host?
Andreas Ericsson wrote: Hari Sekhon wrote: Proskurin Kirill wrote: Hello. Im have some servers what don`t accept any icmp packets. Im check http port on it. But nagios by default does check_alive - and say what host is down. How can im evade this? use the negate program to invert the meaning of the check_ping plugin? Umm, no. That won't work very well at all, as the host then will seem to be up no matter if it's on fire or whatever happens to it. A more appropriate method would be to check something else on the host that the host can (and does) respond to properly. TCP connections to some random (open) port is usually a fairly decent bet. Yes you're right, I don't use negate myself, must have misread the question. Switching the host check to a service check, in this case check_http would be more appropriate. -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 ntp clients?
Andreas Ericsson wrote: stan wrote: How can I monitor machines that are NTP clients to make certain that they have connections to the approriate NTP server? I want something that will return a summary of the type of info I get from ntpq -p. Use check_ntp_peer (I think). I use check_ntp on each remote host against my ntp server, which warns if the host time is x seconds different from the ntp server time. This checks that the ntp server is accessible from the box and that the current time on the box is correct and within margin. -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] How-to DO NOT check_alive host?
Proskurin Kirill wrote: Hello. Im have some servers what don`t accept any icmp packets. Im check http port on it. But nagios by default does check_alive - and say what host is down. How can im evade this? use the negate program to invert the meaning of the check_ping plugin? -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] how to restart the service of the host
localyee wrote: i using the nagios to monitor the host,and once check that there is service run abnormity,i want to restart it,how to configure the nagios to come true. your kind help would be great appreciated. 2008-09-06 localyee Write an event handler for the service: http://nagios.sourceforge.net/docs/2_0/eventhandlers.html -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] software raid monitoring
J. Bakshi wrote: Hi all, Is there any way to monitor software raid on the remote server by nrpe http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2418.html;d=1 -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Checking who is logged on
John Moore wrote: Is there any way to notify me who is logged on? I know check_users will tell me how many people are logged on. But it would be nice to know who as well. Did you check NagiosExchange? http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1415.html;d=1 -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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_md_raid plugin and check_smartmon plugin comparison
Jake Solid wrote: The check_md_raid plugin which uses the mdadm program to get the status of all the linux md arrays on the local machine provides the same functionality as the check_smartmon plugin? Thanks in advanced. No, check_md_raid checks on the status linux software raid arrays. check_smartmon checks smartmon which may not be the same thing. If you want to make sure your arrays are ok, then use the first, if you're interested in checking on the pre-emptive health status of disks in general then smartmon is the right thing to use, although I haven't looked too closely at the check_smartmon plugin to see what it handles exactly. -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Linux Disk IO
Nair wrote: Friends, Any got Nagios Plugin for monioting Linux Disk IO for a particular volume group. I mean, something similar to iostat. :) Not sure how to use iostat to find out Disk IO for a given Volume Group. Have you searched nagiosexchange.org? If there is no check_iostat or similar, it should be simple to write a wrapper around iostat to check this. I use iostat quite a lot in fact, especially on my heavier used servers so this is quite interesting to me. Let me know how you get along. If there is nothing very good right now, I may put this on my (very long) todo list for writing this plugin. -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Linux Disk IO
If you try looking at vgs or lvs you'll fail, iostat will output no stats. You can either look at the underlying pvs or the dms. So figure out what your lvm is sitting on and look at that. Running iostat without specifying targets will list all your relevant underlying partitions which will make it easier for you to see what you have. Then if you're interested in something particular and you know what the mapping is then you can focus on that. -h Nair wrote: Thank you Hari Could not find anything of same. Also, is thr any option in iostat to find Disk IO for a particular volume group.(i know this is not the right forum, but still asking :)) Regards, Nair On Thu, 31 Jul 2008 Hari Sekhon wrote : Nair wrote: Friends, Any got Nagios Plugin for monioting Linux Disk IO for a particular volume group. I mean, something similar to iostat. :) Not sure how to use iostat to find out Disk IO for a given Volume Group. Have you searched nagiosexchange.org? If there is no check_iostat or similar, it should be simple to write a wrapper around iostat to check this. I use iostat quite a lot in fact, especially on my heavier used servers so this is quite interesting to me. Let me know how you get along. If there is nothing very good right now, I may put this on my (very long) todo list for writing this plugin. -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Possible to add host groups to service groups?
Sean Carolan wrote: Suppose I have configured a host group called Linux Servers, and I also have a service group that contains some basic Linux services for monitoring. Is it possible to simply add the entire host group to this service group? Having just looked the 2.x and 3.x docs it does not appear so. I haven't tried it as I don't manually maintain service groups, but consider another way of coming at the problem: If you add a hostgroup to a service, then you can generate the servicegroup around it for web interface usage. This way I don't ever maintain servicegroups myself, they are automatically generated so that I can just use them for grouping views in the nagios web interface. This may be a reasonable compromise depending on what you are trying to do. I wrote a python script to generate the servicegroups file, you can find it here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2435.html;d=1 You can still have a manually maintained servicegroup file as well for special cases and use it alongside the auto-generated servicegroups by sourcing both in nagios.cfg using a couple of cfg_file lines. -h -- Hari Sekhon - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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_dhcp doesn't return results
Hari Sekhon wrote: Jean Frontin wrote: Hello, I run the command : check_dhcp -s 1.2.3.4 I Know that dhcpd is running on this host ! What does it happend ? I appreciate some ideas The Dhcp server has enough intelligence to not respond to itself for a dhcp lease. Check it from another machine using nrpe or whatever remote execution mechanism you prefer. -h Alternatively if you're not running check_dhcp on the same host as you are running the dhcp server software, then perhaps check for firewalls, that you have some leases left, logs the usual things -h -- Hari Sekhon - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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] Checking multiple different procs in one service check
Ah, that looks great, I was thinking about having a generic multi check, and you seem to have done a very good job of it from first impressions, I'll try it out and see if I can switch to using this. Thanks -h Matthias Flacke wrote: Hi Hari, please have a look at http://my-plugin.de/check_multi. It wraps arbitrary calls of plugins, commands, whatever you need and is not limited to process checks. Just as a more generic approach, while the basic idea is very similar ;-) -Matthias Hari Sekhon wrote: Hi, I have a need to test a collection of procs and their arguments in one service, I was going to post to the list to ask for suggestions, but then I thought to check NagiosExchange and found a couple of plugins, but nothing that suited my need, specifically they were orientated to testing if a process name is running, and the number of processes of a given name running, but they did not allow me to specify arguments that those processes must be running. I found this to be severely limiting when checking on collections of interdependent scripts (I don't want to just check how many bashs or pythons are running...) So I've quickly written my own plugin in Bash to do this and I've posted it to NagiosExchange in case anyone else has this same requirement. The script is basically a wrapper around the standard check_procs allowing you to test several detailed services in one service check which gives a lot more intelligence that the traditional check if a single process is running, especially if you have any stack of programs/scripts/operations that all need to be running but you don't want to monitor them individually or you have too many of them to practically monitor individually. It currently takes a really nice and simple config file so it's easy to have a stack of specific things to test. Feedback is welcome and improvements will be made as needed/requested. I was considering adding support for process states and process metrics other than just the number of processes, but I don't (yet) use these options in check_procs and so I decided to keep the config file very very simple and clean, rather than bloat it with options nobody is using. I'll revise the plugin as I get requests from people doing specific things. You can find the plugin here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2649.html;d=1 So there you go, a question answered and a new plugin that will hopefully be generally useful for specific multi process checking. -h -- Hari Sekhon - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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
[Nagios-users] Checking multiple different procs in one service check
Hi, I have a need to test a collection of procs and their arguments in one service, I was going to post to the list to ask for suggestions, but then I thought to check NagiosExchange and found a couple of plugins, but nothing that suited my need, specifically they were orientated to testing if a process name is running, and the number of processes of a given name running, but they did not allow me to specify arguments that those processes must be running. I found this to be severely limiting when checking on collections of interdependent scripts (I don't want to just check how many bashs or pythons are running...) So I've quickly written my own plugin in Bash to do this and I've posted it to NagiosExchange in case anyone else has this same requirement. The script is basically a wrapper around the standard check_procs allowing you to test several detailed services in one service check which gives a lot more intelligence that the traditional check if a single process is running, especially if you have any stack of programs/scripts/operations that all need to be running but you don't want to monitor them individually or you have too many of them to practically monitor individually. It currently takes a really nice and simple config file so it's easy to have a stack of specific things to test. Feedback is welcome and improvements will be made as needed/requested. I was considering adding support for process states and process metrics other than just the number of processes, but I don't (yet) use these options in check_procs and so I decided to keep the config file very very simple and clean, rather than bloat it with options nobody is using. I'll revise the plugin as I get requests from people doing specific things. You can find the plugin here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2649.html;d=1 So there you go, a question answered and a new plugin that will hopefully be generally useful for specific multi process checking. -h -- Hari Sekhon - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 ___ 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] uptime
Melanie Pfefer wrote: hi, can nagios detects for how long the machine was running? I am only interested in the unix machine (uptime command) thx in your nrpe.cfg on the remote machine command[check_uptime]=/path/to/uptime then just check_nrpe -H remotemachine -c check_uptime or equivalent if using nsca/ssh. -h -- Hari Sekhon - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] using Linux for a specific Windows Event
Michael Dalton wrote: I am using Fedora 6 with nagios 2.9 monitoring multiple windows 2003 servers. I have looked on the message boards for a solution and have not come up with one. What I would like to do is monitor a specific windows event…..event id=55….(a disc failure or beginning to fail). Has anyone else done this? Nagios is not really the right tool for this. You should work on building a centralized logging infrastructure and have alerting come from there. I think Nagios has on occasion been (ab)used like this, and I think I saw something to do this on windows, but I can't remember off the top of my head. Have you tried NagiosExchange.org for some windows event grepping plugin? -h -- Hari Sekhon - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] using Linux for a specific Windows Event
Michael, You need to filter on the event you want at the logserver and send it as an email via email/winpop or whatever, this is highly dependent on what logserver you have. I personally think syslog-ng is great (and I use check_logserver from nagiosexchange.org to monitor that for you next question). NTSyslog can send events from the Windows event log to the remote syslog server, and from there you can do whatever you want with it, store it in a database, send alerts off to yourself on certain events etc, it's entirely up to you. -h Michael Dalton wrote: I have but without much or what was there didn�t really do the trick, what would you suggest to monitor a windows event such as that? Thanks! Michael Dalton Jr.Network Administrator | Information Technology Centerline Capital Group 8000 Towers Crescent Dr. Ste 550 Vienna, VA 22182 T 703-663-5869 | M 917-280-5460 [EMAIL PROTECTED] | www.centerline.com This message is confidential and intended exclusively for the use of the individual or entity to whom it is addressed. This message is further subject to the terms of usage set forth at http://www.centerline.com/common/cards/legal.html -Original Message- From: Hari Sekhon [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 8:46 AM To: Michael Dalton Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] using Linux for a specific Windows Event Michael Dalton wrote: I am using Fedora 6 with nagios 2.9 monitoring multiple windows 2003 servers. I have looked on the message boards for a solution and have not come up with one. What I would like to do is monitor a specific windows event�..event id=55�.(a disc failure or beginning to fail). Has anyone else done this? Nagios is not really the right tool for this. You should work on building a centralized logging infrastructure and have alerting come from there. I think Nagios has on occasion been (ab)used like this, and I think I saw something to do this on windows, but I can't remember off the top of my head. Have you tried NagiosExchange.org for some windows event grepping plugin? -h -- Hari Sekhon -- Hari Sekhon - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] How to monitor windows software raid
Rene Fertig wrote: Hello Hari. Have you checked NagiosExchange.org? I didn't see anything but then I didn't look too closely. Otherwise you could just write one. VBS is an easy language and universal enough for this. I'd write this in fact, if I had any servers poor enough to have windows software raid... Of cause I've checked NagiosExchange, but there are only plugins for hardware raids. I've found a VB script which uses DISKPART (http://www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid). Unfortunately DISKPART didn't work on Windows 2000 (only Win 2000 Pro, Win 2000 server, Win 2003 ...) But I've got a list of event IDs so I can monitor the event log and do passive checks - more than nothing... Greetings, Rene If you can do vbs, it should be possible to do this without diskpart by using wmi classes. On the other hand, perhaps you can just consider this a legacy problem, after all Windows 2000 Server should be retired or at least on it's way out by now... -h -- Hari Sekhon - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] How to monitor windows software raid
No, don't try that. Python is a great language, I code in it myself, but... 1. It is not portable across windows systems without installing add-ons 2. It checks *LINUX* software raid, not windows software raid. -h Marcos Marinho wrote: Try this : It is a python script #!/usr/bin/python # check_swraid - plugin for nagios to check the status of linux swraid devices # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # Copyright 2004 Duke University # Written by Sean Dilda [EMAIL PROTECTED] # Version: 0.3 # patched with the rouilj's patch (03.02.2006) by Virer (28.07.2006) import os import sys import string mdstat = '/proc/mdstat' mdFile = open(mdstat).readlines() # two cases: two starting lines or just one starting line. # Remove the first and lasts lines as we don't need them mdFile = mdFile[1:-1] if (len(mdFile) % 3) != 0: mdFile = mdFile[1:] if (len(mdFile) % 3) != 0: # must have two starting lines print 'Error with mdstat file' sys.exit(3) if len(mdFile) == 0: print 'Error no md devices configured' sys.exit(3) mdData = [] while len(mdFile) 0: mdData.append((mdFile[0],mdFile[1])) mdFile = mdFile[3:] overallStatus = 0 errorMsg = '' devices = '' for tup in mdData: device, colon, status, type, drives = string.split(tup[0], None, 4) drives = string.split(drives) values = string.split(tup[1])[-2] values = values[1:-1] normal, current = string.split(values, '/') normal = int(normal) current = int(current) devices = devices + + device # Status of 0 == Ok, 1 == Warning, 2 == Critical status = 0 failed = 0 degraded = 0 msg = '' failed = [] for drive in drives: if drive[-3:] == '(F)': failed.append(drive[:string.index(drive, '[')]) status = 1 failed = ' (' + string.join(failed, ', ') + ').' if status == 'inactive': status = 2 msg = device + ' is inactive.' if type == 'raid5': if current (normal -1): msg = device + ' failed' + failed status = 2 elif current normal: msg = device + ' degraded' + failed status = 1 else: if current normal: msg = device + ' failed' + failed status = 2 if len(msg) 0: if len(errorMsg) 0: errorMsg = errorMsg + '; ' errorMsg = errorMsg + msg overallStatus = max(overallStatus, status) if overallStatus == 0: print 'All md devices (' + devices + ' ) Ok.' sys.exit(0) else: print errorMsg sys.exit(overallStatus) #EOF Rene Fertig escreveu: Hello Hari. Have you checked NagiosExchange.org? I didn't see anything but then I didn't look too closely. Otherwise you could just write one. VBS is an easy language and universal enough for this. I'd write this in fact, if I had any servers poor enough to have windows software raid... Of cause I've checked NagiosExchange, but there are only plugins for hardware raids. I've found a VB script which uses DISKPART (http://www.anchor.com.au/hosting/dedicated/monitoring_windows_software_raid). Unfortunately DISKPART didn't work on Windows 2000 (only Win 2000 Pro, Win 2000 server, Win 2003 ...) But I've got a list of event IDs so I can monitor the event log and do passive checks - more than nothing... Greetings, Rene - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] How to monitor windows software raid
Rene Fertig wrote: Hello. Can someone tell me how to check a software raid on a windows server? I can't find anything - am I blind? Greetings, Rene Have you checked NagiosExchange.org? I didn't see anything but then I didn't look too closely. Otherwise you could just write one. VBS is an easy language and universal enough for this. I'd write this in fact, if I had any servers poor enough to have windows software raid... -h -- Hari Sekhon - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ 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] send_nsca
Hi Tony, That's a very good point. It wouldn't be difficult to make this support multiple simultaneous checks, but I currently have the checks running independently of one another and it works very well. This was originally written with the intent to make it easy to take any single check and turn it passive without re-creating the wheel, simply by putting this script in front of it. If you grouped checks then this implies that they must all be run at the same time, which seems to reduce flexibility. Also, I think that for a lot of passive service checks it is advisable to not have them run at the same time. For example, I have check running at different intervals intentionally for staggering on the servers so that there is no performance degradation on the server performing the passive checks, although this could simply be one after the other which also should reduce performance in comparison, but watch out for multiple long running checks as this will may send the check result beyond the freshness threshold. If anyone really wants this feature I may look in to incorporating it, but I haven't seen any need for this optimization which would probably make very little difference until we start talking a massive number of passive service checks. I am open to ideas on this though. -h Anthony Montibello wrote: Doesn't that method send the checks through seperate NSCA connection (one per check)? While writing a custom NSCA script can send all the check results in a single NSCA connection? TOny (Author of NC_NEt) On Fri, May 23, 2008 at 4:45 AM, Hari Sekhon [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Nair wrote: Can some one please help me in integrating send_nsca command with my Perl script for passive monitoring system. Say how can we integrate plugin output without writing to any file and then piping thru send_nsca. Thank you, Nair Don't waste your time Nair, I've written a generic nsca_wrapper which will turn any plugin into a passive service check by just putting nsca_wrapper in front of the plugin. You still need to have set up nsca of course, but this means that you do not have to write any scripts for passive service checks, just run it straight after nsca_wrapper with a couple of switches. By the time you do your second passive service check, you start thinking, Hang on, this is a waste of time, I don't want to have to put in any effort to just set up another passive check. Enter NSCA_Wrapper: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2529.html;d=1 -h -- Hari Sekhon -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
[Nagios-users] OpMonAgent vs NSClient++ (was Nagios 3.0 SLA Reporting)
Phil Costelloe wrote: I'm also looking forward to this. I'm a big fan of OpmonAgent as a replacement for Nsclient on Windows systems, it installs and runs without any fuss at all. I like things that Just Work. :) -- Phil Costelloe Foundation IT, Hermitage Berkshire RG18 9SE On this note, do you mean NSClient or the newer NSClient++? I have found that NSClient++ is a doddle to deploy with a batch script across all servers. very briefly: copy over the binary, set the service, run. This is only mildly more difficult than an msi installation, possibly even easier to actively push out via batch in fact. I'm not sure if I considered OpMonAgent but I'd really like to know if it can beat NSClient++ which to my knowledge (or perhaps just perception) seems to be the more popular Windows agent. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] send_nsca
Nair wrote: Can some one please help me in integrating send_nsca command with my Perl script for passive monitoring system. Say how can we integrate plugin output without writing to any file and then piping thru send_nsca. Thank you, Nair Don't waste your time Nair, I've written a generic nsca_wrapper which will turn any plugin into a passive service check by just putting nsca_wrapper in front of the plugin. You still need to have set up nsca of course, but this means that you do not have to write any scripts for passive service checks, just run it straight after nsca_wrapper with a couple of switches. By the time you do your second passive service check, you start thinking, Hang on, this is a waste of time, I don't want to have to put in any effort to just set up another passive check. Enter NSCA_Wrapper: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2529.html;d=1 -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] [Nagiosplug-help] check via MAC adress
Alex Dehaini wrote: There has to be a corresponding MAC to IP match. What environment allows you use only MAC without IPs? Alex On Thu, May 22, 2008 at 9:12 AM, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I want to monitor AP but i donŽt know IP adress, only MAC. Can I monit if it is alive only with MAC?? some ping or snmp or some check?? How will be the command looks like?? many thanks Jan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technically not really you could just ping it knowing only it's arp address using arping2. I'd suggest writing a plugin around this. I can't see the wider benefit though unless it is common to have devices that you want to check that don't have an ip address... it almost doesn't make sense in most normal usage since you usually need an IP on a host to get service from it. This AP seems to be a special case. Alternatively perhaps you could just plug in a wifi interface and then have a test that pings a host on the wired network to check the wifi? -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] [Nagiosplug-help] check via MAC adress
Alex Dehaini wrote: Nagios uses an IP address to communicate with the device. I will still like to know the environment where you can't use IP but MAC On Thu, May 22, 2008 at 9:21 AM, Hari Sekhon [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Alex Dehaini wrote: There has to be a corresponding MAC to IP match. What environment allows you use only MAC without IPs? Alex On Thu, May 22, 2008 at 9:12 AM, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I want to monitor AP but i don�t know IP adress, only MAC. Can I monit if it is alive only with MAC?? some ping or snmp or some check?? How will be the command looks like?? many thanks Jan [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technically not really you could just ping it knowing only it's arp address using arping2. I'd suggest writing a plugin around this. I can't see the wider benefit though unless it is common to have devices that you want to check that don't have an ip address... it almost doesn't make sense in most normal usage since you usually need an IP on a host to get service from it. This AP seems to be a special case. Alternatively perhaps you could just plug in a wifi interface and then have a test that pings a host on the wired network to check the wifi? -h -- Hari Sekhon mailto:[EMAIL PROTECTED] Yes of course we know this is the standard way but if you define a checkcommand to use a mac instead then you can get around this. Nagios is flexible enough to accomodate. You just need to write a check that doesn't require an ip, arping2 or something similar may be a good starting point. Note: Top-posting doesn't really help to make this thread readable for others -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] logserver plugin has self terminated
[EMAIL PROTECTED] wrote: I have been running the logserver plugin for a few weeks now and its been doing its job well until a few days ago. I get the following error: CRITICAL: logserver plugin has self terminated after exceeding the timeout (30 seconds) I have tried to restart the nagios service but this check appears to keep terminating. Any ideas? regards, secrookie As your logserver database has grown it takes longer to do a query against it. This means that the query now takes a sufficiently long time for the test to timeout. What you need to do is: 1. Switch the check to being a passive check (as per my recommendation in the documentation on the NagiosExchange page), otherwise you'd have to increase the nagios global check timeout which affects all plugins and is not my preferred solution. 2. Increase the timeout on the plugin if necessary using the -t switch. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Nagios-OS?
Pradeep Pokharkar wrote: Hi, Can anybody tell me which opertaing system should I go for Nagios, Redhat Enterprise Linux5 server or workstation? Regards, Pradeep Out of those 2? RHEL server Or you could get a better distribution... ;-) -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Nagios-OS?
Pradeep, Please reply to the mailing-list rather than me personally so that other people can follow the conversation as well as it may benefit them or they may be able to give you further insight/contributions. Now to answer your question: You could probably run Nagios on the workstation edition but the packages on the workstation edition will be more aimed at desktops and workstations whereas Nagios is a server and therefore a server orientated version is preferable to try to keep things a bit tighter as per best practices. For example, on a server, you probably don't want X windows etc as these have no place on an infrastructure server and real sysadmins don't need GUIs. -h Pradeep Pokharkar wrote: Dear Hari Sekhon, Thanks for the quick reply. Yes, out of the two version you suggested the server version. I would like to know what are all things not available workstation version required for nagios. pradeep - Original Message From: Hari Sekhon [EMAIL PROTECTED] To: Pradeep Pokharkar [EMAIL PROTECTED] Cc: nagios-users@lists.sourceforge.net Sent: Monday, May 19, 2008 4:17:34 PM Subject: Re: [Nagios-users] Nagios-OS? Pradeep Pokharkar wrote: Hi, Can anybody tell me which opertaing system should I go for Nagios, Redhat Enterprise Linux5 server or workstation? Regards, Pradeep Out of those 2? RHEL server Or you could get a better distribution... ;-) -h -- Hari Sekhon -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] [Fwd: Enquiry [104709] Created - Re: Nagios-OS?]
Hugo van der Kooij wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 How much of you have been assigned a ticket (or more) by this autoresponder on the mailinglist? - Original Message Subject: Enquiry [104709] Created - Re: [Nagios-users] Nagios-OS? Date: Tue, 20 May 2008 00:40:06 +1000 From: Sauce Software [EMAIL PROTECTED] To: [EMAIL PROTECTED] Dear Hugo van der Kooij, Your enquiry has been received and lodged with the helpdesk. For your future reference this enquiry has been assigned a ticket number. Please use this ticket number when referring to this ticket in the future. Ticket No: 104709 If you have any more queries or require further assistance please send an email to the following address: [EMAIL PROTECTED] View enquiry: http://sauceopen.com/portal/index.php?option=com_vtportaltask=enquiriesticketid=104709action=detail Thank you, Sauce Software - This message has been generated automatically, please do not reply. Probably everyone but looks suspect so I'm not touching it, could be anyone signed up to the list with an autoresponder to catch all posters. If it's not official I hope someone bans them. If it is offical then perhaps some explanation is needed. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Overriding interval_length for certain hosts/services
Kim Christensen wrote: Hey gang, Is it possible to override the default value of interval_length for certain hosts or services? I have a scenario where I need to check an HTTP service in shorter intervals than the other services, which now defaults to 60. You mean you want to have checks run more frequently than every 60 seconds but since this is the interval_length you can only put 1 as the minimum in your service definitions. I changed my interval_length to 1 and then for each service specify it in seconds. This is the only way that I think you can get checks more frequent than once every 60 seconds. In my opinion this should have been 1 by default and all service check intervals should have been specified in seconds since it's not rocket science to use numbers that are like 60, 120 or 3600 for various checks remembering that those are 1min, 2mins and 1 hour respectively. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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_debian_packages
Mordur Ingolfsson wrote: Hi List, I have been having difficulty with running a Nagios plugin called check_debian_packages by way of nrpe with sudo. The plugin I'm having difficulties with needs to run apt-get -s upgrade on a Debian system, so root privileges are needed. I can run the plugin fine with sudo as user nagios, but nrpe using sudo always fails with permission denied, even if I give the nagios user full permissions for everything in /etc/sudoers. I would be grateful for any hints Use check_apt instead it doesn't need root privs. Best to avoid using root privs if you don't need to. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Disable checking but keep in OK state
Mark Clarkson wrote: On Tue, 13 May 2008 08:11:35 -0500, [EMAIL PROTECTED] wrote: Yes. Select the service check in question (provided that you have the ability to submit commands and the like enabled), and you'll see teh service state information screen. Over on the right, under Service Commnds, select Disable active checks of this service and then submit passive check results for this service and make up your own check output and performance data. That will leave it green and happy until your turn active checking back on. -J This works great! Thanks for such a quick response. Cheers Mark. If these services are dynamic, then how do you know which server to connect to, do you have them DNS aliased or something, or perhaps you just try all of the servers until you find one running and use that? Some possibilities: 1. If using DNS then put the dns alias as the hostname in the check so the check will always point to the right machine by following dns. 2. If you just try any of the servers, you could write a wrapper script to run the check against through all of them in sequence and to exit on the first working one, or return critical if none of them work. Just a stab in the dark given the limited info. Disabling service checks manually doesn't sound like a good idea if these services really are dynamic... you'd have to do this manually a lot? -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Disable checking but keep in OK state
Mark Clarkson wrote: On Tue, 13 May 2008 14:50:45 +0100, Hari Sekhon [EMAIL PROTECTED] wrote: If these services are dynamic, then how do you know which server to connect to, do you have them DNS aliased or something, or perhaps you just try all of the servers until you find one running and use that? Sorry, I didn't mean dynamic ip or dhcp. The ip addresses are fixed. Just a stab in the dark given the limited info. Disabling service checks manually doesn't sound like a good idea if these services really are dynamic... you'd have to do this manually a lot? When the servers are initially started the administrator decides what services will run on each host and the load balancer figures out where those services are running somehow. The administrator runs startup scripts to start one or more [java] services on each machine. I plan to modify the scripts to remotely disable active service checks and send a passive check result. I'll be doing this using ssh. Sound sensible? Yes that sounds fine. One question, have you considered testing the services through the load balancer since this is what the users will see? -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Overriding interval_length for certain hosts/services
Kim Christensen wrote: Hey gang, Is it possible to override the default value of interval_length for certain hosts or services? I have a scenario where I need to check an HTTP service in shorter intervals than the other services, which now defaults to 60. Regards, Kim Of course, normal_check_interval and retry_check_interval check interval in each service definition block. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] nagios reboot XP
Palle L Jensen wrote: I guess I should have been more specific, sorry about that. I am running Nagios 3.0.1 on openSUSE 10.3, and I am only monitoring windows hosts. On the windows hosts I am running NSClient++. That seems to work good and I would prefer not to change to any other client. I have read about the event handlers in the Nagios documentation, but the samples there only refers to nrpe and scripts on the server. I understand how to define the service in Nagios, but I am not sure how to create the script that executes the batch file on the windows host? Maybe I am not getting the point and understanding on the documentation. Lets say I created a batch file that will start or restart a service, this batch file is located in c:\NSclient++\scripts folder. And then defined the service and command in Nagios: define service{ host_name somehost service_descriptionsql-service max_check_attempts 4 event_handler restart-sqlagent } define command{ command_name restart-sqlagent command_line what do I add here?? It has to be something that can be sent to the Nsclient++/windows host and execute the batch script in c:\NSclient++\scripts folder } The command line on the eventhandler documentation shows a path to a local script and local command “/etc/rc.d/init.d/httpd restart” So creating and event handler for services or others on the box where Nagios is running, I understand. But not how to do it remotely to a windows host. If you could shed some more light over this I would very much appreciate it. Thanks, PJ You need a Unix-side script to execute and handle the condition appropriately, for example to only call the restart when the service is in hard failure. A sample Bash script is given in the docs to get you started. If using Bash (which I recommend) the Bash script should check the state and perform the logic control, calling the batch or script on the windows side though an NRPE call to nsclient++ to execute the script on the windows host. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Remote external commands
Mark Clarkson wrote: Hi, I need to write a command to the nagios.cmd pipe but from a remote server. I thought I saw a daemon that was used for this but now I can't find it! Any ideas? Cheers Mark. Were you thinking of NSCA that uses the nagios.cmd pipe? This only takes a specific format for service checks only to my knowledge (or at least that's all I use it for). Otherwise I'd look on NagiosExchange.org, pretty much everything 3rd party to Nagios core is listed there... -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] how it was possible to ask from shell to remote
Uwe Großkinsky wrote: Hy list how it was possible to check on my shell konsole? i have try this ./check_nrpe -H 10.23.3.29 check_disk -w 10% -c 20% -p / but i must made something wrong on my remotemaschine it was possible to become my informations nrpe was installed on my nagios server thanks for tipp 1. You need -c before check_disk 2. You should not be passing args through NRPE according to the nrpe.cfg docs. Instead you may want to hardcode the arguments in nrpe.cfg as command[check_disk_root] and then just call ./check_nrpe -H 10.23.3.29 -c check_disk_root. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 software RAID in Debian GNU/Linux
is persistent Update Time : Mon Apr 28 18:31:36 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.8 Number Major Minor RaidDevice State 0 830 active sync /dev/sda3 1 8 191 active sync /dev/sdb3 RAID OK: All arrays OK [3 arrays checked] I'm using Debian GNU/Linux Etch with mdadm 2.5.6-9. Thanks for your response. Regards, Daniel -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS server package alerts
Hugo van der Kooij wrote: | There is a design bug: | You must be root to run this plugin (otherwise yum cannot access | repository information) And just to be sure. I can even run yum as nagios user: # su - nagios -c yum check-update Loading installonlyn plugin Loading security plugin Setting up repositories Reading repository metadata in from local files Skipping security plugin, no data clamav.i386 0.93-2.el5.rf rpmforge clamav-db.i386 0.93-2.el5.rf rpmforge clamd.i386 0.93-2.el5.rf rpmforge # su - nagios -c yum update Loading installonlyn plugin Loading security plugin You need to be root to perform this command. So why does this nagios plugin need to run with root priviliges? Hugo. I've just found out that running yum check-update as a regular user does not report all the available updates and therefore if you want a really want to keep track of it, you need to run it as root. I knew there was a good reason why I had originally done this, I just couldn't remember what it was. Technically this is not the fault of the plugin itself but of yum and I'm not currently sure if this is by design. It appears that the normal user account can only see updates from rpmforge, and not from the official RHEL repository which is where the vast majority of the updates come from. Why this is I have not yet determined, it may be an intentional thing on the part of Redhat in order to try to prevent users from seeing the vulnerable components, although this would be very weak. I have not updated the plugin to force root privileges but I have just made a warning note on the NagiosExchange page telling people that it is advisable to run the plugin as root to be sure to get all of the updates. If I can bend yum to not require root privileges then I'd prefer this as well, but most of all I'd prefer to get all the updates and not have yum lie to me leaving me with an insecure non-updated system. It would have been preferable of the yum writers to make the thing fail outright so we could deal with it more easily than to silently fail leaving us guessing... If anyone has any wisdom they care to share on this, I'd be happy to hear it and perhaps update the plugin accordingly. Thanks -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS serverpackagealerts
Randal, Phil wrote: The latest version now works fine on my CentOS 5.1 boxes. Now all we need is a version which works with python 2.3 so I can check our CentOS / RHEL 4 boxes. Cheers, Phil I have a couple of RHEL 4 boxes too but since they didn't ship with yum this didn't seem so relevant. I tried putting yum on one of them a couple of years back and I have to say it was an absolutely awful experience. I had done a relatively minimal install and was then tryied installing yum both by rpm and by source install, both of which landed me in a very bad and messed up circular dependency hell that I couldn't solve without breaking some other stuff. I mean I tried everything, and that was the last time I ever tried a minimal redhat installation (minimal == lower attack surface and all that best practice stuff which redhat never seemed to get into - otherwise I have to go round disabling so much junk on their systems), a very poor choice for tight control and maintainability compared to gentoo or debian (but I digress). Did you install yum manually on RHEL 4? Do you use this as the primary package management tool on RHEL 4 and does it receive security updates? I would have thought not since RedHat only shipped this in version 5 which is why the plugin makes no effort for previous versions of RHEL... but I could be wrong. I figure that upgrades to the version 5 with it's first half-decent package management system using yum by default will solve this, but if anyone wants to correct me or share their experience, feel free and I may reconsider. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS serverpackagealerts
Hugo van der Kooij wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hari Sekhon wrote: | Randal, Phil wrote: | The latest version now works fine on my CentOS 5.1 boxes. | | Now all we need is a version which works with python 2.3 so I can check | our CentOS / RHEL 4 boxes. | | Cheers, | | Phil | I have a couple of RHEL 4 boxes too but since they didn't ship with yum | this didn't seem so relevant. I tried putting yum on one of them a | couple of years back and I have to say it was an absolutely awful | experience. I have never touched a real RHEL 4 box. But I run Centos 4 on a number of systems and Centos 4 uses yum for quite a while. They have this nice server CD that allows one to install a server with a minimum of packages and then I add what I need with yum. But needless to say Centos 4 is shipped with python v2.3.4 so the script will not work there. And upgrading to python v2.4 is not a viable option on those machines. Hugo. Thanks for that feedback Hugo. This does make a good case for adding support for CentOS 4. I don't have any older CentOS, only RHEL so I wasn't aware that CentOS shipped with yum for this to be useful. Since you have made a good case, I have now updated the plugin to have compatibility for the older python 2.3, so pls try the latest version 0.6.6 and let me know how that goes for you on the old systems. http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2577.html;d=1 Thanks -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS serverpackagealerts
Tom Brown wrote: This does make a good case for adding support for CentOS 4. I don't have any older CentOS, only RHEL so I wasn't aware that CentOS shipped with yum for this to be useful. Since you have made a good case, I have now updated the plugin to have compatibility for the older python 2.3, so pls try the latest version 0.6.6 and let me know how that goes for you on the old systems. http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2577.html;d=1 we use yum on RHEL 4 a lot so will be trying this out also thanks Err, slight correction in my typing, I wasn't aware that CentOS *4* shipped with yum as RHEL 4 seems not to, I know my CentOS 5 does have it as does RHEL 5 (finally). I was under the impression that since CentOS is supposed to be purely a rebranded RHEL without the trademark logos etc, that it would follow RHEL closely, so if RHEL 4 didn't ship with yum, then neither would CentOS 4? I guess the CentOS guys realized how big a disadvantage this would be... Did you add yum manually to RHEL 4 and if so, what implications are there for updates then, is there any official repo for that, or only 3rd party. If 3rd party, do they support security information support for yum? Otherwise you'd have to use --all-updates or --warn-on-any-update and keep the whole system up to date if you cannot differentiate between security and normal updates. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS serverpackagealerts
Hugo van der Kooij wrote: Centos 4 makes no distinction. There is at least no security plugin for yum. But given this known limitation the plugin works well on Centos 4 here. Hugo. Is it that the information is not available on CentOS 4 or that the yum-security plugin is just not installed? Have you tried yum install yum-security Perhaps the yum-security plugin is not available for install in this version? I can't verify since I don't have any CentOS 4 here. The plugin gives this install tip if the security plugin for yum is not available. I found that it was not installed by default on all RHEL 5 systems but was such a useful thing to have that just running the yum install and then re-running the plugin was worth it for the distinction. However, it's up to you, the switches allow you run it either way. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 software RAID in Debian GNU/Linux
Update Time : Wed Apr 30 16:50:27 2008 State : clean, degraded, recovering Active Devices : 1 Working Devices : 2 Failed Devices : 0 Spare Devices : 1 Rebuild Status : 0% complete UUID : 119bcdde:0ac351b2:d05e4382:e6def213 Events : 0.9626 Number Major Minor RaidDevice State 0 820 active sync /dev/sda2 1 8 181 spare rebuilding /dev/sdb2 Now testing raid device /dev/md2 /dev/md2: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:25 2008 Raid Level : raid1 Array Size : 292053568 (278.52 GiB 299.06 GB) Device Size : 292053568 (278.52 GiB 299.06 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Mon Apr 28 18:31:36 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.8 Number Major Minor RaidDevice State 0 830 active sync /dev/sda3 1 8 191 active sync /dev/sdb3 RAID OK: All arrays OK xenhost7:/usr/local/nagios/libexec/non-std# mdadm --detail /dev/md{0..2} /dev/md0: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:04 2008 Raid Level : raid1 Array Size : 979840 (957.04 MiB 1003.36 MB) Device Size : 979840 (957.04 MiB 1003.36 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Mon Apr 28 11:42:28 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 956ff562:7ba15903:6068b800:4a673998 Events : 0.2 Number Major Minor RaidDevice State 0 810 active sync /dev/sda1 1 8 171 active sync /dev/sdb1 /dev/md1: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:15 2008 Raid Level : raid1 Array Size : 19534976 (18.63 GiB 20.00 GB) Device Size : 19534976 (18.63 GiB 20.00 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Wed Apr 30 16:53:51 2008 State : clean, degraded, recovering Active Devices : 1 Working Devices : 2 Failed Devices : 0 Spare Devices : 1 Rebuild Status : 74% complete UUID : 119bcdde:0ac351b2:d05e4382:e6def213 Events : 0.9650 Number Major Minor RaidDevice State 0 820 active sync /dev/sda2 2 8 181 spare rebuilding /dev/sdb2 /dev/md2: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:25 2008 Raid Level : raid1 Array Size : 292053568 (278.52 GiB 299.06 GB) Device Size : 292053568 (278.52 GiB 299.06 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Mon Apr 28 18:31:36 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.8 Number Major Minor RaidDevice State 0 830 active sync /dev/sda3 1 8 191 active sync /dev/sdb3 It shows OK state during reconstruction. Thanks in advance for your response. Regards, Daniel -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS serverpackagealerts
Tom Brown wrote: Did you add yum manually to RHEL 4 and if so, what implications are there for updates then, is there any official repo for that, or only 3rd party. If 3rd party, do they support security information support for yum? Otherwise you'd have to use --all-updates or --warn-on-any-update and keep the whole system up to date if you cannot differentiate between security and normal updates. yum was built by us to provide a way to deploy rpm's to machines easily from custom repo's etc - if we need to update we update from yum using local repo's mirrored from upstream. It's not clear though whether or not the 3rd party repos support security package information like yum provides on RHEL 5. You may want to just do a generic --all-updates to return critical for any available update or just --warn-on-any-update to still try to differentiate but warn on non-security packages and upgrade any available packages? I've not managed to get a straight answer out of anyone on how 3rd party repos affect the security of a system with regards to managed security updates. The usual evasive answer is that Redhat only provide support for their limited official repository, but where does this leave people who use all these 3rd party repos to make up for the deficiency of the official repo? This is why I prefer Gentoo and Debian's more comprehensive official repositories that are managed better and have security updates. If anyone knows more about 3rd party repository and security updates this I'd love to hear it as I hate the idea of getting security updates for only a subset of the total installed packages (hence why --warn-on-any-update may be useful to try to get around this) -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS serverpackagealerts
Hugo van der Kooij wrote: Hari Sekhon wrote: | Hugo van der Kooij wrote: | Centos 4 makes no distinction. There is at least no security plugin for | yum. But given this known limitation the plugin works well on Centos 4 here. | | Hugo. | | Is it that the information is not available on CentOS 4 or that the | yum-security plugin is just not installed? Have you tried | | yum install yum-security Tried that. But that plugin does not exist for Centos 4. Hugo. Ah, shame. Well, at least you can use --all-updates to just get a generic count of the updates. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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
[Nagios-users] Announce: Check_Yum for RedHat/CentOS server package alerts
Hi, I've just released the Check_Yum plugin on NagiosExchange.org as the only one there seemed quite inadequate. Features of the new plugin (none of which are in the old plugin) include: - Differentiate between Security / normal package updates - Better output - numbers of packages updates - Support for extra Yum options including enabling and disabling repos, running from the cache - Optional Warning on non-security updates - Optional Critical alerting on any package - Timeout - Verbosity - Less false package alerts (the old plugin just used to misleading say the O/S needed updates when yum failed for any reason at all), including proper error feedback and a switch for lock handling to not raise an alert like if somebody is running yum interactively at the same time. You can download the plugin here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2577.html;d=1 (you may need to copy and paste that link if your mail client misinterprets the link) As ever, feedback is welcome, and development will continue if needed for extra switches and features. This should also work with Fedora or another RPM based distros that uses yum as it's package management system but I've not tested it outside RHEL/CentOS so feedback is welcome there too. On a related note, I'm also quite interested in people's experiences of updating and maintaining RedHat based systems especially with regards to security. I spoke to a few people and they basically don't follow security vulnerabilities and don't patch which ties in with my experiences and what I've seen of other people's systems too which is very disappointing. Hopefully this will make it easier to automatically track and keep on top of security updates for those of us who have RedHat Enterprise Linux 5 or later or equivalent. Thanks -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS server package alerts
Christian Schneemann wrote: On Wednesday April 30 2008 02:45:30 pm Hari Sekhon wrote: Hi, I've just released the Check_Yum plugin on NagiosExchange.org as the only one there seemed quite inadequate. ... Hi, wanted to have a look at it, but it is a binary, do you provide the sources anywhere? And what license is it? Greetings, Christian It is a python program so you can just open it with an editor and read the source. The license is at the top and like everything else I write it's GPLv2. If anyone has a good reason for me to go GPLv3 then I'll consider it. Thanks -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS server package alerts
Hugo van der Kooij wrote: There is a design bug: You must be root to run this plugin (otherwise yum cannot access repository information) Hugo. You are right, I just double checked this. For some reason I had done a run as a user who got an access denied or something if I recall so it seemed that it needed to be run as root, but I have indeed changed this behaviour to now not run as root. See the updated plugin version 0.6.4 on nagios exchange. Thanks -h - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Announce: Check_Yum for RedHat/CentOS server packagealerts
Randal, Phil wrote: Oh well, maybe one day it will work. :-p Phil Sorry for the slow response, I'm not at my desk... Could you pls try the latest 0.6.5 plugin that I've just put on nagiosexchange. I tend to intentionally check lots of things to try to break the check on anything that isn't seen before in order to fail noisy instead of pass silent. It seems one snagged you. If you try the updated plugin it should work for you (pls let me know). Thanks -h - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 software RAID in Debian GNU/Linux
Daniel Bareiro wrote: Hi all!! I'm testing the plugin check_md_raid.pl [1] on Debian GNU/Linux Etch and I've removed a member of RAID device with the following commands: mdadm --manage /dev/md2 --fail /dev/sdb3 mdadm --manage /dev/md2 --remove /dev/sdb3 But Executing by hand the plugin, it shows the RAID status in OK during degraded and rebuilding modes: xenhost7:/usr/local/nagios/libexec/non-std# ./check_md_raid.pl RAID OK: All arrays OK Is it correct to suppose the status would have to be CRITICAL and WARNING, respectively? Thanks in advance! Try: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2418.html;d=1 -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 software RAID in Debian GNU/Linux
Daniel Guillermo Bareiro wrote: Hi Hari! I'm testing the plugin check_md_raid.pl [1] on Debian GNU/Linux Etch and I've removed a member of RAID device with the following commands: mdadm --manage /dev/md2 --fail /dev/sdb3 mdadm --manage /dev/md2 --remove /dev/sdb3 But Executing by hand the plugin, it shows the RAID status in OK during degraded and rebuilding modes: xenhost7:/usr/local/nagios/libexec/non-std# ./check_md_raid.pl RAID OK: All arrays OK Is it correct to suppose the status would have to be CRITICAL and WARNING, respectively? Try: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2418.html;d=1 Mmmm... It seems that URL is invalid: Category 'Detailed/2418.html;d=1' does not exist. Thanks for your reply. Regards, Daniel Works for me. http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2418.html;d=1 Perhaps you need to copy and paste the entire thing, maybe your mail client is misinterpreting or something. Alternatively, search nagios exchange for check_md_raid, it'll be the only result. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 software RAID in Debian GNU/Linux
Daniel Guillermo Bareiro wrote: Hi Hari! Copying and pasting the link, it works. But this plugin is the one that I commented in this thread :-) I have noticed when removing a member from the raid, running the plugin from Nagios server, it show the RAID in degraded state for a moment. But soon the plugin shows the RAID in OK state. I observe the same situation when adding the member. Initially the script show the RAID in rebuilding state, but a new run of the plugin shows OK status before finishing the ebuilding. Which can be the problem? Thanks for your response. Regards, Daniel have you tried running it with -vvv for debug output? show us the output of the plugin with -vvv as well as the mdadm detail output. This plugin basically calls mdadm to find the status of the drives. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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_users: list the users?
Jay R. Ashworth wrote: I've just installed Nagios 3 and begun to configure it for my network (25ish servers, all but 2 running Linux, 250ish workstations, all but about 25 running Ubuntu), and after slogging through SSL error on check_nrpe -- which means about 3 different things having nothing to do with SSL -- and the ever popular audio embeds *aren't* application/wav; they're audio/x-wav, just ask my mime.types file problems, I'm now up to the possibly uncommon way I want to use check_users... I'm setting check_users (via nrpe) to warn at 1 and CRIT at 3 users -- I'm putting this on servers that, typically, have no humans logged in at all. Since that's true, I'd like to have the list of users from who -q returned as part of the status message. a) Is this a not uncommon usage, and when I patch the program, should I therefore post and or submit a patch to do this? b) How long can that status message become without breaking 1) nagios and 2) nrpe? Anyone have opinions, answers, or pointers? Cheers, -- jra See my show_users plugin on nagiosexchange.org, it's written in bash so will work on all Linux boxen as well as FreeBSD or any other unicies that you can install Bash on. It can take whitelists/blacklists of users, (I recommend the whitelist) which I use to successfully catch developers or anyone else logging in to any of my *nix servers that aren't on my shortlist. You can find it here: http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1415.html -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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_users: list the users?
Jay R. Ashworth wrote: On Fri, Apr 18, 2008 at 09:22:55AM +0100, Hari Sekhon wrote: Jay R. Ashworth wrote: I'm putting this on servers that, typically, have no humans logged in at all. Since that's true, I'd like to have the list of users from who -q returned as part of the status message. See my show_users plugin on nagiosexchange.org, it's written in bash so will work on all Linux boxen as well as FreeBSD or any other unicies that you can install Bash on. It can take whitelists/blacklists of users, (I recommend the whitelist) which I use to successfully catch developers or anyone else logging in to any of my *nix servers that aren't on my shortlist. You can find it here: http://www.nagiosexchange.org/cgi-bin/pages/Detailed/1415.html Sounds like the ticket, Mr. Seldon. Er, um... :-) Cheers, -- jra I have never got that joke I know I'm probably missing something great in the Foundation Series -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Running tests on intersection of two hostgroups?
Hugo van der Kooij wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kelly Jones wrote: | I have a Windows hostgroup for my Windows machines, and an | Important hostgroup for all my important machines (Windows and | otherwise). | | How do I check a service on the intersection of these two groups (ie, | important Windows machines)? | | I realize I could create an important Windows hostgroup, but that | seems ugly, since I'd have to maintain it separately from the two | existing hostgroups. If the question is if one can use boolean logic in requiring an AND function in the membership of hostgroups. Then the simple answer is no. You need to define another group with the right members yourself. If your question is different you may need to rephrase the question. Hugo Is there no plan to allow embedded hostgroups in Nagios? Once you have this, you would just stick all important windows machines in the Important Windows group and then nest that group in the general Important group to achieve the effect of maintaining those hosts in only one place, scalable and consistent. I'm not sure if this is in 3.x or planned, I don't follow the bleeding development track too closely... Short of that, write a script to parse and generate another hostgroups file to achieve the same result and have it automated to create the Important group from other hostgroups and maintain your hosts in just those more specific hostgroups. I did something similar to auto-generate servicegroups for all tests to allow easily grouping them together, you could do something similar for hostgroups (my script for servicegroups is released here http://www.nagiosexchange.org/cgi-bin/pages/Detailed/2435.html) -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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
[Nagios-users] Nagios Exchange feedback
Hi, I just wanted to give some feedback on the new NagiosExchange site. I'm intentionally posting here and not via the contact form on the site itself because I would like to have an open discussion on this in order to give better collaborative feedback. First off, thanks to all those who had a part in upgrading the site. Some of my own personal observations and opinions on the site and how it can be improved are below if you are interested. 1. The author name is no longer displayed next to the plugins listing. I don't know about anyone else, but I used to really use this to see straight off if a plugin was written by the same guy as another one as there is usually a strong correlation in the quality of plugins and who wrote them, it helped me avoid or zero in on plugins in a list. It's also just nice to see who wrote each one when scrolling through any list. 2. The votes have all been reset, which is a shame since it now means the better rated plugins are mingled in with the not so good ones, and I doubt people are going to go back and re-cast their votes. 3. The wiki markup changed, it would be nice if this was mapped or something on the migration, pages I've written now look horrid and I'd rather not go through so many pages to do it the manual chimp way (although I could live with it if I had to) 4. Navigation doesn't seem to be as nice as it was. For example, the only way to browse the plugins is to go back to the home page and navigate from there. There don't seem to be any links the the top bar of the page, and things like Cool Projects and Random Project, while good ideas, seem a bit less useful that this basic usability in navigation of going straight to the plugins browsing by section like we had before. 5. I get a certificate error when connecting to the site's login, it seems that the certificate is self signed instead of verified by a trusted 3rd party as is standard... Overall, I feel that NagiosExchange is less clear (I can't fully explain this bit - a feeling with the layout, spacing, text etc...) and less effective since it's revamping... I certainly haven't felt as comfortable using it as the old site, either looking for other people's plugins or with my own. I'd like to know what other people think, if anyone agrees or disagrees with what I think on these topics, since this is a community orientated site I thought it might be relevant to have a more community orientated discussion as this is the site's primary audience. Again, thank you for all of your work on NagiosExchange.org to all those involved and also to all the plugin authors as well that make the site such a useful code sharing conduit. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] change management or source control for Nagios configs?
Frost, Mark {PBG} wrote: I'm wondering what most people out there use for change management of Nagios config files. I had been using BZR (bazaar-ng) for a while, but when I refreshed my servers it was a bit of a pain and haven't put it there yet. I've tried to read about other ways to do this (RCS, SVN, etc), but they all seem so strongly oriented towards source-code projects that it's kind of confusing to run them with just config files. Some of these methods are complicated by the fact that they want to make their archive directory inside Nagios' directory structure. This gets kind of weird as I use nagios.cfg directives to tell it to recursively read directories rather than just specifically named files. BZR worked OK in this regard as it's dir was .bzr and was never picked up by Nagios. Ultimately, I'm trying to provide myself with the ability to track changes and potentially roll them back. Is anyone else out there using some wonderful solution to this Subversion. It's not difficult, you don't have to read all the code concepts like branching and merging if you are just interested in simple check out - change+deploy - check in usage. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Nagios 3 GUI config tools
Sekhar wrote: I am looking for Nagios 3 GUI config tools for hosts,groups,contacts etc No one seems to be developing nice tool for nagios gui config fruity - this is only publicity stunt RC release nearly 2 years Is there any other tools which can be used for easy configuration of nagios Sacrilege! ;-) Unix Config + revision control rule. Also, it'll hinder you getting very far if you can't handle the config of Nagios. The real power comes in the plugins and the customization for which you're better off knowing how to actually configure Nagios. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] checking all partitions on Windows host via check_nt?
Roger wrote: In the nrpe.cfg file on my montored box, I have the following command (which works beautifully). check command[check_disks_proc_mounts]=/usr/lib/nagios/plugins/check_disk -w 15% -c 10% $(for x in $(cat /proc/mounts |awk '{print $2}')\; do echo -n -p $x \; done) I am looking to make a check_nt equivalent to that command. Has anyone done this? Or do they have any ideas on how I might possibly do so? Nice to see my original bash idea has proliferated... I actually had this thought last year as well and my original solution was a very cheap bash script to loop through calls to the different drive letters, which worked, but was prone to being sensitive on latency since it had to make many round trips (The same was true of checking multiple services in this way). I think it would be better to have a native windows plugin to do this, I just haven't had time to get round to writing and testing it. I actually did write a windows plugin for the multiple services check but have been so short on time that I wasn't able to thoroughly test every code branch so I didn't release it. (it's similar in code base to the check all automatic services are running plugin that I released though). In fact, there are one or two plugins out there that do windows disk and services, but I didn't like their style, I felt the output was incoherent with Nagios style leading to a more mis-mashed dashboard (which I keep on a screen by my desk at all times) and my coding was more thorough so I didn't use them... but you're welcome to dig them out and try them if you want. Have a peek at Nagios Exchange. I'm hoping to get time soon to thoroughly test my services plugin and also do the disk check plugin too. Stay tuned. -h -- Hari Sekhon - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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] grouping service problems
Alex Dehaini wrote: Is there a way that I can group service problems? By default, all service problems i.e. warning, critical, unreachable, down shows up under service problems. Can I group devices that belong to the same group under service problems? The closest I think you can do is to select a servicegroup in Servicegroup/Hostgroup Overview/Summary and then order by status... Unless anyone else has a better idea? -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Probem with nrpe and sudo on rhel5 servers
Nicole Hähnel wrote: Hi, I wrote a plugin to check running ipsec tunnels on our gateways. The plugin needs to have access to /proc/net/ipsec_eroute, so I have to run nrpe command with sudo. sudoers (for testing): nagios ALL=(ALL) NOPASSWD: ALL nrpe.conf: command[check_tunnel]=sudo /usr/lib/nagios/plugins/check_tunnel --tunnels $ARG1$ I tested the plugin on the gateway, it works fine, but with nagios I get NRPE: Unable to read output. Running the plugin without sudo, nagios has an output, but 0 running tunnels. Looks like a problem with sudo command on rhel5 servers. Any ideas 2 Things: 1. You cannot embed Nagios macros like $ARG1$ in nrpe unless you're doing something like dont_blame_nrpe which is a bad idea according to those that make it. 2. Have you confirmed that the nrpe user is in fact nagios and that the path to the plugin is correct? -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Probem with nrpe and sudo on rhel5 servers
Nicole Hähnel wrote: The only way to get an output is to remove sudo command, but nagios user has no rights to read files in /proc. So it's a wrong check result. try logging in as the nrpe user, the running sudo ... by hand to see if it works or if it is actually still prompting for a passwd. What happens? -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
[Nagios-users] Announce: check_vnc - Plugin to test VNC including vnc authentication
Hi all, I have just released another plugin on NagiosExchange to test VNC on remote machines including vnc authentication and fetching a screenshot (at lowest quality in order to make the test very fast). ./check_vnc -H somemachine --passwd-file vncpass --timing OK: vnc logged in and image obtained successfully. Test completed in 0.300 seconds ./check_vnc -H somemachine -f vncpass --verbose OK: vnc logged in and image obtained successfully. VNC server supports protocol version 3.8 (viewer 3.3) This is a re-write of a plugin I've had working since 2006 and which some people had asked me for previously but wasn't in a release-worthy state at that time. As usual it follows the Nagios coding standards with a self timeout and increasing verbosity and -vvv debugging. You can get the plugin here: http://www.nagiosexchange.org/Check_Plugins.21.0.html?tx_netnagext_pi1[p_view]=1261 Feedback always welcome. For bug reports, feature requests etc contact me at this address. Thanks -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 Connection attempts
Matthew Macdonald-Wallace wrote: Hi All, Before I start coding my own plugin to do this, does anyone know of a plugin that monitors the number of external connection attempts over a given period of time for a given service and sends alerts accordingly? I've noticed on a number of servers that we maintain recently that there are unauthorised attempts to connect via SSH/FTP. These appear in the log files about 2 seconds apart and are obviously automated. We've got Logcheck in place which alerts us to this kind of thing already, however I like the idea of a nice visual/audible alert (we all use the nagios-plugin for firefox here). You could probably use check_logfiles to search for those logged strings and alert on those. Haven't used it myself yet but it seems good. http://www.consol.com/opensource/nagios/check-logfiles/ -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Add information in notification
Bráulio H. Soares wrote: Hi people, I need to send the notifications with a comment, including information about the incident, instead only information about host or service… I think to achieve this using event handler, with scripts that send e-mail containing that message, but I not able to do this, because the user could receive two e-mail, the first could be a notification and the second the “incident information”, generated by the script. Can I to add “environment variables” (like $HOSTALIAS$ or $HOSTSTATE$) in the Nagios, using to send the enhanced information? See misccommands.cfg where your notification commands are enabled. They use Nagios macros, so you can add more information using other macros there. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 Unix servers CPU, memory and hard-disk
James E. Pratt wrote: Kinda off-topic, but why on earth would you care much about memory details on a Linux box? Most memory is cached, so output from, say, free is kinda useless. (Not sure where that plugin gets it's info though either?).. IMO You are much better off monitoring loadavg . (Or, am I just losing it?) Regards, jp You would care if you've ever used Linux and heard of oom-killer. I wrote a plugin ages ago that checks this and takes this caching behaviour of Linux in to account. http://www.nagiosexchange.org/Linux.55.0.html?tx_netnagext_pi1[p_view]=909 This plugin counts cache ram as free by default as it effectively is on Linux architecture and so this is the correct thing to do, but there is also a switch to change this behaviour if you want. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
[Nagios-users] Announce: check_svn - Plugin to test Subversion repositories
Hi, I've just released another plugin on NagiosExchange called check_svn that tests subversion repositories over svn://, http:// or https://. This is a re-write of a plugin I've been using for more than a year and had been meaning to release earlier, I know there were some people who had asked for it, and my apologies to those folks for taking so long on this, but work has not allowed me to spend time on the things I've been wanting to and I generally don't release my plugins until I feel they meet a minimum standard. The plugin takes range of options including username/password credentials, port, protocol, directory, directory content listing, timer output. It follows the standard Nagios coding guidelines with a --timeout for the test and levels of verbosity for more information or debugging. It requires that the svn command line client svn be somewhere in the path as it uses this to connect to the Subversion server to fetch a listing to determine that the repository is online and available. You can get the plugin from NagiosExchange: http://www.nagiosexchange.org/Check_Plugins.21.0.html?tx_netnagext_pi1[p_view]=1258 Feedback on this plugin is always welcome. For support, feature requests or bug reports email me at this address. Thanks -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 Unix servers CPU, memory and hard-disk
Melanie Pfefer wrote: check_load works on the local server only right? how to check_load on $HOSTNAME??? Read up on Nagios remote execution mechanisms, specifically NRPE, NSCA which are the 2 main ways of running remote checks (there is also SNMP and check_by_ssh but I don't recommend these as much for nagios, they're generally harder to get right). -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 Unix servers CPU, memory and hard-disk
Gary Every wrote: Here is my command for checking load - it grabs 1,5,15 mins and displays them. I'm watching to 5 min load, so it is first in the check: command_line/usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o enterprises.ucdavis.laTable.laEntry.laLoadInt.2,enterprises.ucdavis.laTable.laEntry.laLoadInt.1,enterprises.ucdavis.laTable.laEntry.laLoadInt.3 -w :$ARG2$ -c :$ARG3$ -u is 5min - ,is Current - ,is 15min The important thing in this is the enterprises.ucdavis.laTable.laEntry.laLoadInt.2 where 2 is the second object returned, but since it is first, that is what nagios will measure. The -u is formatting so the nagios check looks like this on the webpage: SNMP OK - 68 is 5min - 72 is Current - 63 is 15min snmp is the way to go. Read up on it, you can do MANY checks - mem, procs, disk space, execute remote commands, etc Don't forget to CC the list. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] RES: Add information in notification
Bráulio H. Soares wrote: Thanks for the help, Hari. But I need to add information possibly different for each host and/or service notification, understand? By this way, I cannot insert static parameter in the command_line, into the commands file. I think another method to do this, but is no functional. I think the following: - Create a contact template with a specific service and host notifies command. - Create a command to send e-mail to each contact template, so I would have customized commands to each situation I need. The problem rises when creating the contacts, because the same contact should be assigned to several contact template, but is not possible. Anymore idea!? Thanks. Sds, If you are trying to do something too complicated, you might be trying to push a square peg in to a round hole by forcing Nagios to work in a way it normally doesn't do. Have you considered just having one notification command which calls a script. You can then program in all the logic in to this script. The script can accept lots and lots of Nagios macros and change the output depending of conditional testing and outputting certain macros with information depending on which host or service it is. This way all the logic is in once place and you just need to maintain that notification script. I didn't look at the one contributed by John Kramme just now, but that might be a good starting point for you. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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_http and differents ports
Diego Giurgola wrote: I solved in this way. Thanks! Diego. 2008/2/29, Hari Sekhon [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: your nagios configuration is probably wrong, double check your checkcommands.cfg and your services.cfg where you are calling the command. If you are specifying in services.cfg checkcommand check_http!-p 100080 then you will need the command to have an $ARG1$ variable after it in checkcommands.cfg. Ok, that's good, remember to CC the list so that other people can learn from it too. Thanks -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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_http and differents ports
Diego Giurgola wrote: Hi all. I have a problem with check_http. I'd like to monitor my apache server, which is running on 10080 port. When I try to use the script from shell, it works wonderfully: [EMAIL PROTECTED] /usr/lib/nagios/plugins/check_http -I localhost -p 10080 HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds |time=0,003844s;;;0,00 size=306B;;;0 But, when I setup the nagios services.cfg file and get nagios on, it refuses to work, and it says me Connection refused. So, what is the clue? your nagios configuration is probably wrong, double check your checkcommands.cfg and your services.cfg where you are calling the command. If you are specifying in services.cfg checkcommand check_http!-p 100080 then you will need the command to have an $ARG1$ variable after it in checkcommands.cfg. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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_http and differents ports
Hari Sekhon wrote: Diego Giurgola wrote: Hi all. I have a problem with check_http. I'd like to monitor my apache server, which is running on 10080 port. When I try to use the script from shell, it works wonderfully: [EMAIL PROTECTED] /usr/lib/nagios/plugins/check_http -I localhost -p 10080 HTTP OK HTTP/1.1 200 OK - 306 bytes in 0,004 seconds |time=0,003844s;;;0,00 size=306B;;;0 But, when I setup the nagios services.cfg file and get nagios on, it refuses to work, and it says me Connection refused. So, what is the clue? your nagios configuration is probably wrong, double check your checkcommands.cfg and your services.cfg where you are calling the command. If you are specifying in services.cfg checkcommand check_http!-p 100080 then you will need the command to have an $ARG1$ variable after it in checkcommands.cfg. -h err, correction, that's supposed to be check_command in services.cfg and you'll need a corresponding $ARG1$ on the line command_line in checkcommands.cfg. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] DB2v8 check from Nagios3 freebsd Installation
Denny Schierz wrote: hi, we have Nagios 3rc2 on our freebsd 6.2 and we want to check the DB2 v8 server, which runs under RHL. I red now the (the old) howto from IBM Installing the DB2 UniversalDatabase Plug-in for te Nagios System Monitor ftp://ftp.software.ibm.com/software/data/pubs/papers/nagios.pdf After a sort overview, it seems, that i have a problem, cause the client does not run under freebsd. So, how can i check the DB2 without installing Nagios on a Linux server? cu denny Use one of the Nagios remote execution methods to have the plugin run on a linux box and feed the result to the Nagios server on FreeBSD. NRPE, NSCA or check_by_ssh are the first things to look at. This way nagios stays on the FreeBSD server and the plugin runs on a Linux box. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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
[Nagios-users] Plugin Output Standardization (was JMX plugin thread)
Marc Powell wrote: The plugin output text is completely arbitrary. Nagios only really cares about the exit code and that there's only one line of plugin output, whatever it is Yes quite right, but standardization of output is nice for coherence and to give a more professional unified feel. Do you have any preference between the two? There seems to unfortunately be a mix between the two styles. Perhaps the official development guidelines could be adjusted to steel people towards one standard output format on this? I'd vote for the SERVICENAME SERVICESTATUS: Informational text format like DISK OK: / is 50% full ... -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] (no subject)
Bhat nag wrote: After that I am used the command to check the nrpe, but I am getting the error as root @ isosrvr : /opt/nrpe/bin ./check_nrpe -H localhost -n CHECK_NRPE: Response packet had invalid CRC32. I have found that you cannot use localhost when using nrpe, try the hostname instead. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 disk_write?
Oliver Klein wrote: Hi perfect this is exactly what iŽm looking for but I load the script on the remote server and define command I the nrpe.cfg on the remote host. On the nagios server I define the disk_checkrw in commands.cfg and also in the host.cfg . # 'check_diskrw' commands.cfg definition define command{ command_namecheck_diskrw command_line$USER1$/check_diskrw } # command definition in nrpe.cfg command[check_diskrw]=/usr/local/nagios/libexec/check_diskrw I use the the command on console it wrote OK in the nagios webinterface I got write error on What I had missing? maybe I have to touch a file? sorry but iŽm a little bit confused today. You're probably trying it on the command line as root and nrpe is running it as a regular user that may not have permission to write that location Either that or your nrpe.cfg is wrong. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] autogenerating NRPE handlers for nrpe.cfg
Roger wrote: On Fri, Feb 22, 2008 at 9:17 AM, Hari Sekhon [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Roger wrote: I have hundreds of hosts, each of which needs an npre.cfg file to reflect the true fdisk -l and df -h output of each box. Anyone have any scripts that they've used? I'm in a bind, otherwise I'd think about writing my own... If this is to get a disk check depending on what disks are available, look here for a tip: http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg11936.html I'm having a problem getting this sort of thing to work on monitored server (with nrpe) i have the following line in nrpe.cfg command[check_disks_proc_mount]=/usr/lib/nagios/plugins/check_disks_proc_mount In my check_disk_proc_mount script (which runs ok on its own), I have something similar to ./check_disk -w 15% -c 20% $(for x in $(/proc/mounts | awk '{print $2}'); do echo -n -p $x ; done) I run this from the command line, and I get my expected DISK OK return value. However, I get NRPE: Unable to read output when I run the following command from the plugins directory from my Nagios server ./check_nrpe -H (ipOfMonitoredBox) -c check_disks_proc_mount What do I need to do for this to work across NRPE like it does when I'm shelled in the box? there is an error in that shell script, the bit $(/proc/mounts | awk '{print $2}') is wrong. You might just change it to $(cat /proc/mounts | awk '{print $2}') or $(awk '{print $2}' /proc/mounts) but I wouldn't recommend it, you should limit the check to real filesystems like ext2/ext3/reiserfs/xfs etc not things like sysfs, udev etc.. Try playing with this on the command line until you get it right, you may want to check the bash docs or ask in freenode's #bash if you're not strong in bash though (warning: don't ask in #bash until you've looked through docs or you'll get flamed if it's a simple problem to solve and it shows you haven't read the docs and tried sufficiently) Also, try looking at my example again in the original link I sent you which does exactly what you want, all you need to do is choose the filesystem types you want to check. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] JMX plugin
Oliver Welter wrote: which outputs: JMX OK - HeapMemoryUsage.used is 78707376,committed=1063321600;init=1073741824;max=1063321600;used=78707376 IIRC, your output must start with the status keyword, so you have to remove the JMX in front of the ok Really? I never got that from the Nagios development guidelines, perhaps SERVICE STATUS: Information text is slightly ambiguous as it could mean SERVICENAME then STATUS then Information text or just STATUS then Information text. I've personally always preferred the former where you print the check name, I think it makes things clearer and I've noticed that lots of the plugins from the standard distribution follow this. To the OP and back on topic, I don't know anything about your plugin but have you tested that this Java program is using the right Exit codes? You should also make sure that all output goes to stdout and not stderr since nagios does not catches stderr. Oliver is right, you should check the user that you are running it as, one common mistake is to run a program as root from the command line and then wonder why it doesn't work as the nagios user. Usually when you get Unknown and no output at the same time with nrpe, it's usually a user issue or a failure to execute issue due to wrong path or requiring more privs or something hanging like a sudo call where you hadn't granted nopasswd so it prompted, hung and timed out. You should also check out http://nagiosplug.sourceforge.net/developer-guidelines.html for the development guidelines. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 time syncronization
Marc Powell wrote: OMG. SNMP can be used to execute programs remotely and reboot machines. I'd avoid that at all costs, even if I needed to turn the machine off to not use it. I'm kidding of course but my point is that the tools are only as open as you make them. That's a good point of course, SNMP is no panacea, it can also do many things, but I think there are a lot of environments that do have SNMP but that may not have NRPE or NSCA running since SNMP seems to be quite widely used already. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Announce: Check_Gentoo_Portage plugin
Matthias Kellermann wrote: You can get the plugin from NagiosExchange here: http://www.nagiosexchange.org/Check_Plugins.21.0.html?tx_netnagext_pi1[p_view]=1244 Thanks Hari for this great plugin - just what I needed! :) Just tested it - works fine! I had to raise the DEFAULT_TIMEOUT to something like 30 on some older machines to get this to work. But on newer system 10 seconds are ok. Matthias Yes it depends on what checks you run as well, getting the number of all available upgrades is very slow, hence why it's not the default - you'd need 30-40 seconds, but this is completely emerge's fault which has always been slow to start up. I find that increasing the --timeout helps anyway even if you just stick to the default Outstanding Security Packages check as it takes glsa-check around 6.5-7 seconds just to return the output of security packages, you may end up hitting the 10 second limit, and of course this will be slower on old machines... This is one good reason for the --timeout switch. I've just used that switch to increase the running timeout to 30 seconds as well just to be safe from timeouts. If you're referring to the DEFAULT_TIMEOUT in the plugin, it's not really needed to change the code if you use the --timeout switch when you run it (or embed that in the NRPE call or whatever you use for remote checks), but it's completely your choice. -h -- Hari Sekhon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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