Re: [Nagios-users] WMI's
I think you're being too kind. I woke up this morning full of myself and after having guzzled two cups of coffee by the time I started on that post well, I bit of the ass-hat came out. My apologies. Most of my frustration at the moment is coming from not knowing what questions to ask Google or what some of the directives mean or even what they are. I get the basic concept I just don't speak the language yet. It's coming though. The Nagios book I got today is already starting to clear up some of the fogginess. Andreas Ericsson wrote: Mark, thanks for keeping the tone very much to the point and trying hard yourself. Very few people do this, so the bones we throw on this list are generally on the assumption that people haven't. Mark Weaver wrote: Andreas Ericsson wrote: Martyn wrote: How do I add the windows credentials. check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process If I run the above it will give me a refused connection, where in the above line would I add the username and password of the Windows box I want to connect to? You're holding a hammer and want someone to explain to you how to use it as a car. It can't be done with check_nt, but there are other programs out there that can ask questions over WMI, and you already know of some of them. Google should hold plenty of other resources if installing nsclient, NCNet or nsclient++ is not an option for you, although some programming may be necessary on your part. A clarification will be necessary here, I feel. You mentioned a few apps in your original post which utilizes WMI to access windows boxes, so I obviously figured you had researched them already. The hammer != car analogy is two-fold actually. One meaning is that you were using the wrong tool. The other is that you might be thinking along wrong lines entirely. I'm willing to bet that 99% of all nagios installations in the world monitor Windows servers either using SNMP or one of the 3 easily available clients designed specifically for that purpose (nsclient, nsclient++ and NC_Net). check_nt *can* talk to either of those clients, but they do not use WMI while doing so. The exception is NC_Net which can, if I understand how it works correctly (I may not; I haven't looked at its source/README's at all, since our own way of doing it is sufficient), query other windows servers using the dotnet framework. However, the chain then becomes nagios - check_nt - NC_Net on one windows server - Other windows server In other words, you need to use NC_Net on one server as a sort of proxy, and that seems to fall slightly outside what you wanted. However, the excellent Mono framework runs just fine under Linux, and since NC_Net is written in C# (I checked since I last posted about it), a moderately skilled programmer shouldn't have too much difficulty adapting NC_Net to cut out the proxy server and send queries directly to the targeted Windows server from which one actually wants information. Had you responded Right, I'm not a programmer so if you could hint at what's required for this?, I'd have known you're not. The post above was a kind of bait for both you and Tony Montibello (NC_Net author), as I believe a mono-based plugin to check windows systems would be totally awesome. I have no need for it though, so I won't be working on it. *warning: post contains rant* Andreas, you're making my head hurt! ;) I've been using (learning) Nagios now for about a week now and haven't encountered anything with such a vertical learning curve like this since I started learning Linux in 1996. Climbing this learning curve causes massive frustration, but once success happens there's a huge release of satisfaction and self-accomplishment. I personally am enjoying the trip and experience. Yesterday, after feeling comfortable getting Nagios to talk to servers on my local network for checking the obvious services running on them - linux and windows servers - like IIS, Apache, SMTP and the like I started working on getting my workstation to talk to the Nagios server via the NSClient++ package. This is going to be yet another challenge and one I fully accept. Let me tell you, for me the harder something is the more tenacious I become and refuse to let go until I master it. That being said the documentation which comes with Nagios seriously sucks until you begin to get on to the Nagios way of doing things. Over the last week I have googled more than I have in the last 5 years getting my test-bed nagios system going. I have literally googled my brains out. At the moment I'm somewhat at a loss to know whether I've worked harder googling for information or actually getting to know the Nagios way and making things work! I'm leaning towards Googling... So for you to curtly suggest that all can easily be found googling as an answer to this question is, well... just too easy. Either
Re: [Nagios-users] WMI's
Martyn wrote: Thanks for the reply made me laugh did this line. You're holding a hammer and want someone to explain to you how to use it as a car am going to use that myself one day. However I did get a reply saying You can make your very own checks using whatever credentials you like (and access any data you like). In other words, you don't have to use generic checks shipped with nagios This kind of implied that it can be done with Nagios. Apologies if I misunderstood it It can be done with Nagios (which is just a scheduler), but not by using check_nt. It can be done using check_nt to connect to an NCNet instance (or perhaps NCNet can be compiled using Mono or some such, in which case you should be able to tweak it enough to make it usable from command-line on any unixy system where you can install mono). In this case check_nt is the hammer. Nagios is just the carpenter, and it can use hammers, cars, TV's, screwdrivers, beer and carpet slippers just fine ;-) I should look into NCNet. If it's written in C#, it might be usable with mono and then we could get a Linux binary running checks directly against windows hosts, with actual credentials being used for authentication. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- 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] WMI's
Andreas Ericsson wrote: Martyn wrote: How do I add the windows credentials. check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process If I run the above it will give me a refused connection, where in the above line would I add the username and password of the Windows box I want to connect to? You're holding a hammer and want someone to explain to you how to use it as a car. It can't be done with check_nt, but there are other programs out there that can ask questions over WMI, and you already know of some of them. Google should hold plenty of other resources if installing nsclient, NCNet or nsclient++ is not an option for you, although some programming may be necessary on your part. *warning: post contains rant* Andreas, you're making my head hurt! ;) I've been using (learning) Nagios now for about a week now and haven't encountered anything with such a vertical learning curve like this since I started learning Linux in 1996. Climbing this learning curve causes massive frustration, but once success happens there's a huge release of satisfaction and self-accomplishment. I personally am enjoying the trip and experience. Yesterday, after feeling comfortable getting Nagios to talk to servers on my local network for checking the obvious services running on them - linux and windows servers - like IIS, Apache, SMTP and the like I started working on getting my workstation to talk to the Nagios server via the NSClient++ package. This is going to be yet another challenge and one I fully accept. Let me tell you, for me the harder something is the more tenacious I become and refuse to let go until I master it. That being said the documentation which comes with Nagios seriously sucks until you begin to get on to the Nagios way of doing things. Over the last week I have googled more than I have in the last 5 years getting my test-bed nagios system going. I have literally googled my brains out. At the moment I'm somewhat at a loss to know whether I've worked harder googling for information or actually getting to know the Nagios way and making things work! I'm leaning towards Googling... So for you to curtly suggest that all can easily be found googling as an answer to this question is, well... just too easy. Either you don't actually know or you don't feel like telling. I totally understand though because I suspect you yourself have worked very hard getting to know and work with Nagios and have put quite a bit of time into the gaining the experience you now possess, but throwing us noobs a bone isn't really asking too much is it? Bone == link to information slap in one's face == go google it... Yeah... we can find the stuff we need by googling for it, but wouldn't it be nice if the documentation were a lot more robust and contained in a wiki somewhere? I have yet to find one for Nagios. In fact most of the sites I've found for Nagios waste my time. Which is pretty much what suggesting someone google for something does. They're hoping for, at the very least a kick in the ass in the right direction but get sent back to the place of frustration - Google! The trick to googling is knowing the right question to ask and after you've been spending hours trying to suss out something that is vexing one's soul that becomes an exercise in futility. (I'm ranting, but I don't mean it in an accusatory tone.) As I said, I do understand that you and others have invested a great deal of time and effort into learning Nagios and how to work it, but if you don't want to share whats locked away in your brains then why even respond to the post? If I've offended I do apologize, but as an experience network admin and a Nagios noob I know the value of my time and yours and others searching for the information that would hopfully unlock the doors currently barring them from reaching the next milestone or goal. I appreciated your metaphore of a hammer and a car; the fact that it can't be done with check_nt was informative, but then you lost me when you said just google it. Google What for pete's sake? (after a long day of wrestling with the beast that could mean google for anything ranging from the best recipe for blueberry pancakes to the ingredient to a fusion device!) Frankly, if I knew more about Nagios and the intimacies thereof, I would gladly host a wiki for it on one my web servers, but alas I'm a noob. my one burning question: Why the hell isn't there a wiki for Nagios, and if there is where the bloody hell is it? Thank you for you kind attention and for putting up with this petulant Nagios Newbie. Mark -- 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
Re: [Nagios-users] WMI's
The learning curve is indeed steep at first. I found the book Nagios by Wolfgang Barth invaluable in flattening that curve. http://nostarch.com/nagios_2e.htm It's available as a .pdf download or in traditional book form. I'm not sure the book would answer your original question in this thread though, and nor can I! I hope this helps, Jim -- 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] WMI's
On Mar 13, 2009, at 7:36 AM, Mark Weaver wrote: Just a couple of $.02us, please read in courteous, matter-of-fact tone -- Andreas, you're making my head hurt! ;) I've been using (learning) Nagios now for about a week now and haven't encountered anything with such a vertical learning curve like this since I started learning Linux in 1996. Heh, the learning curve is not nearly so steep as say Slackware back in those days... Nagios is a lot like linux though; it's just a base platform. How you implement it, what you monitor with it and how you do so is going to greatly depend on what you want to get out of it and your environment. While there is a lot of commonality between users, there's also a lot of difference and flexibility to monitor things any way you like. If it can be run from the command line, it can be turned into a plugin generally. That being said the documentation which comes with Nagios seriously sucks until you begin to get on to the Nagios way of doing things. ... one of the reasons I recommend reading the documentation, then the sample config files, then the documentation again. IMHO, the documentation is actually very good and covers most common concepts and scenarios, either very specifically or generally. ~90% of the time I respond to a question, I'm looking at the documentation that answers it. So for you to curtly suggest that all can easily be found googling as an answer to this question is, well... just too easy. Either you don't actually know or you don't feel like telling. I'm quite certain he knows, or has heard of people doing it, and believes that the answers you seek are easily found. I believe that you might not yet know the questions to ask google though because you don't yet understand the concepts. I totally understand though because I suspect you yourself have worked very hard getting to know and work with Nagios and have put quite a bit of time into the gaining the experience you now possess, but throwing us noobs a bone isn't really asking too much is it? Bone == link to information slap in one's face == go google it... I don't think that expecting you to figure out that you should google for 'nagios wmi' is too much to expect, since that was your goal and what he pointed you to do. In your question, you made an assumption about a tool (check_nt) that was incorrect. The documentation for that tool would have told you it was incorrect by omission but he pointed it out and told you there were other tools available that might do what you need. There are *many* nagios plugins available created by many people. It's not possible to know them all or where they are located, hence the google recommendation. He can not be expected to do that kind of research for you in the same way that a kernel developer can't be expected to tell you which web server to install and how to use it. Yeah... we can find the stuff we need by googling for it, but wouldn't it be nice if the documentation were a lot more robust and contained in a wiki somewhere? I have yet to find one for Nagios. There's one linked directly from the Documentation page at http://www.nagios.org . http://www.nagiosexchange.org is another, somewhat different but well known community site. As I said, I do understand that you and others have invested a great deal of time and effort into learning Nagios and how to work it, but if you don't want to share whats locked away in your brains then why even respond to the post? Because posters and responders have unknown levels of knowledge? He provided information based on an expectation that you have a higher level of knowledge. That information would have been quite sufficient for many people. You have two possible paths in a case like that, you either try to figure out what he means or you ignore it and wait for someone else to answer at a level you understand. If you get no further answers that either indicates most people think it's sufficient, you didn't ask the right question or you didn't give the right information. If you're fortunate, you may even have people tell you that. He answered in a manner that is comfortable to him and meets his expectations of the questioner. We're all self-taught nagios users; if we can do it, so can you. Google What for pete's sake? generally, 'nagios check whatever' will provide resources for checking most anything someone's tried to monitor. You'll either find plugins, web pages or list archives. Thank you for you kind attention and for putting up with this petulant Nagios Newbie. Heh, you'll get there ;) -- Marc -- 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
Re: [Nagios-users] WMI's
Mark, thanks for keeping the tone very much to the point and trying hard yourself. Very few people do this, so the bones we throw on this list are generally on the assumption that people haven't. Mark Weaver wrote: Andreas Ericsson wrote: Martyn wrote: How do I add the windows credentials. check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process If I run the above it will give me a refused connection, where in the above line would I add the username and password of the Windows box I want to connect to? You're holding a hammer and want someone to explain to you how to use it as a car. It can't be done with check_nt, but there are other programs out there that can ask questions over WMI, and you already know of some of them. Google should hold plenty of other resources if installing nsclient, NCNet or nsclient++ is not an option for you, although some programming may be necessary on your part. A clarification will be necessary here, I feel. You mentioned a few apps in your original post which utilizes WMI to access windows boxes, so I obviously figured you had researched them already. The hammer != car analogy is two-fold actually. One meaning is that you were using the wrong tool. The other is that you might be thinking along wrong lines entirely. I'm willing to bet that 99% of all nagios installations in the world monitor Windows servers either using SNMP or one of the 3 easily available clients designed specifically for that purpose (nsclient, nsclient++ and NC_Net). check_nt *can* talk to either of those clients, but they do not use WMI while doing so. The exception is NC_Net which can, if I understand how it works correctly (I may not; I haven't looked at its source/README's at all, since our own way of doing it is sufficient), query other windows servers using the dotnet framework. However, the chain then becomes nagios - check_nt - NC_Net on one windows server - Other windows server In other words, you need to use NC_Net on one server as a sort of proxy, and that seems to fall slightly outside what you wanted. However, the excellent Mono framework runs just fine under Linux, and since NC_Net is written in C# (I checked since I last posted about it), a moderately skilled programmer shouldn't have too much difficulty adapting NC_Net to cut out the proxy server and send queries directly to the targeted Windows server from which one actually wants information. Had you responded Right, I'm not a programmer so if you could hint at what's required for this?, I'd have known you're not. The post above was a kind of bait for both you and Tony Montibello (NC_Net author), as I believe a mono-based plugin to check windows systems would be totally awesome. I have no need for it though, so I won't be working on it. *warning: post contains rant* Andreas, you're making my head hurt! ;) I've been using (learning) Nagios now for about a week now and haven't encountered anything with such a vertical learning curve like this since I started learning Linux in 1996. Climbing this learning curve causes massive frustration, but once success happens there's a huge release of satisfaction and self-accomplishment. I personally am enjoying the trip and experience. Yesterday, after feeling comfortable getting Nagios to talk to servers on my local network for checking the obvious services running on them - linux and windows servers - like IIS, Apache, SMTP and the like I started working on getting my workstation to talk to the Nagios server via the NSClient++ package. This is going to be yet another challenge and one I fully accept. Let me tell you, for me the harder something is the more tenacious I become and refuse to let go until I master it. That being said the documentation which comes with Nagios seriously sucks until you begin to get on to the Nagios way of doing things. Over the last week I have googled more than I have in the last 5 years getting my test-bed nagios system going. I have literally googled my brains out. At the moment I'm somewhat at a loss to know whether I've worked harder googling for information or actually getting to know the Nagios way and making things work! I'm leaning towards Googling... So for you to curtly suggest that all can easily be found googling as an answer to this question is, well... just too easy. Either you don't actually know or you don't feel like telling. I totally understand though because I suspect you yourself have worked very hard getting to know and work with Nagios and have put quite a bit of time into the gaining the experience you now possess, but throwing us noobs a bone isn't really asking too much is it? Bone == link to information slap in one's face == go google it... Well, now that it seems you are no longer bothering to use WMI credentials (which was what the original post was all about), you really should be able to find all the information you need using
Re: [Nagios-users] WMI's
Jim Avery wrote: The learning curve is indeed steep at first. I found the book Nagios by Wolfgang Barth invaluable in flattening that curve. http://nostarch.com/nagios_2e.htm It's available as a .pdf download or in traditional book form. I'm not sure the book would answer your original question in this thread though, and nor can I! I hope this helps, Jim Hi Jim, Thanks for the link. I ordered the PDF. Gonna be doing some reading this weekend by god! Mark -- 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
[Nagios-users] WMI's
Why does Nagios need the NSClient to access Windows boxes when other systems like PRTG use windows logon conditionals, think Cacti is the same also. Thanks -- 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] WMI's
Tomasz thanks for the reply, do you have a example of such commands or could point be to a place that does Thanks Martyn -Original Message- From: Tomasz Chmielewski [mailto:man...@wpkg.org] Sent: 12 March 2009 10:44 To: Martyn Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] WMI's Martyn schrieb: Why does Nagios need the NSClient to access Windows boxes when other systems like PRTG use windows logon conditionals, think Cacti is the same also. You can make your very own checks using whatever credentials you like (and access any data you like). In other words, you don't have to use generic checks shipped with nagios. -- Tomasz Chmielewski http://wpkg.org -- 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] WMI's
How do I add the windows credentials. check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process If I run the above it will give me a refused connection, where in the above line would I add the username and password of the Windows box I want to connect to? Thanks Martyn -Original Message- From: Martyn [mailto:mar...@chetnet.co.uk] Sent: 12 March 2009 11:22 To: 'Tomasz Chmielewski' Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] WMI's Tomasz thanks for the reply, do you have a example of such commands or could point be to a place that does Thanks Martyn -Original Message- From: Tomasz Chmielewski [mailto:man...@wpkg.org] Sent: 12 March 2009 10:44 To: Martyn Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] WMI's Martyn schrieb: Why does Nagios need the NSClient to access Windows boxes when other systems like PRTG use windows logon conditionals, think Cacti is the same also. You can make your very own checks using whatever credentials you like (and access any data you like). In other words, you don't have to use generic checks shipped with nagios. -- Tomasz Chmielewski http://wpkg.org -- 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 -- 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] WMI's
Martyn schrieb: Why does Nagios need the NSClient to access Windows boxes when other systems like PRTG use windows logon conditionals, think Cacti is the same also. You can make your very own checks using whatever credentials you like (and access any data you like). In other words, you don't have to use generic checks shipped with nagios. -- Tomasz Chmielewski http://wpkg.org -- 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] WMI's
Martyn wrote: How do I add the windows credentials. check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process If I run the above it will give me a refused connection, where in the above line would I add the username and password of the Windows box I want to connect to? You're holding a hammer and want someone to explain to you how to use it as a car. It can't be done with check_nt, but there are other programs out there that can ask questions over WMI, and you already know of some of them. Google should hold plenty of other resources if installing nsclient, NCNet or nsclient++ is not an option for you, although some programming may be necessary on your part. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- 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] WMI's
Thanks for the reply made me laugh did this line. You're holding a hammer and want someone to explain to you how to use it as a car am going to use that myself one day. However I did get a reply saying You can make your very own checks using whatever credentials you like (and access any data you like). In other words, you don't have to use generic checks shipped with nagios This kind of implied that it can be done with Nagios. Apologies if I misunderstood it Martyn -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: 12 March 2009 12:27 To: Martyn Cc: 'Tomasz Chmielewski'; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] WMI's Martyn wrote: How do I add the windows credentials. check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process If I run the above it will give me a refused connection, where in the above line would I add the username and password of the Windows box I want to connect to? You're holding a hammer and want someone to explain to you how to use it as a car. It can't be done with check_nt, but there are other programs out there that can ask questions over WMI, and you already know of some of them. Google should hold plenty of other resources if installing nsclient, NCNet or nsclient++ is not an option for you, although some programming may be necessary on your part. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- 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] WMI's
Martyn [12.03.2009 13:01]: How do I add the windows credentials. check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process If I run the above it will give me a refused connection, where in the above line would I add the username and password of the Windows box I want to connect to? Maybe the output of check_nt -h helps you? In the notes below I read The NSClient service should be running on the server to get any information (http://nsclient.ready2run.nl), and the password can be given by the -s param of the command line. ---snip--- check_nt v1991 (nagios-plugins 1.4.13) Copyright (c) 2000 Yves Rubin (rub...@yahoo.com) Copyright (c) 2000-2007 Nagios Plugin Development Team nagiosplug-de...@lists.sourceforge.net This plugin collects data from the NSClient service running on a Windows NT/2000/XP/2003 server. Usage:check_nt -H host -v variable [-p port] [-w warning] [-c critical][-l params] [-d SHOWALL] [-t timeout] Options: -h, --help Print detailed help screen -V, --version Print version information Project-Id-Version: nagiosplug Report-Msgid-Bugs-To: nagiosplug-de...@lists.sourceforge.net POT-Creation-Date: 2008-09-25 09:35+0100 PO-Revision-Date: 2004-12-23 17:46+0100 Last-Translator: Language-Team: English e...@li.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n 1);X-Generator: KBabel 1.3.1 Options: -H, --hostname=HOST Name of the host to check -p, --port=INTEGER Optional port number (default: 1248) -s password Password needed for the request -w, --warning=INTEGER Threshold which will result in a warning status -c, --critical=INTEGER Threshold which will result in a critical status -t, --timeout=INTEGER Seconds before connection attempt times out (default: 10) -h, --help Print this help screen -V, --version Print version information -v, --variable=STRING Variable to check Valid variables are: CLIENTVERSION = Get the NSClient version If -l version is specified, will return warning if versions differ. CPULOAD = Average CPU load on last x minutes. Request a -l parameter with the following syntax: -l minutes range,warning threshold,critical threshold. minute range should be less than 24*60. Thresholds are percentage and up to 10 requests can be done in one shot. ie: -l 60,90,95,120,90,95 UPTIME = Get the uptime of the machine. No specific parameters. No warning or critical threshold USEDDISKSPACE = Size and percentage of disk use. Request a -l parameter containing the drive letter only. Warning and critical thresholds can be specified with -w and -c. MEMUSE = Memory use. Warning and critical thresholds can be specified with -w and -c. SERVICESTATE = Check the state of one or several services. Request a -l parameters with the following syntax: -l service1,service2,service3,... You can specify -d SHOWALL in case you want to see working services in the returned string. PROCSTATE = Check if one or several process are running. Same syntax as SERVICESTATE. COUNTER = Check any performance counter of Windows NT/2000. Request a -l parameters with the following syntax: -l \\performance object\\counter,description The description parameter is optional and is given to a printf output command which requires a float parameter. If description does not include %%, it is used as a label. Some examples: Paging file usage is %%.2f %%.f paging file used. INSTANCES = Check any performance counter object of Windows NT/2000. Syntax: check_nt -H hostname -p port -v INSTANCES -l counter object counter object is a Windows Perfmon Counter object (eg. Process), if it is two words, it should be enclosed in quotes The returned results will be a comma-separated list of instances on the selected computer for that object. The purpose of this is to be run from command line to determine what instances are available for monitoring without having to log onto the Windows server to run Perfmon directly. It can also be used in scripts that automatically create Nagios service configuration files. Some examples: check_nt -H 192.168.1.1 -p 1248 -v INSTANCES -l Process Notes: - The NSClient service should be running on the server to get any information (http://nsclient.ready2run.nl). - Critical thresholds should be lower than warning thresholds - Default port 1248 is sometimes in use by other services. The error output when this happens contains Cannot map x to protocol number. One fix for this is to change the port to something else on check_nt and on the client service it's connecting to. Send email to nagios-users@lists.sourceforge.net if you have questions regarding use of this software. To submit patches or suggest improvements, send email to nagiosplug-de...@lists.sourceforge.net ---pins--- HTH Werner
Re: [Nagios-users] WMI's
In Responce to the original Question. Nagios is designed to process any command that can can make it to a command console. Nagions does not have anything internally to communicate with the service checks, it relies on the Plugins one chooses to configure. The purpose of Check_nt used in conjunction with a windows client like (NC_NEt, NSCLinet++) is to enable getting data from windows to the Unix teminal for nagios to process. If you can get the data through some other means, Like NSCA, NRPE, SNMP, Windows Credentials, WHatever then feel free to do it that way. It may help to READ the Nagios MANUAL (or if you have read the manual RE-READ IT) since the Nagios 3.X manual has a chapter on Windows monitoring, and other parts of the manual may also be helpful if you plan on administrating Nagios. Tony (author of NC_Net) On Thu, Mar 12, 2009 at 6:28 AM, Martyn mar...@chetnet.co.uk wrote: Why does Nagios need the NSClient to access Windows boxes when other systems like PRTG use windows logon conditionals, think Cacti is the same also. Thanks -- 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 -- 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