From marc at ena.com Wed Apr 1 00:01:27 2009 From: marc at ena.com (Marc Powell) Date: Tue, 31 Mar 2009 17:01:27 -0500 Subject: Using nagios for multiple data centers In-Reply-To: References: Message-ID: <7F343148-5E7B-4DB3-8002-029DD82AD999@ena.com> On Mar 31, 2009, at 4:11 PM, Matthew Litwin wrote: > I would like to pose a more advanced question to everyone here on > how I might use our current implementation of nagios to monitor > multiple data centers without having to set up multiple nagios > servers for each. The reason for doing is to have the ability to > view all nagios alerts from a single incidents page, generate > integrated graphs and reports, and reduce the number of servers in > general. However, while doing this, I want to also be able to be > able to view the just the alerts that are relevant to a single data > center at a time, thus limiting the view to just those alerts. > > The function of our data centers will be that one is a mirror of the > other and will act as failover. While we need to make sure both are > up and healthy, one will be in an active state and one will be in an > standby state, and our NOC will need to be able to focus on just one > or the other. Thus, aside from assigning each datacenter with active > and standby state, one concern is to be able to view just the alerts > for the hosts and services relevant to a single data center. This > means having a main screen like nagios has for alerts, but one for > data center A and the other for data center B. I was thinking that I > could delineate which hardware was part of which data center by > using hostgroups, dependencies, or a mix of both. The point of this > would be to be able to view and report data from hosts and services > from a single data center as well as all of them. > > Are there any documented methods for doing this that you know of? While hostgroups are useful to group related devices together, the view restriction you want is a natural extension of configuring authorization for the CGI's (documented). We use it to limit views by State where we have hundreds of devices and dedicated Helpdesks. You can create specific user contacts or role contacts that can be associated with the hosts they should see. I would suggest the role account path, one per data center with a master contact that sees everything. Associate contact 'DataCenterA' with all hosts at Data Center A. Associcate contact 'DataCenterB' with all hosts at Data Center B. Associate the contact 'Master' with all hosts (or use authorized_for_* options in cgi.cfg). When someone logs in with one of those contacts usernames, they'll only be able to see hosts/services for which they are a contact. You can continue to use more personal contact addresses for notifications if you like. If you don't want them logging in with that personal contact name, don't create an htaccess account for it. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Wed Apr 1 01:25:29 2009 From: mlitwin at stubhub.com (Matthew Litwin) Date: Tue, 31 Mar 2009 16:25:29 -0700 Subject: Using nagios for multiple data centers In-Reply-To: <7F343148-5E7B-4DB3-8002-029DD82AD999@ena.com> References: <7F343148-5E7B-4DB3-8002-029DD82AD999@ena.com> Message-ID: On 3/31/09 3:01 PM, "Marc Powell" wrote: > > On Mar 31, 2009, at 4:11 PM, Matthew Litwin wrote: > >> I would like to pose a more advanced question to everyone here on >> how I might use our current implementation of nagios to monitor >> multiple data centers without having to set up multiple nagios >> servers for each. The reason for doing is to have the ability to >> view all nagios alerts from a single incidents page, generate >> integrated graphs and reports, and reduce the number of servers in >> general. However, while doing this, I want to also be able to be >> able to view the just the alerts that are relevant to a single data >> center at a time, thus limiting the view to just those alerts. >> >> The function of our data centers will be that one is a mirror of the >> other and will act as failover. While we need to make sure both are >> up and healthy, one will be in an active state and one will be in an >> standby state, and our NOC will need to be able to focus on just one >> or the other. Thus, aside from assigning each datacenter with active >> and standby state, one concern is to be able to view just the alerts >> for the hosts and services relevant to a single data center. This >> means having a main screen like nagios has for alerts, but one for >> data center A and the other for data center B. I was thinking that I >> could delineate which hardware was part of which data center by >> using hostgroups, dependencies, or a mix of both. The point of this >> would be to be able to view and report data from hosts and services >> from a single data center as well as all of them. >> >> Are there any documented methods for doing this that you know of? > > While hostgroups are useful to group related devices together, the > view restriction you want is a natural extension of configuring > authorization for the CGI's (documented). We use it to limit views by > State where we have hundreds of devices and dedicated Helpdesks. You > can create specific user contacts or role contacts that can be > associated with the hosts they should see. I would suggest the role > account path, one per data center with a master contact that sees > everything. Associate contact 'DataCenterA' with all hosts at Data > Center A. Associcate contact 'DataCenterB' with all hosts at Data > Center B. Associate the contact 'Master' with all hosts (or use > authorized_for_* options in cgi.cfg). When someone logs in with one of > those contacts usernames, they'll only be able to see hosts/services > for which they are a contact. You can continue to use more personal > contact addresses for notifications if you like. If you don't want > them logging in with that personal contact name, don't create an > htaccess account for it. > > -- > Marc > Marc, thanks for the suggestion. While the role contacts is certainly useful as you described, I don't necessarily want to permanently limit users to not seeing hosts at all. Another way to think about what I am looking for is that I want to have a way to designate servers to be either "active" or "standby" servers. All servers have full monitoring set up but only "active" servers will appear in the "active" servers' alerts view that the NOC sees. I want to create some organizational objects that I can easily send as arguments to the CGIs to create some some set alert views. Does that make sense? Is this something that is a documented function of the CGIs as well? ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Apr 1 09:53:48 2009 From: ae at op5.se (Andreas Ericsson) Date: Wed, 01 Apr 2009 09:53:48 +0200 Subject: Nagios Consultants/Commercial Support in Melbourne In-Reply-To: <2bb4107c0903311344x7e5ff415v30c70ee83e87b4c8@mail.gmail.com> References: <2bb4107c0903311344x7e5ff415v30c70ee83e87b4c8@mail.gmail.com> Message-ID: <49D31D8C.50303@op5.se> Ian Orszaczki wrote: > Hi, I work for a fairly large company looking for at replacing/upgrading our > monitoring system. We are now on Nagios 3.06 monitoring 1300 hosts and 8500 > services via ssh (all from one server). > > Does anybody know of any company offering Nagios consultancy or support in > Melbourne (or elsewhere in Australia) ? Its something that upper management > need before they will consider sticking with Nagios longer term. > > I look forward to any responses including feedback on good/bad experiences > with them. > I've had fairly good experience with op5. They pay me money to write programs and stuff. It's awesomely fun ;-) On a more serious note, http://www.nagios.org/support/servicepartners/ lists all the support partners that are serious enough to have contacted Ethan to let him know they're providing support. It seems Australia lack any professional Nagios support providers at the moment. op5 (where I work) can provide Nagios support world wide, although not yet with ad-hoc phone support outside european office hours (it's under way). Groundworks Opensource claims to work worldwide, but insofar as I know they have no customers outside the US. NetWays also claim to work worldwide. I do not know if they have customers in your timezone as I'm not that up-to-date on their customer list. Groundworks and NetWays work mainly on consultancy basis, tailoring solutions for each customer. op5 work mainly as a support company, although we do provide a wide range of addons that make our customers require very little help with their monitoring systems. I've forwarded your email to our sales manager, so I'm sure someone will contact you later on. Sorry if you didn't want that, but since you asked for professional support I'd be sort of neglecting my job obligations if I didn't. Besides, with a little luck I might be sent to Australia at some point if we team up, and free trips are always nice ;-) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Wed Apr 1 12:04:58 2009 From: tdondich at gmail.com (Taylor Dondich) Date: Wed, 1 Apr 2009 03:04:58 -0700 Subject: Lilac, a popular Nagios Configuration tool, has reached 1.0 stable status! Message-ID: <3d2eb72a0904010304o3ead0c92hbcdcbb42da76597d@mail.gmail.com> This is not an April Fools Joke. Lilac (www.lilacplatform.com) has reached 1.0 stable status and is available for download. Lilac is a popular configuration tool for Nagios 3, with features such as: - Enhanced Nagios 3 timeperiod support - Multiple template inheritance - Host templates able to contain services, dependencies, escalations - Importer which can import existing Nagios configurations and import from a Fruity installation - Exporter with Nagios process control and backup existing configuration files. - Auto-Discovery tool to quickly add your infrastructure into your Nagios installation. Download now at http://www.lilacplatform.com A big thanks to the Nagios and Lilac community for helping make this release great. -- Taylor Dondich Check out Lilac, a configuration tool for Nagios 3 at http://www.lilacplatform.com Check out my Shortcut with O'Reilly Press: Network Monitoring with Nagios: http://oreilly.com/catalog/9780596528195/index.html ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frisvolj at lafayette.edu Wed Apr 1 12:15:43 2009 From: frisvolj at lafayette.edu (Jason Frisvold) Date: Wed, 01 Apr 2009 06:15:43 -0400 Subject: Moving apache authentication to ssl.conf Message-ID: <49D33ECF.5050905@lafayette.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I've spent a while searching for this via the almighty Google, but either this isn't possible (I don't find this likely), or I'm using the wrong search terms. I moved the authentication parameters from the .htaccess file and placed them into the ssl.conf file for apache. Primary reason is to remain consistent with other installed apps. At any rate, authentication itself is working. I can enter my username and password and I am authenticated. However, nagios complains that I don't have permission to view information. Since this worked previously, and I merely moved the authentication parameters to another file, I expected this to continue working. Any idea how I can resolve this? I've removed authentication in cgi.cfg for the time being, but I'd like to re-enable it. Thanks, - -- - --------------------------- Jason Frisvold Network Engineer frisvolj at lafayette.edu - --------------------------- "What I cannot create, I do not understand" - Richard Feynman -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD8DBQFJ0z7PO80o6DJ8UvkRAr9FAKCObFlQfdUxc2FNW/hNDkIY6YSJaQCfTZJn inEEHsXhNNOpMukZwpibtU8= =2Z3W -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Wed Apr 1 12:30:40 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Wed, 01 Apr 2009 16:00:40 +0530 Subject: How to upgrade nagios Version 2.12 ? Message-ID: <49D34250.1040709@infoservices.in> Dear list, Hope you all are well. Nagios 3.x has been released :-) I'm running nagios Version 2.12 and like to upgrade it to 3.x Is there any script which can convert the nagios 2.12 configuration to 3.X ? I did the configuration manually and it was a huge work, that's why I'm looking for a converter program this time. Thanks ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 1 14:11:38 2009 From: marc at ena.com (Marc Powell) Date: Wed, 1 Apr 2009 07:11:38 -0500 Subject: Moving apache authentication to ssl.conf In-Reply-To: <49D33ECF.5050905@lafayette.edu> References: <49D33ECF.5050905@lafayette.edu> Message-ID: <3F32961A-25B0-4221-9A83-15E4ED3F9AB9@ena.com> On Apr 1, 2009, at 5:15 AM, Jason Frisvold wrote: > However, nagios complains that I don't have > permission to view information. Since this worked previously, and I > merely moved the authentication parameters to another file, I expected > this to continue working. > > Any idea how I can resolve this? I've removed authentication in > cgi.cfg for the time being, but I'd like to re-enable it. Who does nagios show you logged in as? If it's '?', you haven't applied authentication against the sbin directory, the only place it really matters. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frisvolj at lafayette.edu Wed Apr 1 15:09:32 2009 From: frisvolj at lafayette.edu (Jason Frisvold) Date: Wed, 01 Apr 2009 09:09:32 -0400 Subject: Moving apache authentication to ssl.conf In-Reply-To: <3F32961A-25B0-4221-9A83-15E4ED3F9AB9@ena.com> References: <49D33ECF.5050905@lafayette.edu> <3F32961A-25B0-4221-9A83-15E4ED3F9AB9@ena.com> Message-ID: <49D3678C.6050309@lafayette.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Marc Powell wrote: > Who does nagios show you logged in as? If it's '?', you haven't > applied authentication against the sbin directory, the only place it > really matters. Aha! You are correct... I moved the auth parameters to cover all of /usr/local/nagios and everything works again. Thanks! > -- > Marc - -- - --------------------------- Jason Frisvold Network Engineer frisvolj at lafayette.edu - --------------------------- "What I cannot create, I do not understand" - Richard Feynman -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD4DBQFJ02eMO80o6DJ8UvkRAp5vAJsEQ7Ou2qbfZpOqMLCpAppSvy9zQgCXcmnl wdrCQIZ9nCtW4lvY1UvRQw== =xcL3 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 1 15:49:08 2009 From: marc at ena.com (Marc Powell) Date: Wed, 1 Apr 2009 08:49:08 -0500 Subject: Using nagios for multiple data centers In-Reply-To: References: Message-ID: <75179B0D-46D1-4D1F-87A3-320EE6AAAB37@ena.com> On Mar 31, 2009, at 6:25 PM, Matthew Litwin wrote: > > On 3/31/09 3:01 PM, "Marc Powell" wrote: > Marc, thanks for the suggestion. While the role contacts is > certainly useful > as you described, I don't necessarily want to permanently limit > users to not > seeing hosts at all. It's not permanent; they would just need to log in with a username associated with the view they want to see. This presumes your original scenario where an entire data center is either active or passive. > Another way to think about what I am looking for is that I want to > have a > way to designate servers to be either "active" or "standby" servers. > All > servers have full monitoring set up but only "active" servers will > appear in > the "active" servers' alerts view that the NOC sees. I want to > create some > organizational objects that I can easily send as arguments to the > CGIs to > create some some set alert views. There's no way to do this natively that I know of, outside of recreating the cfg files dynamically and reloading. Perhaps I'm not thinking creatively enough but I just don't see a simple solution. If nagios is only checking the 'active' servers, or your only submitting passive results for those servers, those are the only ones that should show up in the Service Problems view, of course. You can send external commands to enable/disable active checks for specific hosts and services dynamically. That doesn't seem to entirely fit what you want though... -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Wed Apr 1 16:13:28 2009 From: nccomp at gmail.com (Andrew Davis) Date: Wed, 01 Apr 2009 10:13:28 -0400 Subject: Additional Info in email? In-Reply-To: <307AE687-452E-40BB-B519-8AE2345325C1@ena.com> References: <49D25857.1050201@gmail.com> <89F80424-67DE-47AB-9452-43C95D73E461@ena.com> <49D288C5.3000204@gmail.com> <307AE687-452E-40BB-B519-8AE2345325C1@ena.com> Message-ID: <49D37688.7060400@gmail.com> Perhaps I need to ask a clarification question... in my checkcommands.cfg, should I change $SERVICEOUTPUT$ to $LONGSERVICEOUTPUT$ or should I add the $LONGSERVICEOUTPUT$ macro to the notify-service-by-email command? I'm thinking that some tests will write some data to $SERVICEOUTPUT$, but others can include additional info with $LONGSERVICEOUTPUT$, so rather than change $SERVICEOUTPUT$ to $LONGSERVICEOUTPUT$, I should add it? Perhaps something like this: Before: ~\n\nAdditional Info:\n\n$SERVICEOUTPUT$ After: ~\n\nInfo:\n\n$SERVICEOUTPUT$\n\nAdditional Info:\n\n$LONGSERVICEOUTPUT$ A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan Marc Powell wrote: > On Mar 31, 2009, at 4:19 PM, Andrew Davis wrote: > > >> This seems to have worked for the WARNING or CRITICAL notifications, >> but not for recovery emails. If I grep for "Additional Info" in my >> checkcommands.cfg, it only matches for the "notify-service-by-email" >> command definition, yet in recovery emails, I still see the >> "Additional Info" line at the bottom, but no content. Any ideas on >> how I would get the $LONGSERVICEOUPUT$ in a recovery email as well. >> > > It should just work. I'm not aware of, nor can I find any difference > in the code for handling macros differently based on the notification > type. Maybe I'm overlooking it but I haven't heard of the problem > before... > > -- > Marc > > > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Wed Apr 1 16:16:44 2009 From: nccomp at gmail.com (Andrew Davis) Date: Wed, 01 Apr 2009 10:16:44 -0400 Subject: Common messages file strings? Message-ID: <49D3774C.1060006@gmail.com> I'm playing with the check_log and check_logs.pl tools and am curious... do any of you have a list of strings/reg exp that you commonly look for? Should I be looking for warn|WARN|error|ERROR, etc Perhaps someone has a list of common warnings I should be looking for? I'll be monitoring both Linux and Solaris, so /var/log/messages, /var/adm/messages, /var/log/secure, /var/log/wtmp, /var/log/utmp, etc... -- A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tothz68 at gmail.com Wed Apr 1 14:22:51 2009 From: tothz68 at gmail.com (Toth Zoltan) Date: Wed, 1 Apr 2009 14:22:51 +0200 Subject: traceroute.cgi Message-ID: <69e59dde0904010522q7d35a574jb866214551154ec4@mail.gmail.com> Dear Lists, I have installed Nagios V 3.1.0 . I use check_ping command with -L options. On the web site under Hosts-> Status Information there is a following entry PING OK - Packet loss = 0%, RTA = 12.16 ms I think this is missing.. How can I fix this problem? "Traceroute.cgi" is in the cgi directory.. If I copy to web browser a following site. http://10.128.15.15/nagios/cgi-bin/traceroute.cgi?10.128.54.20 is working fine.. Thanks totya -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 1 17:05:07 2009 From: marc at ena.com (Marc Powell) Date: Wed, 1 Apr 2009 10:05:07 -0500 Subject: Additional Info in email? In-Reply-To: <49D37688.7060400@gmail.com> References: <49D25857.1050201@gmail.com> <89F80424-67DE-47AB-9452-43C95D73E461@ena.com> <49D288C5.3000204@gmail.com> <307AE687-452E-40BB-B519-8AE2345325C1@ena.com> <49D37688.7060400@gmail.com> Message-ID: On Apr 1, 2009, at 9:13 AM, Andrew Davis wrote: > Perhaps I need to ask a clarification question... in my > checkcommands.cfg, should I change $SERVICEOUTPUT$ to > $LONGSERVICEOUTPUT$ or should I add the $LONGSERVICEOUTPUT$ macro to > the notify-service-by-email command? I'm thinking that some tests > will write some data to $SERVICEOUTPUT$, but others can include > additional info with $LONGSERVICEOUTPUT$, so rather than change > $SERVICEOUTPUT$ to $LONGSERVICEOUTPUT$, I should add it? Perhaps > something like this: > > Before: > ~\n\nAdditional Info:\n\n$SERVICEOUTPUT$ > > After: > ~\n\nInfo:\n\n$SERVICEOUTPUT$\n\nAdditional Info:\n\n > $LONGSERVICEOUTPUT$ The above is what you need. For clarification -- http://nagios.sourceforge.net/docs/3_0/whatsnew.html # Plugin Output: * Multiline plugin output is now supported for host and service checks. Hooray! The plugin API has been updated to support multiple lines of output in a manner that retains backward compatability with older plugins. Additional lines of output (aside from the first line) are now stored in new $LONGHOSTOUTPUT$ and $LONGSERVICEOUTPUT$ macros. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 1 17:10:28 2009 From: marc at ena.com (Marc Powell) Date: Wed, 1 Apr 2009 10:10:28 -0500 Subject: traceroute.cgi In-Reply-To: <69e59dde0904010522q7d35a574jb866214551154ec4@mail.gmail.com> References: <69e59dde0904010522q7d35a574jb866214551154ec4@mail.gmail.com> Message-ID: <4C6F5C6C-7C8B-4AD5-8770-A15874C8591B@ena.com> On Apr 1, 2009, at 7:22 AM, Toth Zoltan wrote: > Dear Lists, > > I have installed Nagios V 3.1.0 . I use check_ping command with -L > options. > On the web site under Hosts-> Status Information there is a > following entry > > PING OK - > Packet loss = 0%, RTA = 12.16 ms > > I think this is missing.. How can I fix this problem? > "Traceroute.cgi" is in the cgi directory.. > > If I copy to web browser a following site. > http://10.128.15.15/nagios/cgi-bin/traceroute.cgi?10.128.54.20 > is working fine.. You're not being clear, at least to me. What's broken? You say you think it's missing, but then you say that it works when you put it in the browser manually. What's different? The paths look the same to me (except the IP), so is the hostname part different? Does it work with the hostname used to access the nagios web interface? What does your web server error log show? -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Wed Apr 1 17:07:49 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 1 Apr 2009 11:07:49 -0400 Subject: Dependency and performance question Message-ID: <6db4a4200904010807p3824655bx7c9a9d9943a020e3@mail.gmail.com> Hi, I am running nagios on a 2.5 GHZ 4-core 64 bit machine running RHEL5. I am seeing some performance issue in Nagios. I am doing failover setup. I have another similar machine which has identical config but not doing any active checks. My master machine sends check result using NSCA. Now I can not determine why my master machine is lacking in performace. I will paste my performance data below. I also have another question about dependency. 1) if a HOST is down, does the service checks still happens? I would like to setup a dependency where if host is down no service check should take place. How do I go about setting this up. An exapmple will be much appreciated. 2) How can I start troubleshooting my performance issue? Thanks in advance. Nagios Stats 3.0.6 Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org) Last Modified: 12-01-2008 License: GPL CURRENT STATUS DATA ------------------------------------------------------ Status File: /var/log/nagios/status.dat Status File Age: 0d 0h 0m 12s Status File Version: 3.0.6 Program Running Time: 0d 12h 12m 21s Nagios PID: 9719 Used/High/Total Command Buffers: 0 / 1 / 4096 Total Services: 3342 Services Checked: 3342 Services Scheduled: 3342 Services Actively Checked: 3342 Services Passively Checked: 0 Total Service State Change: 0.000 / 43.680 / 0.171 % Active Service Latency: 1574.556 / 1731.304 / 1684.508 sec Active Service Execution Time: 0.069 / 15.094 / 0.519 sec Active Service State Change: 0.000 / 43.680 / 0.171 % Active Services Last 1/5/15/60 min: 47 / 389 / 1287 / 3342 Passive Service Latency: 0.000 / 0.000 / 0.000 sec Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit: 2955 / 23 / 351 / 13 Services Flapping: 8 Services In Downtime: 0 Total Hosts: 3037 Hosts Checked: 3005 Hosts Scheduled: 3030 Hosts Actively Checked: 3037 Host Passively Checked: 0 Total Host State Change: 0.000 / 39.210 / 0.146 % Active Host Latency: 0.000 / 1729.854 / 1569.654 sec Active Host Execution Time: 0.000 / 30.011 / 1.821 sec Active Host State Change: 0.000 / 39.210 / 0.146 % Active Hosts Last 1/5/15/60 min: 50 / 341 / 926 / 2387 Passive Host Latency: 0.000 / 0.000 / 0.000 sec Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 2852 / 185 / 0 Hosts Flapping: 12 Hosts In Downtime: 0 Active Host Checks Last 1/5/15 min: 77 / 376 / 1013 Scheduled: 68 / 346 / 940 On-demand: 9 / 30 / 73 Parallel: 69 / 349 / 944 Serial: 0 / 0 / 0 Cached: 7 / 27 / 69 Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 Active Service Checks Last 1/5/15 min: 69 / 405 / 1308 Scheduled: 69 / 405 / 1308 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 External Commands Last 1/5/15 min: 0 / 0 / 0 -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre at startsiden.no Wed Apr 1 17:02:48 2009 From: andre at startsiden.no (=?ISO-8859-1?Q?Andr=E9_Bergei?=) Date: Wed, 01 Apr 2009 17:02:48 +0200 Subject: Can't get CHANGE_SVC_CHECK_COMMAND to work Message-ID: <49D38218.8060006@startsiden.no> Hi List Just wondering if somebody can confirm if this external command works in 3.0.6/3.1 ? I can get other external commands to work, but not this one. Here's my command: /usr/bin/printf "[%lu] CHANGE_SVC_CHECK_COMMAND;www.somehost.com;CONTENT_AGE;check_http_vhost_content_age_night\n" `date +%s` > /var/lib/nagios3/rw/nagios.cmd Nagios accepts this command. from log: [1238597810] EXTERNAL COMMAND: CHANGE_SVC_CHECK_COMMAND;www.overblikk.no;OVERBLIKK_CONTENT_AGE;check_http_vhost_content_age_night But the nagios deamon keeps executing my old check command like nothing happend. I've tested both 3.0.6 and 3.1 Cheers -- Andr? Bergei - Sysadmin ABC Startsiden AS http://www.startsiden.no ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joydeep at infoservices.in Wed Apr 1 14:19:40 2009 From: joydeep at infoservices.in (J. Bakshi) Date: Wed, 01 Apr 2009 17:49:40 +0530 Subject: How to upgrade nagios Version 2.12 ? In-Reply-To: <49D34FDA.9090802@op5.se> References: <49D34250.1040709@infoservices.in> <49D34FDA.9090802@op5.se> Message-ID: <49D35BDC.50708@infoservices.in> Andreas Ericsson wrote: > J. Bakshi wrote: >> Dear list, >> >> Hope you all are well. >> >> Nagios 3.x has been released :-) I'm running nagios Version 2.12 and >> like to upgrade it to 3.x >> Is there any script which can convert the nagios 2.12 configuration to >> 3.X ? >> >> I did the configuration manually and it was a huge work, that's why I'm >> looking for a converter program this time. >> > > No conversion should be necessary, but if you absolutely want something > and you have sed >= 4.0.9 you can run the following on all your object > configuration files > > sed -i -e 's/retry_check_interval/retry_interval/' \ > -e 's/max_check_attempts/check_attempts/' > $cfg_file > > Nagios will complain about some variables in nagios.cfg, but nothing > major. Insofar as object configuration goes, 2 > 3 upgrades are quite > painfree. > Ok, thanks then I'll go accordingly Have a nice time ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rijilv at riji.lv Wed Apr 1 17:33:48 2009 From: rijilv at riji.lv (RijilV) Date: Wed, 1 Apr 2009 08:33:48 -0700 Subject: Additional Info in email? In-Reply-To: <49D37688.7060400@gmail.com> References: <49D25857.1050201@gmail.com> <89F80424-67DE-47AB-9452-43C95D73E461@ena.com> <49D288C5.3000204@gmail.com> <307AE687-452E-40BB-B519-8AE2345325C1@ena.com> <49D37688.7060400@gmail.com> Message-ID: <5068c6420904010833k28352ba6re7a19db58b088016@mail.gmail.com> 2009/4/1 Andrew Davis : > Perhaps I need to ask a clarification question... in my checkcommands.cfg, > should I change $SERVICEOUTPUT$ to $LONGSERVICEOUTPUT$ or should I add the > $LONGSERVICEOUTPUT$ macro to the notify-service-by-email command? I'm > thinking that some tests will write some data to $SERVICEOUTPUT$, but others > can include additional info with $LONGSERVICEOUTPUT$, so rather than change > $SERVICEOUTPUT$ to $LONGSERVICEOUTPUT$, I should add it? Perhaps something > like this: > > Before: > ~\n\nAdditional Info:\n\n$SERVICEOUTPUT$ > > After: > ~\n\nInfo:\n\n$SERVICEOUTPUT$\n\nAdditional Info:\n\n$LONGSERVICEOUTPUT$ > > A. Davis > Email: nccomp at gmail.com > So, one of the great things about Nagios, IMHO, is it's documentation. Check out: http://nagios.sourceforge.net/docs/3_0/macrolist.html#serviceoutput In particular: $SERVICEOUTPUT$ The first line of text output from the last service check (i.e. "Ping OK"). $LONGSERVICEOUTPUT$ The full text output (aside from the first line) from the last service check. ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rijilv at riji.lv Wed Apr 1 17:39:40 2009 From: rijilv at riji.lv (RijilV) Date: Wed, 1 Apr 2009 08:39:40 -0700 Subject: How to upgrade nagios Version 2.12 ? In-Reply-To: <49D34250.1040709@infoservices.in> References: <49D34250.1040709@infoservices.in> Message-ID: <5068c6420904010839m735a04e6w800054dc0017fc37@mail.gmail.com> 2009/4/1 J. Bakshi : > Dear list, > > Hope you all are well. > > Nagios 3.x has been released :-) I'm running nagios Version 2.12 and > like to upgrade it to 3.x > Is there any script ?which can convert the nagios 2.12 configuration to > 3.X ? > > I did the configuration manually and it was a huge work, that's why I'm > looking for a converter program this time. > > Thanks Really not much has changed in terms of your objective configration files. There are some new features you might want to take advantage of, but you're under no real obligation to use them. What really changed are a couple of new lines in nagios.cfg. Have you tried running your existing configs with a nagios 3.0.x binary yet? If you do that it'll spit out whats missing, which will be a couple of paths that need to be added (tmp, check result off the top of my head). .r' ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Wed Apr 1 18:52:38 2009 From: tdondich at gmail.com (Taylor Dondich) Date: Wed, 1 Apr 2009 09:52:38 -0700 Subject: How to upgrade nagios Version 2.12 ? In-Reply-To: <5068c6420904010839m735a04e6w800054dc0017fc37@mail.gmail.com> References: <49D34250.1040709@infoservices.in> <5068c6420904010839m735a04e6w800054dc0017fc37@mail.gmail.com> Message-ID: <3d2eb72a0904010952v6e48e6b1j42b06bd3a18ef238@mail.gmail.com> If you want to start using a web tool, Lilac can import Nagios 2.x configurations and export Nagios 3.x. www.lilacplatform.com Taylor On Wed, Apr 1, 2009 at 8:39 AM, RijilV wrote: > 2009/4/1 J. Bakshi : >> Dear list, >> >> Hope you all are well. >> >> Nagios 3.x has been released :-) I'm running nagios Version 2.12 and >> like to upgrade it to 3.x >> Is there any script ?which can convert the nagios 2.12 configuration to >> 3.X ? >> >> I did the configuration manually and it was a huge work, that's why I'm >> looking for a converter program this time. >> >> Thanks > > > Really not much has changed in terms of your objective configration > files. ?There are some new features you might want to take advantage > of, but you're under no real obligation to use them. > > What really changed are a couple of new lines in nagios.cfg. ?Have you > tried running your existing configs with a nagios 3.0.x binary yet? > If you do that it'll spit out whats missing, which will be a couple of > paths that need to be added (tmp, check result off the top of my > head). > > .r' > > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Taylor Dondich Check out Lilac, a configuration tool for Nagios 3 at http://www.lilacplatform.com Check out my Shortcut with O'Reilly Press: Network Monitoring with Nagios: http://oreilly.com/catalog/9780596528195/index.html ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From echatham at broadvox.net Wed Apr 1 18:52:48 2009 From: echatham at broadvox.net (Eric Chatham) Date: Wed, 1 Apr 2009 12:52:48 -0400 Subject: check_snmp plugin stopped working Message-ID: <4ABA3E162F60624A949503A7F960245EB0E3AABD9B@CLEHBEXMS01.broadvox.local> Hello, Today, for some reason, the check_snmp plugin stopped working. SNMP is configured for this server and I'm able to run commands like smpget and snmpwalk to the remote host; however, when I try to run the check_snmp plugin, I keep getting "no data received from host." [root@ ~ libexec]# ./check_snmp -v 1 -H xxx.xxx.xxx.41 -C public -o dskAvail.1 /usr/local/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public xxx.xxx.xxx.41:161 dskAvail.1 SNMP problem - No data received from host CMD: /usr/local/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] xxx.xxx.xxx.41:161 dskAvail.1 [root@ ~ libexec]# snmpget -v1 -c public 208.93.224.41 dskAvail.1 UCD-SNMP-MIB::dskAvail.1 = INTEGER: 65150524 Eric Chatham Broadvox MIS Department Phone: (216) 373-4683 Fax: (216) 373-4669 echatham at broadvox.net [cid:image001.jpg at 01C9B2C8.C2A47190] ________________________________ CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3734 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From plauda at csky.com Wed Apr 1 19:54:38 2009 From: plauda at csky.com (Peter Lauda) Date: Wed, 1 Apr 2009 13:54:38 -0400 Subject: Data is stale Message-ID: <007d01c9b2f2$ed672740$c83575c0$@com> I've got Nagios 3.0.2 running under the HP SIM software and I've encountered this problem. Several service checks give the result of "WARNING data is stale" using nrpe to check those services. There are no real indications of problems but these messages are consistent for certain services. Might anyone have any thoughts on what I can check to get these fixed? On some systems the same checks work just fine. Others, not so much. data is stale is all I ever see. Thanks for any input. Peter J. Lauda Senior Network Engineer Clear Sky Mobile Media, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Steve.Onotsky at broadridge.com Wed Apr 1 20:46:14 2009 From: Steve.Onotsky at broadridge.com (Onotsky, Steve x55328) Date: Wed, 1 Apr 2009 14:46:14 -0400 Subject: check_snmp plugin stopped working In-Reply-To: <4ABA3E162F60624A949503A7F960245EB0E3AABD9B@CLEHBEXMS01.broadvox.local> References: <4ABA3E162F60624A949503A7F960245EB0E3AABD9B@CLEHBEXMS01.broadvox.local> Message-ID: <30A417B62E7EE448B3864ADC881CEFD6083783EB@missemsa01.bsg.ad.adp.com> > Today, for some reason, the check_snmp plugin stopped working. SNMP is configured for this server and I'm > able to run commands like smpget and snmpwalk to the remote host; however, when I try to run the > check_snmp plugin, I keep getting "no data received from host." > [root@ ~ libexec]# ./check_snmp -v 1 -H xxx.xxx.xxx.41 -C public -o dskAvail.1 > /usr/local/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public xxx.xxx.xxx.41:161 dskAvail.1 > SNMP problem - No data received from host > CMD: /usr/local/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] xxx.xxx.xxx.41:161 dskAvail.1 > [root@ ~ libexec]# snmpget -v1 -c public 208.93.224.41 dskAvail.1 > UCD-SNMP-MIB::dskAvail.1 = INTEGER: 65150524 Maybe someone made a firewall change, between your Nagios box and the target host? Also, just a security-minded suggestion, you should probably change the community strings. SNMP - "Security? Not My Problem." :-) Cheers This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 1 21:03:48 2009 From: marc at ena.com (Marc Powell) Date: Wed, 1 Apr 2009 14:03:48 -0500 Subject: Data is stale In-Reply-To: <007d01c9b2f2$ed672740$c83575c0$@com> References: <007d01c9b2f2$ed672740$c83575c0$@com> Message-ID: <598FBD8A-5B14-4FF0-8DED-F0AC1CF3D487@ena.com> On Apr 1, 2009, at 12:54 PM, Peter Lauda wrote: > I?ve got Nagios 3.0.2 running under the HP SIM software and I?ve > encountered this problem. > > Several service checks give the result of ?WARNING data is stale? > using nrpe to check those services. There are no real indications of > problems but these messages are consistent for certain services. > > Might anyone have any thoughts on what I can check to get these > fixed? On some systems the same checks work just fine. Others, not > so much? data is stale is all I ever see. > 'data is stale' is not an error message that either nagios or nrpe output. What is it coming from? The wording and apparent implementation implies it's the result of a freshness check but that's not possible with active NRPE checks. Please locate the source of that error and let us know what it is. We may be able to help if you provide the service{} definition, command{} definition it references and the NRPE command definition on the remote host it in turn references. If the final plugin being executed isn't a standard plugin, please provide information about where you got it or what it's doing. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From echatham at broadvox.net Wed Apr 1 21:04:33 2009 From: echatham at broadvox.net (Eric Chatham) Date: Wed, 1 Apr 2009 15:04:33 -0400 Subject: check_snmp plugin stopped working In-Reply-To: <30A417B62E7EE448B3864ADC881CEFD6083783EB@missemsa01.bsg.ad.adp.com> References: <4ABA3E162F60624A949503A7F960245EB0E3AABD9B@CLEHBEXMS01.broadvox.local> <30A417B62E7EE448B3864ADC881CEFD6083783EB@missemsa01.bsg.ad.adp.com> Message-ID: <4ABA3E162F60624A949503A7F960245EB0E3AABE3F@CLEHBEXMS01.broadvox.local> Thank you for the reply. I ended up re-installing the plugins. It seemed to fix the problem. I just found it rather strange that all of sudden the plugin stopped responding. ...and, changing the community string as well. Eric Chatham From: Onotsky, Steve x55328 [mailto:Steve.Onotsky at broadridge.com] Sent: Wednesday, April 01, 2009 14:46 To: Eric Chatham; Nagios Users Mailinglist Subject: RE: [Nagios-users] check_snmp plugin stopped working > Today, for some reason, the check_snmp plugin stopped working. SNMP is configured for this server and I'm > able to run commands like smpget and snmpwalk to the remote host; however, when I try to run the > check_snmp plugin, I keep getting "no data received from host." > [root@ ~ libexec]# ./check_snmp -v 1 -H xxx.xxx.xxx.41 -C public -o dskAvail.1 > /usr/local/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public xxx.xxx.xxx.41:161 dskAvail.1 > SNMP problem - No data received from host > CMD: /usr/local/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] xxx.xxx.xxx.41:161 dskAvail.1 > [root@ ~ libexec]# snmpget -v1 -c public 208.93.224.41 dskAvail.1 > UCD-SNMP-MIB::dskAvail.1 = INTEGER: 65150524 Maybe someone made a firewall change, between your Nagios box and the target host? Also, just a security-minded suggestion, you should probably change the community strings. SNMP - "Security? Not My Problem." :) Cheers This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ________________________________ CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaron.largent at gmail.com Wed Apr 1 21:42:49 2009 From: aaron.largent at gmail.com (Aaron Largent) Date: Wed, 1 Apr 2009 15:42:49 -0400 Subject: NRPE vs local check_procs = different result? Message-ID: I am getting different results from NRPE than the local commands that NRPE is supopsed to be running. I am trying to understand if I am doing something wrong, or if I am hitting a bug. the process is NOT running, and the local command verifies this. the NRPE command from the server is saying it IS running, though. any help is appreciated! -------- from the client being monitored # grep alljunk /etc/nagios/nrpe.cfg command[procs_alljunka]=/usr/lib/nagios/plugins/check_procs -w 1: -c 1: -a '/usr/sbin/alljunk' # /usr/lib/nagios/plugins/check_procs -c 1: -c 1: -a '/usr/sbin/alljunk' PROCS CRITICAL: 0 processes with args '/usr/sbin/alljunk' -------- from the nagios server # /usr/lib/nagios/plugins/check_nrpe -H xx.xx.xx.xx -c procs_alljunka PROCS OK: 1 process with args '/usr/sbin/alljunk' -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Steve.Onotsky at broadridge.com Wed Apr 1 22:24:28 2009 From: Steve.Onotsky at broadridge.com (Onotsky, Steve x55328) Date: Wed, 1 Apr 2009 16:24:28 -0400 Subject: NRPE vs local check_procs = different result? In-Reply-To: References: Message-ID: <30A417B62E7EE448B3864ADC881CEFD608378440@missemsa01.bsg.ad.adp.com> Maybe I'm not understanding the problem, or the cold meds are clouding my thinking... but wouldn't the child process that NRPE fires off, have '/usr/sbin/alljunk' as a parameter? ________________________________ From: Aaron Largent [mailto:aaron.largent at gmail.com] Sent: April 1, 2009 15:43 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NRPE vs local check_procs = different result? I am getting different results from NRPE than the local commands that NRPE is supopsed to be running. I am trying to understand if I am doing something wrong, or if I am hitting a bug. the process is NOT running, and the local command verifies this. the NRPE command from the server is saying it IS running, though. any help is appreciated! -------- from the client being monitored # grep alljunk /etc/nagios/nrpe.cfg command[procs_alljunka]=/usr/lib/nagios/plugins/check_procs -w 1: -c 1: -a '/usr/sbin/alljunk' # /usr/lib/nagios/plugins/check_procs -c 1: -c 1: -a '/usr/sbin/alljunk' PROCS CRITICAL: 0 processes with args '/usr/sbin/alljunk' -------- from the nagios server # /usr/lib/nagios/plugins/check_nrpe -H xx.xx.xx.xx -c procs_alljunka PROCS OK: 1 process with args '/usr/sbin/alljunk' This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benamar.mohamed at free.fr Wed Apr 1 22:50:15 2009 From: benamar.mohamed at free.fr (ben amar) Date: Wed, 1 Apr 2009 22:50:15 +0200 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: References: Message-ID: <33675.0424154618$1238619641@news.gmane.org> Hello, How to configure Nagios to monitor the temperature of the server room? What plugin? Best regards Bonjour, Comment configurer nagios pour superviser la temp?rature de la salle serveur? Avec quel plugin? Cordialement ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlitwin at stubhub.com Wed Apr 1 23:23:26 2009 From: mlitwin at stubhub.com (Matthew Litwin) Date: Wed, 01 Apr 2009 14:23:26 -0700 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: <000001c9b30b$7644c3c0$62ce4b40$@mohamed@free.fr> References: <000001c9b30b$7644c3c0$62ce4b40$@mohamed@free.fr> Message-ID: You would probably want to run the snmp plugin against devices that that have a thermometer in it. You will just need to know what the OID is for that data for the given device. It is a good idea to take readings from each cabinet in your room, both at the top and bottom of the cabinet, and if possible, the front and the back. Keep in mind hot and cool aisle considerations. On 4/1/09 1:50 PM, "ben amar" wrote: > Hello, > > How to configure Nagios to monitor the temperature of the server room? > What plugin? > > Best regards > > > Bonjour, > > Comment configurer nagios pour superviser la temp?rature de la salle > serveur? > Avec quel plugin? > > Cordialement > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 1 23:28:57 2009 From: marc at ena.com (Marc Powell) Date: Wed, 1 Apr 2009 16:28:57 -0500 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: <000001c9b30b$7644c3c0$62ce4b40$@mohamed@free.fr> References: <000001c9b30b$7644c3c0$62ce4b40$@mohamed@free.fr> Message-ID: On Apr 1, 2009, at 3:50 PM, ben amar wrote: > Hello, > > How to configure Nagios to monitor the temperature of the server room? > What plugin? It depends on the very specific device are you monitoring the temperature through. There are few standards to fall back on here... I'd suggest figuring out if that device supports SNMP, identify the OID it exposes the temperature with and use check_snmp to monitor it. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Wed Apr 1 23:20:55 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Wed, 1 Apr 2009 16:20:55 -0500 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: <000001c9b30b$7644c3c0$62ce4b40$@mohamed@free.fr> References: <000001c9b30b$7644c3c0$62ce4b40$@mohamed@free.fr> Message-ID: That all depends on how the temperature can be obtained from the temperature probe. Most likely, the temperature would be obtained via SNMP. If that's the case, use check_snmp along with appropriate warning and critical thresholds. James Moseley "ben amar" To PM cc Subject [Nagios-users] configure Nagios to monitor the temperature of the server room Hello, How to configure Nagios to monitor the temperature of the server room? What plugin? Best regards Bonjour, Comment configurer nagios pour superviser la temp?rature de la salle serveur? Avec quel plugin? Cordialement ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Thu Apr 2 00:06:49 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Wed, 1 Apr 2009 18:06:49 -0400 Subject: problem with check_yum Message-ID: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com> I'm running nagios 3.0.6 and using check_yum on my red hat/centos boxes. Today I've had all my centos boxes show yum warnings about needed updates; found out centos 5.3 was released. I have one red hat 5.2 box. The problem is, check_yum within nagios shows 'o/s is up to date' as of last check (10 min ago). If I run it manually from the machine, it gives a warning that updates are needed (verified through yum and rhn). How can nagios be reporting that yum is ok when it isn't? Seth Simmons Systems Administrator TNS Cymfony 125 Walnut Street, Suite 205 Watertown, MA 02472 Phone: 617.673.6024 | Fax: 617.924.6167 www.cymfony.com | blog: www.influence2.com "harnessing influence 2.0" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 1117 bytes Desc: image001.gif URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Thu Apr 2 00:27:12 2009 From: nccomp at gmail.com (Andrew Davis) Date: Wed, 01 Apr 2009 18:27:12 -0400 Subject: Help please - test works fine EXCEPT over NRPE??? Message-ID: <49D3EA40.8080506@gmail.com> I setup the "check_logs.pl" (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1752.html;d=1) test and its config file on some local Linux servers tested via NRPE. All other NRPE tests work fine (including some custom ones). The check_logs.pl works fine locally, but fails over NRPE. I've enabled debugging in NRPE, but its not telling me much more... Client local test: atum:/etc/init.d # /usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg faillog => OK; lastlog => OK; messages => OK; wtmp => OK; Server test to client via NRPE: /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs CHECK_NRPE: No output returned from daemon. Local log (/var/log/messages) on client when test is run from server: Apr 1 18:05:52 atum nrpe[1412]: Added command[check_logs]=/usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg Apr 1 18:05:52 atum nrpe[1412]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Apr 1 18:05:52 atum nrpe[1412]: Handling the connection... Apr 1 18:05:52 atum nrpe[1412]: Host is asking for command 'check_logs' to be run... Apr 1 18:05:52 atum nrpe[1412]: Running command: /usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg Apr 1 18:05:52 atum nrpe[1412]: Command completed with return code 0 and output: Apr 1 18:05:52 atum nrpe[1412]: Return Code: 0, Output: The response is immediate, so its not a timeout issue. Other NRPE tests work fine: /usr/local/nagios/libexec/check_nrpe -H atum -c check_load OK - load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; /usr/local/nagios/libexec/check_nrpe -H atum -c check_memory CHECK_MEMORY OK - 1702M free | free=1785552896b;210236620.8:;105118310.4: And on the client: Apr 1 18:09:25 atum nrpe[1799]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Apr 1 18:09:25 atum nrpe[1799]: Handling the connection... Apr 1 18:09:25 atum nrpe[1799]: Host is asking for command 'check_load' to be run... Apr 1 18:09:25 atum nrpe[1799]: Running command: /usr/local/nagios/libexec/check_load -r -w 5.0 -c 10.0 Apr 1 18:09:25 atum nrpe[1799]: Command completed with return code 0 and output: OK - load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; Apr 1 18:09:25 atum nrpe[1799]: Return Code: 0, Output: OK - load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; Apr 1 18:09:26 atum nrpe[1802]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Apr 1 18:09:26 atum nrpe[1802]: Handling the connection... Apr 1 18:09:26 atum nrpe[1802]: Host is asking for command 'check_memory' to be run... Apr 1 18:09:26 atum nrpe[1802]: Running command: /usr/local/nagios/libexec/check_memory.pl -w 10% -c 5% Apr 1 18:09:26 atum nrpe[1802]: Command completed with return code 0 and output: CHECK_MEMORY OK - 1703M free | free=1786134528b;210236620.8:;105118310.4: Apr 1 18:09:26 atum nrpe[1802]: Return Code: 0, Output: CHECK_MEMORY OK - 1703M free | free=1786134528b;210236620.8:;105118310.4: Here's the local command in my /etc/nagios/nrpe.cfg: command[check_logs]=/usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg And on the server (when done in services.cfg, though its failing with manual tests too): define service { hostgroup_name linux-servers service_description LOGS check_command check_nrpe!check_logs max_check_attempts 3 normal_check_interval 15 retry_check_interval 5 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w, u, c, r, f, s contact_groups unixadmins } Considering it fails with a manual test (command line), I doubt its my services.cfg entry. It runs fine when called locally, so I'm thinking it could be an issue on the client in the nrpe.cfg, but if so I can't find it... I *do* see the obvious... namely, the other two tests that run over NRPE have something after "Output:" and the check_logs.pl does not. However, called at the command line it does... which is what stumps me. What would cause the test to run fine locally, but return nothing when called via NRPE??? (BTW: I'm running 3.x with the latest set of plugins and NRPE). One more thing: I know *someone* is going to ask why I don't just use the built-in check_log test. The answer is that check_logs.pl allows for multiple files and pattern matches and a "seek" file to speed things up. -- A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From john at stilen.com Thu Apr 2 01:18:32 2009 From: john at stilen.com (John Stile) Date: Wed, 01 Apr 2009 16:18:32 -0700 Subject: Help please - test works fine EXCEPT over NRPE??? In-Reply-To: <49D3EA40.8080506@gmail.com> References: <49D3EA40.8080506@gmail.com> Message-ID: <1238627912.13297.7.camel@genx.localdomain> On the client, if you look at 'ps aux |grep nrpe' what user does nrpe run as? You might have to configure sudo to allow that user to run the plugin. On Wed, 2009-04-01 at 18:27 -0400, Andrew Davis wrote: > I setup the > "check_logs.pl" (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1752.html;d=1) test and its config file on some local Linux servers tested via NRPE. All other NRPE tests work fine (including some custom ones). The check_logs.pl works fine locally, but fails over NRPE. I've enabled debugging in NRPE, but its not telling me much more... > > Client local test: > > atum:/etc/init.d # /usr/local/nagios/libexec/check_logs.pl > -c /etc/nagios/check_logs_linux.cfg > faillog => OK; lastlog => OK; messages => OK; wtmp => OK; > > Server test to client via NRPE: > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs > CHECK_NRPE: No output returned from daemon. > > Local log (/var/log/messages) on client when test is run from server: > > Apr 1 18:05:52 atum nrpe[1412]: Added > command[check_logs]=/usr/local/nagios/libexec/check_logs.pl > -c /etc/nagios/check_logs_linux.cfg > Apr 1 18:05:52 atum nrpe[1412]: INFO: SSL/TLS initialized. > All network traffic will be encrypted. > Apr 1 18:05:52 atum nrpe[1412]: Handling the connection... > Apr 1 18:05:52 atum nrpe[1412]: Host is asking for command > 'check_logs' to be run... > Apr 1 18:05:52 atum nrpe[1412]: Running > command: /usr/local/nagios/libexec/check_logs.pl > -c /etc/nagios/check_logs_linux.cfg > Apr 1 18:05:52 atum nrpe[1412]: Command completed with return > code 0 and output: > Apr 1 18:05:52 atum nrpe[1412]: Return Code: 0, Output: > > The response is immediate, so its not a timeout issue. Other NRPE > tests work fine: > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_load > OK - load average: 0.00, 0.00, 0.00| > load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; > load15=0.000;5.000;10.000;0; > /usr/local/nagios/libexec/check_nrpe -H atum -c check_memory > CHECK_MEMORY OK - 1702M free | > free=1785552896b;210236620.8:;105118310.4: > > And on the client: > > Apr 1 18:09:25 atum nrpe[1799]: INFO: SSL/TLS initialized. > All network traffic will be encrypted. > Apr 1 18:09:25 atum nrpe[1799]: Handling the connection... > Apr 1 18:09:25 atum nrpe[1799]: Host is asking for command > 'check_load' to be run... > Apr 1 18:09:25 atum nrpe[1799]: Running > command: /usr/local/nagios/libexec/check_load -r -w 5.0 -c > 10.0 > Apr 1 18:09:25 atum nrpe[1799]: Command completed with return > code 0 and output: OK - load average: 0.00, 0.00, 0.00| > load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; > load15=0.000;5.000;10.000;0; > Apr 1 18:09:25 atum nrpe[1799]: Return Code: 0, Output: OK - > load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; > load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; > Apr 1 18:09:26 atum nrpe[1802]: INFO: SSL/TLS initialized. > All network traffic will be encrypted. > Apr 1 18:09:26 atum nrpe[1802]: Handling the connection... > Apr 1 18:09:26 atum nrpe[1802]: Host is asking for command > 'check_memory' to be run... > Apr 1 18:09:26 atum nrpe[1802]: Running > command: /usr/local/nagios/libexec/check_memory.pl -w 10% -c > 5% > Apr 1 18:09:26 atum nrpe[1802]: Command completed with return > code 0 and output: CHECK_MEMORY OK - 1703M free | > free=1786134528b;210236620.8:;105118310.4: > Apr 1 18:09:26 atum nrpe[1802]: Return Code: 0, Output: > CHECK_MEMORY OK - 1703M free | > free=1786134528b;210236620.8:;105118310.4: > > Here's the local command in my /etc/nagios/nrpe.cfg: > > command[check_logs]=/usr/local/nagios/libexec/check_logs.pl > -c /etc/nagios/check_logs_linux.cfg > > And on the server (when done in services.cfg, though its failing with > manual tests too): > > define service { > hostgroup_name linux-servers > service_description LOGS > check_command check_nrpe!check_logs > max_check_attempts 3 > normal_check_interval 15 > retry_check_interval 5 > check_period 24x7 > notification_interval 120 > notification_period 24x7 > notification_options w, u, c, r, f, s > contact_groups unixadmins > } > > > Considering it fails with a manual test (command line), I doubt its my > services.cfg entry. It runs fine when called locally, so I'm thinking > it could be an issue on the client in the nrpe.cfg, but if so I can't > find it... > > I *do* see the obvious... namely, the other two tests that run over > NRPE have something after "Output:" and the check_logs.pl does not. > However, called at the command line it does... which is what stumps > me. > > What would cause the test to run fine locally, but return nothing when > called via NRPE??? (BTW: I'm running 3.x with the latest set of > plugins and NRPE). > > One more thing: I know *someone* is going to ask why I don't just use > the built-in check_log test. The answer is that check_logs.pl allows > for multiple files and pattern matches and a "seek" file to speed > things up. > -- > > > A. Davis > Email: nccomp at gmail.com > > "There is no limit to what a man can accomplish > if he doesn't care who gets the credit." - Ronald Reagan > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rodneyra at gmail.com Thu Apr 2 02:42:54 2009 From: rodneyra at gmail.com (Rodney Ramos) Date: Wed, 1 Apr 2009 21:42:54 -0300 Subject: NDO update delay In-Reply-To: References: Message-ID: Hi Lei. I?m using MyISAM engine. Thanks, Rodney. On Tue, Mar 31, 2009 at 4:59 AM, lei chen wrote: > The primary reason maybe the low performance in your mysql server with > innodb engine. > > Two solutions: > 1. tuning your my.cnf to improve the mysql performance; > 2. use MyISAM instead of InnoDB engine in your NODUtils db; > > 2009/3/26 Rodney Ramos : > > Hi everybody. > > > > I?ve installed NDOUtils (nodutils-1.4b7) whith Nagios (nagios-3.0.6) and > > it?s working. > > > > However I?ve noticed that it?s taking more than 30 minutes to update the > > MySQL tables. > > > > I?ve detected the problem making a query on the field "last_check" on > > "nagios_hoststatus" table. > > > > Can anyone help me? There is a parameter to make the update process > faster? > > > > Thanks, > > Rodney. > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > Thanks, > Chenlei & ??++ > MSN Messenger: chnl at 163.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Thu Apr 2 05:01:41 2009 From: nccomp at gmail.com (Andrew Davis) Date: Wed, 01 Apr 2009 23:01:41 -0400 Subject: Help please - test works fine EXCEPT over NRPE??? In-Reply-To: <1238627912.13297.7.camel@genx.localdomain> References: <49D3EA40.8080506@gmail.com> <1238627912.13297.7.camel@genx.localdomain> Message-ID: <49D42A95.9080104@gmail.com> Its running under xinetd, so 'ps aux|grep nrpe' isn't showing the true user. However, the nrpe.cfg is set to use the nobody user. I've added the nobody user to sudo, and even tried it as the nagios user. What I see now from the server is: /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs CHECK_NRPE: Socket timeout after 10 seconds. And in the messages file on the client: Apr 1 22:54:25 atum nrpe[25661]: Running command: /usr/bin/sudo /usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg Apr 1 22:54:25 atum /usr/bin/sudo: nobody : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan John Stile wrote: > On the client, if you look at 'ps aux |grep nrpe' > what user does nrpe run as? > > You might have to configure sudo to allow that user to run the plugin. > > > On Wed, 2009-04-01 at 18:27 -0400, Andrew Davis wrote: > >> I setup the >> "check_logs.pl" (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1752.html;d=1) test and its config file on some local Linux servers tested via NRPE. All other NRPE tests work fine (including some custom ones). The check_logs.pl works fine locally, but fails over NRPE. I've enabled debugging in NRPE, but its not telling me much more... >> >> Client local test: >> >> atum:/etc/init.d # /usr/local/nagios/libexec/check_logs.pl >> -c /etc/nagios/check_logs_linux.cfg >> faillog => OK; lastlog => OK; messages => OK; wtmp => OK; >> >> Server test to client via NRPE: >> >> /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs >> CHECK_NRPE: No output returned from daemon. >> >> Local log (/var/log/messages) on client when test is run from server: >> >> Apr 1 18:05:52 atum nrpe[1412]: Added >> command[check_logs]=/usr/local/nagios/libexec/check_logs.pl >> -c /etc/nagios/check_logs_linux.cfg >> Apr 1 18:05:52 atum nrpe[1412]: INFO: SSL/TLS initialized. >> All network traffic will be encrypted. >> Apr 1 18:05:52 atum nrpe[1412]: Handling the connection... >> Apr 1 18:05:52 atum nrpe[1412]: Host is asking for command >> 'check_logs' to be run... >> Apr 1 18:05:52 atum nrpe[1412]: Running >> command: /usr/local/nagios/libexec/check_logs.pl >> -c /etc/nagios/check_logs_linux.cfg >> Apr 1 18:05:52 atum nrpe[1412]: Command completed with return >> code 0 and output: >> Apr 1 18:05:52 atum nrpe[1412]: Return Code: 0, Output: >> >> The response is immediate, so its not a timeout issue. Other NRPE >> tests work fine: >> >> /usr/local/nagios/libexec/check_nrpe -H atum -c check_load >> OK - load average: 0.00, 0.00, 0.00| >> load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; >> load15=0.000;5.000;10.000;0; >> /usr/local/nagios/libexec/check_nrpe -H atum -c check_memory >> CHECK_MEMORY OK - 1702M free | >> free=1785552896b;210236620.8:;105118310.4: >> >> And on the client: >> >> Apr 1 18:09:25 atum nrpe[1799]: INFO: SSL/TLS initialized. >> All network traffic will be encrypted. >> Apr 1 18:09:25 atum nrpe[1799]: Handling the connection... >> Apr 1 18:09:25 atum nrpe[1799]: Host is asking for command >> 'check_load' to be run... >> Apr 1 18:09:25 atum nrpe[1799]: Running >> command: /usr/local/nagios/libexec/check_load -r -w 5.0 -c >> 10.0 >> Apr 1 18:09:25 atum nrpe[1799]: Command completed with return >> code 0 and output: OK - load average: 0.00, 0.00, 0.00| >> load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; >> load15=0.000;5.000;10.000;0; >> Apr 1 18:09:25 atum nrpe[1799]: Return Code: 0, Output: OK - >> load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; >> load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; >> Apr 1 18:09:26 atum nrpe[1802]: INFO: SSL/TLS initialized. >> All network traffic will be encrypted. >> Apr 1 18:09:26 atum nrpe[1802]: Handling the connection... >> Apr 1 18:09:26 atum nrpe[1802]: Host is asking for command >> 'check_memory' to be run... >> Apr 1 18:09:26 atum nrpe[1802]: Running >> command: /usr/local/nagios/libexec/check_memory.pl -w 10% -c >> 5% >> Apr 1 18:09:26 atum nrpe[1802]: Command completed with return >> code 0 and output: CHECK_MEMORY OK - 1703M free | >> free=1786134528b;210236620.8:;105118310.4: >> Apr 1 18:09:26 atum nrpe[1802]: Return Code: 0, Output: >> CHECK_MEMORY OK - 1703M free | >> free=1786134528b;210236620.8:;105118310.4: >> >> Here's the local command in my /etc/nagios/nrpe.cfg: >> >> command[check_logs]=/usr/local/nagios/libexec/check_logs.pl >> -c /etc/nagios/check_logs_linux.cfg >> >> And on the server (when done in services.cfg, though its failing with >> manual tests too): >> >> define service { >> hostgroup_name linux-servers >> service_description LOGS >> check_command check_nrpe!check_logs >> max_check_attempts 3 >> normal_check_interval 15 >> retry_check_interval 5 >> check_period 24x7 >> notification_interval 120 >> notification_period 24x7 >> notification_options w, u, c, r, f, s >> contact_groups unixadmins >> } >> >> >> Considering it fails with a manual test (command line), I doubt its my >> services.cfg entry. It runs fine when called locally, so I'm thinking >> it could be an issue on the client in the nrpe.cfg, but if so I can't >> find it... >> >> I *do* see the obvious... namely, the other two tests that run over >> NRPE have something after "Output:" and the check_logs.pl does not. >> However, called at the command line it does... which is what stumps >> me. >> >> What would cause the test to run fine locally, but return nothing when >> called via NRPE??? (BTW: I'm running 3.x with the latest set of >> plugins and NRPE). >> >> One more thing: I know *someone* is going to ask why I don't just use >> the built-in check_log test. The answer is that check_logs.pl allows >> for multiple files and pattern matches and a "seek" file to speed >> things up. >> -- >> >> >> A. Davis >> Email: nccomp at gmail.com >> >> "There is no limit to what a man can accomplish >> if he doesn't care who gets the credit." - Ronald Reagan >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ian at griggle.net Thu Apr 2 06:40:19 2009 From: ian at griggle.net (Ian Orszaczki) Date: Thu, 2 Apr 2009 15:40:19 +1100 Subject: Nagios Consultants/Commercial Support in Melbourne In-Reply-To: <49D31D8C.50303@op5.se> References: <2bb4107c0903311344x7e5ff415v30c70ee83e87b4c8@mail.gmail.com> <49D31D8C.50303@op5.se> Message-ID: <2bb4107c0904012140x32081d6dv998a5cf88975c771@mail.gmail.com> Thanks for the info, I have been contacted by your sales manager. I had drawn similar conclusions to what you have detailed. Unfortunately to get a nagios based product seriously considered in a large company they need to security of on-the-ground support if necessary. On Wed, Apr 1, 2009 at 6:53 PM, Andreas Ericsson wrote: > Ian Orszaczki wrote: > >> Hi, I work for a fairly large company looking for at replacing/upgrading >> our >> monitoring system. We are now on Nagios 3.06 monitoring 1300 hosts and >> 8500 >> services via ssh (all from one server). >> >> Does anybody know of any company offering Nagios consultancy or support in >> Melbourne (or elsewhere in Australia) ? Its something that upper >> management >> need before they will consider sticking with Nagios longer term. >> >> I look forward to any responses including feedback on good/bad experiences >> with them. >> >> > I've had fairly good experience with op5. They pay me money to write > programs > and stuff. It's awesomely fun ;-) > > On a more serious note, http://www.nagios.org/support/servicepartners/lists > all the support partners that are serious enough to have contacted Ethan to > let him know they're providing support. It seems Australia lack any > professional Nagios support providers at the moment. > > op5 (where I work) can provide Nagios support world wide, although not yet > with ad-hoc phone support outside european office hours (it's under way). > > Groundworks Opensource claims to work worldwide, but insofar as I know they > have no customers outside the US. > > NetWays also claim to work worldwide. I do not know if they have customers > in your timezone as I'm not that up-to-date on their customer list. > > Groundworks and NetWays work mainly on consultancy basis, tailoring > solutions for each customer. op5 work mainly as a support company, although > we do provide a wide range of addons that make our customers require very > little help with their monitoring systems. > > I've forwarded your email to our sales manager, so I'm sure someone will > contact you later on. Sorry if you didn't want that, but since you asked > for > professional support I'd be sort of neglecting my job obligations if I > didn't. Besides, with a little luck I might be sent to Australia at some > point if we team up, and free trips are always nice ;-) > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > Considering the successes of the wars on alcohol, poverty, drugs and > terror, I think we should give some serious thought to declaring war > on peace. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian.masopust at siemens.com Thu Apr 2 08:33:30 2009 From: christian.masopust at siemens.com (Masopust, Christian) Date: Thu, 2 Apr 2009 08:33:30 +0200 Subject: problem with check_yum In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com> Message-ID: <60721B67EAF0994EAFFB561767B700140390917D@nets13ha.ww300.siemens.net> Hello Seth, I think that's not related to Nagios or check_yum. I had the same problem on one of my servers when running "yum check-update" from cmd-line. On one of my machines the "yum upgrade" was already running and the other one insisted on being up to date :-)) A few hours later and after playing around a little with repositories configured in /etc/yum.repos.d also the second machine was aware that it has to be updated.. christian -- "I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." - Unknown Unix Jedi ________________________________ From: Seth Simmons [mailto:ssimmons at cymfony.com] Sent: Thursday, April 02, 2009 12:07 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] problem with check_yum I'm running nagios 3.0.6 and using check_yum on my red hat/centos boxes. Today I've had all my centos boxes show yum warnings about needed updates; found out centos 5.3 was released. I have one red hat 5.2 box. The problem is, check_yum within nagios shows 'o/s is up to date' as of last check (10 min ago). If I run it manually from the machine, it gives a warning that updates are needed (verified through yum and rhn). How can nagios be reporting that yum is ok when it isn't? Seth Simmons Systems Administrator TNS Cymfony 125 Walnut Street, Suite 205 Watertown, MA 02472 Phone: 617.673.6024 | Fax: 617.924.6167 www.cymfony.com | blog: www.influence2.com "harnessing influence 2.0" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 1117 bytes Desc: image001.gif URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xml.devel at gmail.com Thu Apr 2 09:11:58 2009 From: xml.devel at gmail.com (Kumar, Ashish) Date: Thu, 2 Apr 2009 12:41:58 +0530 Subject: NRPE vs local check_procs = different result? In-Reply-To: References: Message-ID: <633e02960904020011oe40bfe9m313674aedfe606e9@mail.gmail.com> > I am getting different results from NRPE than the local commands that NRPE > is supopsed to be running.? I am trying to understand if I am doing > something wrong, or if I am hitting a bug.? the process is NOT running, and > the local command verifies this.? the NRPE command from the server is saying > it IS running, though. > I have posted a similar e-mail last month with subject line "Interesting problem while trying to monitor Oracle RAC services" (http://article.gmane.org/gmane.network.nagios.user/60773) I doubt whether it's a bug since other scripts are responding properly. ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cloved at gmail.com Thu Apr 2 09:52:21 2009 From: cloved at gmail.com (Lei Chen) Date: Thu, 2 Apr 2009 15:52:21 +0800 Subject: Help please - test works fine EXCEPT over NRPE??? In-Reply-To: <49D42A95.9080104@gmail.com> References: <49D3EA40.8080506@gmail.com> <1238627912.13297.7.camel@genx.localdomain> <49D42A95.9080104@gmail.com> Message-ID: use visudo command, comment the following line: Defaults requiretty and try again. 2009/4/2 Andrew Davis : > Its running under xinetd, so 'ps aux|grep nrpe' isn't showing the true user. > However, the nrpe.cfg is set to use the nobody user. I've added the nobody > user to sudo, and even tried it as the nagios user. What I see now from the > server is: > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs > CHECK_NRPE: Socket timeout after 10 seconds. > > And in the messages file on the client: > > Apr 1 22:54:25 atum nrpe[25661]: Running command: /usr/bin/sudo > /usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg > Apr 1 22:54:25 atum /usr/bin/sudo: nobody : TTY=unknown ; PWD=/ ; > USER=root ; COMMAND=/usr/local/nagios/libexec/check_logs.pl -c > /etc/nagios/check_logs_linux.cfg > > A. Davis > Email: nccomp at gmail.com > > "There is no limit to what a man can accomplish > if he doesn't care who gets the credit." - Ronald Reagan > > > John Stile wrote: > > On the client, if you look at 'ps aux |grep nrpe' > what user does nrpe run as? > > You might have to configure sudo to allow that user to run the plugin. > > > On Wed, 2009-04-01 at 18:27 -0400, Andrew Davis wrote: > > > I setup the > "check_logs.pl" > (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1752.html;d=1) > test and its config file on some local Linux servers tested via NRPE. All > other NRPE tests work fine (including some custom ones). The check_logs.pl > works fine locally, but fails over NRPE. I've enabled debugging in NRPE, but > its not telling me much more... > > Client local test: > > atum:/etc/init.d # /usr/local/nagios/libexec/check_logs.pl > -c /etc/nagios/check_logs_linux.cfg > faillog => OK; lastlog => OK; messages => OK; wtmp => OK; > > Server test to client via NRPE: > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs > CHECK_NRPE: No output returned from daemon. > > Local log (/var/log/messages) on client when test is run from server: > > Apr 1 18:05:52 atum nrpe[1412]: Added > command[check_logs]=/usr/local/nagios/libexec/check_logs.pl > -c /etc/nagios/check_logs_linux.cfg > Apr 1 18:05:52 atum nrpe[1412]: INFO: SSL/TLS initialized. > All network traffic will be encrypted. > Apr 1 18:05:52 atum nrpe[1412]: Handling the connection... > Apr 1 18:05:52 atum nrpe[1412]: Host is asking for command > 'check_logs' to be run... > Apr 1 18:05:52 atum nrpe[1412]: Running > command: /usr/local/nagios/libexec/check_logs.pl > -c /etc/nagios/check_logs_linux.cfg > Apr 1 18:05:52 atum nrpe[1412]: Command completed with return > code 0 and output: > Apr 1 18:05:52 atum nrpe[1412]: Return Code: 0, Output: > > The response is immediate, so its not a timeout issue. Other NRPE > tests work fine: > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_load > OK - load average: 0.00, 0.00, 0.00| > load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; > load15=0.000;5.000;10.000;0; > /usr/local/nagios/libexec/check_nrpe -H atum -c check_memory > CHECK_MEMORY OK - 1702M free | > free=1785552896b;210236620.8:;105118310.4: > > And on the client: > > Apr 1 18:09:25 atum nrpe[1799]: INFO: SSL/TLS initialized. > All network traffic will be encrypted. > Apr 1 18:09:25 atum nrpe[1799]: Handling the connection... > Apr 1 18:09:25 atum nrpe[1799]: Host is asking for command > 'check_load' to be run... > Apr 1 18:09:25 atum nrpe[1799]: Running > command: /usr/local/nagios/libexec/check_load -r -w 5.0 -c > 10.0 > Apr 1 18:09:25 atum nrpe[1799]: Command completed with return > code 0 and output: OK - load average: 0.00, 0.00, 0.00| > load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; > load15=0.000;5.000;10.000;0; > Apr 1 18:09:25 atum nrpe[1799]: Return Code: 0, Output: OK - > load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; > load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; > Apr 1 18:09:26 atum nrpe[1802]: INFO: SSL/TLS initialized. > All network traffic will be encrypted. > Apr 1 18:09:26 atum nrpe[1802]: Handling the connection... > Apr 1 18:09:26 atum nrpe[1802]: Host is asking for command > 'check_memory' to be run... > Apr 1 18:09:26 atum nrpe[1802]: Running > command: /usr/local/nagios/libexec/check_memory.pl -w 10% -c > 5% > Apr 1 18:09:26 atum nrpe[1802]: Command completed with return > code 0 and output: CHECK_MEMORY OK - 1703M free | > free=1786134528b;210236620.8:;105118310.4: > Apr 1 18:09:26 atum nrpe[1802]: Return Code: 0, Output: > CHECK_MEMORY OK - 1703M free | > free=1786134528b;210236620.8:;105118310.4: > > Here's the local command in my /etc/nagios/nrpe.cfg: > > command[check_logs]=/usr/local/nagios/libexec/check_logs.pl > -c /etc/nagios/check_logs_linux.cfg > > And on the server (when done in services.cfg, though its failing with > manual tests too): > > define service { > hostgroup_name linux-servers > service_description LOGS > check_command check_nrpe!check_logs > max_check_attempts 3 > normal_check_interval 15 > retry_check_interval 5 > check_period 24x7 > notification_interval 120 > notification_period 24x7 > notification_options w, u, c, r, f, s > contact_groups unixadmins > } > > > Considering it fails with a manual test (command line), I doubt its my > services.cfg entry. It runs fine when called locally, so I'm thinking > it could be an issue on the client in the nrpe.cfg, but if so I can't > find it... > > I *do* see the obvious... namely, the other two tests that run over > NRPE have something after "Output:" and the check_logs.pl does not. > However, called at the command line it does... which is what stumps > me. > > What would cause the test to run fine locally, but return nothing when > called via NRPE??? (BTW: I'm running 3.x with the latest set of > plugins and NRPE). > > One more thing: I know *someone* is going to ask why I don't just use > the built-in check_log test. The answer is that check_logs.pl allows > for multiple files and pattern matches and a "seek" file to speed > things up. > -- > > > A. Davis > Email: nccomp at gmail.com > > "There is no limit to what a man can accomplish > if he doesn't care who gets the credit." - Ronald Reagan > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cloved at gmail.com Thu Apr 2 10:16:25 2009 From: cloved at gmail.com (Lei Chen) Date: Thu, 2 Apr 2009 16:16:25 +0800 Subject: NDO update delay In-Reply-To: References: Message-ID: Good luck. If any problem, reply to the list, or to me :) 2009/4/2 Rodney Ramos : > Hi Lei. > > I?m using MyISAM engine. > > Thanks, > Rodney. > > On Tue, Mar 31, 2009 at 4:59 AM, lei chen wrote: >> >> The primary reason maybe the low performance in your mysql server with >> innodb engine. >> >> Two solutions: >> 1. tuning your my.cnf to improve the mysql performance; >> 2. use MyISAM instead of InnoDB engine in your NODUtils db; >> >> 2009/3/26 Rodney Ramos : >> > Hi everybody. >> > >> > I?ve installed NDOUtils (nodutils-1.4b7) whith Nagios (nagios-3.0.6) and >> > it?s working. >> > >> > However I?ve noticed that it?s taking more than 30 minutes to update the >> > MySQL tables. >> > >> > I?ve?detected the problem?making a query on the field "last_check" on >> > "nagios_hoststatus" table. >> > >> > Can anyone help me? There is a parameter to make?the update process >> > faster? >> > >> > Thanks, >> > Rodney. >> > >> > ------------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > ::: Please include Nagios version, plugin version (-v) and OS when >> > reporting >> > any issue. >> > ::: Messages without supporting info will risk being sent to /dev/null >> > >> >> >> >> -- >> Thanks, >> Chenlei & ??++ >> MSN Messenger: chnl at 163.com > > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benamar.mohamed at free.fr Thu Apr 2 11:38:03 2009 From: benamar.mohamed at free.fr (benamar.mohamed at free.fr) Date: Thu, 02 Apr 2009 11:38:03 +0200 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: References: Message-ID: <1238665083.49d4877b99e4a@imp.free.fr> Hello, Thank you for your answer, but is it possible to monitor the temperature of the server room by NRPE not SNMP? Best regards Selon jmoseley at corp.xanadoo.com: > That all depends on how the temperature can be obtained from the > temperature probe. Most likely, the temperature would be obtained via > SNMP. If that's the case, use check_snmp along with appropriate warning > and critical thresholds. > > > James Moseley > > > > > > "ben amar" > free.fr> To > 04/01/2009 03:50 > > PM cc > > Subject > [Nagios-users] configure Nagios to > monitor the temperature of the > server room > > > > > > > > > > > Hello, > > How to configure Nagios to monitor the temperature of the server room? > What plugin? > > Best regards > > > Bonjour, > > Comment configurer nagios pour superviser la temp?rature de la salle > serveur? > Avec quel plugin? > > Cordialement > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 2 12:36:24 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 2 Apr 2009 11:36:24 +0100 Subject: Dependency and performance question In-Reply-To: <6db4a4200904010807p3824655bx7c9a9d9943a020e3@mail.gmail.com> References: <6db4a4200904010807p3824655bx7c9a9d9943a020e3@mail.gmail.com> Message-ID: <200904021136.24739.assaf.flatto@ssp-intl.com> On Wednesday 01 April 2009 16:07:49 shadih rahman wrote: > Hi, > I am running nagios on a 2.5 GHZ 4-core 64 bit machine running RHEL5. I > am seeing some performance issue in Nagios. I am doing failover setup. I > have another similar machine which has identical config but not doing any > active checks. My master machine sends check result using NSCA. Now I can > not determine why my master machine is lacking in performace. I will paste > my performance data below. I also have another question about dependency. > > 1) if a HOST is down, does the service checks still happens? I would like > to setup a dependency where if host is down no service check should take > place. How do I go about setting this up. An exapmple will be much > appreciated. when a host is down - ping will not respond , so this is a basic assumption you can work from : define servicedependency{ host_name host service_description PING dependent_host_name host dependent_service_description load,disk,.... execution_failure_criteria c,u,w notification_failure_criteria c,u,w } Also i advise you to read this : http://nagios.telecity1.uk.ssp/docs/dependencies.html Be advised though a large number of dependencies will increase the load on the machine and will cause some preformance change. -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From exon at op5.com Thu Apr 2 12:59:33 2009 From: exon at op5.com (Andreas Ericsson) Date: Thu, 02 Apr 2009 12:59:33 +0200 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: <1238665083.49d4877b99e4a@imp.free.fr> References: <1238665083.49d4877b99e4a@imp.free.fr> Message-ID: <49D49A95.2080000@op5.se> benamar.mohamed at free.fr wrote: > Hello, > > Thank you for your answer, but is it possible to monitor the temperature of the > server room by NRPE not SNMP? > You need a device that can actually measure the room temperature first. Such devices rarely have a fully fledged OS with compiler etc installed on them. Until you grasp that rather important fact, you're far beyond help I'm afraid. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 2 13:56:33 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 2 Apr 2009 12:56:33 +0100 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: <-8863442256670947533@unknownmsgid> References: <-8863442256670947533@unknownmsgid> Message-ID: <765d77c80904020456l708e2917y1c0513d0170e3f25@mail.gmail.com> 2009/4/1 ben amar : > How to configure Nagios to monitor the temperature of the server room? > What plugin? I can't say I've tried it myself, but this one is advertised on www.nagios.org :- http://www.nagios.org/products/environmental/esensors/em01b.php hth, Jim ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dit.dash at gmail.com Thu Apr 2 14:54:19 2009 From: dit.dash at gmail.com (dave stern - e-mail.pluribus.unum) Date: Thu, 2 Apr 2009 08:54:19 -0400 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: <765d77c80904020456l708e2917y1c0513d0170e3f25@mail.gmail.com> References: <-8863442256670947533@unknownmsgid> <765d77c80904020456l708e2917y1c0513d0170e3f25@mail.gmail.com> Message-ID: <7f62d2420904020554v6a3f15d0wc3c2c03946cf56f8@mail.gmail.com> We've had great success with devices from avtech eg http://avtech.com/LP/LP_RMA_1.htm Added benefit; they also sell industrial grade light bars (sorta like traffic lights) that can be triggered by nagios to show overall status http://avtech.com/Products/Environment_Monitors/Room_Alert_Signal_Tower_A.htm On Thu, Apr 2, 2009 at 7:56 AM, Jim Avery wrote: > 2009/4/1 ben amar : >> How to configure Nagios to monitor the temperature of the server room? >> What plugin? > > I can't say I've tried it myself, but this one is advertised on > www.nagios.org :- > > http://www.nagios.org/products/environmental/esensors/em01b.php > > hth, > > Jim > > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AAlexiou at targetsite.com Thu Apr 2 15:28:47 2009 From: AAlexiou at targetsite.com (Alex Alexiou) Date: Thu, 2 Apr 2009 09:28:47 -0400 Subject: unable to use check_http with oracle application server Message-ID: <6FC687D54B43E4448D03E1291F260673013F9C2F@tgt-exch1.blackbaud.com> Hi everyone, I've been using the check_http plugin to scan websites hosted by Oracle Application Server. We recently changed OAS to use port 443 and SSLv3 only, and now check_http can't check the site. The plugin returns this: CRITICAL - Cannot make SSL connection GET / HTTP/1.0 User-Agent: check_http/1.99 (nagios-plugins 1.4.6) Error on receive On OAS, the error logs show this: [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL call to NZ function nzos_Handshake failed with error 28858 [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL protocol error [Hint: the client probably speaks HTTPS over HTTP protocol] I'm talking to Oracle about it right now, but they're not sure what's going on here. I haven't had any problems with the plugin until now, so I think it's really on their end, but have any of you ever seen this before? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Thu Apr 2 15:57:58 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 2 Apr 2009 08:57:58 -0500 Subject: configure Nagios to monitor the temperature of the server room In-Reply-To: <1238665083.49d4877b99e4a@imp.free.fr> References: <1238665083.49d4877b99e4a@imp.free.fr> Message-ID: benamar.mohamed at free.fr wrote: >Hello, > >Thank you for your answer, but is it possible to monitor the temperature of the >server room by NRPE not SNMP? > >Best regards As Andreas said, you are unlikely to find a temperature probe that has an OS capable of installing/compiling/running the NRPE daemon. Therefore, you will have to find a device that you can query by SNMP (or some other means) to obtain the temperature reading. APC makes environmental monitors capable of this. I'm sure there are others... James ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 2 15:58:21 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 2 Apr 2009 14:58:21 +0100 Subject: unable to use check_http with oracle application server In-Reply-To: <6FC687D54B43E4448D03E1291F260673013F9C2F@tgt-exch1.blackbaud.com> References: <6FC687D54B43E4448D03E1291F260673013F9C2F@tgt-exch1.blackbaud.com> Message-ID: <200904021458.21596.assaf.flatto@ssp-intl.com> can you post your command syntax ? it will help knwoing how you are preforming the test . Assaf On Thursday 02 April 2009 14:28:47 Alex Alexiou wrote: > Hi everyone, > > > > I've been using the check_http plugin to scan websites hosted by Oracle > Application Server. We recently changed OAS to use port 443 and SSLv3 > only, and now check_http can't check the site. The plugin returns this: > > > > CRITICAL - Cannot make SSL connection > > GET / HTTP/1.0 > > User-Agent: check_http/1.99 (nagios-plugins 1.4.6) > > > > Error on receive > > > > > > On OAS, the error logs show this: > > > > [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL call to NZ function > nzos_Handshake failed with error 28858 > > [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL protocol error [Hint: > the client probably speaks HTTPS over HTTP protocol] > > > > I'm talking to Oracle about it right now, but they're not sure what's > going on here. I haven't had any problems with the plugin until now, so > I think it's really on their end, but have any of you ever seen this > before? -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at frozenatom.com Thu Apr 2 16:21:12 2009 From: matt at frozenatom.com (Matt Nelson) Date: Thu, 2 Apr 2009 08:21:12 -0600 Subject: check_command instant feedback Message-ID: <148f6bb30904020721m1d3816f8u8af2db57af03b183@mail.gmail.com> Hello, I'd like to be able to run a check_command from the command line and have it return feedback immediately (versus a forced-check from the webui). Is this possible? The reason for this is that I'm trying to throw together a simple web interface and when the user clicks 'recheck' a window will pop up with the results of that particular service's check_command. I thought about parsing the commands.cfg file for the command and then looping through the $ARGX$ fields and plugging in the correct values - but this seems extremely complicated (what with dealing with commands with variable-length fields, user macros, etc.). Any help is appreciated, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AAlexiou at targetsite.com Thu Apr 2 17:48:50 2009 From: AAlexiou at targetsite.com (Alex Alexiou) Date: Thu, 2 Apr 2009 11:48:50 -0400 Subject: unable to use check_http with oracle applicationserver In-Reply-To: <200904021458.21596.assaf.flatto@ssp-intl.com> References: <6FC687D54B43E4448D03E1291F260673013F9C2F@tgt-exch1.blackbaud.com> <200904021458.21596.assaf.flatto@ssp-intl.com> Message-ID: <6FC687D54B43E4448D03E1291F260673013F9D4D@tgt-exch1.blackbaud.com> Sure. I've removed the actual hostname, but the rest is the same: define command{ command_name check_oas command_line $USER1$/check_http -H -u /forms90/f90servlet?config=clientname -p 443 -S } -----Original Message----- From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] Sent: Thursday, April 02, 2009 9:58 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] unable to use check_http with oracle applicationserver can you post your command syntax ? it will help knwoing how you are preforming the test . Assaf On Thursday 02 April 2009 14:28:47 Alex Alexiou wrote: > Hi everyone, > > > > I've been using the check_http plugin to scan websites hosted by Oracle > Application Server. We recently changed OAS to use port 443 and SSLv3 > only, and now check_http can't check the site. The plugin returns this: > > > > CRITICAL - Cannot make SSL connection > > GET / HTTP/1.0 > > User-Agent: check_http/1.99 (nagios-plugins 1.4.6) > > > > Error on receive > > > > > > On OAS, the error logs show this: > > > > [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL call to NZ function > nzos_Handshake failed with error 28858 > > [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL protocol error [Hint: > the client probably speaks HTTPS over HTTP protocol] > > > > I'm talking to Oracle about it right now, but they're not sure what's > going on here. I haven't had any problems with the plugin until now, so > I think it's really on their end, but have any of you ever seen this > before? -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------ ------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Thu Apr 2 18:00:22 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Thu, 2 Apr 2009 12:00:22 -0400 Subject: check_nrpe help with multipple argument Message-ID: <6db4a4200904020900t58022fc9q95f4bee1f0c895d0@mail.gmail.com> I am trying to execute a check_nrpe with multiple argument and it is not working. I have the following definition in my nrpe.cfg command[check_users_x64]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_load_x64]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_hda1_x64]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1 command[check_zombie_procs_x64]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs_x64]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200 command[check_disk_x64]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p $ARG1$ command[check_disk_excluding_x64]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% -p $ARG1$ -x $ARG2$ command[check_process_x64]=/usr/lib64/nagios/plugins/check_proc -w $ARG1$ -c $ARG2$ -C $ARG3$ command[restart-remote_x64]=/usr/lib64/nagios/eventhandlers/remote-restart.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ when I try to execute the following from command line I get an error. -bash-3.2$ ./check_nrpe -H localhost -c check_process_x64 -a 10 10 nagios NRPE: Unable to read output however single argument works fine. -bash-3.2$ ./check_nrpe -H localhost -c check_disk_x64 -a /var DISK OK - free space: /var 6674 MB (72% inode=99%);| /var=2513MB;8234;8719;0;9688 Please advise on this. Thanks -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 2 18:13:13 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 2 Apr 2009 17:13:13 +0100 Subject: check_nrpe help with multipple argument In-Reply-To: <6db4a4200904020900t58022fc9q95f4bee1f0c895d0@mail.gmail.com> References: <6db4a4200904020900t58022fc9q95f4bee1f0c895d0@mail.gmail.com> Message-ID: <200904021713.13419.assaf.flatto@ssp-intl.com> On Thursday 02 April 2009 17:00:22 shadih rahman wrote: > I am trying to execute a check_nrpe with multiple argument and it is not > working. I have the following definition in my nrpe.cfg > > command[check_users_x64]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 > command[check_load_x64]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c > 30,25,20 > command[check_hda1_x64]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% > -p /dev/hda1 > command[check_zombie_procs_x64]=/usr/lib64/nagios/plugins/check_procs -w 5 > -c 10 -s Z > command[check_total_procs_x64]=/usr/lib64/nagios/plugins/check_procs -w 150 > -c 200 > command[check_disk_x64]=/usr/lib64/nagios/plugins/check_disk -w 15% -c 10% > -p $ARG1$ > command[check_disk_excluding_x64]=/usr/lib64/nagios/plugins/check_disk -w > 15% -c 10% -p $ARG1$ -x $ARG2$ > command[check_process_x64]=/usr/lib64/nagios/plugins/check_proc -w $ARG1$ > -c $ARG2$ -C $ARG3$ > command[restart-remote_x64]=/usr/lib64/nagios/eventhandlers/remote-restart. >sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ > > > when I try to execute the following from command line I get an error. > > -bash-3.2$ ./check_nrpe -H localhost -c check_process_x64 -a 10 10 nagios > NRPE: Unable to read output > > > however single argument works fine. > > -bash-3.2$ ./check_nrpe -H localhost -c check_disk_x64 -a /var > DISK OK - free space: /var 6674 MB (72% inode=99%);| > /var=2513MB;8234;8719;0;9688 > > Please advise on this. Thanks you are trying to compare output and behaviour of two different commands . check_proc and check_disk have different parameters and argument list run each with the -h and read more about how to use them. Assaf -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 2 18:16:42 2009 From: marc at ena.com (Marc Powell) Date: Thu, 2 Apr 2009 11:16:42 -0500 Subject: unable to use check_http with oracle application server In-Reply-To: <6FC687D54B43E4448D03E1291F260673013F9C2F@tgt-exch1.blackbaud.com> References: <6FC687D54B43E4448D03E1291F260673013F9C2F@tgt-exch1.blackbaud.com> Message-ID: <50C11871-99E2-41E0-92C6-F196DBD1ADC0@ena.com> On Apr 2, 2009, at 8:28 AM, Alex Alexiou wrote: > On OAS, the error logs show this: > > [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL call to NZ function > nzos_Handshake failed with error 28858 Google does have hits on this specific error message. It's about 2.5 years old but may be the version you are using... http://kr.forums.oracle.com/forums/thread.jspa?threadID=73535&tstart=255 "I got this error in 10.1.2.0.2 and opened an SR. I was told that the problem is due to 'Internal bug:3824477'." > [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL protocol error > [Hint: the client probably speaks HTTPS over HTTP protocol] This tells me that check_http is speaking HTTPS, but :443 on your server is not. :443 is expecting standard HTTP protocol. Probably because of the broken SSL call. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 2 18:23:44 2009 From: marc at ena.com (Marc Powell) Date: Thu, 2 Apr 2009 11:23:44 -0500 Subject: check_nrpe help with multipple argument In-Reply-To: <6db4a4200904020900t58022fc9q95f4bee1f0c895d0@mail.gmail.com> References: <6db4a4200904020900t58022fc9q95f4bee1f0c895d0@mail.gmail.com> Message-ID: On Apr 2, 2009, at 11:00 AM, shadih rahman wrote: > command[check_process_x64]=/usr/lib64/nagios/plugins/check_proc -w > $ARG1$ -c $ARG2$ -C $ARG3$ Do you mean 'check_procs'? -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jboris at adphila.org Thu Apr 2 19:39:03 2009 From: jboris at adphila.org (John BORIS) Date: Thu, 02 Apr 2009 13:39:03 -0400 Subject: Help with installation past the first host/switch/service Message-ID: <49D4BFF7.2594.002B.0@adphila.org> I have nagios 3.x setup and installed on Fedora 10. Works fine but I only have 1 server, 1 switch, 1 printer, 1 windows server setup. How do you add more of the same type? The instructions (all that I could find) say "Do this for the first one" but then fall silent on what to do with the second, third etc. The same thing goes for the switches and any other device or "host" Any insight would be appreciated even a good pointer to a How-To. All of my searches have failed to provide any insight into this. TIA John J. Boris, Sr. JEN-A-SyS Administrator Archdiocese of Philadelphia "Remember! That light at the end of the tunnel Just might be the headlight of an oncoming train!" ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From renatokrause at gmail.com Thu Apr 2 20:02:31 2009 From: renatokrause at gmail.com (Renato Krause) Date: Thu, 2 Apr 2009 15:02:31 -0300 Subject: Each switch in a file .cfg Message-ID: <2f97bf3f0904021102u6222c38bo5bb041b427ad90d@mail.gmail.com> I started one job with a NAGIOS at a big network. My first ideia was monitoring all switchs on this network. I put all switch configuration in the file: /usr/local/nagios/etc/objects/switch.cfg I hope that I can create configuration files to each switch, one file per switch, and make a reference to switchs on this file: /usr/local/nagios/etc/nagios.cfg. In this file i uncomment a line /usr/local/nagios/etc/objects/switch.cfg to make use actual configuration. I tried made a reference to other files, that i had created but the Nagios don?t restarted with other references in /usr/local/nagios/etc/nagios.cfg. Thanks for all, Renato Krause ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 2 20:13:21 2009 From: marc at ena.com (Marc Powell) Date: Thu, 2 Apr 2009 13:13:21 -0500 Subject: Each switch in a file .cfg In-Reply-To: <2f97bf3f0904021102u6222c38bo5bb041b427ad90d@mail.gmail.com> References: <2f97bf3f0904021102u6222c38bo5bb041b427ad90d@mail.gmail.com> Message-ID: On Apr 2, 2009, at 1:02 PM, Renato Krause wrote: > I started one job with a NAGIOS at a big network. My first ideia was > monitoring all switchs on this network. > I put all switch configuration in the file: > /usr/local/nagios/etc/objects/switch.cfg > I hope that I can create configuration files to each switch, one file > per switch, and make a reference to switchs on this file: > /usr/local/nagios/etc/nagios.cfg. Yes, you can, using either cfg_file directives (one per switch cfg file), or better yet, one cfg_dir directive pointing to the directory with all the switch cfg files. > In this file i uncomment a line > /usr/local/nagios/etc/objects/switch.cfg to make use actual > configuration. I tried made a reference to other files, that i had > created but the Nagios don?t restarted with other references in > /usr/local/nagios/etc/nagios.cfg. If you're reporting a problem here, it's necessary to include the actual error nagios is reporting. You can use '/path/to/nagios -v / path/to/nagios.cfg' for more verbose config checking... -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From renatokrause at gmail.com Thu Apr 2 20:36:20 2009 From: renatokrause at gmail.com (Renato Krause) Date: Thu, 2 Apr 2009 15:36:20 -0300 Subject: Fwd: Each switch in a file .cfg In-Reply-To: <2f97bf3f0904021135x1afdd076i134bd083b0ffff2f@mail.gmail.com> References: <2f97bf3f0904021102u6222c38bo5bb041b427ad90d@mail.gmail.com> <2f97bf3f0904021135x1afdd076i134bd083b0ffff2f@mail.gmail.com> Message-ID: <2f97bf3f0904021136l287bede9m6db4cc028dad6eb1@mail.gmail.com> Sorry, i forgot to sendo for the list. Renato Krause ---------- Forwarded message ---------- From: Renato Krause Date: Thu, Apr 2, 2009 at 15:35 Subject: Re: [Nagios-users] Each switch in a file .cfg To: Marc Powell Marc, first thank you for help me. I?m creating a script in python to generate .cfg to my switchs now. Son i will implement you solution. I only like know how reference a directory with all my switchs files. Thank for all one more time, Renato Krause On Thu, Apr 2, 2009 at 15:13, Marc Powell wrote: > > On Apr 2, 2009, at 1:02 PM, Renato Krause wrote: > >> I started one job with a NAGIOS at a big network. My first ideia was >> monitoring all switchs on this network. >> I put all switch configuration in the file: >> /usr/local/nagios/etc/objects/switch.cfg >> I hope that I can create configuration files to each switch, one file >> per switch, and make a reference ?to switchs on this file: >> /usr/local/nagios/etc/nagios.cfg. > > Yes, you can, using either cfg_file directives (one per switch cfg > file), or better yet, one cfg_dir directive pointing to the directory > with all the switch cfg files. > >> In this file i ?uncomment a line >> /usr/local/nagios/etc/objects/switch.cfg to make use actual >> configuration. I tried made a reference to other files, that i had >> created but the Nagios don?t restarted with other references in >> /usr/local/nagios/etc/nagios.cfg. > > If you're reporting a problem here, it's necessary to include the > actual error nagios is reporting. You can use '/path/to/nagios -v / > path/to/nagios.cfg' for more verbose config checking... > > -- > Marc > > > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Apr 2 20:41:34 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 2 Apr 2009 11:41:34 -0700 Subject: Fwd: Each switch in a file .cfg In-Reply-To: <2f97bf3f0904021136l287bede9m6db4cc028dad6eb1@mail.gmail.com> References: <2f97bf3f0904021102u6222c38bo5bb041b427ad90d@mail.gmail.com> <2f97bf3f0904021135x1afdd076i134bd083b0ffff2f@mail.gmail.com> <2f97bf3f0904021136l287bede9m6db4cc028dad6eb1@mail.gmail.com> Message-ID: <20090402184134.GA30298@bakgwai.americas.hpqcorp.net> http://nagios.sourceforge.net/docs/3_0/configmain.html#cfg_dir On Thu, 02 Apr 2009, Renato Krause wrote: > Sorry, i forgot to sendo for the list. > Renato Krause > > > > > ---------- Forwarded message ---------- > From: Renato Krause > Date: Thu, Apr 2, 2009 at 15:35 > Subject: Re: [Nagios-users] Each switch in a file .cfg > To: Marc Powell > > > Marc, first thank you for help me. I?m creating a script in python to > generate .cfg to my switchs now. Son i will implement you solution. I > only like know how reference a directory with all my switchs files. > Thank for all one more time, > Renato Krause > > > > On Thu, Apr 2, 2009 at 15:13, Marc Powell wrote: > > > > On Apr 2, 2009, at 1:02 PM, Renato Krause wrote: > > > >> I started one job with a NAGIOS at a big network. My first ideia was > >> monitoring all switchs on this network. > >> I put all switch configuration in the file: > >> /usr/local/nagios/etc/objects/switch.cfg > >> I hope that I can create configuration files to each switch, one file > >> per switch, and make a reference ?to switchs on this file: > >> /usr/local/nagios/etc/nagios.cfg. > > > > Yes, you can, using either cfg_file directives (one per switch cfg > > file), or better yet, one cfg_dir directive pointing to the directory > > with all the switch cfg files. > > > >> In this file i ?uncomment a line > >> /usr/local/nagios/etc/objects/switch.cfg to make use actual > >> configuration. I tried made a reference to other files, that i had > >> created but the Nagios don?t restarted with other references in > >> /usr/local/nagios/etc/nagios.cfg. > > > > If you're reporting a problem here, it's necessary to include the > > actual error nagios is reporting. You can use '/path/to/nagios -v / > > path/to/nagios.cfg' for more verbose config checking... > > > > -- > > Marc > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jcall at verio.net Thu Apr 2 21:21:48 2009 From: jcall at verio.net (Jonathan Call) Date: Thu, 2 Apr 2009 15:21:48 -0400 Subject: nagios 3.0.3 on FreeBSD defunct process In-Reply-To: References: Message-ID: <04F3233F47E2714CB7431AE913E57E7703400C4D@IAD-WPRD-XCHB02.corp.verio.net> That sounds very familiar to the locking/contention issue FreeBSD 7.x has with Nagios 2.x. It has to do with how Nagios and FreeBSD handle threading. Unfortunately I don?t have any answers on how to fix it. I?ve had to leave my Nagios deployment on FreeBSD 6/Nagios 2 for the same reason: anything newer would lock up due to defunct Nagios processes. Jonathan From: Gian Paolo Buono [mailto:gpbuono at gmail.com] Sent: Tuesday, March 31, 2009 5:45 AM To: nagios-users at lists.sourceforge.net; lei chen Subject: Re: [Nagios-users] nagios 3.0.3 on FreeBSD defunct process Hi, I haven't NDOUtils and enable_embedded_perl is disable (enable_embedded_perl=0) :(.. any idea ? bye... 2009/3/31 lei chen Are you use NDOUtils here? Or use enable_embedded_perl option? 2009/3/27 Gian Paolo Buono : > Hi, Ihave a server with FreeBSD 7.1-RELEASE-p2 with 950 host and 4900 > service, Nagios 3.0.3 > > Sometimes nagios don't update the status and when i try to stop nagios don't > dies, i try to kill -9 the process but don't dies, there are many defunct > process of nagios so I have to reboot the server. I haven't any log. > > Any idea ? thank you for the support bye.. > > ------------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AAlexiou at targetsite.com Thu Apr 2 21:51:03 2009 From: AAlexiou at targetsite.com (Alex Alexiou) Date: Thu, 2 Apr 2009 15:51:03 -0400 Subject: unable to use check_http with oracle applicationserver In-Reply-To: <50C11871-99E2-41E0-92C6-F196DBD1ADC0@ena.com> References: <6FC687D54B43E4448D03E1291F260673013F9C2F@tgt-exch1.blackbaud.com> <50C11871-99E2-41E0-92C6-F196DBD1ADC0@ena.com> Message-ID: <6FC687D54B43E4448D03E1291F260673013F9F0B@tgt-exch1.blackbaud.com> Yeah I saw that, which is why I opened the ticket with Oracle. When I remove the -S switch, it just reports that it gets no data back from the server. And I know for a fact it actually is using SSL. I don't suppose there's a known issue with SSLv3 and the check_http plugin? -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, April 02, 2009 12:17 PM To: Nagios Users Subject: Re: [Nagios-users] unable to use check_http with oracle applicationserver On Apr 2, 2009, at 8:28 AM, Alex Alexiou wrote: > On OAS, the error logs show this: > > [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL call to NZ function > nzos_Handshake failed with error 28858 Google does have hits on this specific error message. It's about 2.5 years old but may be the version you are using... http://kr.forums.oracle.com/forums/thread.jspa?threadID=73535&tstart=255 "I got this error in 10.1.2.0.2 and opened an SR. I was told that the problem is due to 'Internal bug:3824477'." > [Thu Apr 2 09:20:07 2009] [error] mod_ossl: SSL protocol error > [Hint: the client probably speaks HTTPS over HTTP protocol] This tells me that check_http is speaking HTTPS, but :443 on your server is not. :443 is expecting standard HTTP protocol. Probably because of the broken SSL call. -- Marc ------------------------------------------------------------------------ ------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naloi at experisdatacenters.com Thu Apr 2 22:11:05 2009 From: naloi at experisdatacenters.com (Natalie Aloi) Date: Thu, 02 Apr 2009 20:11:05 +0000 Subject: Help - minor issue (host detail vs. service detail) Message-ID: Hello, I am new to Nagios and this users list so forgive me if I am doing this incorrectly I just recently added a bunch of new hosts to our nagios config everthing seems to be working great :-) Except... when I display the Host Detail Page under the column Last Check it says NA and there is no Status Information BUT when I display the Services Detail Page the information for Last Check and Status Information is displayed for every host defined! I have looked & looked but am unsure where (which config file to check) or why this is the case this is only happening for my newly defined hosts the old hosts are each defined in their own .cfg files below are the config files I thought might be helpful... [root at nagios nagios]# more hosts.cfg define host{ host_name win2k3 alias Windows Server address 10.1.102.22 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r } define host{ host_name security_server_214 alias security Panel 1 address 65.205.26.214 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r } define host{ host_name security_server_215 alias security Panel 2 address 65.205.26.215 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r } define host{ host_name security_server_216 alias security Panel 3 address 65.205.26.216 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r } define host{ host_name security_server alias security server address 65.205.26.207 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r } define host{ host_name carrier_208 alias carrier control box rm15 address 65.205.26.208 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r } define host{ host_name carrier_209 alias carrier control box 2 rm15 address 65.205.26.209 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r } define host{ host_name carrier_210 alias carrier server address 65.205.26.210 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r } [root at nagios nagios]# [root at nagios servers]# ls -lat total 936 drwxr-xr-x 2 root root 4096 2009-04-02 15:45 . -rw-r--r-- 1 root root 2301 2009-04-02 15:45 00_services.cfg drwxr-xr-x 11 root root 4096 2009-04-02 15:27 .. -rw-r--r-- 1 root root 932438 2009-04-02 13:25 mibwalk_win2k3 -rw-r--r-- 1 root root 135 2009-04-02 12:52 00_groups.cfg -rw-r--r-- 1 root root 1125 2008-07-26 12:54 01_localhost.cfg [root at nagios servers]# more 01_localhost.cfg define host{ use linux-server host_name localhost alias localhost address 127.0.0.1 } #Extra tests... define service{ use local-service host_name localhost service_description ssh check_command check_ssh_4 } thanks! Natalie Experis Data Center LLC 8209 Valley Pike PO Box 535 Middletown,VA 22645 phone:540-869-8702 cell:240-988-3267 fax:540-869-8710 e-mail:naloi at experisdatacenters.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 2 22:21:35 2009 From: marc at ena.com (Marc Powell) Date: Thu, 2 Apr 2009 15:21:35 -0500 Subject: unable to use check_http with oracle applicationserver In-Reply-To: <6FC687D54B43E4448D03E1291F260673013F9F0B@tgt-exch1.blackbaud.com> References: <6FC687D54B43E4448D03E1291F260673013F9C2F@tgt-exch1.blackbaud.com> <50C11871-99E2-41E0-92C6-F196DBD1ADC0@ena.com> <6FC687D54B43E4448D03E1291F260673013F9F0B@tgt-exch1.blackbaud.com> Message-ID: On Apr 2, 2009, at 2:51 PM, Alex Alexiou wrote: > Yeah I saw that, which is why I opened the ticket with Oracle. When I > remove the -S switch, it just reports that it gets no data back from > the > server. And I know for a fact it actually is using SSL. I don't > suppose > there's a known issue with SSLv3 and the check_http plugin? None that I know of but the nagiosplug-users or -devel list might be a better resource. I don't see anything interesting in their tracker -- http://sourceforge.net/search/?group_artifact_id=397597&type_of_search=artifact&group_id=29880&words=ssl -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stevenshepherd at gmail.com Thu Apr 2 22:25:42 2009 From: stevenshepherd at gmail.com (Steve Shepherd) Date: Thu, 2 Apr 2009 16:25:42 -0400 Subject: NRPE Issue Message-ID: <309671b0904021325i50c4414dwe933a776cb52e2c0@mail.gmail.com> I'm trying to configure a service check via NRPE and having some difficulty. >From the monitoring server, I can successfully execute NRPE via CLI: [root at mon01 etc]# /usr/local/nagios/libexec/check_nrpe -H 10.140.122.51 -c check_prov FILE_AGE OK: /var/log/prov.log is 4 seconds old and 8033817 bytes All my hosts are in /usr/local/nagios/etc/hosts, with service_checks defined in them. I defined this NRPE check as: define service{ use generic-service host_name servername.serverdomain service_description check_prov is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_prov } within nagios.cfg, I have a commands.cfg file defined: cfg_file=/usr/local/nagios/etc/objects/commands.cfg within commands.cfg: # 'check_ccprov' command definition define command{ command_name check_prov command_line $USER1$/check_nrpe -H $HOSTADDRESS -c check_prov } Nagios is giving me an error: Checking services... Error: Service check command 'check_nrpe' specified in service 'check_ccprov' for host 'servername.serverdomain' not defined anywhere! But it is defined?! From the documentation the check_command should be "check_nrpe!$service" within service definition? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stevenshepherd at gmail.com Thu Apr 2 22:27:54 2009 From: stevenshepherd at gmail.com (Steve Shepherd) Date: Thu, 2 Apr 2009 16:27:54 -0400 Subject: NRPE Issue Message-ID: <309671b0904021327y5fc5c7b4q9a180113f023d237@mail.gmail.com> I'm trying to configure a service check via NRPE and having some difficulty. >From the monitoring server, I can successfully execute NRPE via CLI: [root at mon01 etc]# /usr/local/nagios/libexec/check_nrpe -H 10.140.122.51 -c check_prov FILE_AGE OK: /var/log/prov.log is 4 seconds old and 8033817 bytes All my hosts are in /usr/local/nagios/etc/hosts, with service_checks defined in them. I defined this NRPE check as: define service{ use generic-service host_name servername.serverdomain service_description check_prov is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_prov } within nagios.cfg, I have a commands.cfg file defined: cfg_file=/usr/local/nagios/etc/objects/commands.cfg within commands.cfg: # 'check_ccprov' command definition define command{ command_name check_prov command_line $USER1$/check_nrpe -H $HOSTADDRESS -c check_prov } Nagios is giving me an error: Checking services... Error: Service check command 'check_nrpe' specified in service 'check_ccprov' for host 'servername.serverdomain' not defined anywhere! But it is defined?! From the documentation the check_command should be "check_nrpe!$service" within service definition? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 2 22:27:44 2009 From: marc at ena.com (Marc Powell) Date: Thu, 2 Apr 2009 15:27:44 -0500 Subject: Help - minor issue (host detail vs. service detail) In-Reply-To: References: Message-ID: On Apr 2, 2009, at 3:11 PM, Natalie Aloi wrote: > Hello, > > I am new to Nagios and this users list so forgive me if I am doing > this incorrectly > > I just recently added a bunch of new hosts to our nagios config > everthing seems to be working great :-) > > Except... > when I display the Host Detail Page under the column Last Check it > says NA and there is no Status Information BUT > when I display the Services Detail Page the information for Last > Check and Status Information is displayed for every host defined! If I understand what you're saying correctly, this is OK and expected. Based on your provided configuration, the status of the host will not be checked until a service on that host fails. The logic being that if a service is up on the host, the host itself must be up so there's no need to check it; just assume it's OK. Once a service failure happens, nagios then checks the host to make sure it wasn't the cause of the service failure and it's status, and Status Information will be updated appropriately. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 2 22:45:50 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 2 Apr 2009 21:45:50 +0100 Subject: Help with installation past the first host/switch/service In-Reply-To: <49D4BFF7.2594.002B.0@adphila.org> References: <49D4BFF7.2594.002B.0@adphila.org> Message-ID: <765d77c80904021345y76cd023l42d0f837393f0945@mail.gmail.com> 2009/4/2 John BORIS : > I have nagios 3.x setup and installed on Fedora 10. Works fine but I > only have 1 server, 1 switch, 1 printer, 1 windows server setup. How do > you add more of the same type? The instructions (all that I could find) > say "Do this for the first one" but then fall silent on what to do with > the second, third etc. The same thing goes for the switches and any > other device or "host" ?Any insight would be appreciated even a good > pointer to a How-To. ?All of my searches have failed to provide any > insight into this. The 2nd, 3rd and so on are similar to the 1st except the host_name, alias and address will be different for each. A good way of getting a head start learning how to configure Nagios is to buy a book on the subject. I recommend "Nagios" by Wolfgang Barth - http://nostarch.com/nagios_2e.htm hth, Jim ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From john at stilen.com Thu Apr 2 23:03:09 2009 From: john at stilen.com (John Stile) Date: Thu, 02 Apr 2009 14:03:09 -0700 Subject: Help please - test works fine EXCEPT over NRPE??? In-Reply-To: References: <49D3EA40.8080506@gmail.com> <1238627912.13297.7.camel@genx.localdomain> <49D42A95.9080104@gmail.com> Message-ID: <1238706190.10841.136.camel@genx.localdomain> Can you add a line to your /etc/xinetd.d/nrpe to run as a different user. Something like like: user = nagios-nrpe Next create that user in /etc/passwd, /etc/shadow, and /etc/group The user doesn't need a passwd set or a login shell. Next add the user to the groups needed to see the logs, or set-up sudo for that user to see the logs? I think giving 'nobody' sudo rights isn't the best route. On Thu, 2009-04-02 at 15:52 +0800, Lei Chen wrote: > use visudo command, comment the following line: > Defaults requiretty > > and try again. > > > 2009/4/2 Andrew Davis : > > Its running under xinetd, so 'ps aux|grep nrpe' isn't showing the true user. > > However, the nrpe.cfg is set to use the nobody user. I've added the nobody > > user to sudo, and even tried it as the nagios user. What I see now from the > > server is: > > > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs > > CHECK_NRPE: Socket timeout after 10 seconds. > > > > And in the messages file on the client: > > > > Apr 1 22:54:25 atum nrpe[25661]: Running command: /usr/bin/sudo > > /usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg > > Apr 1 22:54:25 atum /usr/bin/sudo: nobody : TTY=unknown ; PWD=/ ; > > USER=root ; COMMAND=/usr/local/nagios/libexec/check_logs.pl -c > > /etc/nagios/check_logs_linux.cfg > > > > A. Davis > > Email: nccomp at gmail.com > > > > "There is no limit to what a man can accomplish > > if he doesn't care who gets the credit." - Ronald Reagan > > > > > > John Stile wrote: > > > > On the client, if you look at 'ps aux |grep nrpe' > > what user does nrpe run as? > > > > You might have to configure sudo to allow that user to run the plugin. > > > > > > On Wed, 2009-04-01 at 18:27 -0400, Andrew Davis wrote: > > > > > > I setup the > > "check_logs.pl" > > (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1752.html;d=1) > > test and its config file on some local Linux servers tested via NRPE. All > > other NRPE tests work fine (including some custom ones). The check_logs.pl > > works fine locally, but fails over NRPE. I've enabled debugging in NRPE, but > > its not telling me much more... > > > > Client local test: > > > > atum:/etc/init.d # /usr/local/nagios/libexec/check_logs.pl > > -c /etc/nagios/check_logs_linux.cfg > > faillog => OK; lastlog => OK; messages => OK; wtmp => OK; > > > > Server test to client via NRPE: > > > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs > > CHECK_NRPE: No output returned from daemon. > > > > Local log (/var/log/messages) on client when test is run from server: > > > > Apr 1 18:05:52 atum nrpe[1412]: Added > > command[check_logs]=/usr/local/nagios/libexec/check_logs.pl > > -c /etc/nagios/check_logs_linux.cfg > > Apr 1 18:05:52 atum nrpe[1412]: INFO: SSL/TLS initialized. > > All network traffic will be encrypted. > > Apr 1 18:05:52 atum nrpe[1412]: Handling the connection... > > Apr 1 18:05:52 atum nrpe[1412]: Host is asking for command > > 'check_logs' to be run... > > Apr 1 18:05:52 atum nrpe[1412]: Running > > command: /usr/local/nagios/libexec/check_logs.pl > > -c /etc/nagios/check_logs_linux.cfg > > Apr 1 18:05:52 atum nrpe[1412]: Command completed with return > > code 0 and output: > > Apr 1 18:05:52 atum nrpe[1412]: Return Code: 0, Output: > > > > The response is immediate, so its not a timeout issue. Other NRPE > > tests work fine: > > > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_load > > OK - load average: 0.00, 0.00, 0.00| > > load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; > > load15=0.000;5.000;10.000;0; > > /usr/local/nagios/libexec/check_nrpe -H atum -c check_memory > > CHECK_MEMORY OK - 1702M free | > > free=1785552896b;210236620.8:;105118310.4: > > > > And on the client: > > > > Apr 1 18:09:25 atum nrpe[1799]: INFO: SSL/TLS initialized. > > All network traffic will be encrypted. > > Apr 1 18:09:25 atum nrpe[1799]: Handling the connection... > > Apr 1 18:09:25 atum nrpe[1799]: Host is asking for command > > 'check_load' to be run... > > Apr 1 18:09:25 atum nrpe[1799]: Running > > command: /usr/local/nagios/libexec/check_load -r -w 5.0 -c > > 10.0 > > Apr 1 18:09:25 atum nrpe[1799]: Command completed with return > > code 0 and output: OK - load average: 0.00, 0.00, 0.00| > > load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; > > load15=0.000;5.000;10.000;0; > > Apr 1 18:09:25 atum nrpe[1799]: Return Code: 0, Output: OK - > > load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; > > load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; > > Apr 1 18:09:26 atum nrpe[1802]: INFO: SSL/TLS initialized. > > All network traffic will be encrypted. > > Apr 1 18:09:26 atum nrpe[1802]: Handling the connection... > > Apr 1 18:09:26 atum nrpe[1802]: Host is asking for command > > 'check_memory' to be run... > > Apr 1 18:09:26 atum nrpe[1802]: Running > > command: /usr/local/nagios/libexec/check_memory.pl -w 10% -c > > 5% > > Apr 1 18:09:26 atum nrpe[1802]: Command completed with return > > code 0 and output: CHECK_MEMORY OK - 1703M free | > > free=1786134528b;210236620.8:;105118310.4: > > Apr 1 18:09:26 atum nrpe[1802]: Return Code: 0, Output: > > CHECK_MEMORY OK - 1703M free | > > free=1786134528b;210236620.8:;105118310.4: > > > > Here's the local command in my /etc/nagios/nrpe.cfg: > > > > command[check_logs]=/usr/local/nagios/libexec/check_logs.pl > > -c /etc/nagios/check_logs_linux.cfg > > > > And on the server (when done in services.cfg, though its failing with > > manual tests too): > > > > define service { > > hostgroup_name linux-servers > > service_description LOGS > > check_command check_nrpe!check_logs > > max_check_attempts 3 > > normal_check_interval 15 > > retry_check_interval 5 > > check_period 24x7 > > notification_interval 120 > > notification_period 24x7 > > notification_options w, u, c, r, f, s > > contact_groups unixadmins > > } > > > > > > Considering it fails with a manual test (command line), I doubt its my > > services.cfg entry. It runs fine when called locally, so I'm thinking > > it could be an issue on the client in the nrpe.cfg, but if so I can't > > find it... > > > > I *do* see the obvious... namely, the other two tests that run over > > NRPE have something after "Output:" and the check_logs.pl does not. > > However, called at the command line it does... which is what stumps > > me. > > > > What would cause the test to run fine locally, but return nothing when > > called via NRPE??? (BTW: I'm running 3.x with the latest set of > > plugins and NRPE). > > > > One more thing: I know *someone* is going to ask why I don't just use > > the built-in check_log test. The answer is that check_logs.pl allows > > for multiple files and pattern matches and a "seek" file to speed > > things up. > > -- > > > > > > A. Davis > > Email: nccomp at gmail.com > > > > "There is no limit to what a man can accomplish > > if he doesn't care who gets the credit." - Ronald Reagan > > ------------------------------------------------------------------------------ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > Thanks, > Chenlei & ??++ > MSN Messenger: chnl at 163.com > > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 2 23:55:01 2009 From: marc at ena.com (Marc Powell) Date: Thu, 2 Apr 2009 16:55:01 -0500 Subject: NRPE Issue In-Reply-To: <309671b0904021325i50c4414dwe933a776cb52e2c0@mail.gmail.com> References: <309671b0904021325i50c4414dwe933a776cb52e2c0@mail.gmail.com> Message-ID: <21459694-33EE-431D-A094-A186F1B9B6C0@ena.com> On Apr 2, 2009, at 3:25 PM, Steve Shepherd wrote: > I'm trying to configure a service check via NRPE and having some > difficulty. > > From the monitoring server, I can successfully execute NRPE via CLI: > > [root at mon01 etc]# /usr/local/nagios/libexec/check_nrpe -H > 10.140.122.51 -c check_prov > FILE_AGE OK: /var/log/prov.log is 4 seconds old and 8033817 bytes > > All my hosts are in /usr/local/nagios/etc/hosts, with service_checks > defined in them. I defined this NRPE check as: > > define service{ > [snip] > check_command check_nrpe!check_prov > } > # 'check_ccprov' command definition > define command{ > command_name check_prov > command_line $USER1$/check_nrpe -H $HOSTADDRESS -c > check_prov > } > > Nagios is giving me an error: > > Checking services... > Error: Service check command 'check_nrpe' specified in service > 'check_ccprov' for host 'servername.serverdomain' not defined > anywhere! > > But it is defined?! No, you defined the command 'check_prov', not 'check_nrpe'. Nagios is correctly telling you that there is no command{} definition with a command_name of check_nrpe. > From the documentation the check_command should be "check_nrpe! > $service" within service definition? You're mixing a few things seemingly without really understanding how they go together. A service{} definition with a check_command of 'check_nrpe!check_prov' will look for a command{} definition named 'check_nrpe' and expect to pass to it a $ARG1$ of 'check_prov' -- define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS -c $ARG1$ } http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#command http://nagios.sourceforge.net/docs/3_0/macros.html - Example 2 Nagios will interpret the above command_line and execute '/path/to/ plugins/check_nrpe -H
-c check_prov. check_nrpe will contact the NRPE daemon running on
and ask it to run the command 'check_prov', which must be defined in the nrpe.cfg file on that remote host. The results are automatically returned to nagios by the check_nrpe daemon. HTH, -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Fri Apr 3 00:08:31 2009 From: nccomp at gmail.com (Andrew Davis) Date: Thu, 02 Apr 2009 18:08:31 -0400 Subject: Help please - test works fine EXCEPT over NRPE??? In-Reply-To: References: <49D3EA40.8080506@gmail.com> <1238627912.13297.7.camel@genx.localdomain> <49D42A95.9080104@gmail.com> Message-ID: <49D5375F.4060302@gmail.com> I've checked /etc/sudoers, /etc/nagios/nrpe.cfg, /etc/xinetd.d/nrpe, and the script itself (/usr/local/nagios/libexec/check_logs.pl) and none have any "tty" strings in them for me to comment out. A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan Lei Chen wrote: > use visudo command, comment the following line: > Defaults requiretty > > and try again. > > > 2009/4/2 Andrew Davis : > >> Its running under xinetd, so 'ps aux|grep nrpe' isn't showing the true user. >> However, the nrpe.cfg is set to use the nobody user. I've added the nobody >> user to sudo, and even tried it as the nagios user. What I see now from the >> server is: >> >> /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs >> CHECK_NRPE: Socket timeout after 10 seconds. >> >> And in the messages file on the client: >> >> Apr 1 22:54:25 atum nrpe[25661]: Running command: /usr/bin/sudo >> /usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg >> Apr 1 22:54:25 atum /usr/bin/sudo: nobody : TTY=unknown ; PWD=/ ; >> USER=root ; COMMAND=/usr/local/nagios/libexec/check_logs.pl -c >> /etc/nagios/check_logs_linux.cfg >> >> A. Davis >> Email: nccomp at gmail.com >> >> "There is no limit to what a man can accomplish >> if he doesn't care who gets the credit." - Ronald Reagan >> >> >> John Stile wrote: >> >> On the client, if you look at 'ps aux |grep nrpe' >> what user does nrpe run as? >> >> You might have to configure sudo to allow that user to run the plugin. >> >> >> On Wed, 2009-04-01 at 18:27 -0400, Andrew Davis wrote: >> >> >> I setup the >> "check_logs.pl" >> (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1752.html;d=1) >> test and its config file on some local Linux servers tested via NRPE. All >> other NRPE tests work fine (including some custom ones). The check_logs.pl >> works fine locally, but fails over NRPE. I've enabled debugging in NRPE, but >> its not telling me much more... >> >> Client local test: >> >> atum:/etc/init.d # /usr/local/nagios/libexec/check_logs.pl >> -c /etc/nagios/check_logs_linux.cfg >> faillog => OK; lastlog => OK; messages => OK; wtmp => OK; >> >> Server test to client via NRPE: >> >> /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs >> CHECK_NRPE: No output returned from daemon. >> >> Local log (/var/log/messages) on client when test is run from server: >> >> Apr 1 18:05:52 atum nrpe[1412]: Added >> command[check_logs]=/usr/local/nagios/libexec/check_logs.pl >> -c /etc/nagios/check_logs_linux.cfg >> Apr 1 18:05:52 atum nrpe[1412]: INFO: SSL/TLS initialized. >> All network traffic will be encrypted. >> Apr 1 18:05:52 atum nrpe[1412]: Handling the connection... >> Apr 1 18:05:52 atum nrpe[1412]: Host is asking for command >> 'check_logs' to be run... >> Apr 1 18:05:52 atum nrpe[1412]: Running >> command: /usr/local/nagios/libexec/check_logs.pl >> -c /etc/nagios/check_logs_linux.cfg >> Apr 1 18:05:52 atum nrpe[1412]: Command completed with return >> code 0 and output: >> Apr 1 18:05:52 atum nrpe[1412]: Return Code: 0, Output: >> >> The response is immediate, so its not a timeout issue. Other NRPE >> tests work fine: >> >> /usr/local/nagios/libexec/check_nrpe -H atum -c check_load >> OK - load average: 0.00, 0.00, 0.00| >> load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; >> load15=0.000;5.000;10.000;0; >> /usr/local/nagios/libexec/check_nrpe -H atum -c check_memory >> CHECK_MEMORY OK - 1702M free | >> free=1785552896b;210236620.8:;105118310.4: >> >> And on the client: >> >> Apr 1 18:09:25 atum nrpe[1799]: INFO: SSL/TLS initialized. >> All network traffic will be encrypted. >> Apr 1 18:09:25 atum nrpe[1799]: Handling the connection... >> Apr 1 18:09:25 atum nrpe[1799]: Host is asking for command >> 'check_load' to be run... >> Apr 1 18:09:25 atum nrpe[1799]: Running >> command: /usr/local/nagios/libexec/check_load -r -w 5.0 -c >> 10.0 >> Apr 1 18:09:25 atum nrpe[1799]: Command completed with return >> code 0 and output: OK - load average: 0.00, 0.00, 0.00| >> load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; >> load15=0.000;5.000;10.000;0; >> Apr 1 18:09:25 atum nrpe[1799]: Return Code: 0, Output: OK - >> load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; >> load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; >> Apr 1 18:09:26 atum nrpe[1802]: INFO: SSL/TLS initialized. >> All network traffic will be encrypted. >> Apr 1 18:09:26 atum nrpe[1802]: Handling the connection... >> Apr 1 18:09:26 atum nrpe[1802]: Host is asking for command >> 'check_memory' to be run... >> Apr 1 18:09:26 atum nrpe[1802]: Running >> command: /usr/local/nagios/libexec/check_memory.pl -w 10% -c >> 5% >> Apr 1 18:09:26 atum nrpe[1802]: Command completed with return >> code 0 and output: CHECK_MEMORY OK - 1703M free | >> free=1786134528b;210236620.8:;105118310.4: >> Apr 1 18:09:26 atum nrpe[1802]: Return Code: 0, Output: >> CHECK_MEMORY OK - 1703M free | >> free=1786134528b;210236620.8:;105118310.4: >> >> Here's the local command in my /etc/nagios/nrpe.cfg: >> >> command[check_logs]=/usr/local/nagios/libexec/check_logs.pl >> -c /etc/nagios/check_logs_linux.cfg >> >> And on the server (when done in services.cfg, though its failing with >> manual tests too): >> >> define service { >> hostgroup_name linux-servers >> service_description LOGS >> check_command check_nrpe!check_logs >> max_check_attempts 3 >> normal_check_interval 15 >> retry_check_interval 5 >> check_period 24x7 >> notification_interval 120 >> notification_period 24x7 >> notification_options w, u, c, r, f, s >> contact_groups unixadmins >> } >> >> >> Considering it fails with a manual test (command line), I doubt its my >> services.cfg entry. It runs fine when called locally, so I'm thinking >> it could be an issue on the client in the nrpe.cfg, but if so I can't >> find it... >> >> I *do* see the obvious... namely, the other two tests that run over >> NRPE have something after "Output:" and the check_logs.pl does not. >> However, called at the command line it does... which is what stumps >> me. >> >> What would cause the test to run fine locally, but return nothing when >> called via NRPE??? (BTW: I'm running 3.x with the latest set of >> plugins and NRPE). >> >> One more thing: I know *someone* is going to ask why I don't just use >> the built-in check_log test. The answer is that check_logs.pl allows >> for multiple files and pattern matches and a "seek" file to speed >> things up. >> -- >> >> >> A. Davis >> Email: nccomp at gmail.com >> >> "There is no limit to what a man can accomplish >> if he doesn't care who gets the credit." - Ronald Reagan >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: 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 mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting >> any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Fri Apr 3 00:10:13 2009 From: nccomp at gmail.com (Andrew Davis) Date: Thu, 02 Apr 2009 18:10:13 -0400 Subject: Help please - test works fine EXCEPT over NRPE??? In-Reply-To: <1238706190.10841.136.camel@genx.localdomain> References: <49D3EA40.8080506@gmail.com> <1238627912.13297.7.camel@genx.localdomain> <49D42A95.9080104@gmail.com> <1238706190.10841.136.camel@genx.localdomain> Message-ID: <49D537C5.4000702@gmail.com> I did that as a test and removed the entry later. I haven't created a nagios user for any of the NRPE clients. I'll try doing that... A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan John Stile wrote: > Can you add a line to your /etc/xinetd.d/nrpe to run as a different > user. Something like like: > > user = nagios-nrpe > > Next create that user in /etc/passwd, /etc/shadow, and /etc/group > The user doesn't need a passwd set or a login shell. > Next add the user to the groups needed to see the logs, or set-up sudo > for that user to see the logs? > > I think giving 'nobody' sudo rights isn't the best route. > > On Thu, 2009-04-02 at 15:52 +0800, Lei Chen wrote: > >> use visudo command, comment the following line: >> Defaults requiretty >> >> and try again. >> >> >> 2009/4/2 Andrew Davis : >> >>> Its running under xinetd, so 'ps aux|grep nrpe' isn't showing the true user. >>> However, the nrpe.cfg is set to use the nobody user. I've added the nobody >>> user to sudo, and even tried it as the nagios user. What I see now from the >>> server is: >>> >>> /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs >>> CHECK_NRPE: Socket timeout after 10 seconds. >>> >>> And in the messages file on the client: >>> >>> Apr 1 22:54:25 atum nrpe[25661]: Running command: /usr/bin/sudo >>> /usr/local/nagios/libexec/check_logs.pl -c /etc/nagios/check_logs_linux.cfg >>> Apr 1 22:54:25 atum /usr/bin/sudo: nobody : TTY=unknown ; PWD=/ ; >>> USER=root ; COMMAND=/usr/local/nagios/libexec/check_logs.pl -c >>> /etc/nagios/check_logs_linux.cfg >>> >>> A. Davis >>> Email: nccomp at gmail.com >>> >>> "There is no limit to what a man can accomplish >>> if he doesn't care who gets the credit." - Ronald Reagan >>> >>> >>> John Stile wrote: >>> >>> On the client, if you look at 'ps aux |grep nrpe' >>> what user does nrpe run as? >>> >>> You might have to configure sudo to allow that user to run the plugin. >>> >>> >>> On Wed, 2009-04-01 at 18:27 -0400, Andrew Davis wrote: >>> >>> >>> I setup the >>> "check_logs.pl" >>> (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1752.html;d=1) >>> test and its config file on some local Linux servers tested via NRPE. All >>> other NRPE tests work fine (including some custom ones). The check_logs.pl >>> works fine locally, but fails over NRPE. I've enabled debugging in NRPE, but >>> its not telling me much more... >>> >>> Client local test: >>> >>> atum:/etc/init.d # /usr/local/nagios/libexec/check_logs.pl >>> -c /etc/nagios/check_logs_linux.cfg >>> faillog => OK; lastlog => OK; messages => OK; wtmp => OK; >>> >>> Server test to client via NRPE: >>> >>> /usr/local/nagios/libexec/check_nrpe -H atum -c check_logs >>> CHECK_NRPE: No output returned from daemon. >>> >>> Local log (/var/log/messages) on client when test is run from server: >>> >>> Apr 1 18:05:52 atum nrpe[1412]: Added >>> command[check_logs]=/usr/local/nagios/libexec/check_logs.pl >>> -c /etc/nagios/check_logs_linux.cfg >>> Apr 1 18:05:52 atum nrpe[1412]: INFO: SSL/TLS initialized. >>> All network traffic will be encrypted. >>> Apr 1 18:05:52 atum nrpe[1412]: Handling the connection... >>> Apr 1 18:05:52 atum nrpe[1412]: Host is asking for command >>> 'check_logs' to be run... >>> Apr 1 18:05:52 atum nrpe[1412]: Running >>> command: /usr/local/nagios/libexec/check_logs.pl >>> -c /etc/nagios/check_logs_linux.cfg >>> Apr 1 18:05:52 atum nrpe[1412]: Command completed with return >>> code 0 and output: >>> Apr 1 18:05:52 atum nrpe[1412]: Return Code: 0, Output: >>> >>> The response is immediate, so its not a timeout issue. Other NRPE >>> tests work fine: >>> >>> /usr/local/nagios/libexec/check_nrpe -H atum -c check_load >>> OK - load average: 0.00, 0.00, 0.00| >>> load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; >>> load15=0.000;5.000;10.000;0; >>> /usr/local/nagios/libexec/check_nrpe -H atum -c check_memory >>> CHECK_MEMORY OK - 1702M free | >>> free=1785552896b;210236620.8:;105118310.4: >>> >>> And on the client: >>> >>> Apr 1 18:09:25 atum nrpe[1799]: INFO: SSL/TLS initialized. >>> All network traffic will be encrypted. >>> Apr 1 18:09:25 atum nrpe[1799]: Handling the connection... >>> Apr 1 18:09:25 atum nrpe[1799]: Host is asking for command >>> 'check_load' to be run... >>> Apr 1 18:09:25 atum nrpe[1799]: Running >>> command: /usr/local/nagios/libexec/check_load -r -w 5.0 -c >>> 10.0 >>> Apr 1 18:09:25 atum nrpe[1799]: Command completed with return >>> code 0 and output: OK - load average: 0.00, 0.00, 0.00| >>> load1=0.000;5.000;10.000;0; load5=0.000;5.000;10.000;0; >>> load15=0.000;5.000;10.000;0; >>> Apr 1 18:09:25 atum nrpe[1799]: Return Code: 0, Output: OK - >>> load average: 0.00, 0.00, 0.00|load1=0.000;5.000;10.000;0; >>> load5=0.000;5.000;10.000;0; load15=0.000;5.000;10.000;0; >>> Apr 1 18:09:26 atum nrpe[1802]: INFO: SSL/TLS initialized. >>> All network traffic will be encrypted. >>> Apr 1 18:09:26 atum nrpe[1802]: Handling the connection... >>> Apr 1 18:09:26 atum nrpe[1802]: Host is asking for command >>> 'check_memory' to be run... >>> Apr 1 18:09:26 atum nrpe[1802]: Running >>> command: /usr/local/nagios/libexec/check_memory.pl -w 10% -c >>> 5% >>> Apr 1 18:09:26 atum nrpe[1802]: Command completed with return >>> code 0 and output: CHECK_MEMORY OK - 1703M free | >>> free=1786134528b;210236620.8:;105118310.4: >>> Apr 1 18:09:26 atum nrpe[1802]: Return Code: 0, Output: >>> CHECK_MEMORY OK - 1703M free | >>> free=1786134528b;210236620.8:;105118310.4: >>> >>> Here's the local command in my /etc/nagios/nrpe.cfg: >>> >>> command[check_logs]=/usr/local/nagios/libexec/check_logs.pl >>> -c /etc/nagios/check_logs_linux.cfg >>> >>> And on the server (when done in services.cfg, though its failing with >>> manual tests too): >>> >>> define service { >>> hostgroup_name linux-servers >>> service_description LOGS >>> check_command check_nrpe!check_logs >>> max_check_attempts 3 >>> normal_check_interval 15 >>> retry_check_interval 5 >>> check_period 24x7 >>> notification_interval 120 >>> notification_period 24x7 >>> notification_options w, u, c, r, f, s >>> contact_groups unixadmins >>> } >>> >>> >>> Considering it fails with a manual test (command line), I doubt its my >>> services.cfg entry. It runs fine when called locally, so I'm thinking >>> it could be an issue on the client in the nrpe.cfg, but if so I can't >>> find it... >>> >>> I *do* see the obvious... namely, the other two tests that run over >>> NRPE have something after "Output:" and the check_logs.pl does not. >>> However, called at the command line it does... which is what stumps >>> me. >>> >>> What would cause the test to run fine locally, but return nothing when >>> called via NRPE??? (BTW: I'm running 3.x with the latest set of >>> plugins and NRPE). >>> >>> One more thing: I know *someone* is going to ask why I don't just use >>> the built-in check_log test. The answer is that check_logs.pl allows >>> for multiple files and pattern matches and a "seek" file to speed >>> things up. >>> -- >>> >>> >>> A. Davis >>> Email: nccomp at gmail.com >>> >>> "There is no limit to what a man can accomplish >>> if he doesn't care who gets the credit." - Ronald Reagan >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: 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 mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when reporting >>> any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >>> >>> >> >> -- >> Thanks, >> Chenlei & ??++ >> MSN Messenger: chnl at 163.com >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Fri Apr 3 00:24:12 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 2 Apr 2009 17:24:12 -0500 Subject: Help please - test works fine EXCEPT over NRPE??? In-Reply-To: <49D5375F.4060302@gmail.com> References: <49D5375F.4060302@gmail.com> Message-ID: So, you're stating that you've got other nrpe checks working fine on the clients and that nrpe is running under xinetd? If not, try running nrpe as a standalone daemon. Next step, open the log files and check_logs.pl script to the user nobody so you avoid have to run the script under a sudo call... James Moseley Andrew Davis To "nagios-users at lists.sourceforge.net 04/02/2009 05:08 " PM cc Please respond to nccomp at gmail.com Subject Re: [Nagios-users] Help please - test works fine EXCEPT over NRPE??? I've checked /etc/sudoers, /etc/nagios/nrpe.cfg, /etc/xinetd.d/nrpe, and the script itself (/usr/local/nagios/libexec/check_logs.pl) and none have any "tty" strings in them for me to comment out. A. Davis Email: nccomp at gmail.com ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From renatokrause at gmail.com Fri Apr 3 00:46:21 2009 From: renatokrause at gmail.com (renatokrause at gmail.com) Date: Thu, 2 Apr 2009 19:46:21 -0300 (BRT) Subject: Essential parameter to a big network with big problems Message-ID: Good night, Today in the afternoon launched a thread on this list with the title: Each switch in the .cfg file. Was great pressure at work and just jumping some steps that I want to correct now. My name is Renato Krause and I have 26 years. I live in Porto Alegre, Rio Grande do Sul, Brazil. My English is not very good then I would like to apologize for my words. I work for the government of the state, more specific in public coffers. My expertise is in information technology development but recently I have worked in multi-sector IT body. My current job is working on top of several faults that are occurring in the network. The state of our network is chaotic. I imagine that the first step that I take is to examine the current situation. After some research began by installing the Nagios packages .deb. Use a little and by the plugin that feeds data from the log files of the MRTG, noticed that is a great tool that can produce excellent results with the addition of your Nagios plugin for snmp. Now i using a nagios build from source like a manual. In this difficult task with two colleagues tale. Our network has about 2,000 desktop computers and covers our state has about 282,062 square kilometers. Our capital has two buildings side by side with most of the equipment. Each building has a backbone connected to a Extreme switch along with the servers. Each of the two backbone distributes the network to other switchs responsible for each floor. Unfortunately my knowledge in networks are not very detailed. I Watched: ifInError, ifOutError, ifInDiscard, ifOutDiscard addition to other services standards posted on the Nagios manual. The intention of my post is whether anyone in this list can help me with some idea about what parameters do I track to begin to identify or eliminate the problems in our network. Currently the switchs has stopped responding and often do not last seconds running when reset. These switchs the times spend hours working well. In view the current event has been somewhat random. Now thanks to a big, warm hug to all. Renato Krause -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: OpenPGP digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jboris at adphila.org Fri Apr 3 03:27:14 2009 From: jboris at adphila.org (John BORIS) Date: Thu, 02 Apr 2009 21:27:14 -0400 Subject: Help with installation past the first host/switch/service Message-ID: <49D52DB80200002B000751F3@gw1.adphila.org> Jim, Thanks. I finally figured it out with trial and error. I will track down the book. >>> Jim Avery 04/02/09 3:45 PM >>> 2009/4/2 John BORIS : > I have nagios 3.x setup and installed on Fedora 10. Works fine but I > only have 1 server, 1 switch, 1 printer, 1 windows server setup. How do > you add more of the same type? The instructions (all that I could find) > say "Do this for the first one" but then fall silent on what to do with > the second, third etc. The same thing goes for the switches and any > other device or "host" Any insight would be appreciated even a good > pointer to a How-To. All of my searches have failed to provide any > insight into this. The 2nd, 3rd and so on are similar to the 1st except the host_name, alias and address will be different for each. A good way of getting a head start learning how to configure Nagios is to buy a book on the subject. I recommend "Nagios" by Wolfgang Barth - http://nostarch.com/nagios_2e.htm hth, Jim ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Fri Apr 3 11:26:20 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Fri, 3 Apr 2009 10:26:20 +0100 Subject: Uniquely Identifiable Events in Nagios.log? In-Reply-To: <49D0AAA3.6050408@op5.se> References: <49D0AAA3.6050408@op5.se> Message-ID: > Since you almost certainly want to maintain a single process to handle > the logged lines, why not just write a tail-like program that parses > them one by one as they're written? After all, you'd hardly want to > slog through all the log-entries multiple times anyway. > With this solution, I find it hard to see a need for uniqueness. should > it happen that you still want to be able to uniquely identify lines, I > believe a hash over the last 15 or so lines should suffice, assuming > it's sufficiently strong (say, SHA1 or something). The chance of running > into a collision should be very slim, and if it happens you can just > increase the number of hashed lines. > > -- > Andreas Ericsson ? ? ? ? ? ? ? ? ? andreas.ericsson at op5.se Thanks for the advice Andreas, I'll take a look into this approach. Cheers, Chris ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From imunoz6 at xtec.cat Fri Apr 3 12:19:17 2009 From: imunoz6 at xtec.cat (Ivan) Date: Fri, 03 Apr 2009 12:19:17 +0200 Subject: Ndo database problem Message-ID: <49D5E2A5.9050001@xtec.cat> hi I've a problem with ndo database. Every time I restart nagios, the colum named "is_active" of the "nagios_objects" table turn to =0. With this value, the plugin Bussines Project can't extract anything and as a result of this, all bussines checks turned to "UNKNONW". If I turn "is_active" to =1, the plugin works fine. Any suggestion? Thanks in advance. -- Ivan Mu?oz Fuentes T?cnic Projectes Departament d'Educaci? Via Augusta, 202, Barcelona ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Fri Apr 3 15:06:06 2009 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Fri, 03 Apr 2009 09:06:06 -0400 Subject: nagios 3.0.3 on FreeBSD defunct process In-Reply-To: <04F3233F47E2714CB7431AE913E57E7703400C4D@IAD-WPRD-XCHB02.corp.verio.net> References: <04F3233F47E2714CB7431AE913E57E7703400C4D@IAD-WPRD-XCHB02.corp.verio.net> Message-ID: <49D609BE.3040503@collaborativefusion.com> Jonathan Call wrote: > That sounds very familiar to the locking/contention issue FreeBSD 7.x > has with Nagios 2.x. It has to do with how Nagios and FreeBSD handle > threading. Unfortunately I don?t have any answers on how to fix it. I?ve > had to leave my Nagios deployment on FreeBSD 6/Nagios 2 for the same > reason: anything newer would lock up due to defunct Nagios processes. Does 'ldd /usr/local/bin/nagios' show it linked against libpthread or libthr? -- Sean McAfee System Engineer ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpbuono at gmail.com Fri Apr 3 16:47:59 2009 From: gpbuono at gmail.com (Gian Paolo Buono) Date: Fri, 3 Apr 2009 16:47:59 +0200 Subject: nagios 3.0.3 on FreeBSD defunct process In-Reply-To: <49D609BE.3040503@collaborativefusion.com> References: <04F3233F47E2714CB7431AE913E57E7703400C4D@IAD-WPRD-XCHB02.corp.verio.net> <49D609BE.3040503@collaborativefusion.com> Message-ID: Hi, this is my ldd... [root at server nagios]# ldd /usr/local/bin/nagios /usr/local/bin/nagios: libm.so.5 => /lib/libm.so.5 (0x2810c000) libthr.so.3 => /lib/libthr.so.3 (0x28121000) libltdl.so.4 => /usr/local/lib/libltdl.so.4 (0x28134000) libc.so.7 => /lib/libc.so.7 (0x2813b000) I have write to freebsd news group and I have open a problem to FreeBSD...but withou result... :( thanks for the support ...bye On Fri, Apr 3, 2009 at 3:06 PM, Sean McAfee wrote: > Jonathan Call wrote: > > That sounds very familiar to the locking/contention issue FreeBSD 7.x > > has with Nagios 2.x. It has to do with how Nagios and FreeBSD handle > > threading. Unfortunately I don?t have any answers on how to fix it. I?ve > > had to leave my Nagios deployment on FreeBSD 6/Nagios 2 for the same > > reason: anything newer would lock up due to defunct Nagios processes. > > Does 'ldd /usr/local/bin/nagios' show it linked against libpthread or > libthr? > > -- > Sean McAfee > System Engineer > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pepper at cbio.mskcc.org Fri Apr 3 17:10:14 2009 From: pepper at cbio.mskcc.org (Chris Pepper) Date: Fri, 03 Apr 2009 11:10:14 -0400 Subject: Assigning Services to Hosts/Hostgroups In-Reply-To: <4471AE36-5EDA-4608-A742-BFF046898E3E@ena.com> References: <49D11BB0.3050901@cbio.mskcc.org> <4471AE36-5EDA-4608-A742-BFF046898E3E@ena.com> Message-ID: <49D626D6.3060004@cbio.mskcc.org> Marc Powell wrote: > On Mar 30, 2009, at 2:21 PM, Chris Pepper wrote: > >> We'd like to assign services to hostgroups or hosts (even host >> templates would be useful) rather than assigning them in the service. > > http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service Marc, Thanks! It seems somewhat backwards to me that I cannot specify in the service directly, and this keeps tripping me up. Regards, Chris -- Chris Pepper: ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From PBurkholder at aarp.org Fri Apr 3 19:05:47 2009 From: PBurkholder at aarp.org (Burkholder, Peter) Date: Fri, 3 Apr 2009 13:05:47 -0400 Subject: notification_options by timeperiod Message-ID: I'm sure this problem has been solved before, but it's not obvious to me the best way to do this, and my Google-fu is weak. -> How do I configure a service so I get CRITICAL notifications 24x7, but WARNING notifications only during work_hours? Thanks, Peter -- Peter Burkholder AARP | Web Strategy & Operations | 601 E Street, NW | Washington, DC 20049 email: pburkholder at aarp.org | aim: peterbtech | ph: 202-434-3530 | cell: 202-344-7129 | ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Apr 3 19:32:58 2009 From: marc at ena.com (Marc Powell) Date: Fri, 3 Apr 2009 12:32:58 -0500 Subject: notification_options by timeperiod In-Reply-To: References: Message-ID: <16A7FEF5-4AC3-4CD2-9759-299B950E1543@ena.com> On Apr 3, 2009, at 12:05 PM, Burkholder, Peter wrote: > I'm sure this problem has been solved before, but it's not obvious > to me > the best way to do this, and my Google-fu is weak. > > -> How do I configure a service so I get CRITICAL notifications 24x7, > but WARNING notifications only during work_hours? You need two different contacts. One specified to receive criticals with the 24x7 notification period and one specified to receive warnings with the workhours timeperiod. _or_ add that logic into your notification script. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Fri Apr 3 20:20:28 2009 From: perldork at webwizarddesign.com (Max) Date: Fri, 3 Apr 2009 14:20:28 -0400 Subject: notification_options by timeperiod In-Reply-To: <16A7FEF5-4AC3-4CD2-9759-299B950E1543@ena.com> References: <16A7FEF5-4AC3-4CD2-9759-299B950E1543@ena.com> Message-ID: Another way to do this is to have the service notify to a dummy contact by default that has a 'do nothing' notification command (e.g. /bin/true) and then use escalations to trigger real alerts; each escalation can then have a custom time period, contact, etc. We use this as our primary means of triggering notifications as we have a large group of shared services (service -> hostgroup -> hosts) and the hosts are in different projects with different contacts so the service can't have a real notification contact that makes sense .. by triggering all of our notifications through escalations we can then easily control which group gets notified for which (service,hostgroup, host) tuple and control time period and contact on a project by project basis. define service { ... check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 5 contact_groups no-one notifications_enabled 1 notification_options a notification_interval 5 notification_period 24x7 ... } define serviceescalation { name project-base-svc hostgroup_name project-hostgroup contact_groups project-notify-group first_notification 1 ; notify right away (1st notification) last_notification 0 ; notify until service changes state notification_interval 240 ; default to 4 hour re-notify escalation_period 24x7 register 0 } define serviceescalation { use project-base-svc service_description My custom service escalation_options c } define serviceescalation { use project-base-svc service_description My custom service escalation_options w escalation_period workhours-only } ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 4 01:08:50 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sat, 4 Apr 2009 00:08:50 +0100 Subject: Assigning Services to Hosts/Hostgroups In-Reply-To: <49D626D6.3060004@cbio.mskcc.org> References: <49D11BB0.3050901@cbio.mskcc.org> <4471AE36-5EDA-4608-A742-BFF046898E3E@ena.com> <49D626D6.3060004@cbio.mskcc.org> Message-ID: <765d77c80904031608wb71108dwd121341d507764ff@mail.gmail.com> 2009/4/3 Chris Pepper : > ? ? ? ?Thanks! It seems somewhat backwards to me that I cannot specify in the > service directly, and this keeps tripping me up. A service is always uniquely identified by both the host name and the service description. If you keep that in mind, hopefully it will make a little more sense. If you really want to specify your services in your host definitions ... You can create a hostgroup which is going to contain all hosts with the service you want to add. You can create a service associated with that hostgroup (rather than a single host). You could also create a host template which just sets the hostgroup and nothing else. You can then add the service to a host by simply applying that host template to the host. If you call the template something appropriate like "hostgroup-service-ftp" it should become quite intuitive. You can read up on how to apply mutiple templates to an object at http://nagios.sourceforge.net/docs/3_0/objectinheritance.html hth, Jim ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Sat Apr 4 07:02:39 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Fri, 3 Apr 2009 22:02:39 -0700 (PDT) Subject: Nagios Error: Could not find any host matching/Could not expand hostgroups and/or hosts Message-ID: <488453.49892.qm@web111211.mail.gq1.yahoo.com> Hi there - I am getting this error when trying to verify my Nagios configs and was wondering what it means? I newly setup Nagios to monitor some of our Linux boxes and Windows server. Linux is sending alerts and monitoring fine but the Windows I have not gotten any alerts. Below is the error I am getting when trying to verify my configuration file. servelord:/var/log# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios 2.10 Copyright (c) 1999-2007 (http://www.nagios.org) Last Modified: 10-21-2007 License: GPL Reading configuration data... Error: Could not find any host matching 'win4503' Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/windows.cfg', starting on line 36) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. I'd appreciate any assistance with this. Thank you, Dei -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhaval.thakar at networthdirect.com Sat Apr 4 06:58:01 2009 From: dhaval.thakar at networthdirect.com (Dhaval Thakar) Date: Sat, 04 Apr 2009 10:28:01 +0530 Subject: pnp4nagios - view graph for disabled service Message-ID: <2799e14155a436daceaaa1af54dfe006@192.168.102.75> Hi, I am using pnp4nagios to generate rrd graphs for all nagios hosts & services. It is working fine for active services, If I am trying to view graph for disabled / removed service, graph is disabled. e.g I am monitoring traffic for eth0 & eth1 for a month. for some reason I stopped monitoring eth1, now I need utilization graph. in this case eth1 is disabled in pnp4nagios. I am unable to view graph unless I change time for eth1.xml (NAGIOS_TIMET) Is there any option in pnp to view graph for disabled service (apart from time change in respective xml file), kindly guide me to solve this. Regards Dhaval Thakar http://dhavalthakar.blogspot.com/ ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 4 09:25:38 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sat, 4 Apr 2009 08:25:38 +0100 Subject: pnp4nagios - view graph for disabled service In-Reply-To: <2799e14155a436daceaaa1af54dfe006@192.168.102.75> References: <2799e14155a436daceaaa1af54dfe006@192.168.102.75> Message-ID: <765d77c80904040025v7abb3f91w3061be7c492851c9@mail.gmail.com> 2009/4/4 Dhaval Thakar : > Hi, > > I am using pnp4nagios to generate rrd graphs for all nagios hosts & > services. > It is working fine for active services, > > If I am trying to view graph for disabled / removed service, graph is > disabled. > e.g I am monitoring traffic for eth0 & eth1 for a month. for some reason I > stopped monitoring eth1, now I need utilization graph. > in this case eth1 is disabled in pnp4nagios. > > I am unable to view graph unless I change time for eth1.xml (NAGIOS_TIMET) > > Is there any option in pnp to view graph for disabled service (apart from > time change in respective xml file), kindly guide me to solve this. I normally view a graph which does work okay then just enter a similar url, but with the relevant strings changed to match the old graph I want to view. Another thing I noticed is that DRRAW will pick up old .rrd databases. Try Max Schubert's excellent version re-engineered to work well with PNP at http://github.com/perldork/drraw-pnp/tree/master hth, Jim ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 4 09:55:56 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sat, 4 Apr 2009 08:55:56 +0100 Subject: Nagios Error: Could not find any host matching/Could not expand hostgroups and/or hosts In-Reply-To: <488453.49892.qm@web111211.mail.gq1.yahoo.com> References: <488453.49892.qm@web111211.mail.gq1.yahoo.com> Message-ID: <765d77c80904040055u11b89e86m9b7423eeb014b711@mail.gmail.com> > Error: Could not find any host matching 'win4503' Nagios has found an object which refers to a host called win4503, but can't find a host definition for it anywhere in your configuration files. > Error: Could not expand hostgroups and/or hosts specified in service (config > file '/usr/local/nagios/etc/windows.cfg', starting on line 36) This tells you where Nagios found this problem. It looks like you have defined a service in your windows.cfg file, but have not created a host definition for host "win4503'. Have a look through the sample configuration files to see what a host definition should look like, or see http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host An excellent way to get started with Nagios is to read the book "Nagios" by Wolfgang Barth. http://nostarch.com/nagios_2e.htm hth, Jim ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pitchfork at ederdrom.de Sat Apr 4 12:11:18 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Sat, 04 Apr 2009 12:11:18 +0200 Subject: pnp4nagios - view graph for disabled service In-Reply-To: <2799e14155a436daceaaa1af54dfe006@192.168.102.75> References: <2799e14155a436daceaaa1af54dfe006@192.168.102.75> Message-ID: <49D73246.20906@ederdrom.de> Dhaval Thakar schrieb: > Hi, > > I am using pnp4nagios to generate rrd graphs for all nagios hosts & > services. > It is working fine for active services, > > If I am trying to view graph for disabled / removed service, graph is > disabled. > e.g I am monitoring traffic for eth0 & eth1 for a month. for some reason I > stopped monitoring eth1, now I need utilization graph. > in this case eth1 is disabled in pnp4nagios. > > I am unable to view graph unless I change time for eth1.xml (NAGIOS_TIMET) > > Is there any option in pnp to view graph for disabled service (apart from > time change in respective xml file), kindly guide me to solve this. Just change "$conf['max_age']" in etc/pnp/config.php Cheers Joerg ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ibloodyhatespam at gmail.com Sat Apr 4 19:20:04 2009 From: ibloodyhatespam at gmail.com (ibloodyhatespam at gmail.com) Date: Sat, 4 Apr 2009 19:20:04 +0200 Subject: winrpe check_pdm: "processor 0%"... In-Reply-To: <49D73246.20906@ederdrom.de> References: <2799e14155a436daceaaa1af54dfe006@192.168.102.75> <49D73246.20906@ederdrom.de> Message-ID: <021a01c9b549$989288f0$c9b79ad0$@com> Does anyone have experiences with winrpe's check_pdm.exe? I've just installed winrpe on an xp machine and it reports memory and disk usage just fine, but the CPU load is reported as 0.00%: System disk OK 04-04-2009 19:12:17 0d 0h 21m 13s 1/4 DISK OK - usage: C: 127365.5 MB (89.02% of total 143078.9 MB) System memory OK 04-04-2009 19:12:23 0d 0h 21m 7s 1/4 MEMORY OK - Pagefile usage: 3346 MB (68% of 4892 MB) System load OK 04-04-2009 19:05:52 0d 0h 23m 6s 1/4 PROCESSOR OK - usage 0.00% Funny thing is, running check_pdm --processor from a dos box gives the real result: "PROCESSOR OK - usage 15.49%". I'm not quite sure why it would be reporting disk and memory data to my nagios host just fine, but not processor data... -- Mike ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Mon Apr 6 05:51:53 2009 From: perldork at webwizarddesign.com (Max) Date: Sun, 5 Apr 2009 23:51:53 -0400 Subject: pnp4nagios - view graph for disabled service In-Reply-To: <765d77c80904040025v7abb3f91w3061be7c492851c9@mail.gmail.com> References: <2799e14155a436daceaaa1af54dfe006@192.168.102.75> <765d77c80904040025v7abb3f91w3061be7c492851c9@mail.gmail.com> Message-ID: Hi Jim, On Sat, Apr 4, 2009 at 3:25 AM, Jim Avery wrote: > Another thing I noticed is that DRRAW will pick up old .rrd databases. > ?Try Max Schubert's excellent version re-engineered to work well with > PNP at http://github.com/perldork/drraw-pnp/tree/master Thanks for saying that, actually, at the same time I was doing that the owner of the project added support for PNP as well; it is slightly different than my add as it shows the DS type along with the name, but a nice implementation nonetheless. He and I have talked about me helping out with the current list of bugs that is open, I am hoping to get on that ball *soon* and will also be happy to suggest patches to him for additional PNP-related features if anyone thinks of any :). - Max ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marco.tirado at gmail.com Mon Apr 6 15:18:44 2009 From: marco.tirado at gmail.com (Marco Tirado) Date: Mon, 6 Apr 2009 15:18:44 +0200 Subject: pnp4nagios memory issues Message-ID: Hello people: I have changed the configuration of the RRA files for my pnp graphs and now I seem to have some memory issues this is the error I see in the pnp4nagios graphs: "*Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 40 bytes) in /usr/local/nagios/share/pnp/include/function.inc.php on line 1411*" My rra.cfg configuration file looks like this: *# # PNP RRA config # # The estimated size of the files will be # # 2880 entries with 1 minute step = 48 houres # RRA:AVERAGE:0.5:1:2880 # # 210240 entries with 5 minute step = 2 years # RRA:AVERAGE:0.5:5:210240 RRA:MAX:0.5:1:2880 RRA:MIN:0.5:5:210240 RRA:MAX:0.5:1:2880 RRA:MIN:0.5:5:210240 *As you can see we need 5 minute precission for 2 years in our graphs, this results into 5M rrd files for one measuring point*. * I have tried changing the "memory_limit " in my php.ini file from 8M up to 256M and restarted apache every time but the problem persists. Is there a hardcoded memory limit in the */usr/local/nagios/share/pnp/include/function.inc.php *file? has anybody seen this problem before? Any help hint, recommendatoin or comment is deeply appreciated Regards Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marco.tirado at gmail.com Mon Apr 6 16:01:36 2009 From: marco.tirado at gmail.com (Marco Tirado) Date: Mon, 6 Apr 2009 16:01:36 +0200 Subject: pnp4nagios memory issues In-Reply-To: <49DA0944.4060202@eurofmc.com> References: <49DA0944.4060202@eurofmc.com> Message-ID: Hello: I have already done that, the memory_limit=256M at the moment //Marco On Mon, Apr 6, 2009 at 3:53 PM, Network Operation Center FMC Luxemburg < NOC at eurofmc.com> wrote: > Marco, > > That is a PHP problem. > > You mus increase th memory allocation in your php.ini file, i.e : > > memory_limit = 64M > > Fran?ois > > Marco Tirado wrote: > > Hello people: > > I have changed the configuration of the RRA files for my pnp graphs and now > I seem to have some memory issues this is the error I see in the pnp4nagios > graphs: > > "*Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to > allocate 40 bytes) in /usr/local/nagios/share/pnp/include/function.inc.php > on line 1411*" > > My rra.cfg configuration file looks like this: > > *# > # PNP RRA config > # > # The estimated size of the files will be > # > # 2880 entries with 1 minute step = 48 houres > # > RRA:AVERAGE:0.5:1:2880 > # > # 210240 entries with 5 minute step = 2 years > # > RRA:AVERAGE:0.5:5:210240 > > > RRA:MAX:0.5:1:2880 > RRA:MIN:0.5:5:210240 > > RRA:MAX:0.5:1:2880 > RRA:MIN:0.5:5:210240 > > *As you can see we need 5 minute precission for 2 years in our graphs, > this results into 5M rrd files for one measuring point*. > * > I have tried changing the "memory_limit " in my php.ini file from 8M up to > 256M and restarted apache every time but the problem persists. Is there a > hardcoded memory limit in the */usr/local/nagios/share/pnp/include/function.inc.php > *file? has anybody seen this problem before? > > Any help hint, recommendatoin or comment is deeply appreciated > > Regards > > Marco > > ------------------------------ > > ------------------------------------------------------------------------------ > > > ------------------------------ > > _______________________________________________ > Nagios-users mailing listNagios-users at lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > Network Operation Center > > LUXEMBURG > > E-mail: NOC at eurofmc.com > -------------------------------------------------------------------- > > *DISCLAIMER*: This e-mail contains proprietary information some or all > of which may be legally privileged. It is for the intended recipient > only. If an addressing or transmission error has misdirected this > e-mail, please notify the author by replying to this e-mail. If you > are not the intended recipient you must not use, copy, distribute, > disclose, print, or rely on this e-mail. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre at nine.ch Mon Apr 6 16:13:45 2009 From: andre at nine.ch (Andre Timmermann) Date: Mon, 06 Apr 2009 16:13:45 +0200 Subject: $NOTIFICATIONISESCALATED$ Message-ID: <1239027225.24481.15.camel@pcandre.nine.ch> Hello lIST, I want to use the macro $NOTIFICATIONISESCALATED$ in my notifications, I want to have it displayed within my jabber-notifications. Unfortunately this macro seemes not to work: Notification Type: PROBLEM Service: ssh Host: somehost State: CRITICAL for 0d 0h 0m 52s Address: 192.168.0.100 Info: Connection refused Date/Time: Mon Apr 6 16:05:19 CEST 2009 ACK by: Comment: Escalated: $ I have found the same problem on http://www.nagios-portal.org/wbb/index.php?page=Thread&postID=81210 (German forum) I have enable_environment_macros=1 in my config. Any ideas? Greetz, Andre ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From NOC at eurofmc.com Mon Apr 6 15:53:08 2009 From: NOC at eurofmc.com (Network Operation Center FMC Luxemburg) Date: Mon, 06 Apr 2009 15:53:08 +0200 Subject: pnp4nagios memory issues In-Reply-To: References: Message-ID: <49DA0944.4060202@eurofmc.com> Marco, That is a PHP problem. You mus increase th memory allocation in your php.ini file, i.e : memory_limit = 64M Fran?ois Marco Tirado wrote: > Hello people: > > I have changed the configuration of the RRA files for my pnp graphs > and now I seem to have some memory issues this is the error I see in > the pnp4nagios graphs: > > "/Fatal error: Allowed memory size of 268435456 bytes exhausted (tried > to allocate 40 bytes) in > /usr/local/nagios/share/pnp/include/function.inc.php on line 1411/" > > My rra.cfg configuration file looks like this: > > /# > # PNP RRA config > # > # The estimated size of the files will be > # > # 2880 entries with 1 minute step = 48 houres > # > RRA:AVERAGE:0.5:1:2880 > # > # 210240 entries with 5 minute step = 2 years > # > RRA:AVERAGE:0.5:5:210240 > > > RRA:MAX:0.5:1:2880 > RRA:MIN:0.5:5:210240 > > RRA:MAX:0.5:1:2880 > RRA:MIN:0.5:5:210240 > > /As you can see we need 5 minute precission for 2 years in our graphs, > this results into 5M rrd files for one measuring point/. > / > I have tried changing the "memory_limit " in my php.ini file from 8M > up to 256M and restarted apache every time but the problem persists. > Is there a hardcoded memory limit in the > //usr/local/nagios/share/pnp/include/function.inc.php /file? has > anybody seen this problem before? > > Any help hint, recommendatoin or comment is deeply appreciated > > Regards > > Marco > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Network Operation Center LUXEMBURG E-mail: NOC at eurofmc.com -------------------------------------------------------------------- _DISCLAIMER_: This e-mail contains proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, copy, distribute, disclose, print, or rely on this e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 6 16:40:24 2009 From: marc at ena.com (Marc Powell) Date: Mon, 6 Apr 2009 09:40:24 -0500 Subject: $NOTIFICATIONISESCALATED$ In-Reply-To: <1239027225.24481.15.camel@pcandre.nine.ch> References: <1239027225.24481.15.camel@pcandre.nine.ch> Message-ID: <8B7FA978-58E1-4576-8E32-7478ECCAE5C2@ena.com> On Apr 6, 2009, at 9:13 AM, Andre Timmermann wrote: > Hello lIST, > > I want to use the macro $NOTIFICATIONISESCALATED$ in my > notifications, I > want to have it displayed within my jabber-notifications. > > Unfortunately this macro seemes not to work: > > Notification Type: PROBLEM > Service: ssh > Host: somehost > State: CRITICAL for 0d 0h 0m 52s > Address: 192.168.0.100 > Info: Connection refused > Date/Time: Mon Apr 6 16:05:19 CEST 2009 > ACK by: > Comment: > Escalated: $ This may indicate you have a typo in the macro name. Can you post the full notification command you are using? What version of nagios are you using? This macro is only valid for nagios-3.x. > I have enable_environment_macros=1 in my config. Is your notification script trying to access the value of the macro through environment variables? This would be unusual and would point to a different direction to look other than simple macro substitution. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glowe at sbcglobal.net Mon Apr 6 17:31:10 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 6 Apr 2009 08:31:10 -0700 (PDT) Subject: Notifications Message-ID: <184718.30746.qm@web81801.mail.mud.yahoo.com> Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 6 17:49:17 2009 From: marc at ena.com (Marc Powell) Date: Mon, 6 Apr 2009 10:49:17 -0500 Subject: Notifications In-Reply-To: <184718.30746.qm@web81801.mail.mud.yahoo.com> References: <184718.30746.qm@web81801.mail.mud.yahoo.com> Message-ID: <32031E97-1530-41F1-A6AA-C7232F340E17@ena.com> On Apr 6, 2009, at 10:31 AM, Grant Lowe wrote: > > Hi All, > > I've had nagios 3.0.3 on a linux box, going for several months now, > checking swap, disk space, number of processes, and several other > services on about 8 UNIX hosts. Last week, a fellow admin decided > he wanted to add a bunch of hosts. He added the hosts, but only > added the check_ping service for the hosts. But for some reason, > nagios is doing the additional aforementioned services, not just > ping, so now I have all these errors. My services file looks like > this: > define service{ > use generic-service > host_name > server1,server2,server3,server4,server5,server6,server7,server8 > hostgroup_name solaris-servers > service_description Secure Shell > check_command check_ssh > max_check_attempts 5 > notification_interval 60 > check_period 24x7 > notification_options w,u,c,r,f,s > contacts glowe > } > > Any ideas on why all the extra monitoring? I see that you're applying service monitoring to hostgroups in addition to specific hosts. Is it possible that these new servers are in the 'solaris-servers' hostgroup or a different hostgroup that receives the additional monitoring? -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eparker at scoe.org Mon Apr 6 17:46:38 2009 From: eparker at scoe.org (Eric Parker) Date: Mon, 6 Apr 2009 08:46:38 -0700 (PDT) Subject: Notifications In-Reply-To: <184718.30746.qm@web81801.mail.mud.yahoo.com> References: <184718.30746.qm@web81801.mail.mud.yahoo.com> Message-ID: <217685234.3963411239032798377.JavaMail.root@zimbra.scoe.org> Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric ----- Original Message ----- From: "Grant Lowe" To: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------ Notice to Recipient: Information contained in this message may be privileged, confidential and protected from disclosure. If you are not an intended recipient, it is strictly prohibited to use, disseminate or copy this communication. If you have received this in error, please reply to the sender and then delete the message. Thank you. ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giorgio at zarrelli.org Mon Apr 6 18:04:06 2009 From: giorgio at zarrelli.org (Giorgio Zarrelli) Date: Mon, 06 Apr 2009 18:04:06 +0200 Subject: Notifications In-Reply-To: <184718.30746.qm@web81801.mail.mud.yahoo.com> References: <184718.30746.qm@web81801.mail.mud.yahoo.com> Message-ID: <20090406.8UZ.38932700@www.zarrelli.org> Grant Lowe (glowe at sbcglobal.net) scritto: > hostgroup_name solaris-servers > hostgroup_name solaris-servers > Any ideas on why all the extra monitoring? Check wether the extra monitors are configured to hostgroup level. If you put a host in solaris-server group and you have, let's say, disk check defined at the hostgroup level, all the hosts in that hostgroup will have the disk check applied. Giorgio ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glowe at sbcglobal.net Mon Apr 6 18:24:47 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 6 Apr 2009 09:24:47 -0700 (PDT) Subject: Notifications References: <217685234.3963411239032798377.JavaMail.root@zimbra.scoe.org> Message-ID: <224430.8052.qm@web81806.mail.mud.yahoo.com> I just checked. All added hosts are members of the hostgroup solaris-servers. Thanks Eric. ----- Original Message ---- From: Eric Parker To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:46:38 AM Subject: Re: [Nagios-users] Notifications Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric ----- Original Message ----- From: "Grant Lowe" To: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------ Notice to Recipient: Information contained in this message may be privileged, confidential and protected from disclosure. If you are not an intended recipient, it is strictly prohibited to use, disseminate or copy this communication. If you have received this in error, please reply to the sender and then delete the message. Thank you. ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glowe at sbcglobal.net Mon Apr 6 18:39:16 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 6 Apr 2009 09:39:16 -0700 (PDT) Subject: Notifications References: <184718.30746.qm@web81801.mail.mud.yahoo.com> <32031E97-1530-41F1-A6AA-C7232F340E17@ena.com> Message-ID: <671205.58601.qm@web81807.mail.mud.yahoo.com> Yes, that seems like the problem. But the way nagios is setup, I don't think I understand its setup. I see in my templates a host definition that has these lines: name solaris-servers hostgroups solaris-server In the hosts.cfg, services.cfg, and hostgroups file, this definition: hostgroup_name solaris-servers alias solaris-servers It looks the problem is there. But I'm not sure why. Please help me out. Thanks, Marc. ----- Original Message ---- From: Marc Powell To: nagios-users Mail-list Sent: Monday, April 6, 2009 8:49:17 AM Subject: Re: [Nagios-users] Notifications On Apr 6, 2009, at 10:31 AM, Grant Lowe wrote: > > Hi All, > > I've had nagios 3.0.3 on a linux box, going for several months now, > checking swap, disk space, number of processes, and several other > services on about 8 UNIX hosts. Last week, a fellow admin decided > he wanted to add a bunch of hosts. He added the hosts, but only > added the check_ping service for the hosts. But for some reason, > nagios is doing the additional aforementioned services, not just > ping, so now I have all these errors. My services file looks like > this: > define service{ > use generic-service > host_name > server1,server2,server3,server4,server5,server6,server7,server8 > hostgroup_name solaris-servers > service_description Secure Shell > check_command check_ssh > max_check_attempts 5 > notification_interval 60 > check_period 24x7 > notification_options w,u,c,r,f,s > contacts glowe > } > > Any ideas on why all the extra monitoring? I see that you're applying service monitoring to hostgroups in addition to specific hosts. Is it possible that these new servers are in the 'solaris-servers' hostgroup or a different hostgroup that receives the additional monitoring? -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Mon Apr 6 18:37:34 2009 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 6 Apr 2009 08:37:34 -0800 Subject: Children "unreachable" on soft down? In-Reply-To: <5371864E-D51B-4B70-BDEE-E687037FF8EE@frontierflying.com> References: <758D039D-80C6-49D5-B0F4-03CB8308FADC@frontierflying.com> <49D1DDE6.9020605@op5.se> <5371864E-D51B-4B70-BDEE-E687037FF8EE@frontierflying.com> Message-ID: <28E03BE1-608A-4182-874A-74218E3AAB6D@frontierflying.com> So does anyone have any ideas as to how I can resolve this situation? It continues to be an annoyance. Thanks. ----------------------------------------------- Israel Brewster Computer Support Technician II Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- On Mar 31, 2009, at 8:17 AM, Israel Brewster wrote: > On Mar 31, 2009, at 1:09 AM, Andreas Ericsson wrote: > >> Israel Brewster wrote: >>> Does nagios (3.0.3) mark a child host as unreachable when its >>> parent enters a soft down state? I am finding myself getting >>> repeated down messages for a host (which is, in fact, down), even >>> though I have notifications set to only send a single message. >>> Looking at the logs, it would appear that what is happening is >>> that the host is flipping between "down" (which notifies me) and >>> "unreachable" (which does not). The parent host, however, never >>> enters a hard down state. Looking at the logs, what I see is that >>> one ICMP check fails, throwing the host into a soft down state, >>> but the next one works just fine, bringing it back to an up state. >>> The logic works fine for the parent host- since it never hits a >>> hard down state, it doesn't alert, and everyone is happy. But >>> apparently with the child host every time this happens, it >>> switches from critical to unreachable and back again, triggering a >>> notification. Is there any way to keep this from happening? Thanks. >> >> Doesn't flapping detection do what you want? You'd get a few >> notifications, but they'd stop after the 3rd flip or something, I >> think. > > Flapping detection helps, but doesn't solve. For one thing, as you > mentioned, you still get at least a couple of notifications before it > kicks in. For another thing, this happens with a frequency of > something like once an hour or so (not consistently), so the host will > flip from down to unreachable and back again, triggering an e-mail, > perhaps do it a second time, and then it will sit in the correct > "down" state for the next 50 checks or so (thus canceling any flapping > detection) before repeating the process. It's not like I'm getting > messages every five minutes or anything, it's just that I'm getting > repeated down messages every hour or two for hosts that have been down > and haven't actually changed state. > > I could, of course, schedule down time, except that I want to be > notified if/when the people in the remote station get their act > together and get the machine(s) in question back online. Also that is > only partially effective for machines that have been sent in for > repair, because I don't really know when the scheduled down time will > be over. They are down, I know they are down, I just don't want to be > told about it every few hours :-) > > ----------------------------------------------- > Israel Brewster > Computer Support Technician II > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- > >> >> >> -- >> Andreas Ericsson andreas.ericsson at op5.se >> OP5 AB www.op5.se >> Tel: +46 8-230225 Fax: +46 8-230231 >> >> Considering the successes of the wars on alcohol, poverty, drugs and >> terror, I think we should give some serious thought to declaring war >> on peace. > > > ------------------------------------------------------------------------------ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 6 18:49:41 2009 From: marc at ena.com (Marc Powell) Date: Mon, 6 Apr 2009 11:49:41 -0500 Subject: Notifications In-Reply-To: <671205.58601.qm@web81807.mail.mud.yahoo.com> References: <184718.30746.qm@web81801.mail.mud.yahoo.com> <32031E97-1530-41F1-A6AA-C7232F340E17@ena.com> <671205.58601.qm@web81807.mail.mud.yahoo.com> Message-ID: On Apr 6, 2009, at 11:39 AM, Grant Lowe wrote: > > Yes, that seems like the problem. But the way nagios is setup, I > don't think I understand its setup. I see in my templates a host > definition that has these lines: > > name solaris-servers > hostgroups solaris-server Any host using this template is added to the group 'solaris-servers'. > In the hosts.cfg, services.cfg, and hostgroups file, this definition: > > hostgroup_name solaris-servers > alias solaris-servers For what definitions? This would only make sense for hostgroup definitions and is just creating the hostgroup container used by the host template above. > It looks the problem is there. But I'm not sure why. Please help > me out. Thanks, Marc. >> define service{ >> use generic-service >> host_name >> server1,server2,server3,server4,server5,server6,server7,server8 >> hostgroup_name solaris-servers >> service_description Secure Shell >> check_command check_ssh >> max_check_attempts 5 >> notification_interval 60 >> check_period 24x7 >> notification_options w,u,c,r,f,s >> contacts glowe >> } It's actually a combination. The service definition above says it should be applied to specific hosts (host_name line) *and* all hosts in the hostgroup 'solaris-servers' (hostgroup_name). Since the hosts are put into the solaris-servers hostgroup courtesy of their use of the template that says they should be, this service is applied to them. If you don't want to apply this service to those devices, remove them from the solaris-servers hostgroup _or_ remove the hostgroup_name line in the service definition and specify the individual host_names that the service _should_ apply to. -- Marc ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sergio.ariel at iris.uh.cu Mon Apr 6 18:54:02 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Mon, 06 Apr 2009 12:54:02 -0400 Subject: more than a variable in a pnp4nagios graph Message-ID: <49DA33AA.8070406@iris.uh.cu> I'm using pnp4nagios and now I need to graph more than a variable in the same graph. Somebody does know how to obtain that? -- Sergio Ariel de la Campa Saiz Administrador Red UH ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eparker at scoe.org Mon Apr 6 19:01:43 2009 From: eparker at scoe.org (Eric Parker) Date: Mon, 6 Apr 2009 10:01:43 -0700 (PDT) Subject: Notifications In-Reply-To: <97179710.3973911239037184461.JavaMail.root@zimbra.scoe.org> References: <97179710.3973911239037184461.JavaMail.root@zimbra.scoe.org> Message-ID: <1618657787.3974401239037303690.JavaMail.root@zimbra.scoe.org> ditto with what Marc said. you can do something like this or remove hosts from hostgoup and specifically add the to the check_ping service check: # perform service check on all hosts in hostgroup define service{ use generic-service hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } # perform service check on hostgroup but not on the new servers define service{ use generic-service host_name !server9,!server10,!server11,!server12,!server13,!server14,!server15,!server16,!server17,!server18 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } ----- Original Message ----- From: "Grant Lowe" To: "Eric Parker" Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 9:24:47 AM GMT -08:00 US/Canada Pacific Subject: Re: [Nagios-users] Notifications I just checked. All added hosts are members of the hostgroup solaris-servers. Thanks Eric. ----- Original Message ---- From: Eric Parker To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:46:38 AM Subject: Re: [Nagios-users] Notifications Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric ----- Original Message ----- From: "Grant Lowe" To: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts. Last week, a fellow admin decided he wanted to add a bunch of hosts. He added the hosts, but only added the check_ping service for the hosts. But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors. My services file looks like this: define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name solaris-servers service_description Ping check_command check_ping!200.0,20%!600.0,60% max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } define service{ use generic-service host_name server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name solaris-servers service_description Secure Shell check_command check_ssh max_check_attempts 5 notification_interval 60 check_period 24x7 notification_options w,u,c,r,f,s contacts glowe } Any ideas on why all the extra monitoring? ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------ Notice to Recipient: Information contained in this message may be privileged, confidential and protected from disclosure. If you are not an intended recipient, it is strictly prohibited to use, disseminate or copy this communication. If you have received this in error, please reply to the sender and then delete the message. Thank you. ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at frozenatom.com Mon Apr 6 18:43:49 2009 From: matt at frozenatom.com (Matt Nelson) Date: Mon, 6 Apr 2009 10:43:49 -0600 Subject: check_command instant feedback In-Reply-To: <148f6bb30904020721m1d3816f8u8af2db57af03b183@mail.gmail.com> References: <148f6bb30904020721m1d3816f8u8af2db57af03b183@mail.gmail.com> Message-ID: <148f6bb30904060943u162a6eat54691ddb9ce601f3@mail.gmail.com> Hello, I'd like to be able to run a check_command from the command line and have it return feedback immediately (versus a forced-check from the webui). Is this possible? The reason for this is that I'm trying to throw together a simple web interface and when the user clicks 'recheck' a window will pop up with the results of that particular service's check_command. I thought about parsing the commands.cfg file for the command and then looping through the $ARGX$ fields and plugging in the correct values - but this seems extremely complicated (what with dealing with commands with variable-length fields, user macros, etc.). Any help is appreciated, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at frozenatom.com Mon Apr 6 18:45:42 2009 From: matt at frozenatom.com (Matt Nelson) Date: Mon, 6 Apr 2009 10:45:42 -0600 Subject: Change bcc to cc for notifications Message-ID: <148f6bb30904060945k160ca8f8pefcf6003439c3dbd@mail.gmail.com> Is there a way to change the notifications that go out to multiple contact groups to cc all the groups? It looks like it is either bcc'ing the groups or sending individual notifications to each group. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 6 19:38:27 2009 From: marc at ena.com (Marc Powell) Date: Mon, 6 Apr 2009 12:38:27 -0500 Subject: Change bcc to cc for notifications In-Reply-To: <148f6bb30904060945k160ca8f8pefcf6003439c3dbd@mail.gmail.com> References: <148f6bb30904060945k160ca8f8pefcf6003439c3dbd@mail.gmail.com> Message-ID: <42A2A504-51AA-4165-99C8-E2FA189361F6@ena.com> On Apr 6, 2009, at 11:45 AM, Matt Nelson wrote: > Is there a way to change the notifications that go out to multiple > contact groups to cc all the groups? It looks like it is either > bcc'ing the groups or sending individual notifications to each group. Nagios is evaluating and sending notifications on a per-contact basis. It fully processes each contact, including sending the notification, before moving on to the next. This is done because each contact can have different contact options and time periods. Notification grouping would require more complex logic just to fulfill a niche need. There's nothing built in to nagios to allow for the notification grouping that you want nor are there add on projects that provide it that I know of. Such an add-on would need to receive notifications, group them by problem then somehow determine that nagios has sent to all the recipients (a specific interval after first notification) and then create the real notification. Nagios Notification Daemon (http://nlchiintmg.com/nan.php) is sort-of like what you need, but not it. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 6 19:45:53 2009 From: marc at ena.com (Marc Powell) Date: Mon, 6 Apr 2009 12:45:53 -0500 Subject: check_command instant feedback In-Reply-To: <148f6bb30904060943u162a6eat54691ddb9ce601f3@mail.gmail.com> References: <148f6bb30904020721m1d3816f8u8af2db57af03b183@mail.gmail.com> <148f6bb30904060943u162a6eat54691ddb9ce601f3@mail.gmail.com> Message-ID: <1672D136-50AA-4773-B6E5-E5FE778EA3B5@ena.com> On Apr 6, 2009, at 11:43 AM, Matt Nelson wrote: > Hello, I'd like to be able to run a check_command from the command > line and have it return feedback immediately (versus a forced-check > from the webui). Is this possible? Given time and a sufficiently motivated programmer, anything is possible. Reasonably so? Probably not. > The reason for this is that I'm trying to throw together a simple > web interface and when the user clicks 'recheck' a window will pop > up with the results of that particular service's check_command. > > I thought about parsing the commands.cfg file for the command and > then looping through the $ARGX$ fields and plugging in the correct > values - but this seems extremely complicated (what with dealing > with commands with variable-length fields, user macros, etc.). Yup, this is about what you'd need to do. I've never seen anything that would spit out the command that nagios would execute, fully expanded. I could see that being interesting in the host/service info though. If someone were to code that addition to the CGI's (if it's possible), that would get you about 1/2 way there. Another point to consider is that your checks would be run as the httpd user presumably, which may or may not be able to run all the commands that nagios can. For example, check_by_ssh checks would be problematic... -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at frozenatom.com Mon Apr 6 19:59:40 2009 From: matt at frozenatom.com (Matt Nelson) Date: Mon, 6 Apr 2009 11:59:40 -0600 Subject: Change bcc to cc for notifications In-Reply-To: <42A2A504-51AA-4165-99C8-E2FA189361F6@ena.com> References: <148f6bb30904060945k160ca8f8pefcf6003439c3dbd@mail.gmail.com> <42A2A504-51AA-4165-99C8-E2FA189361F6@ena.com> Message-ID: <148f6bb30904061059y59ec5cc5j7891bac079a769ad@mail.gmail.com> Thanks Marc. After writing this and digging a bit, and seeing your reply this makes sense. We are moving from sitescope and are used to using the "reply to all" on the email to notify people of what is going on. On Mon, Apr 6, 2009 at 11:38 AM, Marc Powell wrote: > > On Apr 6, 2009, at 11:45 AM, Matt Nelson wrote: > > > Is there a way to change the notifications that go out to multiple > > contact groups to cc all the groups? It looks like it is either > > bcc'ing the groups or sending individual notifications to each group. > > Nagios is evaluating and sending notifications on a per-contact basis. > It fully processes each contact, including sending the notification, > before moving on to the next. This is done because each contact can > have different contact options and time periods. Notification grouping > would require more complex logic just to fulfill a niche need. > > There's nothing built in to nagios to allow for the notification > grouping that you want nor are there add on projects that provide it > that I know of. Such an add-on would need to receive notifications, > group them by problem then somehow determine that nagios has sent to > all the recipients (a specific interval after first notification) and > then create the real notification. > > Nagios Notification Daemon (http://nlchiintmg.com/nan.php) is sort-of > like what you need, but not it. > > -- > Marc > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jakepaulus at gmail.com Mon Apr 6 19:59:53 2009 From: jakepaulus at gmail.com (Jake) Date: Mon, 6 Apr 2009 13:59:53 -0400 Subject: Change bcc to cc for notifications In-Reply-To: <42A2A504-51AA-4165-99C8-E2FA189361F6@ena.com> References: <148f6bb30904060945k160ca8f8pefcf6003439c3dbd@mail.gmail.com> <42A2A504-51AA-4165-99C8-E2FA189361F6@ena.com> Message-ID: <884bae280904061059j1381cca0o3ee9340e84b4ee9d@mail.gmail.com> We have this need as well and decided to make a fake contact in each contact group with a distribution list as the email address. The purpose here is that folks can reply-all with problem notes as resolution progresses beyond the initial ack. On 4/6/09, Marc Powell wrote: > > On Apr 6, 2009, at 11:45 AM, Matt Nelson wrote: > >> Is there a way to change the notifications that go out to multiple >> contact groups to cc all the groups? It looks like it is either >> bcc'ing the groups or sending individual notifications to each group. > > Nagios is evaluating and sending notifications on a per-contact basis. > It fully processes each contact, including sending the notification, > before moving on to the next. This is done because each contact can > have different contact options and time periods. Notification grouping > would require more complex logic just to fulfill a niche need. > > There's nothing built in to nagios to allow for the notification > grouping that you want nor are there add on projects that provide it > that I know of. Such an add-on would need to receive notifications, > group them by problem then somehow determine that nagios has sent to > all the recipients (a specific interval after first notification) and > then create the real notification. > > Nagios Notification Daemon (http://nlchiintmg.com/nan.php) is sort-of > like what you need, but not it. > > -- > Marc > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Sent from my mobile device Jake Paulus JakePaulus at gmail.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Mon Apr 6 20:17:52 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Mon, 6 Apr 2009 11:17:52 -0700 (PDT) Subject: Nagios: Adding Windows Servers to monitor In-Reply-To: <765d77c80904040055u11b89e86m9b7423eeb014b711@mail.gmail.com> References: <488453.49892.qm@web111211.mail.gq1.yahoo.com> <765d77c80904040055u11b89e86m9b7423eeb014b711@mail.gmail.com> Message-ID: <873928.40915.qm@web111203.mail.gq1.yahoo.com> Thanks for the detailed explanation, Jim. So far I'm not getting a successful rate on adding my Windows server in Nagios. Followed detailed instructions in Nagios but still getting errors. http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html Is there an easy way to add the Windows servers in Nagios or other documentation that I can follow? Please kindly advise, need expertise assistance. Thank you! ________________________________ From: Jim Avery To: Dei Bertine Cc: nagios-users at lists.sourceforge.net Sent: Saturday, April 4, 2009 12:55:56 AM Subject: Re: [Nagios-users] Nagios Error: Could not find any host matching/Could not expand hostgroups and/or hosts > Error: Could not find any host matching 'win4503' Nagios has found an object which refers to a host called win4503, but can't find a host definition for it anywhere in your configuration files. > Error: Could not expand hostgroups and/or hosts specified in service (config > file '/usr/local/nagios/etc/windows.cfg', starting on line 36) This tells you where Nagios found this problem. It looks like you have defined a service in your windows.cfg file, but have not created a host definition for host "win4503'. Have a look through the sample configuration files to see what a host definition should look like, or see http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host An excellent way to get started with Nagios is to read the book "Nagios" by Wolfgang Barth. http://nostarch.com/nagios_2e.htm hth, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at frozenatom.com Mon Apr 6 20:33:18 2009 From: matt at frozenatom.com (Matt Nelson) Date: Mon, 6 Apr 2009 12:33:18 -0600 Subject: Change bcc to cc for notifications In-Reply-To: <884bae280904061059j1381cca0o3ee9340e84b4ee9d@mail.gmail.com> References: <148f6bb30904060945k160ca8f8pefcf6003439c3dbd@mail.gmail.com> <42A2A504-51AA-4165-99C8-E2FA189361F6@ena.com> <884bae280904061059j1381cca0o3ee9340e84b4ee9d@mail.gmail.com> Message-ID: <148f6bb30904061133v2a8dc426r37015e650431f00a@mail.gmail.com> On Mon, Apr 6, 2009 at 11:59 AM, Jake wrote: > We have this need as well and decided to make a fake contact in each > contact group with a distribution list as the email address. The > purpose here is that folks can reply-all with problem notes as > resolution progresses beyond the initial ack. > > On 4/6/09, Marc Powell wrote: > > > > On Apr 6, 2009, at 11:45 AM, Matt Nelson wrote: > > > >> Is there a way to change the notifications that go out to multiple > >> contact groups to cc all the groups? It looks like it is either > >> bcc'ing the groups or sending individual notifications to each group. > > > > Nagios is evaluating and sending notifications on a per-contact basis. > > It fully processes each contact, including sending the notification, > > before moving on to the next. This is done because each contact can > > have different contact options and time periods. Notification grouping > > would require more complex logic just to fulfill a niche need. > > > > There's nothing built in to nagios to allow for the notification > > grouping that you want nor are there add on projects that provide it > > that I know of. Such an add-on would need to receive notifications, > > group them by problem then somehow determine that nagios has sent to > > all the recipients (a specific interval after first notification) and > > then create the real notification. > > > > Nagios Notification Daemon (http://nlchiintmg.com/nan.php) is sort-of > > like what you need, but not it. > > > > -- > > Marc > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > Sent from my mobile device > > Jake Paulus > JakePaulus at gmail.com > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > I've thought about doing that but have not done it yet because we have so many different combinations of notification groups. I have thought of adding a "MailTo" in the email that would have the list of contacts that I could build from, but that only lists groups that the recipient is part of. I have also thought of writing something like nan, that would gather notifications and send every say 10-15 seconds anything that is older then say 20 seconds, and group the email by body and subject, and lump the contacts into the Cc field... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Mon Apr 6 20:55:33 2009 From: israel at frontierflying.com (Israel Brewster) Date: Mon, 6 Apr 2009 10:55:33 -0800 Subject: Children "unreachable" on soft down? In-Reply-To: <20090406.gv5.87263900@www.zarrelli.org> References: <20090406.gv5.87263900@www.zarrelli.org> Message-ID: <2DCA7EEA-36D0-4010-BB84-CDBF1B7CAB3C@frontierflying.com> On Apr 6, 2009, at 9:03 AM, Giorgio Zarrelli wrote: > Hi, > > I've not quite clear what happens to you, Thanks for the response. For clarification, the exact sequence of events is as follows: 1) The link between the nagios box and one of our routers, which we will refer to as the parent host glitches for 30 seconds or so. Due to the nature of the link (satellite connection) this is semi-expected, and happens a couple of times a day. 2) Nagios catches this glitch in one of it's regularly scheduled host checks, and puts the parent host into a soft down state. Again, normal and expected - even good. 3) At the same time, Nagios puts the children of the parent host into an "unreachable" state. Makes sense, at least, but leads to the issue 4) The parent host is now in recheck mode (as it is only in a soft down state and has three rechecks set), so it checks again a minute later. This check succeeds, as the outage was transitory. The parent host is put back into an "UP" state. As it never was in a hard "down" state, no notification is sent. This is good. 5) since the parent is now up, the child host now is changed to a (soft I think) "down" state. 6) check continue on a normal schedule. As the link does not glitch again for several hours, parent remains up and child remains (correctly) down. Three checks later, child enters a hard "down" state (since it was unreachable and only just switched back to down). Down notification is sent for child. 7) Everything remains good for the next several hours until the link glitches again. Repeat from step one. The notification in step 6 is the problem here - the child host was down before the glitch, the child host is still down after. But because the child host was temporarily put in an unreachable state, we get notified again that it is down, resulting in a string of "DOWN" messages with no up or real change in status. > but one thing I have in mind is try > > soft_state_dependencies=0 > > Besides that, the problems seems to be in the roots of the check. > It's not > healty to have a ping check failing every 2 strikes. Try to change > the host > alive check, using a ssh check instead. The check is not failing every 2 strikes. It's failing once, briefly, every few hours - just barely long enough to make one check fail and throw the parent host into a soft down state. The first recheck (one minute later) works fine, bringing the parent back to an up state. The next several hundred or more checks also work fine (as the problem was transitory and brief). For this reason, changing the check wouldn't help - for the duration of that single check, the host really is down (or more precisely, unreachable, as it is a link issue), and any check I used would say so. > Another approach, not so useful, would be to increase the timeout > for the ping > (-W) so it will have less chances to fail. except that it's not a timeout issue. It is a very real, albeit brief (around 30 seconds or so), outage. Not long enough or frequent enough to really impact productivity or anything, but long enough for nagios to catch it (for a single check). ----------------------------------------------- Israel Brewster Computer Support Technician II Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > Giorgio > > Israel Brewster (israel at frontierflying.com) scritto: >> >> So does anyone have any ideas as to how I can resolve this situation? >> It continues to be an annoyance. Thanks. >> >> ----------------------------------------------- >> Israel Brewster >> Computer Support Technician II >> Frontier Flying Service Inc. >> 5245 Airport Industrial Rd >> Fairbanks, AK 99709 >> (907) 450-7250 x293 >> ----------------------------------------------- >> >> >> >> On Mar 31, 2009, at 8:17 AM, Israel Brewster wrote: >> >>> On Mar 31, 2009, at 1:09 AM, Andreas Ericsson wrote: >>> >>>> Israel Brewster wrote: >>>>> Does nagios (3.0.3) mark a child host as unreachable when its >>>>> parent enters a soft down state? I am finding myself getting >>>>> repeated down messages for a host (which is, in fact, down), even >>>>> though I have notifications set to only send a single message. >>>>> Looking at the logs, it would appear that what is happening is >>>>> that the host is flipping between "down" (which notifies me) and >>>>> "unreachable" (which does not). The parent host, however, never >>>>> enters a hard down state. Looking at the logs, what I see is that >>>>> one ICMP check fails, throwing the host into a soft down state, >>>>> but the next one works just fine, bringing it back to an up >>>>> state. >>>>> The logic works fine for the parent host- since it never hits a >>>>> hard down state, it doesn't alert, and everyone is happy. But >>>>> apparently with the child host every time this happens, it >>>>> switches from critical to unreachable and back again, >>>>> triggering a >>>>> notification. Is there any way to keep this from happening? >>>>> Thanks. >>>> >>>> Doesn't flapping detection do what you want? You'd get a few >>>> notifications, but they'd stop after the 3rd flip or something, I >>>> think. >>> >>> Flapping detection helps, but doesn't solve. For one thing, as you >>> mentioned, you still get at least a couple of notifications before >>> it >>> kicks in. For another thing, this happens with a frequency of >>> something like once an hour or so (not consistently), so the host >>> will >>> flip from down to unreachable and back again, triggering an e-mail, >>> perhaps do it a second time, and then it will sit in the correct >>> "down" state for the next 50 checks or so (thus canceling any >>> flapping >>> detection) before repeating the process. It's not like I'm getting >>> messages every five minutes or anything, it's just that I'm getting >>> repeated down messages every hour or two for hosts that have been >>> down >>> and haven't actually changed state. >>> >>> I could, of course, schedule down time, except that I want to be >>> notified if/when the people in the remote station get their act >>> together and get the machine(s) in question back online. Also that >>> is >>> only partially effective for machines that have been sent in for >>> repair, because I don't really know when the scheduled down time >>> will >>> be over. They are down, I know they are down, I just don't want to >>> be >>> told about it every few hours :-) >>> >>> ----------------------------------------------- >>> Israel Brewster >>> Computer Support Technician II >>> Frontier Flying Service Inc. >>> 5245 Airport Industrial Rd >>> Fairbanks, AK 99709 >>> (907) 450-7250 x293 >>> ----------------------------------------------- >>> >>>> >>>> >>>> -- >>>> Andreas Ericsson andreas.ericsson at op5.se >>>> OP5 AB www.op5.se >>>> Tel: +46 8-230225 Fax: +46 8-230231 >>>> >>>> Considering the successes of the wars on alcohol, poverty, drugs >>>> and >>>> terror, I think we should give some serious thought to declaring >>>> war >>>> on peace. >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: 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 mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/ >> null >> > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glowe at sbcglobal.net Mon Apr 6 22:56:35 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 6 Apr 2009 13:56:35 -0700 (PDT) Subject: Notifications References: <1618657787.3974401239037303690.JavaMail.root@zimbra.scoe.org> Message-ID: <691242.563.qm@web81808.mail.mud.yahoo.com> Yes, Eric, ditto what Mark said.? Great minds agree :-).? Thanks for the help, guys.? Nagios is now back to it's happy self. I ended up doing the second one, to exclude certain hosts from the service.? That way, I can include services and hosts as they come on-line, one-by-one ----- Original Message ---- From: Eric Parker To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 10:01:43 AM Subject: Re: [Nagios-users] Notifications ditto with what Marc said. you can do something like this or remove hosts from hostgoup and specifically add the to the check_ping service check: # perform service check on all hosts in hostgroup define service{ ? ? use? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service ? ? hostgroup_name? ? ? ? ? ? ? ? ? solaris-servers ? ? service_description? ? ? ? ? ? Ping ? ? check_command? ? ? ? ? ? ? ? ? check_ping!200.0,20%!600.0,60% ? ? max_check_attempts? ? ? ? ? ? ? 5 ? ? notification_interval? ? ? ? ? 60 ? ? check_period? ? ? ? ? ? ? ? ? ? 24x7 ? ? notification_options? ? ? ? ? ? w,u,c,r,f,s ? ? contacts? ? ? ? ? ? ? ? ? ? ? glowe } # perform service check on hostgroup but not on the new servers define service{ ? ? use? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service ? ? host_name? ? ? ? ? ? ? ? ? ? ? !server9,!server10,!server11,!server12,!server13,!server14,!server15,!server16,!server17,!server18 ? ? hostgroup_name? ? ? ? ? ? ? ? ? solaris-servers ? ? service_description? ? ? ? ? ? Secure Shell ? ? check_command? ? ? ? ? ? ? ? ? check_ssh ? ? max_check_attempts? ? ? ? ? ? ? 5 ? ? notification_interval? ? ? ? ? 60 ? ? check_period? ? ? ? ? ? ? ? ? ? 24x7 ? ? notification_options? ? ? ? ? ? w,u,c,r,f,s ? ? contacts? ? ? ? ? ? ? ? ? ? ? ? ? ? ? glowe } ----- Original Message ----- From: "Grant Lowe" To: "Eric Parker" Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 9:24:47 AM GMT -08:00 US/Canada Pacific Subject: Re: [Nagios-users] Notifications I just checked.? All added hosts are members of the hostgroup solaris-servers.? Thanks Eric. ----- Original Message ---- From: Eric Parker To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:46:38 AM Subject: Re: [Nagios-users] Notifications Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric ----- Original Message ----- From: "Grant Lowe" To: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts.? Last week, a fellow admin decided he wanted to add a bunch of hosts.? He added the hosts, but only added the check_ping service for the hosts.? But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors.? My services file looks like this: define service{ use? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service host_name? ? ? ? ? ? ? ? ? ? ? server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name? ? ? ? ? ? ? ? ? solaris-servers service_description? ? ? ? ? ? Ping check_command? ? ? ? ? ? ? ? ? check_ping!200.0,20%!600.0,60% max_check_attempts? ? ? ? ? ? ? 5 notification_interval? ? ? ? ? 60 check_period? ? ? ? ? ? ? ? ? ? 24x7 notification_options? ? ? ? ? ? w,u,c,r,f,s contacts? ? ? ? ? ? ? ? ? ? ? glowe } define service{ use? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service host_name? ? ? ? ? ? ? ? ? ? ? server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name? ? ? ? ? ? ? ? ? solaris-servers service_description? ? ? ? ? ? Secure Shell check_command? ? ? ? ? ? ? ? ? check_ssh max_check_attempts? ? ? ? ? ? ? 5 notification_interval? ? ? ? ? 60 check_period? ? ? ? ? ? ? ? ? ? 24x7 notification_options? ? ? ? ? ? w,u,c,r,f,s contacts? ? ? ? ? ? ? ? ? ? ? ? ? ? ? glowe } Any ideas on why all the extra monitoring? ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------ Notice to Recipient: ? Information contained in this message may be privileged, confidential and ? protected from disclosure. If you are not an intended recipient, it is ? strictly prohibited to use, disseminate or copy this communication. If you ? have received this in error, please reply to the sender and then delete the ? message. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jsullivan at mndigital.com Mon Apr 6 22:56:07 2009 From: jsullivan at mndigital.com (Janet Sullivan) Date: Mon, 6 Apr 2009 13:56:07 -0700 Subject: Escape \ in nagios config files? Message-ID: <639A81928082A94DA5EC95A8E723B9492D2876@SEAMAIL01.musicnet.com> I want to check the disk space of a UNC path - \\localhost\_definst_\mp3\mn_mp3_08_07\streams >From the command line, I can check it fine (using check_nrpe2) if I escape each \ like this: \\\\localhost\\_definst_\\mp3\\mn_mp3_08_07\\streams But when I try to use configure Nagios to check it, it strips out all the \ characters. I've tried single quotes, double quotes, and escaping each \ - no luck. How can I tell Nagios about this path in a service definition without it stripping out the special characters? Is there an escape method I'm missing? ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jsullivan at mndigital.com Mon Apr 6 23:02:09 2009 From: jsullivan at mndigital.com (Janet Sullivan) Date: Mon, 6 Apr 2009 14:02:09 -0700 Subject: Escape \ in nagios config files? Message-ID: <639A81928082A94DA5EC95A8E723B9492D2877@SEAMAIL01.musicnet.com> Of course, right after I sent that, I found a solution. It seems I can use 3 \s to escape a \. My path in the service definition becomes: \\\\\\\\localhost\\\\_definst_\\\\mp3\\\\mn_mp3_08_07\\\\streams ...and it works. Is there a list of all the ways to escape special characters in Nagios? The only reason I came up with the three \ escape sequence was because I noticed that my \\\\localhost was being seen as \localhost in the error message. I haven't found any mention of that sequence on google. :-/ -----Original Message----- From: Janet Sullivan Sent: Monday, April 06, 2009 1:56 PM To: 'nagios-users at lists.sourceforge.net' Subject: Escape \ in nagios config files? I want to check the disk space of a UNC path - \\localhost\_definst_\mp3\mn_mp3_08_07\streams >From the command line, I can check it fine (using check_nrpe2) if I escape each \ like this: \\\\localhost\\_definst_\\mp3\\mn_mp3_08_07\\streams But when I try to use configure Nagios to check it, it strips out all the \ characters. I've tried single quotes, double quotes, and escaping each \ - no luck. How can I tell Nagios about this path in a service definition without it stripping out the special characters? Is there an escape method I'm missing? ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glowe at sbcglobal.net Mon Apr 6 23:33:51 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 6 Apr 2009 14:33:51 -0700 (PDT) Subject: Notifications References: <1618657787.3974401239037303690.JavaMail.root@zimbra.scoe.org> <691242.563.qm@web81808.mail.mud.yahoo.com> Message-ID: <807323.4287.qm@web81806.mail.mud.yahoo.com> Well, I think I spoke a little soon, but in a weird sort of way.? The GUI is not showing unconfigured services, but I'm still getting notifications about the unconfigured services.? The notifications were just delayed.? What should I check now? ----- Original Message ---- From: Grant Lowe To: Eric Parker Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 1:56:35 PM Subject: Re: [Nagios-users] Notifications Yes, Eric, ditto what Mark said.? Great minds agree :-).? Thanks for the help, guys.? Nagios is now back to its happy self. I ended up doing the second one, to exclude certain hosts from the service.? That way, I can include services and hosts as they come on-line, one-by-one ----- Original Message ---- From: Eric Parker To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 10:01:43 AM Subject: Re: [Nagios-users] Notifications ditto with what Marc said. you can do something like this or remove hosts from hostgoup and specifically add the to the check_ping service check: # perform service check on all hosts in hostgroup define service{ ? ? use? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service ? ? hostgroup_name? ? ? ? ? ? ? ? ? solaris-servers ? ? service_description? ? ? ? ? ? Ping ? ? check_command? ? ? ? ? ? ? ? ? check_ping!200.0,20%!600.0,60% ? ? max_check_attempts? ? ? ? ? ? ? 5 ? ? notification_interval? ? ? ? ? 60 ? ? check_period? ? ? ? ? ? ? ? ? ? 24x7 ? ? notification_options? ? ? ? ? ? w,u,c,r,f,s ? ? contacts? ? ? ? ? ? ? ? ? ? ? glowe } # perform service check on hostgroup but not on the new servers define service{ ? ? use? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service ? ? host_name? ? ? ? ? ? ? ? ? ? ? !server9,!server10,!server11,!server12,!server13,!server14,!server15,!server16,!server17,!server18 ? ? hostgroup_name? ? ? ? ? ? ? ? ? solaris-servers ? ? service_description? ? ? ? ? ? Secure Shell ? ? check_command? ? ? ? ? ? ? ? ? check_ssh ? ? max_check_attempts? ? ? ? ? ? ? 5 ? ? notification_interval? ? ? ? ? 60 ? ? check_period? ? ? ? ? ? ? ? ? ? 24x7 ? ? notification_options? ? ? ? ? ? w,u,c,r,f,s ? ? contacts? ? ? ? ? ? ? ? ? ? ? ? ? ? ? glowe } ----- Original Message ----- From: "Grant Lowe" To: "Eric Parker" Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 9:24:47 AM GMT -08:00 US/Canada Pacific Subject: Re: [Nagios-users] Notifications I just checked.? All added hosts are members of the hostgroup solaris-servers.? Thanks Eric. ----- Original Message ---- From: Eric Parker To: Grant Lowe Cc: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:46:38 AM Subject: Re: [Nagios-users] Notifications Are the newly added hosts members of the hostgroup solaris-servers? Thanks, Eric ----- Original Message ----- From: "Grant Lowe" To: nagios-users at lists.sourceforge.net Sent: Monday, April 6, 2009 8:31:10 AM GMT -08:00 US/Canada Pacific Subject: [Nagios-users] Notifications Hi All, I've had nagios 3.0.3 on a linux box, going for several months now, checking swap, disk space, number of processes, and several other services on about 8 UNIX hosts.? Last week, a fellow admin decided he wanted to add a bunch of hosts.? He added the hosts, but only added the check_ping service for the hosts.? But for some reason, nagios is doing the additional aforementioned services, not just ping, so now I have all these errors.? My services file looks like this: define service{ use? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service host_name? ? ? ? ? ? ? ? ? ? ? server1,server2,server3,server4,server5,server6,server7,server8,server9,server10,server11,server12,server13,server14,server15,server16,server17,server18 hostgroup_name? ? ? ? ? ? ? ? ? solaris-servers service_description? ? ? ? ? ? Ping check_command? ? ? ? ? ? ? ? ? check_ping!200.0,20%!600.0,60% max_check_attempts? ? ? ? ? ? ? 5 notification_interval? ? ? ? ? 60 check_period? ? ? ? ? ? ? ? ? ? 24x7 notification_options? ? ? ? ? ? w,u,c,r,f,s contacts? ? ? ? ? ? ? ? ? ? ? glowe } define service{ use? ? ? ? ? ? ? ? ? ? ? ? ? ? generic-service host_name? ? ? ? ? ? ? ? ? ? ? server1,server2,server3,server4,server5,server6,server7,server8 hostgroup_name? ? ? ? ? ? ? ? ? solaris-servers service_description? ? ? ? ? ? Secure Shell check_command? ? ? ? ? ? ? ? ? check_ssh max_check_attempts? ? ? ? ? ? ? 5 notification_interval? ? ? ? ? 60 check_period? ? ? ? ? ? ? ? ? ? 24x7 notification_options? ? ? ? ? ? w,u,c,r,f,s contacts? ? ? ? ? ? ? ? ? ? ? ? ? ? ? glowe } Any ideas on why all the extra monitoring? ------------------------------------------------------------------------------ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------ Notice to Recipient: ? Information contained in this message may be privileged, confidential and ? protected from disclosure. If you are not an intended recipient, it is ? strictly prohibited to use, disseminate or copy this communication. If you ? have received this in error, please reply to the sender and then delete the ? message. Thank you. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 6 23:44:27 2009 From: marc at ena.com (Marc Powell) Date: Mon, 6 Apr 2009 16:44:27 -0500 Subject: Escape \ in nagios config files? In-Reply-To: <639A81928082A94DA5EC95A8E723B9492D2877@SEAMAIL01.musicnet.com> References: <639A81928082A94DA5EC95A8E723B9492D2877@SEAMAIL01.musicnet.com> Message-ID: <881B060C-3162-45C1-AA11-67E58355C034@ena.com> On Apr 6, 2009, at 4:02 PM, Janet Sullivan wrote: > Of course, right after I sent that, I found a solution. It seems I > can > use 3 \s to escape a \. My path in the service definition becomes: > > \\\\\\\\localhost\\\\_definst_\\\\mp3\\\\mn_mp3_08_07\\\\streams > > ...and it works. > > Is there a list of all the ways to escape special characters in > Nagios? > The only reason I came up with the three \ escape sequence was > because I > noticed that my \\\\localhost was being seen as \localhost in the > error > message. I haven't found any mention of that sequence on google. :-/ \ is an escape character for both nagios and the shell. Actual service and command definitions may help clarify the situation but I expect that you're passing the path as an $ARGx$ via the service definition. You'll need to escape each \ there with a \ (see first Tip at http://nagios.sourceforge.net/docs/3_0/macros.html) so that nagios treats them as literalls and not as nagios' internal escape character. I'm going to next assume that the command_line for the check command doesn't quote the $ARGx$ macro so you need another \ for each \\ pair otherwise the shell will treat one of each pair as an escape. If you need to use a $ in a command_line, you should use $$. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 6 23:46:05 2009 From: marc at ena.com (Marc Powell) Date: Mon, 6 Apr 2009 16:46:05 -0500 Subject: Notifications In-Reply-To: <807323.4287.qm@web81806.mail.mud.yahoo.com> References: <1618657787.3974401239037303690.JavaMail.root@zimbra.scoe.org> <691242.563.qm@web81808.mail.mud.yahoo.com> <807323.4287.qm@web81806.mail.mud.yahoo.com> Message-ID: On Apr 6, 2009, at 4:33 PM, Grant Lowe wrote: > > Well, I think I spoke a little soon, but in a weird sort of way. > The GUI is not showing unconfigured services, but I'm still getting > notifications about the unconfigured services. The notifications > were just delayed. What should I check now? Most likely: you have multiple nagios daemons running at the same time; one with the old config and one with the new config. 2nd most: your mail server queued the messages for a long time (headers/logs should show that). -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Tue Apr 7 00:03:22 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Mon, 6 Apr 2009 15:03:22 -0700 (PDT) Subject: Monitor Windows Server using Nagios In-Reply-To: <807323.4287.qm@web81806.mail.mud.yahoo.com> References: <1618657787.3974401239037303690.JavaMail.root@zimbra.scoe.org> <691242.563.qm@web81808.mail.mud.yahoo.com> <807323.4287.qm@web81806.mail.mud.yahoo.com> Message-ID: <850750.68441.qm@web111205.mail.gq1.yahoo.com> Hi List: I'm setting up Nagios to monitor my Windows server, NSClient installed on the windows server. I followed the directions in the link below: http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html I have created most of the config files within Nagios however when I verify the result, it's coming up with this error: Nagios 2.10 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 10-21-2007 License: GPL Reading configuration data... Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'C:\ Drive Space' on host 'winsrv.domain.com' Error: Could not register service (config file '/usr/local/nagios/etc/windows.cfg', starting on line 33) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. Here's my windows.cfg file: # Define a host for the Windows machine we'll be monitoring # Change the host_name, alias, and address to fit your situation define service{ use generic-service host_name winsrv.domain.com service_description NSClient++ Version check_command check_nt!CLIENTVERSION } define service{ use generic-service host_name winsrv.domain.com service_description Uptime check_command check_nt!UPTIME } define service{ use generic-service host_name winsrv.domain.com service_description CPU Load check_command check_nt!CPULOAD!-l 5,80,90 } define service{ use generic-service host_name winsrv.domain.com service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 } define service{ use generic-service host_name winsrv.domain.com service_description C:\ Drive Space check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 } define service{ use generic-service host_name winsrv.domain.com service_description W3SVC check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC } Here's my winserver.cfg file: define host{ use always host_name winsrv.domain.com alias Winsrv address 172.168.2.234 } Here's my windows-server file in hostgroups: define host{ name windows-server ; The name of this host template use generic-host ; Inherit default values from the generic-host template check_period 24x7 ; By default, Windows servers are monitored round the clock check_interval 5 ; Actively check the server every 5 minutes max_check_attempts 10 ; Check each server 10 times (max) check_command check-host-alive ; Default command to check if servers are "alive" notification_period 24x7 ; Send notification out at any time - day or night notification_interval 30 ; Resend notifications every 30 minutes notification_options d,r ; Only send notifications for specific host states contact_groups admininstrators ; Notifications get sent to the admins by default hostgroups windows-servers ; Host groups that Windows servers should be a member of register 1 ; REGISTER THIS - } I need help, please let me know what I need to do. Thanks in advance. DB -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Tue Apr 7 00:17:28 2009 From: subscription at kkeane.com (Kevin Keane) Date: Mon, 6 Apr 2009 15:17:28 -0700 Subject: Escape \ in nagios config files? In-Reply-To: <639A81928082A94DA5EC95A8E723B9492D2877@SEAMAIL01.musicnet.com> References: <639A81928082A94DA5EC95A8E723B9492D2877@SEAMAIL01.musicnet.com> Message-ID: <49DA7F78.9090001@kkeane.com> Actually, this is not just in Nagios; this is standard Unix escaping. And it's not really 3 \. Rather, what is going on is that standard Unix escaping is applied twice - first when parsing the config file, and again when passing the arguments to the plugin. In Unix, normally when you put a \ anywhere, it escapes the following character. For instance, a \ before a space means "the next character isn't really a space, don't treat it as the end of the path". And a \ before a \ means "the second backslash isn't really an escape character, but rather I want a literal backslash". So in order to get a single \ in the plugin, on the command line you need to escape it with another \. You found that out when you ran check_nrpe2 from the command line. Now when Nagios parses the config file, it uses the same escaping mechanism. So when you simply put \\ into the config file, Nagios interprets the first one as "escape" and the second one as "escaped to be literal" - thus, you'd end up with a single \ in the command line. But you wanted two \. So you need to tell Nagios to do the same thing twice: \\\\ -> \\ in the command line -> \ for the plugin to see. And where you needed the plugin to actually see \\ (before the localhost), you need to do the same thing yet again, for a total of eight consecutive backslashes. Janet Sullivan wrote: > Of course, right after I sent that, I found a solution. It seems I can > use 3 \s to escape a \. My path in the service definition becomes: > > \\\\\\\\localhost\\\\_definst_\\\\mp3\\\\mn_mp3_08_07\\\\streams > > ...and it works. > > Is there a list of all the ways to escape special characters in Nagios? > The only reason I came up with the three \ escape sequence was because I > noticed that my \\\\localhost was being seen as \localhost in the error > message. I haven't found any mention of that sequence on google. :-/ > > -----Original Message----- > From: Janet Sullivan > Sent: Monday, April 06, 2009 1:56 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: Escape \ in nagios config files? > > I want to check the disk space of a UNC path - > \\localhost\_definst_\mp3\mn_mp3_08_07\streams > > >From the command line, I can check it fine (using check_nrpe2) if I > escape each \ like this: > > \\\\localhost\\_definst_\\mp3\\mn_mp3_08_07\\streams > > But when I try to use configure Nagios to check it, it strips out all > the \ characters. I've tried single quotes, double quotes, and escaping > each \ - no luck. How can I tell Nagios about this path in a service > definition without it stripping out the special characters? Is there an > escape method I'm missing? > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Tue Apr 7 00:28:03 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Mon, 6 Apr 2009 15:28:03 -0700 Subject: Monitor Windows Server using Nagios In-Reply-To: <850750.68441.qm@web111205.mail.gq1.yahoo.com> References: <1618657787.3974401239037303690.JavaMail.root@zimbra.scoe.org> <691242.563.qm@web81808.mail.mud.yahoo.com> <807323.4287.qm@web81806.mail.mud.yahoo.com> <850750.68441.qm@web111205.mail.gq1.yahoo.com> Message-ID: <20090406222803.GN30298@bakgwai.americas.hpqcorp.net> The error message here is about as descriptive as they get: You need to make sure each service has max_attempts, check_interval, retry_interval, and notification_interval defined. You can do that either in the service itself, or in a template that service is based on. Since that service is based on generic-service, you could define those there if you want. The fact that you're monitoring windows is irrelevent here; these requirements apply to any service Nagios monitors. I noticed you're also using the Nagios 3 docs as a reference to configuring your Nagios 2.1 installation, so be prepared for that to shoot you in the foot later, too. On Mon, 06 Apr 2009, Dei Bertine wrote: > Hi List: > I'm setting up Nagios to monitor my Windows server, NSClient installed on the windows server. > I followed the directions in the link below: > http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html > I have created most of the config files within Nagios however when I verify the result, it's coming up with this error: > Nagios 2.10 > Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) > Last Modified: 10-21-2007 > License: GPL > Reading configuration data... > Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'C:\ Drive Space' on host 'winsrv.domain.com' > Error: Could not register service (config file '/usr/local/nagios/etc/windows.cfg', starting on line 33) > ***> One or more problems was encountered while processing the config files... > Check your configuration file(s) to ensure that they contain valid > directives and data defintions. If you are upgrading from a previous > version of Nagios, you should be aware that some variables/definitions > may have been removed or modified in this version. Make sure to read > the HTML documentation regarding the config files, as well as the > 'Whats New' section to find out what has changed. > > Here's my windows.cfg file: > > # Define a host for the Windows machine we'll be monitoring > # Change the host_name, alias, and address to fit your situation > > define service{ > use generic-service > host_name winsrv.domain.com > service_description NSClient++ Version > check_command check_nt!CLIENTVERSION > } > > define service{ > use generic-service > host_name winsrv.domain.com > service_description Uptime > check_command check_nt!UPTIME > } > > define service{ > use generic-service > host_name winsrv.domain.com > service_description CPU Load > check_command check_nt!CPULOAD!-l 5,80,90 > } > > define service{ > use generic-service > host_name winsrv.domain.com > service_description Memory Usage > check_command check_nt!MEMUSE!-w 80 -c 90 > } > > define service{ > use generic-service > host_name winsrv.domain.com > service_description C:\ Drive Space > check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 > } > > define service{ > use generic-service > host_name winsrv.domain.com > service_description W3SVC > check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC > } > > Here's my winserver.cfg file: > define host{ > use always > host_name winsrv.domain.com > alias Winsrv > address 172.168.2.234 > } > > Here's my windows-server file in hostgroups: > define host{ > name windows-server ; The name of this host template > use generic-host ; Inherit default values from the generic-host template > check_period 24x7 ; By default, Windows servers are monitored round the clock > check_interval 5 ; Actively check the server every 5 minutes > max_check_attempts 10 ; Check each server 10 times (max) > check_command check-host-alive ; Default command to check if servers are "alive" > notification_period 24x7 ; Send notification out at any time - day or night > notification_interval 30 ; Resend notifications every 30 minutes > notification_options d,r ; Only send notifications for specific host states > contact_groups admininstrators ; Notifications get sent to the admins by default > hostgroups windows-servers ; Host groups that Windows servers should be a member of > register 1 ; REGISTER THIS - > } > > I need help, please let me know what I need to do. > > Thanks in advance. > > DB > > Content-Description: ATT00001.txt > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com Content-Description: ATT00002.txt > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From glowe at sbcglobal.net Tue Apr 7 02:37:23 2009 From: glowe at sbcglobal.net (Grant Lowe) Date: Mon, 6 Apr 2009 17:37:23 -0700 (PDT) Subject: Notifications References: <1618657787.3974401239037303690.JavaMail.root@zimbra.scoe.org> <691242.563.qm@web81808.mail.mud.yahoo.com> <807323.4287.qm@web81806.mail.mud.yahoo.com> Message-ID: <580682.93600.qm@web81807.mail.mud.yahoo.com> Thanks, Marc. It was the former. ----- Original Message ---- From: Marc Powell To: Nagios Users Mailinglist Sent: Monday, April 6, 2009 2:46:05 PM Subject: Re: [Nagios-users] Notifications On Apr 6, 2009, at 4:33 PM, Grant Lowe wrote: > > Well, I think I spoke a little soon, but in a weird sort of way. > The GUI is not showing unconfigured services, but I'm still getting > notifications about the unconfigured services. The notifications > were just delayed. What should I check now? Most likely: you have multiple nagios daemons running at the same time; one with the old config and one with the new config. 2nd most: your mail server queued the messages for a long time (headers/logs should show that). -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tothz68 at gmail.com Tue Apr 7 07:04:14 2009 From: tothz68 at gmail.com (Toth Zoltan) Date: Tue, 7 Apr 2009 07:04:14 +0200 Subject: traceroute.cgi Message-ID: <69e59dde0904062204k63d9ed48ie6cac472af2ae671@mail.gmail.com> Hi On nagios website dosn't work , but if I open with the direkt link it works. Under the Status information field there isn't any value or button.. Nagios site host example.. http://10.128.15.15/nagios Host Status Last Check Duration Status information a-1000 UP 02-04-2009 08:43:12 6d 19h 26m 51s PING OK - Packet loss = 0%, RTA = 11.71 ms Direkt link example.. http://10.128.15.15/nagios/cgi-bin/traceroute.cgi?10.128.54.20 Traceroute to Host 10.128.54.20 Hop Host Ip Round trip Time 1 a-1000 10.131.1.1 0.452ms -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 7 09:31:09 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 7 Apr 2009 08:31:09 +0100 Subject: more than a variable in a pnp4nagios graph In-Reply-To: <49DA33AA.8070406@iris.uh.cu> References: <49DA33AA.8070406@iris.uh.cu> Message-ID: <765d77c80904070031w4b5207b8s45149b51242406b4@mail.gmail.com> 2009/4/6 Sergio Ariel : > I'm using pnp4nagios and now I need to graph more than a variable in the > same graph. Somebody does know how to obtain that? You can use DRRAW http://web.taranis.org/drraw/ . I believe it can be done within PNP too, but I haven't tried it. This was discussed on the pnp4nagios email list recently. Check the archive at http://sourceforge.net/mailarchive/forum.php?forum_name=pnp4nagios-users for the thread "generating gathering graph from several host / services". See also the recent threads in the nagios-users email list with the subject "pnp4nagios - view graph for disabled service". hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 7 09:39:19 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 7 Apr 2009 08:39:19 +0100 Subject: Nagios: Adding Windows Servers to monitor In-Reply-To: <873928.40915.qm@web111203.mail.gq1.yahoo.com> References: <488453.49892.qm@web111211.mail.gq1.yahoo.com> <765d77c80904040055u11b89e86m9b7423eeb014b711@mail.gmail.com> <873928.40915.qm@web111203.mail.gq1.yahoo.com> Message-ID: <765d77c80904070039j5481217dq2ee1d14477bd5d40@mail.gmail.com> 2009/4/6 Dei Bertine : > Thanks for the detailed explanation, Jim. > > So far I'm not getting a successful rate on adding my Windows server in > Nagios. > Followed detailed instructions in Nagios but still getting errors. > http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html > > Is there an easy way to add the Windows servers in Nagios or other > documentation that I can follow? > Please kindly advise, need expertise assistance. I've already recommended one to you - [quote] An excellent way to get started with Nagios is to read the book "Nagios" by Wolfgang Barth.? http://nostarch.com/nagios_2e.htm [/quote] This book can be purchased as a .pdf download, so you can buy it right now if you wish. You will find other documentation on the NSClient++ web site, but if you want an easy to follow guide to monitoring windows servers with Nagios, I firmly believe Wolfgang Barth's book is by far the best for you. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From morten.guldager at gmail.com Tue Apr 7 11:29:23 2009 From: morten.guldager at gmail.com (Morten Guldager) Date: Tue, 7 Apr 2009 11:29:23 +0200 Subject: "strange" warnings from the config files Message-ID: 'Aloha! How come that I get a warning if I omit the "check_period" on services while it seems to be ok to leave it out on the hosts? It says: Warning: Service 'check-stuff' on host 'nice-box' has no check time period defined! Will nagios act well defined if I simply ignore these warnings? And how? -- /Morten %-) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From exon at op5.com Tue Apr 7 11:43:30 2009 From: exon at op5.com (Andreas Ericsson) Date: Tue, 07 Apr 2009 11:43:30 +0200 Subject: "strange" warnings from the config files In-Reply-To: References: Message-ID: <49DB2042.7000208@op5.se> Morten Guldager wrote: > 'Aloha! > > How come that I get a warning if I omit the "check_period" on services while > it seems to be ok to leave it out on the hosts? > Because it's something one normally wants to associate with a service. > It says: > Warning: Service 'check-stuff' on host 'nice-box' has no check time period > defined! > > > Will nagios act well defined if I simply ignore these warnings? For a given value of "well defined", yes ;-) > And how? > By checking the service as if you'd defined a timeperiod encompassing all the hours of all days (I think). It could also be by not checking the service at all, which one could argue is actually correct. Try and find out. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From morten.guldager at gmail.com Tue Apr 7 12:58:14 2009 From: morten.guldager at gmail.com (Morten Guldager) Date: Tue, 7 Apr 2009 12:58:14 +0200 Subject: "strange" warnings from the config files In-Reply-To: <49DB2042.7000208@op5.se> References: <49DB2042.7000208@op5.se> Message-ID: On Tue, Apr 7, 2009 at 11:43 AM, Andreas Ericsson wrote: > Morten Guldager wrote: > >> >> How come that I get a warning if I omit the "check_period" on services >> while >> it seems to be ok to leave it out on the hosts? >> >> > Because it's something one normally wants to associate with a service. But not with a host... well, I had hoped for a more consistent logic here. And how? >> > > By checking the service as if you'd defined a timeperiod encompassing all > the > hours of all days (I think). It could also be by not checking the service > at > all, which one could argue is actually correct. Try and find out. My trials here shows that it tests 24x7 if I omit the check_period. Fine thats what I want. But as you point out yourself too, the logic is not straigth forward here. -- /Morten %-) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edgar.Matzinger at valid.nl Tue Apr 7 13:16:53 2009 From: Edgar.Matzinger at valid.nl (Edgar Matzinger) Date: Tue, 7 Apr 2009 13:16:53 +0200 Subject: "strange" warnings from the config files In-Reply-To: References: <49DB2042.7000208@op5.se> Message-ID: Hi Morton, > How come that I get a warning if I omit the "check_period" on services > while it seems to be ok to leave it out on the hosts? according the documentation (http://nagios.sourceforge.net/docs/3_0/ objectdefinitions.html), check_period is mandatory for both hosts and services! And thus, nagios should report an error in both occasions! Sorry, cu l8r, Edgar. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Paradijslaan 36 \ /| /\| : : 5611 KN Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ... ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From morten.guldager at gmail.com Tue Apr 7 13:34:49 2009 From: morten.guldager at gmail.com (Morten Guldager) Date: Tue, 7 Apr 2009 13:34:49 +0200 Subject: "strange" warnings from the config files In-Reply-To: References: <49DB2042.7000208@op5.se> Message-ID: On Tue, Apr 7, 2009 at 1:16 PM, Edgar Matzinger wrote: > > > How come that I get a warning if I omit the "check_period" on services > > while it seems to be ok to leave it out on the hosts? > > according the documentation (http://nagios.sourceforge.net/docs/3_0/ > objectdefinitions.html), > check_period is mandatory for both hosts and > services! And thus, nagios should report an error in both occasions! Perfect, at least the documentation is consistent. So it all boils down to a missing warning when we forget to define a check_period where it should be mandatory. I guess its a matter of taste, but I'd expect the program to trigger a hard error when trying to read its config files and then missing something mandatory. The current behaviour is to my knowledge undocumented/undefined/random. -- /Morten %-) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Tue Apr 7 15:47:50 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Tue, 7 Apr 2009 14:47:50 +0100 Subject: op5 signup for demo issues? Message-ID: Dear All, I'm not sure if this counts as off topic, but I am having a very hard time signing up for the op5 demo downloads. I receive no email responses. I know there are some op5 guys on this list, so feel free to help me out on this one! --- Mr Gabriel ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Tue Apr 7 16:26:06 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Tue, 7 Apr 2009 16:26:06 +0200 Subject: monitor primergy servers with esx Message-ID: <90f6e8270904070726l5d9d3158x92e9b1a10031db1c@mail.gmail.com> hi, I have some fujitsu-siemens primergy rx-300 s3 that I monitor with the check_fsc.pl and snmp. This works fine. I have installed the serverviewraid manager tool from fujitusu siemens so that I can monitor if the disks are ok. This works. But, here comes the question: how do I monitor the health of the array controller if I cannot install nagios-nrpe in the boxes? installing nrpe is not supported by vmware, so the option is pretty closed. I monitor citrix servers with the same tool, amcli and a batch script through nrpe. Has anyone gotten to monitor it through snmp? Would you care to show how? ;) -- Groeten, J.Asenjo ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giorgio at zarrelli.org Tue Apr 7 17:01:39 2009 From: giorgio at zarrelli.org (Giorgio Zarrelli) Date: Tue, 07 Apr 2009 17:01:39 +0200 Subject: monitor primergy servers with esx In-Reply-To: <90f6e8270904070726l5d9d3158x92e9b1a10031db1c@mail.gmail.com> References: <90f6e8270904070726l5d9d3158x92e9b1a10031db1c@mail.gmail.com> Message-ID: <20090407.lSQ.73508600@www.zarrelli.org> Hi, Hi, first find the right mib describing your hardware. Second step, enable snmp v3 on your fujitsu and at the end you write a script. Actually I wrote a nagios plugin to check memory and cpu of F5 BigIP and another for monitoring bandwidth via snmp. all resides on finding the right oids which match the values you are going to collect through snmpget. To collect a value, for bandwidth, let's say, I use such a string: SPEED=`/usr/bin/snmpget -v 3 -t 1 -r 5 -m '' -v 3 -l authPriv -a MD5 -u ${LOGIN} -A ${PASSWORD} -x DES -X ${PASSWORD} ${HOST}:161 IF-MIB::ifSpeed.${IFINDEX} | cut -d " " -f 4` Giorgio > Has anyone gotten to monitor it through snmp? Would you care to show how? ;) > > -- > Groeten, > J.Asenjo > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From exon at op5.com Tue Apr 7 17:30:16 2009 From: exon at op5.com (Andreas Ericsson) Date: Tue, 07 Apr 2009 17:30:16 +0200 Subject: op5 signup for demo issues? In-Reply-To: References: Message-ID: <49DB7188.10506@op5.se> Gabriel - IP Guys wrote: > Dear All, > > I'm not sure if this counts as off topic, but I am having a very hard > time signing up for the op5 demo downloads. I receive no email > responses. I know there are some op5 guys on this list, so feel free to > help me out on this one! > Hi Mr Gabriel. We recently switched email service at op5, and apparently emails from some systems are getting stuck since then. I have forwarded your email to the relevant parties at op5 and I'm sure someone will get back to you very soon and that the problem will be fixed asap. Thanks for reporting this, and for your interest :) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sergio.ariel at iris.uh.cu Tue Apr 7 17:42:06 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Tue, 07 Apr 2009 11:42:06 -0400 Subject: nagvis without authentication Message-ID: <49DB744E.6010802@iris.uh.cu> How can I to use nagvis without autentication? -- Sergio Ariel de la Campa Saiz Administrador Red UH ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sergio.ariel at iris.uh.cu Tue Apr 7 17:50:03 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Tue, 07 Apr 2009 11:50:03 -0400 Subject: more than a variable in a pnp4nagios graph In-Reply-To: <765d77c80904070031w4b5207b8s45149b51242406b4@mail.gmail.com> References: <49DA33AA.8070406@iris.uh.cu> <765d77c80904070031w4b5207b8s45149b51242406b4@mail.gmail.com> Message-ID: <49DB762B.2050501@iris.uh.cu> Thanks! Sergio Ariel de la Campa Saiz Administrador Red UH Jim Avery wrote: > 2009/4/6 Sergio Ariel : >> I'm using pnp4nagios and now I need to graph more than a variable in the >> same graph. Somebody does know how to obtain that? > > > You can use DRRAW http://web.taranis.org/drraw/ . I believe it can be > done within PNP too, but I haven't tried it. This was discussed on > the pnp4nagios email list recently. Check the archive at > http://sourceforge.net/mailarchive/forum.php?forum_name=pnp4nagios-users > for the thread "generating gathering graph from several host / > services". > > See also the recent threads in the nagios-users email list with the > subject "pnp4nagios - view graph for disabled service". > > hth, > > Jim > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Tue Apr 7 19:32:25 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Tue, 7 Apr 2009 19:32:25 +0200 Subject: monitor primergy servers with esx In-Reply-To: <20090407.lSQ.73508600@www.zarrelli.org> References: <90f6e8270904070726l5d9d3158x92e9b1a10031db1c@mail.gmail.com> <20090407.lSQ.73508600@www.zarrelli.org> Message-ID: <90f6e8270904071032x6d63a89ege36f4171c533dcea@mail.gmail.com> On Tue, Apr 7, 2009 at 5:01 PM, Giorgio Zarrelli wrote: > Hi, [knip] > To collect a value, for bandwidth, let's say, I use such a string: I do not mean to be rude, thanks for your input. What I need is monitoring the health of the disk array. Is it possible to do that with snmp as it is with the the command amcli --list? TIA, Natxo Asenjo ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Tue Apr 7 19:50:31 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Tue, 7 Apr 2009 13:50:31 -0400 Subject: cisco firewall plugins Message-ID: <699b436a0904071050i387d17e7j28ca99c0663887f2@mail.gmail.com> i got two plugins check_cisco_asa.pl and check_cisco_firewall.sh for cisco firewall. i downloaded it and unziped it and chaned the mode to 777 so that it become executable. ./check_cisco_asa.pl -h ipaddress -c public -i 1 (from command line) I get Timeout: No Response from ipaddress Timeout: No Response from ipaddress Timeout: No Response from ipaddress Timeout: No Response from ipaddress I tried with almost allt he firewall in our network but go ththe same result. ./check_cisco_firewall.sh -H 10.21.1.4 -V 1 -C public -M failover (from command line) Timeout: No Response from 10.21.1.4 Error - Not numeric value : = status_prim Can anyone shed light on this or suggest any other plugins for cisco firewall to monitor VPN -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giorgio at zarrelli.org Tue Apr 7 19:58:03 2009 From: giorgio at zarrelli.org (Giorgio Zarrelli) Date: Tue, 07 Apr 2009 19:58:03 +0200 Subject: monitor primergy servers with esx In-Reply-To: <90f6e8270904071032x6d63a89ege36f4171c533dcea@mail.gmail.com> References: <90f6e8270904071032x6d63a89ege36f4171c533dcea@mail.gmail.com> Message-ID: <20090407.7YB.11783600@www.zarrelli.org> Hi, as I told you, all depends on the richness of the MIB. Find the MIB for your server and send it to me. With that in my hands I will be able to tell you if you can do that. Giorgio Natxo Asenjo (natxo.asenjo at gmail.com) scritto: > > I do not mean to be rude, thanks for your input. > > What I need is monitoring the health of the disk array. Is it possible > to do that with snmp > as it is with the the command amcli --list? > > TIA, > > Natxo Asenjo > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Tue Apr 7 20:26:18 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 7 Apr 2009 11:26:18 -0700 Subject: Adaptive Monitoring: Broken? Message-ID: <20090407182618.GS30298@bakgwai.americas.hpqcorp.net> Here are the important stats: Nagios Version: Version 3.1.0 Proficiency Level: Pretty damned high It's been a long time since I had a question to ask here, but I've run into an issue that's had me ripping my hair out for the first time in many, many years of working with Nagios. For various convoluted reasons, I have some services with a notification command that includes the following: /usr/bin/printf "[%lu] PROCESS_SERVICE_CHECK_RESULT;$HOSTNAME;$SERVICE;0;OK - Not a real check\n" $DATE > $CMDFILE /usr/bin/printf "[%lu] CHANGE_SVC_EVENT_HANDLER;$HOSTNAME;$SERVICE;check_ok\n" $DATE > $CMDFILE /usr/bin/printf "[%lu] CHANGE_SVC_CHECK_COMMAND;$HOSTNAME;$SERVICE;check_ok\n" $DATE > $CMDFILE check_ok is defined like so: define command { command_name check_ok command_line $USER1$/check_dummy 0 "Not a real service" } While the first command works fine, and sets the service to an OK state, the next two (which I've tried in various combinations) show up in the Nagios logs as having been sent, but do nothing. The check that appears in the config files keeps running instead of my check_ok check. Here's how it shows up in the logs: [1239128528] EXTERNAL COMMAND: CHANGE_SVC_EVENT_HANDLER;dummy-host;DNS;check_ok [1239128528] EXTERNAL COMMAND: CHANGE_SVC_CHECK_COMMAND;dummy-host;DNS;check_ok I've noticed the message is different if I use an invalid command, so I'm relatively sure I'm using the right ones; they just don't do anything. Event handlers are enabled for these services, but even if they weren't the check command should change, right? Am I doing something wrong here, or have I run into a bug? ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From albrecht.dress at arcor.de Tue Apr 7 21:11:36 2009 From: albrecht.dress at arcor.de (Albrecht =?iso-8859-1?b?RHJl3w==?=) Date: Tue, 07 Apr 2009 21:11:36 +0200 Subject: monitor primergy servers with esx In-Reply-To: <20090407.7YB.11783600@www.zarrelli.org> (from giorgio@zarrelli.org on Tue Apr 7 19:58:03 2009) References: <20090407.7YB.11783600@www.zarrelli.org> Message-ID: <1239131503.5243.0@antares> Am 07.04.09 19:58 schrieb(en) Giorgio Zarrelli: >> What I need is monitoring the health of the disk array. Is it >> possible to do that with snmp What exactly is your 'disk array'? A SAN? I have a script for nagios 3 which checks the sensors (temperature, voltages, etc.) via SNMPv1 on a fsc FibreCat SX san and a Brocade fibre switch. I don't know, though, how I can check the disk health this way. I think I will upload that script to nagiosexchange, if you think you could use it... Best, Albrecht. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tad1214 at aol.com Tue Apr 7 21:22:27 2009 From: tad1214 at aol.com (Thomas Donnelly) Date: Tue, 07 Apr 2009 14:22:27 -0500 Subject: Nagios Warning Bug/Misconfiguration Message-ID: <49DBA7F3.6070803@aol.com> Hi all, I am having an issue with all of the devices I added showing warning all the time. It is a simple snmp check to see if the amps are above 160warn/180critical. They always say warning even though they are less than the specified 160. One thing to note is once it hits the 160 mark it gets the * value * in turn, showing that it is actually in the warning range. I have shown the neccesary data I hope below. Any/all help is greatly appreciated. # uname -a FreeBSD server.example.net 5.5-RELEASE-p2 FreeBSD 5.5-RELEASE-p2 #3: Tue Oct 9 22:39:13 EST 2007 root at server.example.net:/usr/obj/usr/src/sys/MONITOR i386 Nagios Version 2.0b3 # ./check_snmp -V check_snmp (nagios-plugins 1.4.3) 1.58 From the webui APC-RR-R3-1.hou check_rr_amp WARNING 04-07-2009 13:00:17 8d 3h 17m 2s 10/10 SNMP WARNING - 90 APC-RR-R3-2.hou check_rr_amp WARNING 04-07-2009 12:57:52 18d 2h 46m 48s 10/10 SNMP WARNING - *160* ^note the * 160 * for the one that actually is in the warning range. from checkcommands.cfg define command { command_name check_rr_amp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o mib-2.33.1.4.4.1.3.1 -C cPanel -w $ARG1$ -c $AR } From the hosts config file. define service{ host_name APC-RR-R1-1.hou service_description check_rr_amp check_command check_rr_amp!159!179 max_check_attempts 10 normal_check_interval 5 retry_check_interval 3 check_period 24x7 notification_interval 30 notification_period 24x7 notification_options w,c,r contact_groups backup-admins } Thanks! -=Tom ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Tue Apr 7 21:38:03 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Tue, 7 Apr 2009 21:38:03 +0200 Subject: monitor primergy servers with esx In-Reply-To: <20090407.7YB.11783600@www.zarrelli.org> References: <90f6e8270904071032x6d63a89ege36f4171c533dcea@mail.gmail.com> <20090407.7YB.11783600@www.zarrelli.org> Message-ID: <90f6e8270904071238g50f84e38s57654b2885bfd7f2@mail.gmail.com> On Tue, Apr 7, 2009 at 7:58 PM, Giorgio Zarrelli wrote: > Hi, > > as I told you, all depends on the richness of the MIB. Find the MIB for your > server and send it to me. With that in my hands I will be able to tell you if > you can do that. Hi Giorgio, thanks again for your input. I have found a RAID.mib (unfortunately, it is not in the esx rpm package, but in the windows package). I have copied it to the net-snmp collection of mibs and am reviewing it. If you will like to have it I will send it off list (it's a bit big to send to everyone on the list). I am going through it and it looks promising. .iso.org.dod.internet.private.enterprises.sni.sniProductMibs.fscRAIDMIB.svrObjects.svrStatus.svrStatusLogicalDrives.0 = ok .iso.org.dod.internet.private.enterprises.sni.sniProductMibs.fscRAIDMIB.svrObjects.svrStatus.svrStatusPhysicalDevices.0 = ok Tomorroy I will try removing some disks from the server and check if those result change as well when the disks are not there. As soon as I get a working script to check the health of the disks I will post it for review in nagiosexchange (I can code some Perl, but am no Perl expert, just a sysadmin trying to control a crazy environment). Natxo Asenjo ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Tue Apr 7 21:41:55 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 7 Apr 2009 12:41:55 -0700 Subject: Nagios Warning Bug/Misconfiguration In-Reply-To: <49DBA7F3.6070803@aol.com> References: <49DBA7F3.6070803@aol.com> Message-ID: <20090407194155.GU30298@bakgwai.americas.hpqcorp.net> What happens when you run it manually? This, maybe? http://www.nagios.org/faqs/viewfaq.php?faq_id=208 On Tue, 07 Apr 2009, Thomas Donnelly wrote: > Hi all, > > I am having an issue with all of the devices I added showing warning all > the time. It is a simple snmp check to see if the amps are above > 160warn/180critical. They always say warning even though they are less > than the specified 160. One thing to note is once it hits the 160 mark > it gets the * value * in turn, showing that it is actually in the > warning range. I have shown the neccesary data I hope below. Any/all > help is greatly appreciated. > > > > # uname -a > FreeBSD server.example.net 5.5-RELEASE-p2 FreeBSD 5.5-RELEASE-p2 #3: Tue > Oct 9 22:39:13 EST 2007 > root at server.example.net:/usr/obj/usr/src/sys/MONITOR i386 > > Nagios > Version 2.0b3 > > > # ./check_snmp -V > check_snmp (nagios-plugins 1.4.3) 1.58 > > > > From the webui > > APC-RR-R3-1.hou > check_rr_amp > WARNING 04-07-2009 13:00:17 8d 3h 17m 2s 10/10 SNMP WARNING - 90 > > APC-RR-R3-2.hou > check_rr_amp > WARNING 04-07-2009 12:57:52 18d 2h 46m 48s 10/10 SNMP WARNING - *160* > > ^note the * 160 * for the one that actually is in the warning range. > > > from checkcommands.cfg > > define command { > command_name check_rr_amp > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o > mib-2.33.1.4.4.1.3.1 -C cPanel -w $ARG1$ -c $AR > } > > > From the hosts config file. > > define service{ > host_name APC-RR-R1-1.hou > service_description check_rr_amp > check_command check_rr_amp!159!179 > max_check_attempts 10 > normal_check_interval 5 > retry_check_interval 3 > check_period 24x7 > notification_interval 30 > notification_period 24x7 > notification_options w,c,r > contact_groups backup-admins > } > > > > Thanks! > -=Tom > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Tue Apr 7 21:43:06 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Tue, 7 Apr 2009 21:43:06 +0200 Subject: monitor primergy servers with esx In-Reply-To: <1239131503.5243.0@antares> References: <20090407.7YB.11783600@www.zarrelli.org> <1239131503.5243.0@antares> Message-ID: <90f6e8270904071243n4f8c2f69we8a56ccadfceebba@mail.gmail.com> On Tue, Apr 7, 2009 at 9:11 PM, Albrecht Dre? wrote: > What exactly is your 'disk array'? ?A SAN? ?I have a script for nagios 3 > which checks the sensors (temperature, voltages, etc.) via SNMPv1 on a fsc > FibreCat SX san and a Brocade fibre switch. ?I don't know, though, how I can > check the disk health this way. this is just the system installation of the esx servers. It's a raid 1 sas array. I need to know when the disks go south because the whole datacenter is moving to a cybercenter where we longer can rely on the typical visual checks when changing the tapes. > I think I will upload that script to nagiosexchange, if you think you could > use it... please, do upload it. I have (at this point) no use for it, but I am sure someone else will. Nagios is great because of all the plugins. -- Natxo ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cburke at utc.net Tue Apr 7 21:59:37 2009 From: cburke at utc.net (Christopher Burke) Date: Tue, 7 Apr 2009 15:59:37 -0400 Subject: Distribuated Help Message-ID: I need an answer that I haven't been able to find in any docs or web searches. I want to set up a distributed monitoring scenario using NSCA, but I need to know if the Client will buffer checks when the connection is lost to the central server, and then send them when the connection is restored. Basically I want to continue to monitor a sites hosts even if the WAN goes down so I have information during that timeperiod. Thank you Christopher -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tad1214 at aol.com Tue Apr 7 22:33:03 2009 From: tad1214 at aol.com (Thomas Donnelly) Date: Tue, 07 Apr 2009 15:33:03 -0500 Subject: Nagios Warning Bug/Misconfiguration In-Reply-To: <20090407194155.GU30298@bakgwai.americas.hpqcorp.net> References: <49DBA7F3.6070803@aol.com> <20090407194155.GU30298@bakgwai.americas.hpqcorp.net> Message-ID: <49DBB87F.9000906@aol.com> Thanks for the quick reply! Ran from the command line got: # ./check_snmp -H 192.168.97.71 -o mib-2.33.1.2.4.0 -C secret -w 95: -c 75: SNMP WARNING - 100 | SNMPv2-SMI::mib-2.33.1.2.4.0=100;;;; # ./check_snmp -H 192.168.97.71 -o mib-2.33.1.2.4.0 -C secret -w 95 -c 75: SNMP WARNING - *100* | SNMPv2-SMI::mib-2.33.1.2.4.0=100;;;; So by intentionally triggering it again (remove ":"), it shows the *'s Not really sure what they mean by: 1. Prevent check_snmp from loading the MIBs (default behaviour) by using numeric oids AND using the "-m :" option Patrick Morris wrote: > What happens when you run it manually? > > This, maybe? > > http://www.nagios.org/faqs/viewfaq.php?faq_id=208 > > On Tue, 07 Apr 2009, Thomas Donnelly wrote: > > >> Hi all, >> >> I am having an issue with all of the devices I added showing warning all >> the time. It is a simple snmp check to see if the amps are above >> 160warn/180critical. They always say warning even though they are less >> than the specified 160. One thing to note is once it hits the 160 mark >> it gets the * value * in turn, showing that it is actually in the >> warning range. I have shown the neccesary data I hope below. Any/all >> help is greatly appreciated. >> >> >> >> # uname -a >> FreeBSD server.example.net 5.5-RELEASE-p2 FreeBSD 5.5-RELEASE-p2 #3: Tue >> Oct 9 22:39:13 EST 2007 >> root at server.example.net:/usr/obj/usr/src/sys/MONITOR i386 >> >> Nagios >> Version 2.0b3 >> >> >> # ./check_snmp -V >> check_snmp (nagios-plugins 1.4.3) 1.58 >> >> >> >> From the webui >> >> APC-RR-R3-1.hou >> check_rr_amp >> WARNING 04-07-2009 13:00:17 8d 3h 17m 2s 10/10 SNMP WARNING - 90 >> >> APC-RR-R3-2.hou >> check_rr_amp >> WARNING 04-07-2009 12:57:52 18d 2h 46m 48s 10/10 SNMP WARNING - *160* >> >> ^note the * 160 * for the one that actually is in the warning range. >> >> >> from checkcommands.cfg >> >> define command { >> command_name check_rr_amp >> command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o >> mib-2.33.1.4.4.1.3.1 -C cPanel -w $ARG1$ -c $AR >> } >> >> >> From the hosts config file. >> >> define service{ >> host_name APC-RR-R1-1.hou >> service_description check_rr_amp >> check_command check_rr_amp!159!179 >> max_check_attempts 10 >> normal_check_interval 5 >> retry_check_interval 3 >> check_period 24x7 >> notification_interval 30 >> notification_period 24x7 >> notification_options w,c,r >> contact_groups backup-admins >> } >> >> >> >> Thanks! >> -=Tom >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Tue Apr 7 22:43:36 2009 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Tue, 07 Apr 2009 16:43:36 -0400 Subject: Distribuated Help In-Reply-To: References: Message-ID: <49DBBAF8.7000203@collaborativefusion.com> Christopher Burke wrote: > I need an answer that I haven?t been able to find in any docs or web > searches. > > > > I want to set up a distributed monitoring scenario using NSCA, but I > need to know if the Client will buffer checks when the connection is > lost to the central server, and then send them when the connection is > restored. > > > > Basically I want to continue to monitor a sites hosts even if the WAN > goes down so I have information during that timeperiod. > > > > Thank you > > > > Christopher I honestly don't know if it will buffer and resend, but at the very least, the individual processes will sit there waiting to timeout, which dramatically increases your check latency since Nagios has a max process limit. I have a setup where the distributed instances can "self promote" if they lose touch with the master, and the timeout issues made it completely unreliable because of the increased resolution. Look into OCP Daemon (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2521.html;d=1) - it solved my problem. -- Sean McAfee System Engineer ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GJFRATER at bechtel.com Tue Apr 7 22:56:58 2009 From: GJFRATER at bechtel.com (Frater, Greg J) Date: Tue, 7 Apr 2009 13:56:58 -0700 Subject: Some hostgroups NOT displaying (weirdness) Message-ID: <872CB0AEB377C240A112DD7C10B2592904B2152E@wtps0171.amers.ibechtel.com> Greetings All, I'm pretty lost and could use some help. We are moving a Nagios 1.x setup to Nagios 3.0.6. We have about 550 hosts and some 5000 services. About 3/4 of the way through our migration of config files we noticed that some of our hostgroups are not showing up in the web ui, but I have yet to figure out why. There are certain hostgroups (but not all) that are not displaying and if they are listed in the 'hostgroup_members' directive of another hostgroup it will cause the second hostgroup not to display either. I've tried every combination of member and hostgroup_members that I can think of but so far the only way I can duplicate the problem is use one of the known problem groups. Does anyone know what the logic or rules are that are used to determine if a hostgroup will display in the web ui or not? Any other suggestions on what to try to track this down? Any help is appreciated. Thanks, -greg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 7 23:36:07 2009 From: marc at ena.com (Marc Powell) Date: Tue, 7 Apr 2009 16:36:07 -0500 Subject: Distribuated Help In-Reply-To: <49DBBAF8.7000203@collaborativefusion.com> References: <49DBBAF8.7000203@collaborativefusion.com> Message-ID: On Apr 7, 2009, at 3:43 PM, Sean McAfee wrote: > Christopher Burke wrote: >> I need an answer that I haven?t been able to find in any docs or web >> searches. >> >> >> >> I want to set up a distributed monitoring scenario using NSCA, but I >> need to know if the Client will buffer checks when the connection is >> lost to the central server, and then send them when the connection is >> restored. > I honestly don't know if it will buffer and resend, No, Nagios nor NSCA will not buffer/resend results. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GJFRATER at bechtel.com Wed Apr 8 00:02:09 2009 From: GJFRATER at bechtel.com (Frater, Greg J) Date: Tue, 7 Apr 2009 15:02:09 -0700 Subject: Some hostgroups NOT displaying (weirdness) SOLVED In-Reply-To: <872CB0AEB377C240A112DD7C10B2592904B2152E@wtps0171.amers.ibechtel.com> References: <872CB0AEB377C240A112DD7C10B2592904B2152E@wtps0171.amers.ibechtel.com> Message-ID: <872CB0AEB377C240A112DD7C10B2592904B2152F@wtps0171.amers.ibechtel.com> Okay, I apparently have not learned the lesson to check the archives first. I found the answer there (http://article.gmane.org/gmane.network.nagios.user/45395/match=hostgrou p+not+display), I did not check there until after I posted. Anyways for future reference our problem was due to NOT having the web ui users as a contact of a hosts in the offending hostgroups. Regards, -greg ________________________________ From: Frater, Greg J Sent: Tuesday, April 07, 2009 1:57 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Some hostgroups NOT displaying (weirdness) Greetings All, I'm pretty lost and could use some help. We are moving a Nagios 1.x setup to Nagios 3.0.6. We have about 550 hosts and some 5000 services. About 3/4 of the way through our migration of config files we noticed that some of our hostgroups are not showing up in the web ui, but I have yet to figure out why. There are certain hostgroups (but not all) that are not displaying and if they are listed in the 'hostgroup_members' directive of another hostgroup it will cause the second hostgroup not to display either. I've tried every combination of member and hostgroup_members that I can think of but so far the only way I can duplicate the problem is use one of the known problem groups. Does anyone know what the logic or rules are that are used to determine if a hostgroup will display in the web ui or not? Any other suggestions on what to try to track this down? Any help is appreciated. Thanks, -greg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Apr 8 01:31:01 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Tue, 7 Apr 2009 16:31:01 -0700 Subject: Nagios Warning Bug/Misconfiguration In-Reply-To: <49DBB87F.9000906@aol.com> References: <49DBA7F3.6070803@aol.com> <20090407194155.GU30298@bakgwai.americas.hpqcorp.net> <49DBB87F.9000906@aol.com> Message-ID: <20090407233101.GZ30298@bakgwai.americas.hpqcorp.net> On Tue, 07 Apr 2009, Thomas Donnelly wrote: > Thanks for the quick reply! > > Ran from the command line got: > > # ./check_snmp -H 192.168.97.71 -o mib-2.33.1.2.4.0 -C secret -w 95: -c 75: > SNMP WARNING - 100 | SNMPv2-SMI::mib-2.33.1.2.4.0=100;;;; > > # ./check_snmp -H 192.168.97.71 -o mib-2.33.1.2.4.0 -C secret -w 95 -c 75: > SNMP WARNING - *100* | SNMPv2-SMI::mib-2.33.1.2.4.0=100;;;; > > So by intentionally triggering it again (remove ":"), it shows the *'s How about if you add a "-v" to get verbose output? Also, you may want to check the return code from the manual run on an OK resultx (for example, by running "echo $?" aafter your check_snmp command to make sure it matches what you see in the output). What happens in my case occasionally is that I install a screwed-up MIB for an unrelated service. It won't show any obvious errors, but it will cause check_snmp to return a warning result code regardless of whether the SNMP result falls within my thresholds. In effect, it's warning me that my MIBs are hosed, based on the fact that it got a non-OK result from snmpget (which is what check_snmp calls to do the actual SNMP getting). > Not really sure what they mean by: > > 1. Prevent check_snmp from loading the MIBs (default behaviour) by using > numeric oids AND using the "-m :" option If you a numeric OID rather than "mib-2.33.1.2.4.0" and pass the "-m :" then check_snmp (and, by extension, snmpget) don't need to load the MIBs at all, so you don't get an error if you've got a bad MIB. > > > > > Patrick Morris wrote: > > What happens when you run it manually? > > > > This, maybe? > > > > http://www.nagios.org/faqs/viewfaq.php?faq_id=208 > > > > On Tue, 07 Apr 2009, Thomas Donnelly wrote: > > > > > >> Hi all, > >> > >> I am having an issue with all of the devices I added showing warning all > >> the time. It is a simple snmp check to see if the amps are above > >> 160warn/180critical. They always say warning even though they are less > >> than the specified 160. One thing to note is once it hits the 160 mark > >> it gets the * value * in turn, showing that it is actually in the > >> warning range. I have shown the neccesary data I hope below. Any/all > >> help is greatly appreciated. > >> > >> > >> > >> # uname -a > >> FreeBSD server.example.net 5.5-RELEASE-p2 FreeBSD 5.5-RELEASE-p2 #3: Tue > >> Oct 9 22:39:13 EST 2007 > >> root at server.example.net:/usr/obj/usr/src/sys/MONITOR i386 > >> > >> Nagios > >> Version 2.0b3 > >> > >> > >> # ./check_snmp -V > >> check_snmp (nagios-plugins 1.4.3) 1.58 > >> > >> > >> > >> From the webui > >> > >> APC-RR-R3-1.hou > >> check_rr_amp > >> WARNING 04-07-2009 13:00:17 8d 3h 17m 2s 10/10 SNMP WARNING - 90 > >> > >> APC-RR-R3-2.hou > >> check_rr_amp > >> WARNING 04-07-2009 12:57:52 18d 2h 46m 48s 10/10 SNMP WARNING - *160* > >> > >> ^note the * 160 * for the one that actually is in the warning range. > >> > >> > >> from checkcommands.cfg > >> > >> define command { > >> command_name check_rr_amp > >> command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o > >> mib-2.33.1.4.4.1.3.1 -C cPanel -w $ARG1$ -c $AR > >> } > >> > >> > >> From the hosts config file. > >> > >> define service{ > >> host_name APC-RR-R1-1.hou > >> service_description check_rr_amp > >> check_command check_rr_amp!159!179 > >> max_check_attempts 10 > >> normal_check_interval 5 > >> retry_check_interval 3 > >> check_period 24x7 > >> notification_interval 30 > >> notification_period 24x7 > >> notification_options w,c,r > >> contact_groups backup-admins > >> } > >> > >> > >> > >> Thanks! > >> -=Tom > >> > >> > >> ------------------------------------------------------------------------------ > >> This SF.net email is sponsored by: > >> High Quality Requirements in a Collaborative Environment. > >> Download a free trial of Rational Requirements Composer Now! > >> http://p.sf.net/sfu/www-ibm-com > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > >> ::: Messages without supporting info will risk being sent to /dev/null > >> > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Wed Apr 8 05:54:17 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 8 Apr 2009 03:54:17 +0000 Subject: serious performance issue Message-ID: <6db4a4200904072054u38fcb2e4hd13690bdf3539d01@mail.gmail.com> I am seeing a ton of orphaned error message for both services and hosts. I am running nagios on a quad core 2.2 GHZ machine running 4 GHZ memory. I will paste my configuration file below. I have the machine sending ndo to a local database sitting on a 170 GB Hard drive. nagios is obcessing on both host and services and sending data to a machine with identical configuration. I am doing failover using NSCA. Please advise on this. nagios.cfg log_file=/var/log/nagios/nagios.log cfg_file=/etc/nagios/commands.cfg cfg_file=/etc/nagios/contacts.cfg cfg_file=/etc/nagios/timeperiods.cfg cfg_file=/etc/nagios/templates.cfg cfg_dir=/etc/nagios/hosts cfg_dir=/etc/nagios/services object_cache_file=/var/log/nagios/objects.cache precached_object_file=/var/log/nagios/objects.precache resource_file=/etc/nagios/resource.cfg status_file=/var/log/nagios/status.dat status_update_interval=60 nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/var/log/nagios/rw/nagios.cmd external_command_buffer_slots=8192 lock_file=/var/log/nagios/nagios.lock temp_file=/var/log/nagios/nagios.tmp temp_path=/tmp event_broker_options=8 broker_module=/usr/lib64/nagios/ndomod.o config_file=/etc/nagios/ndomod.cfg log_rotation_method=m log_archive_path=/var/log/nagios/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_checks=1 service_inter_check_delay_method=n max_service_check_spread=30 service_interleave_factor=s host_inter_check_delay_method=s max_host_check_spread=30 max_concurrent_checks=0 check_result_reaper_frequency=2 max_check_result_reaper_time=10 check_result_path=/var/log/nagios/spool/checkresults max_check_result_file_age=3600 cached_host_check_horizon=15 cached_service_check_horizon=15 enable_predictive_host_dependency_checks=1 enable_predictive_service_dependency_checks=1 soft_state_dependencies=1 auto_reschedule_checks=1 auto_rescheduling_interval=30 auto_rescheduling_window=180 sleep_time=0.25 service_check_timeout=30 host_check_timeout=20 event_handler_timeout=30 notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=var/log/nagios/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 interval_length=60 use_aggressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=1 ocsp_command=send_service_check ochp_command=send_host_check obsess_over_hosts=1 translate_passive_host_checks=0 passive_host_checks_are_soft=0 check_for_orphaned_services=1 check_for_orphaned_hosts=1 check_service_freshness=1 service_freshness_check_interval=60 check_host_freshness=0 host_freshness_check_interval=60 additional_freshness_latency=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=us enable_embedded_perl=1 use_embedded_perl_implicitly=1 illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> use_regexp_matching=0 use_true_regexp_matching=0 admin_email=sr2690 at columbia.edu daemon_dumps_core=0 use_large_installation_tweaks=1 enable_environment_macros=1 debug_level=-1debug_verbosity=2 debug_file=/var/log/nagios/nagios.debug max_debug_file_size=1000000 my nagiostats output [sr2690>nagiostats Nagios Stats 3.0.6 Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org) Last Modified: 12-01-2008 License: GPL CURRENT STATUS DATA ------------------------------------------------------ Status File: /var/log/nagios/status.dat Status File Age: 0d 0h 0m 19s Status File Version: 3.0.6 Program Running Time: 0d 2h 5m 28s Nagios PID: 12139 Used/High/Total Command Buffers: 0 / 0 / 8192 Total Services: 2783 Services Checked: 2783 Services Scheduled: 2782 Services Actively Checked: 2783 Services Passively Checked: 0 Total Service State Change: 0.000 / 52.830 / 0.263 % Active Service Latency: 1.304 / 12092.843 / 1469.130 sec Active Service Execution Time: 0.011 / 15.103 / 0.468 sec Active Service State Change: 0.000 / 52.830 / 0.263 % Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 129 Passive Service Latency: 0.000 / 0.000 / 0.000 sec Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit: 2560 / 13 / 186 / 24 Services Flapping: 17 Services In Downtime: 0 Total Hosts: 3037 Hosts Checked: 3005 Hosts Scheduled: 3029 Hosts Actively Checked: 3037 Host Passively Checked: 0 Total Host State Change: 0.000 / 53.620 / 0.227 % Active Host Latency: 0.000 / 12080.792 / 3770.409 sec Active Host Execution Time: 0.000 / 104.093 / 2.500 sec Active Host State Change: 0.000 / 53.620 / 0.227 % Active Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 256 Passive Host Latency: 0.000 / 0.000 / 0.000 sec Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 2849 / 188 / 0 Hosts Flapping: 10 Hosts In Downtime: 0 Active Host Checks Last 1/5/15 min: 0 / 0 / 1 Scheduled: 0 / 0 / 0 On-demand: 0 / 0 / 1 Parallel: 0 / 0 / 0 Serial: 0 / 0 / 0 Cached: 0 / 0 / 1 Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 Active Service Checks Last 1/5/15 min: 0 / 0 / 0 Scheduled: 0 / 0 / 0 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 External Commands Last 1/5/15 min: 0 / 0 / 0 -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fancyrabbit at gmail.com Wed Apr 8 07:56:26 2009 From: fancyrabbit at gmail.com (fancyrabbit) Date: Wed, 8 Apr 2009 13:56:26 +0800 Subject: serious performance issue In-Reply-To: <6db4a4200904072054u38fcb2e4hd13690bdf3539d01@mail.gmail.com> References: <6db4a4200904072054u38fcb2e4hd13690bdf3539d01@mail.gmail.com> Message-ID: i met almost the same issue. after tweaking enable_embedded_perl=0, the load average was brought up but latencies became lower. On Wed, Apr 8, 2009 at 11:54 AM, shadih rahman wrote: > I am seeing a ton of orphaned error message for both services and hosts. I > am running nagios on a quad core 2.2 GHZ machine running 4 GHZ memory. I > will paste my configuration file below. I have the machine sending ndo to a > local database sitting on a 170 GB Hard drive. nagios is obcessing on both > host and services and sending data to a machine with identical > configuration. I am doing failover using NSCA. Please advise on this. > > > > > > nagios.cfg > > > > log_file=/var/log/nagios/nagios.log > cfg_file=/etc/nagios/commands.cfg > cfg_file=/etc/nagios/contacts.cfg > cfg_file=/etc/nagios/timeperiods.cfg > cfg_file=/etc/nagios/templates.cfg > cfg_dir=/etc/nagios/hosts > cfg_dir=/etc/nagios/services > object_cache_file=/var/log/nagios/objects.cache > precached_object_file=/var/log/nagios/objects.precache > resource_file=/etc/nagios/resource.cfg > status_file=/var/log/nagios/status.dat > status_update_interval=60 > nagios_user=nagios > nagios_group=nagios > check_external_commands=1 > command_check_interval=-1 > command_file=/var/log/nagios/rw/nagios.cmd > external_command_buffer_slots=8192 > lock_file=/var/log/nagios/nagios.lock > temp_file=/var/log/nagios/nagios.tmp > temp_path=/tmp > event_broker_options=8 > broker_module=/usr/lib64/nagios/ndomod.o config_file=/etc/nagios/ndomod.cfg > log_rotation_method=m > log_archive_path=/var/log/nagios/archives > use_syslog=1 > log_notifications=1 > log_service_retries=1 > log_host_retries=1 > log_event_handlers=1 > log_initial_states=0 > log_external_commands=1 > log_passive_checks=1 > service_inter_check_delay_method=n > max_service_check_spread=30 > service_interleave_factor=s > host_inter_check_delay_method=s > max_host_check_spread=30 > max_concurrent_checks=0 > check_result_reaper_frequency=2 > max_check_result_reaper_time=10 > check_result_path=/var/log/nagios/spool/checkresults > max_check_result_file_age=3600 > cached_host_check_horizon=15 > cached_service_check_horizon=15 > enable_predictive_host_dependency_checks=1 > enable_predictive_service_dependency_checks=1 > soft_state_dependencies=1 > auto_reschedule_checks=1 > auto_rescheduling_interval=30 > auto_rescheduling_window=180 > sleep_time=0.25 > service_check_timeout=30 > host_check_timeout=20 > > event_handler_timeout=30 > notification_timeout=60 > ocsp_timeout=5 > perfdata_timeout=5 > retain_state_information=1 > state_retention_file=var/log/nagios/retention.dat > retention_update_interval=60 > use_retained_program_state=1 > use_retained_scheduling_info=1 > retained_host_attribute_mask=0 > retained_service_attribute_mask=0 > retained_process_host_attribute_mask=0 > retained_process_service_attribute_mask=0 > retained_contact_host_attribute_mask=0 > retained_contact_service_attribute_mask=0 > interval_length=60 > use_aggressive_host_checking=0 > execute_service_checks=1 > accept_passive_service_checks=1 > execute_host_checks=1 > accept_passive_host_checks=1 > enable_notifications=1 > enable_event_handlers=1 > process_performance_data=0 > obsess_over_services=1 > ocsp_command=send_service_check > ochp_command=send_host_check > obsess_over_hosts=1 > translate_passive_host_checks=0 > passive_host_checks_are_soft=0 > check_for_orphaned_services=1 > check_for_orphaned_hosts=1 > check_service_freshness=1 > service_freshness_check_interval=60 > check_host_freshness=0 > host_freshness_check_interval=60 > additional_freshness_latency=15 > enable_flap_detection=1 > low_service_flap_threshold=5.0 > high_service_flap_threshold=20.0 > low_host_flap_threshold=5.0 > high_host_flap_threshold=20.0 > date_format=us > enable_embedded_perl=1 > use_embedded_perl_implicitly=1 > illegal_object_name_chars=`~!$%^&*|'"<>?,()= > illegal_macro_output_chars=`~$&|'"<> > use_regexp_matching=0 > use_true_regexp_matching=0 > admin_email=sr2690 at columbia.edu > daemon_dumps_core=0 > use_large_installation_tweaks=1 > enable_environment_macros=1 > debug_level=-1debug_verbosity=2 > debug_file=/var/log/nagios/nagios.debug > max_debug_file_size=1000000 > > > > > my nagiostats output > > > > > > > > [sr2690>nagiostats > > Nagios Stats 3.0.6 > Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org) > Last Modified: 12-01-2008 > License: GPL > > CURRENT STATUS DATA > ------------------------------------------------------ > Status File: /var/log/nagios/status.dat > Status File Age: 0d 0h 0m 19s > Status File Version: 3.0.6 > > Program Running Time: 0d 2h 5m 28s > Nagios PID: 12139 > Used/High/Total Command Buffers: 0 / 0 / 8192 > > Total Services: 2783 > Services Checked: 2783 > Services Scheduled: 2782 > Services Actively Checked: 2783 > Services Passively Checked: 0 > Total Service State Change: 0.000 / 52.830 / 0.263 % > Active Service Latency: 1.304 / 12092.843 / 1469.130 sec > Active Service Execution Time: 0.011 / 15.103 / 0.468 sec > Active Service State Change: 0.000 / 52.830 / 0.263 % > Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 129 > Passive Service Latency: 0.000 / 0.000 / 0.000 sec > Passive Service State Change: 0.000 / 0.000 / 0.000 % > Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 > Services Ok/Warn/Unk/Crit: 2560 / 13 / 186 / 24 > Services Flapping: 17 > Services In Downtime: 0 > > Total Hosts: 3037 > Hosts Checked: 3005 > Hosts Scheduled: 3029 > Hosts Actively Checked: 3037 > Host Passively Checked: 0 > Total Host State Change: 0.000 / 53.620 / 0.227 % > Active Host Latency: 0.000 / 12080.792 / 3770.409 sec > Active Host Execution Time: 0.000 / 104.093 / 2.500 sec > Active Host State Change: 0.000 / 53.620 / 0.227 % > Active Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 256 > Passive Host Latency: 0.000 / 0.000 / 0.000 sec > Passive Host State Change: 0.000 / 0.000 / 0.000 % > Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 > Hosts Up/Down/Unreach: 2849 / 188 / 0 > Hosts Flapping: 10 > Hosts In Downtime: 0 > > Active Host Checks Last 1/5/15 min: 0 / 0 / 1 > Scheduled: 0 / 0 / 0 > On-demand: 0 / 0 / 1 > Parallel: 0 / 0 / 0 > Serial: 0 / 0 / 0 > Cached: 0 / 0 / 1 > Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 > Active Service Checks Last 1/5/15 min: 0 / 0 / 0 > Scheduled: 0 / 0 / 0 > On-demand: 0 / 0 / 0 > Cached: 0 / 0 / 0 > Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 > > External Commands Last 1/5/15 min: 0 / 0 / 0 > > > > > > > -- > Cordially, > Shadhin Rahman > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From xml.devel at gmail.com Wed Apr 8 10:14:27 2009 From: xml.devel at gmail.com (Kumar, Ashish) Date: Wed, 8 Apr 2009 13:44:27 +0530 Subject: Interesting problem while trying to monitor Oracle RAC services [Solved] Message-ID: <633e02960904080114p50dc2904kb20b673d4b03f0c2@mail.gmail.com> >> check the environment of the users launching the script. Which user do you >> "use" to launch the script locally? And which one from remote? > > On nagios server I have tried executing it as root user as well as > nagios user but the problem remains. > Hello all, I made a mistake in the plug-in. Both Perl script and KSH script were residing in the same directory. When executing locally it knew where to look for external shell script. The code was as follows: my $PIPED = qx# ksh check_oracle_services.sh $SERVICE #; But when executed from nagios server, NRPE daemon on monitored host wouldn't know where to look for the shell script hence the wrong output. Adding absolute path to the check_oracle_services.sh fixed the problem my $PIPED = qx# ksh /home/nagios/nrpe/libexec/check_oracle_services.sh $SERVICE #; The new code is as follows (may be someone would find it useful): check_oracle_services.pl ------------------------------------ #!/usr/bin/env perl use strict; use Getopt::Std; my %return_value = ( OK => 0, CRIT => 2, UNKNOWN => 3 ); my $message = "nagios"; my $exit_status; my %opt=(); getopts("p:h", \%opt); sub usage(){ print "Usage: $0 -p service_name\n"; exit $return_value{'UNKNOWN'}; } usage() if defined $opt{'h'}; my $SERVICE = $opt{'p'} if defined $opt{'p'} || usage(); my $PIPED = qx# ksh /home/nagios/nrpe/libexec/check_oracle_services.sh $SERVICE #; if ($PIPED =~ /OFFLINE/g) { $exit_status = $return_value{'CRIT'}; $message = "Critical: $SERVICE is not running."; } else { $exit_status = $return_value{'OK'}; $message = "OK: $SERVICE is running."; } print "$message\n"; exit $exit_status; ------------------------------------ check_oracle_services.sh ------------------------------------ #!/usr/bin/ksh RSC_KEY=$1 /oracle/crs_home/bin/crs_stat -u | awk \ 'BEGIN { FS="="; state = 0; } \ $1~/NAME/ && $2~/'$RSC_KEY'/ {appname = $2; state=1}; \ state == 0 {next;} \ $1~/TARGET/ && state == 1 {apptarget = $2; state=2;} \ $1~/STATE/ && state == 2 {appstate = $2; state=3;} \ state == 3 {printf "%-45s %-18s\n", appname, appstate; state=0;}' Sorry for the inconvenience caused. Thanks ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Wed Apr 8 11:15:40 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Wed, 8 Apr 2009 10:15:40 +0100 Subject: Nagios and Cacti Message-ID: Hi all, I've been looking into making use of Cacti to act as an SNMP management tool which runs alongside my Nagios instance. Ideally, what I would like to do is have Cacti monitor various SNMP-exposed metrics on my hosts, and then have a service check in Nagios which parses Cacti's results (which I believe are RRD files) and send alerts etc. Nagios itself will still be used for running directly checks for services running, errors in log files etc. Does this approach make sense? One issue that I can think of is the difficulty in keeping the config files of Nagios and Cacti synchronised. I was planning on using Lilac Platform to act as my Nagios config file management tool, but how that is kept in synch with Cacti is a problem. Has anyone ever set up an arrangement like this before? Cheers, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Wed Apr 8 12:22:06 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Wed, 8 Apr 2009 12:22:06 +0200 Subject: monitor primergy servers with esx In-Reply-To: <90f6e8270904071243n4f8c2f69we8a56ccadfceebba@mail.gmail.com> References: <20090407.7YB.11783600@www.zarrelli.org> <1239131503.5243.0@antares> <90f6e8270904071243n4f8c2f69we8a56ccadfceebba@mail.gmail.com> Message-ID: <90f6e8270904080322k371d7380t3c85d25edba6c060@mail.gmail.com> hi, I have done some tests. One needs the RAID.mib file and this file is only in the windows package for serverviewraid (tsk, tsk). Anyway, once we have this file we can test stuff. Important OIDS: .1.3.6.1.4.1.231.2.49.1.5.2.1 -> .iso.org.dod.internet.private.enterprises.sni.sniProductMibs.fscRAIDMIB.svrObjects.svrPhysicalDeviceInfo.svrPhysicalDeviceTable.svrPhysicalDeviceEntry .1.3.6.1.4.1.231.2.49.1.3 -> .iso.org.dod.internet.private.enterprises.sni.sniProductMibs.fscRAIDMIB.svrObjects.svrStatus Situation 1: disks are online and working fine: $ snmpwalk server -c public -v 1 -m FSC-RAID-MIB .1.3.6.1.4.1.231.2.49.1.3 FSC-RAID-MIB::svrStatusLogicalDrives.0 = INTEGER: ok(1) FSC-RAID-MIB::svrStatusPhysicalDevices.0 = INTEGER: ok(1) FSC-RAID-MIB::svrStatusControllers.0 = INTEGER: ok(1) FSC-RAID-MIB::svrStatusOverall.0 = INTEGER: ok(1) [jose at pc2668-210307 mibs]$ snmpwalk izvm01 -c public -v 1 -m FSC-RAID-MIB .1.3.6.1.4.1.231.2.49.1.5.2.1 FSC-RAID-MIB::svrPhysicalDeviceCtrlNr.1.1.0.0 = INTEGER: 1 FSC-RAID-MIB::svrPhysicalDeviceCtrlNr.1.2.3.0 = INTEGER: 1 FSC-RAID-MIB::svrPhysicalDeviceChannel.1.1.0.0 = INTEGER: 1 FSC-RAID-MIB::svrPhysicalDeviceChannel.1.2.3.0 = INTEGER: 2 FSC-RAID-MIB::svrPhysicalDeviceTarget.1.1.0.0 = INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceTarget.1.2.3.0 = INTEGER: 3 FSC-RAID-MIB::svrPhysicalDeviceLUN.1.1.0.0 = INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceLUN.1.2.3.0 = INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceModelName.1.1.0.0 = STRING: "ST373455SS" FSC-RAID-MIB::svrPhysicalDeviceModelName.1.2.3.0 = STRING: "ST373455SS" FSC-RAID-MIB::svrPhysicalDeviceVendorName.1.1.0.0 = STRING: "SEAGATE" FSC-RAID-MIB::svrPhysicalDeviceVendorName.1.2.3.0 = STRING: "SEAGATE" FSC-RAID-MIB::svrPhysicalDeviceCapacity.1.1.0.0 = INTEGER: 68 FSC-RAID-MIB::svrPhysicalDeviceCapacity.1.2.3.0 = INTEGER: 68 FSC-RAID-MIB::svrPhysicalDeviceMaxTransferRate.1.1.0.0 = INTEGER: 300 FSC-RAID-MIB::svrPhysicalDeviceMaxTransferRate.1.2.3.0 = INTEGER: 300 FSC-RAID-MIB::svrPhysicalDeviceType.1.1.0.0 = INTEGER: disk(2) FSC-RAID-MIB::svrPhysicalDeviceType.1.2.3.0 = INTEGER: disk(2) FSC-RAID-MIB::svrPhysicalDeviceConfiguredDisk.1.1.0.0 = INTEGER: true(2) FSC-RAID-MIB::svrPhysicalDeviceConfiguredDisk.1.2.3.0 = INTEGER: true(2) FSC-RAID-MIB::svrPhysicalDeviceInterface.1.1.0.0 = INTEGER: sas(6) FSC-RAID-MIB::svrPhysicalDeviceInterface.1.2.3.0 = INTEGER: sas(6) FSC-RAID-MIB::svrPhysicalDeviceErrors.1.1.0.0 = Counter32: 0 FSC-RAID-MIB::svrPhysicalDeviceErrors.1.2.3.0 = Counter32: 0 FSC-RAID-MIB::svrPhysicalDeviceNrBadBlocks.1.1.0.0 = Counter32: 0 FSC-RAID-MIB::svrPhysicalDeviceNrBadBlocks.1.2.3.0 = Counter32: 0 FSC-RAID-MIB::svrPhysicalDeviceSmartStatus.1.1.0.0 = INTEGER: ok(1) FSC-RAID-MIB::svrPhysicalDeviceSmartStatus.1.2.3.0 = INTEGER: ok(1) FSC-RAID-MIB::svrPhysicalDeviceStatus.1.1.0.0 = INTEGER: online(3) FSC-RAID-MIB::svrPhysicalDeviceStatus.1.2.3.0 = INTEGER: online(3) FSC-RAID-MIB::svrPhysicalDeviceFirmwareRevision.1.1.0.0 = STRING: "1651" FSC-RAID-MIB::svrPhysicalDeviceFirmwareRevision.1.2.3.0 = STRING: "1651" FSC-RAID-MIB::svrPhysicalDeviceSerialNumber.1.1.0.0 = STRING: "3LQ0DA03" FSC-RAID-MIB::svrPhysicalDeviceSerialNumber.1.2.3.0 = STRING: "3LQ0DAD7" FSC-RAID-MIB::svrPhysicalDeviceForeignConfig.1.1.0.0 = INTEGER: false(1) FSC-RAID-MIB::svrPhysicalDeviceForeignConfig.1.2.3.0 = INTEGER: false(1) FSC-RAID-MIB::svrPhysicalDeviceIdx.1.1.0.0 = INTEGER: 11 FSC-RAID-MIB::svrPhysicalDeviceIdx.1.2.3.0 = INTEGER: 12 FSC-RAID-MIB::svrPhysicalDeviceEntry.20.1.1.0.0 = INTEGER: 4 FSC-RAID-MIB::svrPhysicalDeviceEntry.20.1.2.3.0 = INTEGER: 4 FSC-RAID-MIB::svrPhysicalDeviceEntry.21.1.1.0.0 = INTEGER: 70007 FSC-RAID-MIB::svrPhysicalDeviceEntry.21.1.2.3.0 = INTEGER: 70007 Disks are online Situation 2: I remove one disk from its bay $ snmpwalk server -c public -v 1 -m FSC-RAID-MIB .1.3.6.1.4.1.231.2.49.1.3 FSC-RAID-MIB::svrStatusLogicalDrives.0 = INTEGER: prefailure(2) FSC-RAID-MIB::svrStatusPhysicalDevices.0 = INTEGER: failure(3) FSC-RAID-MIB::svrStatusControllers.0 = INTEGER: prefailure(2) FSC-RAID-MIB::svrStatusOverall.0 = INTEGER: prefailure(2) Everything is 'prefailure', except for physicaldevices, it's a 'failure' (disk is physically removed from the bay). I forgot to check the other OID for this one, I'll post the results later. Situation 3: 'failed' disk is back in bay, rebuilding starts: $ snmpwalk server -c public -v 1 -m FSC-RAID-MIB .1.3.6.1.4.1.231.2.49.1.3 FSC-RAID-MIB::svrStatusLogicalDrives.0 = INTEGER: prefailure(2) FSC-RAID-MIB::svrStatusPhysicalDevices.0 = INTEGER: ok(1) FSC-RAID-MIB::svrStatusControllers.0 = INTEGER: prefailure(2) FSC-RAID-MIB::svrStatusOverall.0 = INTEGER: prefailure(2) everthing is 'prefailure' except for svrStatusPhysicalDevices.0, it is 'ok', disks is in bay. $ snmpwalk server -c public -v 1 -m FSC-RAID-MIB .1.3.6.1.4.1.231.2.49.1.5.2.1 FSC-RAID-MIB::svrPhysicalDeviceCtrlNr.1.0.0.0 = INTEGER: 1 FSC-RAID-MIB::svrPhysicalDeviceCtrlNr.1.3.0.3 = INTEGER: 1 FSC-RAID-MIB::svrPhysicalDeviceChannel.1.0.0.0 = INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceChannel.1.3.0.3 = INTEGER: 3 FSC-RAID-MIB::svrPhysicalDeviceTarget.1.0.0.0 = INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceTarget.1.3.0.3 = INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceLUN.1.0.0.0 = INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceLUN.1.3.0.3 = INTEGER: 3 FSC-RAID-MIB::svrPhysicalDeviceModelName.1.0.0.0 = STRING: "MAX3073RC" FSC-RAID-MIB::svrPhysicalDeviceModelName.1.3.0.3 = STRING: "ST373455SS" FSC-RAID-MIB::svrPhysicalDeviceVendorName.1.0.0.0 = STRING: "FUJITSU" FSC-RAID-MIB::svrPhysicalDeviceVendorName.1.3.0.3 = STRING: "SEAGATE" FSC-RAID-MIB::svrPhysicalDeviceCapacity.1.0.0.0 = INTEGER: 68 FSC-RAID-MIB::svrPhysicalDeviceCapacity.1.3.0.3 = INTEGER: 68 FSC-RAID-MIB::svrPhysicalDeviceMaxTransferRate.1.0.0.0 = INTEGER: 300 FSC-RAID-MIB::svrPhysicalDeviceMaxTransferRate.1.3.0.3 = INTEGER: 300 FSC-RAID-MIB::svrPhysicalDeviceType.1.0.0.0 = INTEGER: disk(2) FSC-RAID-MIB::svrPhysicalDeviceType.1.3.0.3 = INTEGER: disk(2) FSC-RAID-MIB::svrPhysicalDeviceConfiguredDisk.1.0.0.0 = INTEGER: false(1) FSC-RAID-MIB::svrPhysicalDeviceConfiguredDisk.1.3.0.3 = INTEGER: false(1) FSC-RAID-MIB::svrPhysicalDeviceInterface.1.0.0.0 = INTEGER: sas(6) FSC-RAID-MIB::svrPhysicalDeviceInterface.1.3.0.3 = INTEGER: sas(6) FSC-RAID-MIB::svrPhysicalDeviceErrors.1.0.0.0 = Wrong Type (should be Counter32): INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceErrors.1.3.0.3 = Wrong Type (should be Counter32): INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceNrBadBlocks.1.0.0.0 = Wrong Type (should be Counter32): INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceNrBadBlocks.1.3.0.3 = Wrong Type (should be Counter32): INTEGER: 0 FSC-RAID-MIB::svrPhysicalDeviceSmartStatus.1.0.0.0 = INTEGER: smartNotAvailable(3) FSC-RAID-MIB::svrPhysicalDeviceSmartStatus.1.3.0.3 = INTEGER: smartNotAvailable(3) FSC-RAID-MIB::svrPhysicalDeviceStatus.1.0.0.0 = INTEGER: rebuilding(6) FSC-RAID-MIB::svrPhysicalDeviceStatus.1.3.0.3 = INTEGER: online(3) FSC-RAID-MIB::svrPhysicalDeviceFirmwareRevision.1.0.0.0 = STRING: "5205" FSC-RAID-MIB::svrPhysicalDeviceFirmwareRevision.1.3.0.3 = STRING: "1652" FSC-RAID-MIB::svrPhysicalDeviceSerialNumber.1.0.0.0 = STRING: "DQD7P7201YDH@#21" FSC-RAID-MIB::svrPhysicalDeviceSerialNumber.1.3.0.3 = STRING: "3LQ22A92" FSC-RAID-MIB::svrPhysicalDeviceForeignConfig.1.0.0.0 = INTEGER: false(1) FSC-RAID-MIB::svrPhysicalDeviceForeignConfig.1.3.0.3 = INTEGER: false(1) FSC-RAID-MIB::svrPhysicalDeviceIdx.1.0.0.0 = INTEGER: 12 FSC-RAID-MIB::svrPhysicalDeviceIdx.1.3.0.3 = INTEGER: 11 the svrPhysicalDeviceStatus of one disk is 'online', the other is 'rebuilding', With this info I will try to write a plugin to monitor the fujitsu raid stuff with snmp. It works with esx and windows 2k3, I see for now. I suppose it will also work with linux. -- Natxo Asenjo ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marco.tirado at gmail.com Wed Apr 8 13:24:49 2009 From: marco.tirado at gmail.com (Marco Tirado) Date: Wed, 8 Apr 2009 13:24:49 +0200 Subject: Nagios and Cacti In-Reply-To: References: Message-ID: Hello: There are a couple of examples in the nagios exchange page of different approachs for integrating nagios and cacti. You should check that out. I believe the synchronization is going to cost you time and money, a better approach is to use nagios + pnp4naigos (this generates nice graphs) + check_snmp_int.pl (this for bandwidth tests). That way you have only one place to place your configuration. There are tons of other snmp plugins you can use for other tests (CPU, Memory, etc), //Marco On Wed, Apr 8, 2009 at 11:15 AM, Christopher McAtackney wrote: > Hi all, > > I've been looking into making use of Cacti to act as an SNMP > management tool which runs alongside my Nagios instance. > > Ideally, what I would like to do is have Cacti monitor various > SNMP-exposed metrics on my hosts, and then have a service check in > Nagios which parses Cacti's results (which I believe are RRD files) > and send alerts etc. > > Nagios itself will still be used for running directly checks for > services running, errors in log files etc. > > Does this approach make sense? > > One issue that I can think of is the difficulty in keeping the config > files of Nagios and Cacti synchronised. I was planning on using Lilac > Platform to act as my Nagios config file management tool, but how that > is kept in synch with Cacti is a problem. Has anyone ever set up an > arrangement like this before? > > Cheers, > Chris > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thierry.list1 at gmail.com Wed Apr 8 15:41:27 2009 From: thierry.list1 at gmail.com (=?ISO-8859-1?Q?Thierry_Lavall=E9e?=) Date: Wed, 8 Apr 2009 09:41:27 -0400 Subject: Name or service not known Message-ID: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> Hi, I am getting the following about 50 times per day: HTTP CRITICAL 04-08-2009 09:37:29 0d 0h 1m 50s 1/4 Name or service not known SSH UNKNOWN 04-08-2009 09:34:39 0d 0h 4m 40s 1/4 Usage:check_ssh [-46] [-t ] [-r ] [-p ] I am somewhat at lost here... Can anyone help with this? -- Thierry ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Wed Apr 8 15:54:12 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 8 Apr 2009 14:54:12 +0100 Subject: Name or service not known In-Reply-To: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> References: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> Message-ID: <200904081454.12922.assaf.flatto@ssp-intl.com> can you provide the relevant conf so we may understand more about your problem ? On Wednesday 08 April 2009 14:41:27 Thierry Lavall?e wrote: > Hi, > I am getting the following about 50 times per day: > > HTTP CRITICAL 04-08-2009 09:37:29 0d 0h 1m 50s 1/4 Name or service not > known SSH UNKNOWN 04-08-2009 09:34:39 0d 0h 4m 40s 1/4 Usage:check_ssh > [-46] [-t ] [-r ] [-p ] > > I am somewhat at lost here... > Can anyone help with this? -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thierry.list1 at gmail.com Wed Apr 8 16:29:02 2009 From: thierry.list1 at gmail.com (=?ISO-8859-1?Q?Thierry_Lavall=E9e?=) Date: Wed, 8 Apr 2009 10:29:02 -0400 Subject: Name or service not known In-Reply-To: <200904081454.12922.assaf.flatto@ssp-intl.com> References: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> <200904081454.12922.assaf.flatto@ssp-intl.com> Message-ID: <99d33f0904080729n62dcfeceua46e384093032173@mail.gmail.com> thanks a lot for your reply Assaf, I am not sure which conf you mean but here are a few things in the meantime. Maybe you could point this Nagios newbie what you need? :/ thanks! -- Thierry ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Host Description Max. Check Attempts Normal Check Interval Retry Check Interal Check Command Check Period Parallelize Volatile Obsess Over Enable Active Checks Enable Passive Checks Check Freshness Freshness Threshold Default Contacts/Groups Enable Notifications Notification Interval First Notification Delay Notification Options Notification Period Event Handler Enable Event Handler Stalking Options Enable Flap Detection Low Flap Threshold High Flap Threshold Flap Detection Options Process Performance Data Enable Failure Prediction Failure Prediction Options Notes Notes URL Action URL Logo Image Image Alt Retention Options localhost Current Load 4 0h 5m 0s 0h 1m 0s check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 24x7 Yes No Yes Yes Yes No Auto-determined value admins Yes 1h 0m 0s 0h 0m 0s Unknown, Warning, Critical, Recovery 24x7 Yes None Yes Program-wide value Program-wide value Ok, Warning, Unknown, Critical Yes Yes Status Information, Non-Status Information localhost Current Users 4 0h 5m 0s 0h 1m 0s check_local_users!20!50 24x7 Yes No Yes Yes Yes No Auto-determined value admins Yes 1h 0m 0s 0h 0m 0s Unknown, Warning, Critical, Recovery 24x7 Yes None Yes Program-wide value Program-wide value Ok, Warning, Unknown, Critical Yes Yes Status Information, Non-Status Information localhost HTTP 4 0h 5m 0s 0h 1m 0s check_http 24x7 Yes No Yes Yes Yes No Auto-determined value admins No 1h 0m 0s 0h 0m 0s Unknown, Warning, Critical, Recovery 24x7 Yes None Yes Program-wide value Program-wide value Ok, Warning, Unknown, Critical Yes Yes Status Information, Non-Status Information localhost PING 4 0h 5m 0s 0h 1m 0s check_ping!100.0,20%!500.0,60% 24x7 Yes No Yes Yes Yes No Auto-determined value admins Yes 1h 0m 0s 0h 0m 0s Unknown, Warning, Critical, Recovery 24x7 Yes None Yes Program-wide value Program-wide value Ok, Warning, Unknown, Critical Yes Yes Status Information, Non-Status Information localhost Root Partition 4 0h 5m 0s 0h 1m 0s check_local_disk!20%!10%!/ 24x7 Yes No Yes Yes Yes No Auto-determined value admins Yes 1h 0m 0s 0h 0m 0s Unknown, Warning, Critical, Recovery 24x7 Yes None Yes Program-wide value Program-wide value Ok, Warning, Unknown, Critical Yes Yes Status Information, Non-Status Information localhost SSH 4 0h 5m 0s 0h 1m 0s check_ssh 24x7 Yes No Yes Yes Yes No Auto-determined value admins No 1h 0m 0s 0h 0m 0s Unknown, Warning, Critical, Recovery 24x7 Yes None Yes Program-wide value Program-wide value Ok, Warning, Unknown, Critical Yes Yes Status Information, Non-Status Information localhost Swap Usage 4 0h 5m 0s 0h 1m 0s check_local_swap!20!10 24x7 Yes No Yes Yes Yes No Auto-determined value admins Yes 1h 0m 0s 0h 0m 0s Unknown, Warning, Critical, Recovery 24x7 Yes None Yes Program-wide value Program-wide value Ok, Warning, Unknown, Critical Yes Yes Status Information, Non-Status Information localhost Total Processes 4 0h 5m 0s 0h 1m 0s check_local_procs!250!400!RSZDT 24x7 Yes No Yes Yes Yes No Auto-determined value admins Yes 1h 0m 0s 0h 0m 0s Unknown, Warning, Critical, Recovery 24x7 Yes None Yes Program-wide value Program-wide value Ok, Warning, Unknown, Critical Yes Yes Status Information, Non-Status Information ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On Wed, Apr 8, 2009 at 9:54 AM, Assaf Flatto wrote: > can you provide the relevant conf so we may understand more about your problem ? > > > > On Wednesday 08 April 2009 14:41:27 Thierry Lavall?e wrote: >> Hi, >> I am getting the following about 50 times per day: >> >> HTTP ?CRITICAL ? ? ? ?04-08-2009 09:37:29 ? ? 0d 0h 1m 50s ? ?1/4 ? ? Name or service not >> known SSH ? ? UNKNOWN ? ? ? ? 04-08-2009 09:34:39 ? ? 0d 0h 4m 40s ? ?1/4 ? ? Usage:check_ssh >> [-46] [-t ] [-r ] [-p ] >> >> I am somewhat at lost here... >> Can anyone help with this? > > > > -- > Assaf Flatto > SSP Ops Team > Linux System Administrator > 169 Euston Road, London, NW1 2AE > > > > > > IMPORTANT . this email and the information in it may be confidential, legally > privileged and/or protected by law. It is intended solely for the use of the > person to whom it is addressed. If you are not the intended recipient, please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email communications. We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and Wales > (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thierry Lavall?e Filemaker Development in Montreal http://www.8p-design.com/en/filemaker.asp Internet Business Solutions in Montreal ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thierry.list1 at gmail.com Wed Apr 8 16:32:06 2009 From: thierry.list1 at gmail.com (=?ISO-8859-1?Q?Thierry_Lavall=E9e?=) Date: Wed, 8 Apr 2009 10:32:06 -0400 Subject: Name or service not known In-Reply-To: <200904081454.12922.assaf.flatto@ssp-intl.com> References: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> <200904081454.12922.assaf.flatto@ssp-intl.com> Message-ID: <99d33f0904080732g376a7169l2f10ecdaf0a096c5@mail.gmail.com> or maybe you mean: ++++++++++++++++++++++++++++++++++++++++++++++++ check_http ++++++++++++++++++++++++++++++++++++++++++++++++ check-host-alive $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 check_dhcp $USER1$/check_dhcp $ARG1$ check_ftp $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ check_hpjd $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$ check_http $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ check_imap $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$ check_local_disk $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ check_local_load $USER1$/check_load -w $ARG1$ -c $ARG2$ check_local_mrtgtraf $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$ check_local_procs $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ check_local_swap $USER1$/check_swap -w $ARG1$ -c $ARG2$ check_local_users $USER1$/check_users -w $ARG1$ -c $ARG2$ check_nt $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ check_ping $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 check_pop $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$ check_smtp $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$ check_snmp $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$ check_ssh $USER1$/check_ssh $ARG1$ $HOSTADDRESS$ check_tcp $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$ check_udp $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$ notify-host-by-email /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ notify-service-by-email /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ process-host-perfdata /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /usr/local/nagios/var/host-perfdata.out process-service-perfdata /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /usr/local/nagios/var/service-perfdata.out ++++++++++++++++++++++++++++++++++++++++++++++++ check_SSH ++++++++++++++++++++++++++++++++++++++++++++++++ check-host-alive $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 check_dhcp $USER1$/check_dhcp $ARG1$ check_ftp $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ check_hpjd $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$ check_http $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ check_imap $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$ check_local_disk $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ check_local_load $USER1$/check_load -w $ARG1$ -c $ARG2$ check_local_mrtgtraf $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$ check_local_procs $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ check_local_swap $USER1$/check_swap -w $ARG1$ -c $ARG2$ check_local_users $USER1$/check_users -w $ARG1$ -c $ARG2$ check_nt $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ check_ping $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 check_pop $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$ check_smtp $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$ check_snmp $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$ check_ssh $USER1$/check_ssh $ARG1$ $HOSTADDRESS$ check_tcp $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$ check_udp $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$ notify-host-by-email /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ notify-service-by-email /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ process-host-perfdata /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /usr/local/nagios/var/host-perfdata.out process-service-perfdata /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /usr/local/nagios/var/service-perfdata.out ++++++++++++++++++++++++++++++++++++++++++++++++ On Wed, Apr 8, 2009 at 9:54 AM, Assaf Flatto wrote: > can you provide the relevant conf so we may understand more about your problem ? > > > > On Wednesday 08 April 2009 14:41:27 Thierry Lavall?e wrote: >> Hi, >> I am getting the following about 50 times per day: >> >> HTTP ?CRITICAL ? ? ? ?04-08-2009 09:37:29 ? ? 0d 0h 1m 50s ? ?1/4 ? ? Name or service not >> known SSH ? ? UNKNOWN ? ? ? ? 04-08-2009 09:34:39 ? ? 0d 0h 4m 40s ? ?1/4 ? ? Usage:check_ssh >> [-46] [-t ] [-r ] [-p ] >> >> I am somewhat at lost here... >> Can anyone help with this? > > > > -- > Assaf Flatto > SSP Ops Team > Linux System Administrator > 169 Euston Road, London, NW1 2AE > > > > > > IMPORTANT . this email and the information in it may be confidential, legally > privileged and/or protected by law. It is intended solely for the use of the > person to whom it is addressed. If you are not the intended recipient, please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email communications. We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and Wales > (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thierry Lavall?e Filemaker Development in Montreal http://www.8p-design.com/en/filemaker.asp Internet Business Solutions in Montreal ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Wed Apr 8 16:35:35 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 8 Apr 2009 15:35:35 +0100 Subject: Name or service not known In-Reply-To: <99d33f0904080729n62dcfeceua46e384093032173@mail.gmail.com> References: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> Message-ID: <200904081535.35818.assaf.flatto@ssp-intl.com> Thierry The information you need to look into is the configuration files of the nagios , located in the etc directory of the nagios installation directory . which version of nagios are you running ? did you install from source or packages ? what distro are you using ? how did you preform the initial installation ? Assaf On Wednesday 08 April 2009 15:29:02 Thierry Lavall?e wrote: > thanks a lot for your reply Assaf, > > I am not sure which conf you mean but here are a few things in the > meantime. Maybe you could point this Nagios newbie what you need? :/ > > thanks! > -- > Thierry > > > -- > > Assaf Flatto > > SSP Ops Team > > Linux System Administrator > > 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Wed Apr 8 16:43:23 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 8 Apr 2009 15:43:23 +0100 Subject: Name or service not known In-Reply-To: <99d33f0904080732g376a7169l2f10ecdaf0a096c5@mail.gmail.com> References: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> Message-ID: <200904081543.23617.assaf.flatto@ssp-intl.com> Thierry please send all your replies to the list and not to individual members - so other may learn from the information gathered by other members . second : this is a command declaration in the commands file , have you associated a service to the host ? and even before that - did you install the nagios-plugins ? the nagios-plugins are the actual check scripts executed to preform the checks , and without them you will not be able to use any of nagios capabilities. Assaf > check_ssh ??????$USER1$/check_ssh $ARG1$ $HOSTADDRESS$ -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 8 16:55:48 2009 From: marc at ena.com (Marc Powell) Date: Wed, 8 Apr 2009 09:55:48 -0500 Subject: Adaptive Monitoring: Broken? In-Reply-To: <20090407182618.GS30298@bakgwai.americas.hpqcorp.net> References: <20090407182618.GS30298@bakgwai.americas.hpqcorp.net> Message-ID: <4642F11A-04F2-430C-B6CF-E9A9627767DA@ena.com> On Apr 7, 2009, at 1:26 PM, Patrick Morris wrote: > Here are the important stats: > > Nagios Version: Version 3.1.0 > Proficiency Level: Pretty damned high > While the first command works fine, and sets the service to an OK > state, > the next two (which I've tried in various combinations) show up in the > Nagios logs as having been sent, but do nothing. The check that > appears > in the config files keeps running instead of my check_ok check. > > Here's how it shows up in the logs: > > [1239128528] EXTERNAL COMMAND: CHANGE_SVC_EVENT_HANDLER;dummy- > host;DNS;check_ok > [1239128528] EXTERNAL COMMAND: CHANGE_SVC_CHECK_COMMAND;dummy- > host;DNS;check_ok > > I've noticed the message is different if I use an invalid command, so > I'm relatively sure I'm using the right ones; they just don't do > anything. > > Event handlers are enabled for these services, but even if they > weren't > the check command should change, right? > > Am I doing something wrong here, or have I run into a bug? I'm not using 3.x yet but just to provide some feedback, what you're doing looks reasonable from my reading of the documentation. I do see this in 3.1.0's commands.c though -- /* SECURITY PATCH - disable these for the time being */ switch(cmd){ case CMD_CHANGE_GLOBAL_HOST_EVENT_HANDLER: case CMD_CHANGE_GLOBAL_SVC_EVENT_HANDLER: case CMD_CHANGE_HOST_EVENT_HANDLER: case CMD_CHANGE_SVC_EVENT_HANDLER: case CMD_CHANGE_HOST_CHECK_COMMAND: case CMD_CHANGE_SVC_CHECK_COMMAND: return ERROR; } That's in the right section and my reading of the code is that it does exactly that; prevent changing of those values... Maybe it's something being worked on in the development branch? -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thierry.list1 at gmail.com Wed Apr 8 17:00:35 2009 From: thierry.list1 at gmail.com (=?ISO-8859-1?Q?Thierry_Lavall=E9e?=) Date: Wed, 8 Apr 2009 11:00:35 -0400 Subject: Name or service not known In-Reply-To: <200904081535.35818.assaf.flatto@ssp-intl.com> References: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> <200904081454.12922.assaf.flatto@ssp-intl.com> <99d33f0904080729n62dcfeceua46e384093032173@mail.gmail.com> <200904081535.35818.assaf.flatto@ssp-intl.com> Message-ID: <99d33f0904080800j3f49a74dg3e42c865978ced00@mail.gmail.com> thanks Assaf. I did not do the installation, but the support who did the installation (Supreme Support) do not seem knowledgeable enough. I am attaching my config files (please tell me if not secure to send like this) I am runnig 3.0.6 No idea about Distro hoping you can still help me. thanks! -- Thierry -------------- next part -------------- A non-text attachment was scrubbed... Name: resource.cfg Type: application/octet-stream Size: 1340 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios.cfg Type: application/octet-stream Size: 42730 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cgi.cfg Type: application/octet-stream Size: 10699 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Wed Apr 8 17:03:15 2009 From: nccomp at gmail.com (Andrew Davis) Date: Wed, 08 Apr 2009 11:03:15 -0400 Subject: Nagios and Cacti In-Reply-To: References: Message-ID: <49DCBCB3.4040707@gmail.com> And just an FYI from my own experience... putting Nagios & Cacti on the same server has been somewhat problematic for us. We have over 400 network devices between switches, routers, WAPs, etc. We also have about 300 monitored servers. Initially I had Nagios and Cacti both on one server with Cacti running via cron every 5 minutes. About every 5 minutes, my shells would become unresponsive for roughly 30 to 90 seconds. Turning off either Nagios or Cacti resolved the issue. Running both seems to have hammered the server a bit (4Gb of RAM, 2 x dual core 2.x Ghz CPUs). We don't integrate Cacti and Nagios, however. Nagios does both trending and alerts of all servers. Cacti does trending only of all network devices/ports. Once I moved Cacti to its own server, all was fine as far as load/latency went. A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan Marco Tirado wrote: > Hello: > > There are a couple of examples in the nagios exchange page of > different approachs for integrating nagios and cacti. You should check > that out. > > I believe the synchronization is going to cost you time and money, a > better approach is to use nagios + pnp4naigos (this generates nice > graphs) + check_snmp_int.pl (this for bandwidth tests). That way you > have only one place to place your configuration. There are tons of > other snmp plugins you can use for other tests (CPU, Memory, etc), > > //Marco > > On Wed, Apr 8, 2009 at 11:15 AM, Christopher McAtackney > > wrote: > > Hi all, > > I've been looking into making use of Cacti to act as an SNMP > management tool which runs alongside my Nagios instance. > > Ideally, what I would like to do is have Cacti monitor various > SNMP-exposed metrics on my hosts, and then have a service check in > Nagios which parses Cacti's results (which I believe are RRD files) > and send alerts etc. > > Nagios itself will still be used for running directly checks for > services running, errors in log files etc. > > Does this approach make sense? > > One issue that I can think of is the difficulty in keeping the config > files of Nagios and Cacti synchronised. I was planning on using Lilac > Platform to act as my Nagios config file management tool, but how that > is kept in synch with Cacti is a problem. Has anyone ever set up an > arrangement like this before? > > Cheers, > Chris > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Wed Apr 8 17:15:34 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Wed, 8 Apr 2009 16:15:34 +0100 Subject: Nagios and Cacti In-Reply-To: <49DCBCB3.4040707@gmail.com> References: <49DCBCB3.4040707@gmail.com> Message-ID: 2009/4/8 Andrew Davis : > And just an FYI from my own experience... putting Nagios & Cacti on the same > server has been somewhat problematic for us. We have over 400 network > devices between switches, routers, WAPs, etc. We also have about 300 > monitored servers. Initially I had Nagios and Cacti both on one server with > Cacti running via cron every 5 minutes. About every 5 minutes, my shells > would become unresponsive for roughly 30 to 90 seconds. Turning off either > Nagios or Cacti resolved the issue. Running both seems to have hammered the > server a bit (4Gb of RAM, 2 x dual core 2.x Ghz CPUs). We don't integrate > Cacti and Nagios, however. Nagios does both trending and alerts of all > servers. Cacti does trending only of all network devices/ports. Once I moved > Cacti to its own server, all was fine as far as load/latency went. That's useful to know Andrew, thanks. Regarding the trending of network devices - is there any reason why this can't be done by Nagios? I intend to install PNP4Nagios to take care of graphing anyway, but I think it would be nice to have all my monitored resources under the one system (for notifications and ease of administration). Is there some major advantage that Cacti provides when it comes to SNMP monitoring of network devices that cannot be achieved with Nagios and the various SNMP plug-ins available for it (e.g. like these ones http://nagios.manubulon.com) ? Cheers, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thierry.list1 at gmail.com Wed Apr 8 17:20:06 2009 From: thierry.list1 at gmail.com (=?ISO-8859-1?Q?Thierry_Lavall=E9e?=) Date: Wed, 8 Apr 2009 11:20:06 -0400 Subject: Name or service not known In-Reply-To: <200904081613.40995.assaf.flatto@ssp-intl.com> References: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> <200904081535.35818.assaf.flatto@ssp-intl.com> <99d33f0904080800j3f49a74dg3e42c865978ced00@mail.gmail.com> <200904081613.40995.assaf.flatto@ssp-intl.com> Message-ID: <99d33f0904080820m7f01669fub0e21ae6b8066af7@mail.gmail.com> thanks Assaf, But I cannot get passed step #1 Relax - it's going to take some time. ;) hehe. Really, I don't want to redo the whole install as I am not THAT server techy and I try to rely on a service called Supreme Support that are supposed to make my life better. I need to point to Supreme Support where the problem is. Do you think you can point it out quickly from the config files I sent? Because most seems installed correctly, it looks there are loose handles. thanks again! -- Thierry 2009/4/8 Assaf Flatto : > > In that case I suggest you start here : > http://nagios.sourceforge.net/docs/3_0/beginners.html > > > read the documentation ?and most of your questions will be answered. > > > Assaf > > > On Wednesday 08 April 2009 16:00:35 you wrote: >> thanks Assaf. >> I did not do the installation, but the support who did the >> installation (Supreme Support) do not seem knowledgeable enough. >> >> I am attaching my config files (please tell me if not secure to send like >> this) I am runnig 3.0.6 >> No idea about Distro >> >> hoping you can still help me. >> thanks! > > > -- > Assaf Flatto > SSP Ops Team > Linux System Administrator > 169 Euston Road, London, NW1 2AE > > > > > > IMPORTANT . this email and the information in it may be confidential, legally > privileged and/or protected by law. It is intended solely for the use of the > person to whom it is addressed. If you are not the intended recipient, please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email communications. We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service Partner UK > Limited. Should you communicate with anyone at Select Service Partner UK Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and Wales > (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Eric.Doutreleau at it-sudparis.eu Wed Apr 8 17:21:18 2009 From: Eric.Doutreleau at it-sudparis.eu (Eric Doutreleau) Date: Wed, 08 Apr 2009 17:21:18 +0200 Subject: problems with log rotation Message-ID: <49DCC0EE.2030408@it-sudparis.eu> hi i used nagios3.1 i have configured a daily log rotation but after several days i suspect there s a problem with the log rotation i found several instance of nagios which the majority are defunct ones and they all begun at 00:00 but on different days. and the scheduler is going mad. a lot of check are not launched and i got a lot of these messages [1239201355] Warning: The check of service 'memoire disponible' on host 'www-tp' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service... [1239201355] Warning: The check of service 'nombre total de process' on host 'www-tp' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service... [1239201355] Warning: The check of service 'HTTP' on host 'yum' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service... [1239201355] Warning: The check of service 'charge' on host 'yum' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service... [1239201355] Warning: The check of service 'nombre d utilisateur' on host 'yum' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service... [1239201414] Warning: The check of service 'ciscoswitch' on host 'Indicateurs' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service... [1239201414] Warning: The check of service 'smtpsout' on host 'Indicateurs_detail' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service... Does someone knows how to solve that problems? thanks in advance for any help ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Wed Apr 8 17:33:30 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Wed, 8 Apr 2009 16:33:30 +0100 Subject: Name or service not known In-Reply-To: <99d33f0904080820m7f01669fub0e21ae6b8066af7@mail.gmail.com> References: <99d33f0904080641y67201a78ib49c68e8447664f1@mail.gmail.com> Message-ID: <200904081633.30241.assaf.flatto@ssp-intl.com> >From the first glance it looks like they just installed it and never bothered to configure anything in it . not nagios is a great tool , but it requires quite a bit of initial configuration and setup , which looks like the didn't do . Assaf On Wednesday 08 April 2009 16:20:06 Thierry Lavall?e wrote: > thanks Assaf, > But I cannot get passed step #1 Relax - it's going to take some time. ;) > hehe. > > Really, I don't want to redo the whole install as I am not THAT server > techy and I try to rely on a service called Supreme Support that are > supposed to make my life better. I need to point to Supreme Support > where the problem is. > > Do you think you can point it out quickly from the config files I sent? > > Because most seems installed correctly, it looks there are loose handles. > > thanks again! -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at danielemmanuelfeinsmith.com Wed Apr 8 17:52:07 2009 From: daniel at danielemmanuelfeinsmith.com (Daniel Emmanuel Feinsmith) Date: Wed, 8 Apr 2009 08:52:07 -0700 (PDT) Subject: Nagios and Cacti Message-ID: <913905.71792.qm@web303.biz.mail.mud.yahoo.com> It depends on the intensity of your snmp usage. Cacti has a native daemon to do large scale snmp getting, and it does a great job of it. So if u have hundreds of devices, each with a lot of interfaces, u will probably like cacti. The user interface is also well done for graphing snmp data and thresholding on it using the threshold plugin. ===================== Daniel Feinsmith ===================== {sent from iPhone} On Apr 8, 2009, at 8:15 AM, Christopher McAtackney wrote: > 2009/4/8 Andrew Davis : >> And just an FYI from my own experience... putting Nagios & Cacti on >> the same >> server has been somewhat problematic for us. We have over 400 network >> devices between switches, routers, WAPs, etc. We also have about 300 >> monitored servers. Initially I had Nagios and Cacti both on one >> server with >> Cacti running via cron every 5 minutes. About every 5 minutes, my >> shells >> would become unresponsive for roughly 30 to 90 seconds. Turning off >> either >> Nagios or Cacti resolved the issue. Running both seems to have >> hammered the >> server a bit (4Gb of RAM, 2 x dual core 2.x Ghz CPUs). We don't >> integrate >> Cacti and Nagios, however. Nagios does both trending and alerts of >> all >> servers. Cacti does trending only of all network devices/ports. >> Once I moved >> Cacti to its own server, all was fine as far as load/latency went. > > That's useful to know Andrew, thanks. > > Regarding the trending of network devices - is there any reason why > this can't be done by Nagios? I intend to install PNP4Nagios to take > care of graphing anyway, but I think it would be nice to have all my > monitored resources under the one system (for notifications and ease > of administration). > > Is there some major advantage that Cacti provides when it comes to > SNMP monitoring of network devices that cannot be achieved with Nagios > and the various SNMP plug-ins available for it (e.g. like these ones > http://nagios.manubulon.com) ? > > Cheers, > Chris > > --- > --- > --- > --------------------------------------------------------------------- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at danielemmanuelfeinsmith.com Wed Apr 8 17:36:32 2009 From: daniel at danielemmanuelfeinsmith.com (Daniel Emmanuel Feinsmith) Date: Wed, 8 Apr 2009 08:36:32 -0700 (PDT) Subject: Nagios and Cacti Message-ID: <77846.31333.qm@web302.biz.mail.mud.yahoo.com> If you move your mysql instance to another server, you can get much better performance on a nagios/cacti server. Check top while cacti is running a large install and you will see that mysql is hoarding CPU and memory resources not leaving much for nagios. ===================== Daniel Feinsmith ===================== {sent from iPhone} On Apr 8, 2009, at 8:03 AM, Andrew Davis wrote: > And just an FYI from my own experience... putting Nagios & Cacti on > the same server has been somewhat problematic for us. We have over > 400 network devices between switches, routers, WAPs, etc. We also > have about 300 monitored servers. Initially I had Nagios and Cacti > both on one server with Cacti running via cron every 5 minutes. > About every 5 minutes, my shells would become unresponsive for > roughly 30 to 90 seconds. Turning off either Nagios or Cacti > resolved the issue. Running both seems to have hammered the server a > bit (4Gb of RAM, 2 x dual core 2.x Ghz CPUs). We don't integrate > Cacti and Nagios, however. Nagios does both trending and alerts of > all servers. Cacti does trending only of all network devices/ports. > Once I moved Cacti to its own server, all was fine as far as load/ > latency went. > A. Davis > Email: nccomp at gmail.com > > "There is no limit to what a man can accomplish > if he doesn't care who gets the credit." - Ronald Reagan > > > Marco Tirado wrote: >> >> Hello: >> >> There are a couple of examples in the nagios exchange page of >> different approachs for integrating nagios and cacti. You should >> check that out. >> >> I believe the synchronization is going to cost you time and money, >> a better approach is to use nagios + pnp4naigos (this generates >> nice graphs) + check_snmp_int.pl (this for bandwidth tests). That >> way you have only one place to place your configuration. There are >> tons of other snmp plugins you can use for other tests (CPU, >> Memory, etc), >> >> //Marco >> >> On Wed, Apr 8, 2009 at 11:15 AM, Christopher McAtackney > > wrote: >> Hi all, >> >> I've been looking into making use of Cacti to act as an SNMP >> management tool which runs alongside my Nagios instance. >> >> Ideally, what I would like to do is have Cacti monitor various >> SNMP-exposed metrics on my hosts, and then have a service check in >> Nagios which parses Cacti's results (which I believe are RRD files) >> and send alerts etc. >> >> Nagios itself will still be used for running directly checks for >> services running, errors in log files etc. >> >> Does this approach make sense? >> >> One issue that I can think of is the difficulty in keeping the config >> files of Nagios and Cacti synchronised. I was planning on using >> Lilac >> Platform to act as my Nagios config file management tool, but how >> that >> is kept in synch with Cacti is a problem. Has anyone ever set up an >> arrangement like this before? >> >> Cheers, >> Chris >> >> --- >> --- >> --- >> --------------------------------------------------------------------- >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/ >> null >> >> >> --- >> --- >> --- >> --------------------------------------------------------------------- >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/ >> null > > --- > --- > --- > --------------------------------------------------------------------- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Wed Apr 8 18:21:31 2009 From: perldork at webwizarddesign.com (Max) Date: Wed, 8 Apr 2009 12:21:31 -0400 Subject: Nagios and Cacti In-Reply-To: <913905.71792.qm@web303.biz.mail.mud.yahoo.com> References: <913905.71792.qm@web303.biz.mail.mud.yahoo.com> Message-ID: On Wed, Apr 8, 2009 at 11:52 AM, Daniel Emmanuel Feinsmith wrote: > > It depends on the intensity of your snmp usage. Cacti has a native > daemon to do large scale snmp getting, and it does a great job of it. > So if u have hundreds of devices, each with a lot of interfaces, u > will probably like cacti. The user interface is also well done for > graphing snmp data and thresholding on it using the threshold plugin. With parallel checks in Nagios 3 and some configuration tuning and well-written SNMP checks, I'd argue that Nagios is as good if not a better poller than cactid :). our instance is not huge, but currently we do 7000+ SNMP-based checks in 3 minutes on a dual quad-core Linux-based server. Before PNP I used to use Cacti and Nagios. I like Cacti, but with PNP around I would never go back to that combination again .. Nagios + PNP really does simplify life for Nagios administrators and provides a lot of flexibility as far as how you scale your graphing as your node base grows. - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Wed Apr 8 18:29:44 2009 From: nccomp at gmail.com (Andrew Davis) Date: Wed, 08 Apr 2009 12:29:44 -0400 Subject: Nagios and Cacti In-Reply-To: <913905.71792.qm@web303.biz.mail.mud.yahoo.com> References: <913905.71792.qm@web303.biz.mail.mud.yahoo.com> Message-ID: <49DCD0F8.3030909@gmail.com> I agree. Initially I had Nagios doing all the trending. But with 400+ network devices and many of them with multiple 48 port blades, I found Cacti was easier to configure... it scaled a lot better. For a smaller network, you could easily do just Nagios. I've had no issues at all with Nagios + PNP for alerts and trending. In fact, Nagios still watches my core network devices (but not all the ports of them... ie: Nagios watches that switch1 is up and available and trends its CPU and memory usage... however I use Cacti for trending the 6 blades each with 48 ports in switch1). This way, if switch1 fails or utilization is too high, Nagios tells me, but if a particular user is hogging all our bandwidth or having lots of packet loss, I find that via Cacti. A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan Daniel Emmanuel Feinsmith wrote: > It depends on the intensity of your snmp usage. Cacti has a native > daemon to do large scale snmp getting, and it does a great job of it. > So if u have hundreds of devices, each with a lot of interfaces, u > will probably like cacti. The user interface is also well done for > graphing snmp data and thresholding on it using the threshold plugin. > > ===================== > Daniel Feinsmith > ===================== > {sent from iPhone} > > On Apr 8, 2009, at 8:15 AM, Christopher McAtackney > wrote: > > >> 2009/4/8 Andrew Davis : >> >>> And just an FYI from my own experience... putting Nagios & Cacti on >>> the same >>> server has been somewhat problematic for us. We have over 400 network >>> devices between switches, routers, WAPs, etc. We also have about 300 >>> monitored servers. Initially I had Nagios and Cacti both on one >>> server with >>> Cacti running via cron every 5 minutes. About every 5 minutes, my >>> shells >>> would become unresponsive for roughly 30 to 90 seconds. Turning off >>> either >>> Nagios or Cacti resolved the issue. Running both seems to have >>> hammered the >>> server a bit (4Gb of RAM, 2 x dual core 2.x Ghz CPUs). We don't >>> integrate >>> Cacti and Nagios, however. Nagios does both trending and alerts of >>> all >>> servers. Cacti does trending only of all network devices/ports. >>> Once I moved >>> Cacti to its own server, all was fine as far as load/latency went. >>> >> That's useful to know Andrew, thanks. >> >> Regarding the trending of network devices - is there any reason why >> this can't be done by Nagios? I intend to install PNP4Nagios to take >> care of graphing anyway, but I think it would be nice to have all my >> monitored resources under the one system (for notifications and ease >> of administration). >> >> Is there some major advantage that Cacti provides when it comes to >> SNMP monitoring of network devices that cannot be achieved with Nagios >> and the various SNMP plug-ins available for it (e.g. like these ones >> http://nagios.manubulon.com) ? >> >> Cheers, >> Chris >> >> --- >> --- >> --- >> --------------------------------------------------------------------- >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Wed Apr 8 18:44:05 2009 From: israel at frontierflying.com (Israel Brewster) Date: Wed, 8 Apr 2009 08:44:05 -0800 Subject: Children "unreachable" on soft down? In-Reply-To: <2DCA7EEA-36D0-4010-BB84-CDBF1B7CAB3C@frontierflying.com> References: <20090406.gv5.87263900@www.zarrelli.org> <2DCA7EEA-36D0-4010-BB84-CDBF1B7CAB3C@frontierflying.com> Message-ID: So is this just something I'll have to live with? I don't seem to be getting much feedback on the subject. :( ----------------------------------------------- Israel Brewster Computer Support Technician II Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- On Apr 6, 2009, at 10:55 AM, Israel Brewster wrote: > On Apr 6, 2009, at 9:03 AM, Giorgio Zarrelli wrote: > >> Hi, >> >> I've not quite clear what happens to you, > > Thanks for the response. For clarification, the exact sequence of > events is as follows: > > 1) The link between the nagios box and one of our routers, which we > will refer to as the parent host glitches for 30 seconds or so. Due to > the nature of the link (satellite connection) this is semi-expected, > and happens a couple of times a day. > > 2) Nagios catches this glitch in one of it's regularly scheduled host > checks, and puts the parent host into a soft down state. Again, normal > and expected - even good. > > 3) At the same time, Nagios puts the children of the parent host into > an "unreachable" state. Makes sense, at least, but leads to the issue > > 4) The parent host is now in recheck mode (as it is only in a soft > down state and has three rechecks set), so it checks again a minute > later. This check succeeds, as the outage was transitory. The parent > host is put back into an "UP" state. As it never was in a hard "down" > state, no notification is sent. This is good. > > 5) since the parent is now up, the child host now is changed to a > (soft I think) "down" state. > > 6) check continue on a normal schedule. As the link does not glitch > again for several hours, parent remains up and child remains > (correctly) down. Three checks later, child enters a hard "down" state > (since it was unreachable and only just switched back to down). Down > notification is sent for child. > > 7) Everything remains good for the next several hours until the link > glitches again. Repeat from step one. > > The notification in step 6 is the problem here - the child host was > down before the glitch, the child host is still down after. But > because the child host was temporarily put in an unreachable state, we > get notified again that it is down, resulting in a string of "DOWN" > messages with no up or real change in status. > >> but one thing I have in mind is try >> >> soft_state_dependencies=0 >> >> Besides that, the problems seems to be in the roots of the check. >> It's not >> healty to have a ping check failing every 2 strikes. Try to change >> the host >> alive check, using a ssh check instead. > > The check is not failing every 2 strikes. It's failing once, briefly, > every few hours - just barely long enough to make one check fail and > throw the parent host into a soft down state. The first recheck (one > minute later) works fine, bringing the parent back to an up state. The > next several hundred or more checks also work fine (as the problem was > transitory and brief). For this reason, changing the check wouldn't > help - for the duration of that single check, the host really is down > (or more precisely, unreachable, as it is a link issue), and any check > I used would say so. > >> Another approach, not so useful, would be to increase the timeout >> for the ping >> (-W) so it will have less chances to fail. > > except that it's not a timeout issue. It is a very real, albeit brief > (around 30 seconds or so), outage. Not long enough or frequent enough > to really impact productivity or anything, but long enough for nagios > to catch it (for a single check). > > ----------------------------------------------- > Israel Brewster > Computer Support Technician II > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > ----------------------------------------------- >> >> Giorgio >> >> Israel Brewster (israel at frontierflying.com) scritto: >>> >>> So does anyone have any ideas as to how I can resolve this >>> situation? >>> It continues to be an annoyance. Thanks. >>> >>> ----------------------------------------------- >>> Israel Brewster >>> Computer Support Technician II >>> Frontier Flying Service Inc. >>> 5245 Airport Industrial Rd >>> Fairbanks, AK 99709 >>> (907) 450-7250 x293 >>> ----------------------------------------------- >>> >>> >>> >>> On Mar 31, 2009, at 8:17 AM, Israel Brewster wrote: >>> >>>> On Mar 31, 2009, at 1:09 AM, Andreas Ericsson wrote: >>>> >>>>> Israel Brewster wrote: >>>>>> Does nagios (3.0.3) mark a child host as unreachable when its >>>>>> parent enters a soft down state? I am finding myself getting >>>>>> repeated down messages for a host (which is, in fact, down), >>>>>> even >>>>>> though I have notifications set to only send a single message. >>>>>> Looking at the logs, it would appear that what is happening is >>>>>> that the host is flipping between "down" (which notifies me) and >>>>>> "unreachable" (which does not). The parent host, however, never >>>>>> enters a hard down state. Looking at the logs, what I see is >>>>>> that >>>>>> one ICMP check fails, throwing the host into a soft down state, >>>>>> but the next one works just fine, bringing it back to an up >>>>>> state. >>>>>> The logic works fine for the parent host- since it never hits a >>>>>> hard down state, it doesn't alert, and everyone is happy. But >>>>>> apparently with the child host every time this happens, it >>>>>> switches from critical to unreachable and back again, >>>>>> triggering a >>>>>> notification. Is there any way to keep this from happening? >>>>>> Thanks. >>>>> >>>>> Doesn't flapping detection do what you want? You'd get a few >>>>> notifications, but they'd stop after the 3rd flip or something, I >>>>> think. >>>> >>>> Flapping detection helps, but doesn't solve. For one thing, as you >>>> mentioned, you still get at least a couple of notifications before >>>> it >>>> kicks in. For another thing, this happens with a frequency of >>>> something like once an hour or so (not consistently), so the host >>>> will >>>> flip from down to unreachable and back again, triggering an e-mail, >>>> perhaps do it a second time, and then it will sit in the correct >>>> "down" state for the next 50 checks or so (thus canceling any >>>> flapping >>>> detection) before repeating the process. It's not like I'm getting >>>> messages every five minutes or anything, it's just that I'm getting >>>> repeated down messages every hour or two for hosts that have been >>>> down >>>> and haven't actually changed state. >>>> >>>> I could, of course, schedule down time, except that I want to be >>>> notified if/when the people in the remote station get their act >>>> together and get the machine(s) in question back online. Also that >>>> is >>>> only partially effective for machines that have been sent in for >>>> repair, because I don't really know when the scheduled down time >>>> will >>>> be over. They are down, I know they are down, I just don't want to >>>> be >>>> told about it every few hours :-) >>>> >>>> ----------------------------------------------- >>>> Israel Brewster >>>> Computer Support Technician II >>>> Frontier Flying Service Inc. >>>> 5245 Airport Industrial Rd >>>> Fairbanks, AK 99709 >>>> (907) 450-7250 x293 >>>> ----------------------------------------------- >>>> >>>>> >>>>> >>>>> -- >>>>> Andreas Ericsson andreas.ericsson at op5.se >>>>> OP5 AB www.op5.se >>>>> Tel: +46 8-230225 Fax: +46 8-230231 >>>>> >>>>> Considering the successes of the wars on alcohol, poverty, drugs >>>>> and >>>>> terror, I think we should give some serious thought to declaring >>>>> war >>>>> on peace. >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: 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 mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/ >>> null >>> >> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tad1214 at aol.com Wed Apr 8 19:27:03 2009 From: tad1214 at aol.com (Thomas Donnelly) Date: Wed, 08 Apr 2009 12:27:03 -0500 Subject: Nagios Warning Bug/Misconfiguration In-Reply-To: <20090407233101.GZ30298@bakgwai.americas.hpqcorp.net> References: <49DBA7F3.6070803@aol.com> <20090407194155.GU30298@bakgwai.americas.hpqcorp.net> <49DBB87F.9000906@aol.com> <20090407233101.GZ30298@bakgwai.americas.hpqcorp.net> Message-ID: <49DCDE67.9080900@aol.com> Got the issue. Turns out someone installed the Cisco MIBS along with the net snmp mibs. Thank you very much for your help. For anyone searching and finds this check /usr/local/share/snmp/mibs and see if you have some-snmp-mib.txt and some-snmp-mib.my Thanks Again! -=Tom Donnelly Patrick Morris wrote: > On Tue, 07 Apr 2009, Thomas Donnelly wrote: > > >> Thanks for the quick reply! >> >> Ran from the command line got: >> >> # ./check_snmp -H 192.168.97.71 -o mib-2.33.1.2.4.0 -C secret -w 95: -c 75: >> SNMP WARNING - 100 | SNMPv2-SMI::mib-2.33.1.2.4.0=100;;;; >> >> # ./check_snmp -H 192.168.97.71 -o mib-2.33.1.2.4.0 -C secret -w 95 -c 75: >> SNMP WARNING - *100* | SNMPv2-SMI::mib-2.33.1.2.4.0=100;;;; >> >> So by intentionally triggering it again (remove ":"), it shows the *'s >> > > How about if you add a "-v" to get verbose output? > > Also, you may want to check the return code from the manual run on an OK > resultx (for example, by running "echo $?" aafter your check_snmp > command to make sure it matches what you see in the output). > > What happens in my case occasionally is that I install a screwed-up MIB > for an unrelated service. It won't show any obvious errors, but it will > cause check_snmp to return a warning result code regardless of whether > the SNMP result falls within my thresholds. > > In effect, it's warning me that my MIBs are hosed, based on > the fact that it got a non-OK result from snmpget (which is what > check_snmp calls to do the actual SNMP getting). > > > > >> Not really sure what they mean by: >> >> 1. Prevent check_snmp from loading the MIBs (default behaviour) by using >> numeric oids AND using the "-m :" option >> > > If you a numeric OID rather than "mib-2.33.1.2.4.0" and pass the "-m :" > then check_snmp (and, by extension, snmpget) don't need to load the MIBs > at all, so you don't get an error if you've got a bad MIB. > > >> >> >> Patrick Morris wrote: >> >>> What happens when you run it manually? >>> >>> This, maybe? >>> >>> http://www.nagios.org/faqs/viewfaq.php?faq_id=208 >>> >>> On Tue, 07 Apr 2009, Thomas Donnelly wrote: >>> >>> >>> >>>> Hi all, >>>> >>>> I am having an issue with all of the devices I added showing warning all >>>> the time. It is a simple snmp check to see if the amps are above >>>> 160warn/180critical. They always say warning even though they are less >>>> than the specified 160. One thing to note is once it hits the 160 mark >>>> it gets the * value * in turn, showing that it is actually in the >>>> warning range. I have shown the neccesary data I hope below. Any/all >>>> help is greatly appreciated. >>>> >>>> >>>> >>>> # uname -a >>>> FreeBSD server.example.net 5.5-RELEASE-p2 FreeBSD 5.5-RELEASE-p2 #3: Tue >>>> Oct 9 22:39:13 EST 2007 >>>> root at server.example.net:/usr/obj/usr/src/sys/MONITOR i386 >>>> >>>> Nagios >>>> Version 2.0b3 >>>> >>>> >>>> # ./check_snmp -V >>>> check_snmp (nagios-plugins 1.4.3) 1.58 >>>> >>>> >>>> >>>> From the webui >>>> >>>> APC-RR-R3-1.hou >>>> check_rr_amp >>>> WARNING 04-07-2009 13:00:17 8d 3h 17m 2s 10/10 SNMP WARNING - 90 >>>> >>>> APC-RR-R3-2.hou >>>> check_rr_amp >>>> WARNING 04-07-2009 12:57:52 18d 2h 46m 48s 10/10 SNMP WARNING - *160* >>>> >>>> ^note the * 160 * for the one that actually is in the warning range. >>>> >>>> >>>> from checkcommands.cfg >>>> >>>> define command { >>>> command_name check_rr_amp >>>> command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o >>>> mib-2.33.1.4.4.1.3.1 -C cPanel -w $ARG1$ -c $AR >>>> } >>>> >>>> >>>> From the hosts config file. >>>> >>>> define service{ >>>> host_name APC-RR-R1-1.hou >>>> service_description check_rr_amp >>>> check_command check_rr_amp!159!179 >>>> max_check_attempts 10 >>>> normal_check_interval 5 >>>> retry_check_interval 3 >>>> check_period 24x7 >>>> notification_interval 30 >>>> notification_period 24x7 >>>> notification_options w,c,r >>>> contact_groups backup-admins >>>> } >>>> >>>> >>>> >>>> Thanks! >>>> -=Tom >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by: >>>> High Quality Requirements in a Collaborative Environment. >>>> Download a free trial of Rational Requirements Composer Now! >>>> http://p.sf.net/sfu/www-ibm-com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>>> ::: Messages without supporting info will risk being sent to /dev/null >>>> >>>> ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 8 19:28:23 2009 From: marc at ena.com (Marc Powell) Date: Wed, 8 Apr 2009 12:28:23 -0500 Subject: Children "unreachable" on soft down? In-Reply-To: References: <20090406.gv5.87263900@www.zarrelli.org> <2DCA7EEA-36D0-4010-BB84-CDBF1B7CAB3C@frontierflying.com> Message-ID: On Apr 8, 2009, at 11:44 AM, Israel Brewster wrote: > So is this just something I'll have to live with? I don't seem to be > getting much feedback on the subject. :( Well, my response would be to fix the problem that's causing the outages in the first place or adjust the way you're monitoring the parents so that the plugin used recognizes when this temporary event is occurring. What you're asking for is that nagios track that the child went from down->unreachable->down without an intermediate OK state and suppress notifications in that case. That would appear to be a code change and would be better discussed on nagios-devel but I would encourage the check plugin approach first. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gmarzot at marzot.net Wed Apr 8 19:51:52 2009 From: gmarzot at marzot.net (gmarzot at marzot.net) Date: Wed, 08 Apr 2009 10:51:52 -0700 Subject: Nagios and Cacti Message-ID: <20090408105152.dcdb4e9e9b6b46a37cb2272ec227cfc1.8d191c06e2.wbe@email.secureserver.net> > Is there some major advantage that Cacti provides when it comes to > SNMP monitoring of network devices that cannot be achieved with Nagios > and the various SNMP plug-ins available for it (e.g. like these ones > http://nagios.manubulon.com) ? Also does anyone have some nagios config examples integrating PNP and these SNMP plugins... I have been trying to get an idea how to create the commands.cfg and services.cfg using these parts... Any examples of host based checks would be great. I have tried to read the relevant docs but have not found explicit nagios .cfg examples... if they exist a gentle pointer would also be great. thank you, Giovanni ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From israel at frontierflying.com Wed Apr 8 20:32:04 2009 From: israel at frontierflying.com (Israel Brewster) Date: Wed, 8 Apr 2009 10:32:04 -0800 Subject: Children "unreachable" on soft down? In-Reply-To: References: <20090406.gv5.87263900@www.zarrelli.org> <2DCA7EEA-36D0-4010-BB84-CDBF1B7CAB3C@frontierflying.com> Message-ID: On Apr 8, 2009, at 9:28 AM, Marc Powell wrote: > > On Apr 8, 2009, at 11:44 AM, Israel Brewster wrote: > >> So is this just something I'll have to live with? I don't seem to be >> getting much feedback on the subject. :( > > Well, my response would be to fix the problem that's causing the > outages in the first place or adjust the way you're monitoring the > parents so that the plugin used recognizes when this temporary event > is occurring. Ok, fair enough. There is nothing we can do about the outages (as I explained in one of my e-mail, they are an artifact of the connection type), so that leaves us with adjusting the monitoring. Now I thought that the recheck options were there exactly for this reason: to catch brief outages and not alert. And for the parent host that seems to be the case, but apparently that logic doesn't carry on to the child hosts. As such, somehow things would need to be adjusted so it never even sees the outages, even enough to go into a soft down state. Anyone have any suggestions for how I can accomplish this? Adjusting the timeout or using, say, an ssh check rather than icmp won't do it - the packets are still lost, and the ssh check would still timeout.. Perhaps if I sent more pings at longer intervals (so that if it doesn't get a response the single check retries at 15 second intervals or so before returning a response), but then the check would start taking several seconds or more to complete, and that wouldn't be a good thing. Assuming nagios even allowed a check to run that long - doesn't it have a mechanism to kill a check that doesn't return in a given time frame? I'm a little stumped here how I can adjust things. > What you're asking for is that nagios track that the > child went from down->unreachable->down without an intermediate OK > state and suppress notifications in that case. That would appear to be > a code change and would be better discussed on nagios-devel but I > would encourage the check plugin approach first. Ok. I know there is code in there that know who it sent down messages to and doesn't send up messages to people that didn't get a down (primarily dealing with escalations) so I was hoping that maybe there would be something similar for this, i.e. seeing that the last notification sent was a down notification, and as such there is no need to send another. But if not, so be it. Thanks for the response! ----------------------------------------------- Israel Brewster Computer Support Technician II Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > -- > Marc > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Apr 8 20:40:56 2009 From: ladams at cloudmark.com (Lori Adams) Date: Wed, 8 Apr 2009 11:40:56 -0700 Subject: multiple parents Message-ID: We have several hosts that have multiple parents. Will the child notify as down if only one of the parents is down? Or will the child suppress notifications because one of its parents is down? -Lori -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cburke at utc.net Wed Apr 8 20:49:15 2009 From: cburke at utc.net (Christopher Burke) Date: Wed, 8 Apr 2009 14:49:15 -0400 Subject: Children "unreachable" on soft down? In-Reply-To: References: <20090406.gv5.87263900@www.zarrelli.org><2DCA7EEA-36D0-4010-BB84-CDBF1B7CAB3C@frontierflying.com> Message-ID: I wonder if there is something you can do with notification escalations? I know you can control how the notifications are sent out, but I don't know if a state change from down to unreachable to down will cause the escalation to reset. From: Israel Brewster [mailto:israel at frontierflying.com] Sent: Wednesday, April 08, 2009 2:32 PM To: Marc Powell Cc: nagios-users at lists.sourceforge.net Users Subject: Re: [Nagios-users] Children "unreachable" on soft down? On Apr 8, 2009, at 9:28 AM, Marc Powell wrote: > > On Apr 8, 2009, at 11:44 AM, Israel Brewster wrote: > >> So is this just something I'll have to live with? I don't seem to be >> getting much feedback on the subject. :( > > Well, my response would be to fix the problem that's causing the > outages in the first place or adjust the way you're monitoring the > parents so that the plugin used recognizes when this temporary event > is occurring. Ok, fair enough. There is nothing we can do about the outages (as I explained in one of my e-mail, they are an artifact of the connection type), so that leaves us with adjusting the monitoring. Now I thought that the recheck options were there exactly for this reason: to catch brief outages and not alert. And for the parent host that seems to be the case, but apparently that logic doesn't carry on to the child hosts. As such, somehow things would need to be adjusted so it never even sees the outages, even enough to go into a soft down state. Anyone have any suggestions for how I can accomplish this? Adjusting the timeout or using, say, an ssh check rather than icmp won't do it - the packets are still lost, and the ssh check would still timeout.. Perhaps if I sent more pings at longer intervals (so that if it doesn't get a response the single check retries at 15 second intervals or so before returning a response), but then the check would start taking several seconds or more to complete, and that wouldn't be a good thing. Assuming nagios even allowed a check to run that long - doesn't it have a mechanism to kill a check that doesn't return in a given time frame? I'm a little stumped here how I can adjust things. > What you're asking for is that nagios track that the > child went from down->unreachable->down without an intermediate OK > state and suppress notifications in that case. That would appear to be > a code change and would be better discussed on nagios-devel but I > would encourage the check plugin approach first. Ok. I know there is code in there that know who it sent down messages to and doesn't send up messages to people that didn't get a down (primarily dealing with escalations) so I was hoping that maybe there would be something similar for this, i.e. seeing that the last notification sent was a down notification, and as such there is no need to send another. But if not, so be it. Thanks for the response! ----------------------------------------------- Israel Brewster Computer Support Technician II Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- > > -- > Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Wed Apr 8 21:45:42 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Wed, 8 Apr 2009 14:45:42 -0500 Subject: Nagios and Cacti In-Reply-To: <77846.31333.qm@web302.biz.mail.mud.yahoo.com> References: <77846.31333.qm@web302.biz.mail.mud.yahoo.com> Message-ID: I agree with Daniel's post below. We have Nagios and Cacti running on the same system; Nagios monitors 691 hosts and 1800 services while Cacti is pulling stats for about the same number of hosts, but something like 3200 data sources. They run on a dual Xeon 2.8 Ghz box with only 2 Gb or RAM (no swapping going on). Average load is about 1.5 and peaks at 3 about 3-4 times a day. The key is that mysql operations are on a dedicated box with 15k SCSI drives and RAID 10. James Moseley Daniel Emmanuel Feinsmith cc 04/08/2009 10:36 Nagios Users AM Subject Re: [Nagios-users] Nagios and Cacti If you move your mysql instance to another server, you can get much better performance on a nagios/cacti server. Check top while cacti is running a large install and you will see that mysql is hoarding CPU and memory resources not leaving much for nagios. ===================== Daniel Feinsmith ===================== {sent from iPhone} On Apr 8, 2009, at 8:03 AM, Andrew Davis wrote: And just an FYI from my own experience... putting Nagios & Cacti on the same server has been somewhat problematic for us. We have over 400 network devices between switches, routers, WAPs, etc. We also have about 300 monitored servers. Initially I had Nagios and Cacti both on one server with Cacti running via cron every 5 minutes. About every 5 minutes, my shells would become unresponsive for roughly 30 to 90 seconds. Turning off either Nagios or Cacti resolved the issue. Running both seems to have hammered the server a bit (4Gb of RAM, 2 x dual core 2.x Ghz CPUs). We don't integrate Cacti and Nagios, however. Nagios does both trending and alerts of all servers. Cacti does trending only of all network devices/ports. Once I moved Cacti to its own server, all was fine as far as load/latency went. A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan Marco Tirado wrote: Hello: There are a couple of examples in the nagios exchange page of different approachs for integrating nagios and cacti. You should check that out. I believe the synchronization is going to cost you time and money, a better approach is to use nagios + pnp4naigos (this generates nice graphs) + check_snmp_int.pl (this for bandwidth tests). That way you have only one place to place your configuration. There are tons of other snmp plugins you can use for other tests (CPU, Memory, etc), //Marco On Wed, Apr 8, 2009 at 11:15 AM, Christopher McAtackney < cristoir at gmail.com> wrote: Hi all, I've been looking into making use of Cacti to act as an SNMP management tool which runs alongside my Nagios instance. Ideally, what I would like to do is have Cacti monitor various SNMP-exposed metrics on my hosts, and then have a service check in Nagios which parses Cacti's results (which I believe are RRD files) and send alerts etc. Nagios itself will still be used for running directly checks for services running, errors in log files etc. Does this approach make sense? One issue that I can think of is the difficulty in keeping the config files of Nagios and Cacti synchronised. I was planning on using Lilac Platform to act as my Nagios config file management tool, but how that is kept in synch with Cacti is a problem. Has anyone ever set up an arrangement like this before? Cheers, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Wed Apr 8 22:54:06 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Wed, 8 Apr 2009 13:54:06 -0700 Subject: Adaptive Monitoring: Broken? In-Reply-To: <4642F11A-04F2-430C-B6CF-E9A9627767DA@ena.com> References: <20090407182618.GS30298@bakgwai.americas.hpqcorp.net> <4642F11A-04F2-430C-B6CF-E9A9627767DA@ena.com> Message-ID: <20090408205406.GE19457@bakgwai.americas.hpqcorp.net> On Wed, 08 Apr 2009, Marc Powell wrote: > > On Apr 7, 2009, at 1:26 PM, Patrick Morris wrote: > > > Here are the important stats: > > > > Nagios Version: Version 3.1.0 > > Proficiency Level: Pretty damned high > > > While the first command works fine, and sets the service to an OK > > state, > > the next two (which I've tried in various combinations) show up in the > > Nagios logs as having been sent, but do nothing. The check that > > appears > > in the config files keeps running instead of my check_ok check. > > > > Here's how it shows up in the logs: > > > > [1239128528] EXTERNAL COMMAND: CHANGE_SVC_EVENT_HANDLER;dummy- > > host;DNS;check_ok > > [1239128528] EXTERNAL COMMAND: CHANGE_SVC_CHECK_COMMAND;dummy- > > host;DNS;check_ok > > > > I've noticed the message is different if I use an invalid command, so > > I'm relatively sure I'm using the right ones; they just don't do > > anything. > > > > Event handlers are enabled for these services, but even if they > > weren't > > the check command should change, right? > > > > Am I doing something wrong here, or have I run into a bug? > > I'm not using 3.x yet but just to provide some feedback, what you're > doing looks reasonable from my reading of the documentation. I do see > this in 3.1.0's commands.c though -- > > /* SECURITY PATCH - disable these for the time being */ > switch(cmd){ > case CMD_CHANGE_GLOBAL_HOST_EVENT_HANDLER: > case CMD_CHANGE_GLOBAL_SVC_EVENT_HANDLER: > case CMD_CHANGE_HOST_EVENT_HANDLER: > case CMD_CHANGE_SVC_EVENT_HANDLER: > case CMD_CHANGE_HOST_CHECK_COMMAND: > case CMD_CHANGE_SVC_CHECK_COMMAND: > return ERROR; > } > > That's in the right section and my reading of the code is that it does > exactly that; prevent changing of those values... Maybe it's something > being worked on in the development branch? Thanks! I should have done some code-diving, because that goes pretty far toward explaining why those commands don't work for me as currently documented. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From coolmrhonest at yahoo.com Wed Apr 8 23:47:16 2009 From: coolmrhonest at yahoo.com (XYZ XYZ) Date: Wed, 8 Apr 2009 14:47:16 -0700 (PDT) Subject: how to add Q1,Q2,Q3,Q4 reports Message-ID: <93939.60021.qm@web112219.mail.gq1.yahoo.com> Any idea how do i add few custom reports to nagios "report period" drop down list in "availability report" like Q1(first quarter), Q2(second quarter)... etc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy-lists at networkmail.eu Thu Apr 9 00:19:03 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Wed, 08 Apr 2009 23:19:03 +0100 Subject: how to add Q1,Q2,Q3,Q4 reports In-Reply-To: <93939.60021.qm@web112219.mail.gq1.yahoo.com> References: <93939.60021.qm@web112219.mail.gq1.yahoo.com> Message-ID: <49DD22D7.30402@networkmail.eu> XYZ XYZ wrote: > Any idea how do i add few custom reports to nagios "report period" > drop down list in "availability report" like Q1(first quarter), > Q2(second quarter)... etc. > > > Edit the source code and recompile? ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Apr 9 00:34:21 2009 From: ae at op5.se (Andreas Ericsson) Date: Thu, 09 Apr 2009 00:34:21 +0200 Subject: Adaptive Monitoring: Broken? In-Reply-To: <4642F11A-04F2-430C-B6CF-E9A9627767DA@ena.com> References: <20090407182618.GS30298@bakgwai.americas.hpqcorp.net> <4642F11A-04F2-430C-B6CF-E9A9627767DA@ena.com> Message-ID: <49DD266D.8050902@op5.se> Marc Powell wrote: > On Apr 7, 2009, at 1:26 PM, Patrick Morris wrote: > >> Here are the important stats: >> >> Nagios Version: Version 3.1.0 >> Proficiency Level: Pretty damned high > >> While the first command works fine, and sets the service to an OK >> state, >> the next two (which I've tried in various combinations) show up in the >> Nagios logs as having been sent, but do nothing. The check that >> appears >> in the config files keeps running instead of my check_ok check. >> >> Here's how it shows up in the logs: >> >> [1239128528] EXTERNAL COMMAND: CHANGE_SVC_EVENT_HANDLER;dummy- >> host;DNS;check_ok >> [1239128528] EXTERNAL COMMAND: CHANGE_SVC_CHECK_COMMAND;dummy- >> host;DNS;check_ok >> >> I've noticed the message is different if I use an invalid command, so >> I'm relatively sure I'm using the right ones; they just don't do >> anything. >> >> Event handlers are enabled for these services, but even if they >> weren't >> the check command should change, right? >> >> Am I doing something wrong here, or have I run into a bug? > > I'm not using 3.x yet but just to provide some feedback, what you're > doing looks reasonable from my reading of the documentation. I do see > this in 3.1.0's commands.c though -- > > /* SECURITY PATCH - disable these for the time being */ > switch(cmd){ > case CMD_CHANGE_GLOBAL_HOST_EVENT_HANDLER: > case CMD_CHANGE_GLOBAL_SVC_EVENT_HANDLER: > case CMD_CHANGE_HOST_EVENT_HANDLER: > case CMD_CHANGE_SVC_EVENT_HANDLER: > case CMD_CHANGE_HOST_CHECK_COMMAND: > case CMD_CHANGE_SVC_CHECK_COMMAND: > return ERROR; > } > > That's in the right section and my reading of the code is that it does > exactly that; prevent changing of those values... Maybe it's something > being worked on in the development branch? > It's not. That snippet comes from Nov 30 2008 as a measure to prevent CVE-2008-5027 (cmd.cgi authorization bypass vulnerability) and CVE-2008-5028 (cross-site request forgery) from becoming remote command execution vulnerabilities. Ethan added that snippet as an extra security measure. It's been in Nagios since 3.0.4. Assuming both the patches I sent are applied, it's safe to remove that particular snippet and recompile Nagios. I wrote about the two vulnerabilities here in case anyone needs to refresh their memory: http://blogs.op5.org/blog4.php/2008/11/11/nagios-cmd-cgi-authorization-bypass-vuln http://blogs.op5.org/blog4.php/2008/11/11/cross-site-request-forgery-vulnerability-6 The patches to prevent them are available here: http://git.op5.org/git/?p=nagios.git;a=shortlog;h=refs/heads/security -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Apr 9 00:36:11 2009 From: ae at op5.se (Andreas Ericsson) Date: Thu, 09 Apr 2009 00:36:11 +0200 Subject: multiple parents In-Reply-To: References: Message-ID: <49DD26DB.9070206@op5.se> Lori Adams wrote: > We have several hosts that have multiple parents. > > Will the child notify as down if only one of the parents is down? Or > will the child suppress notifications because one of its parents is > down? > All parents of a host has to be down for it to become unreachable. If you have configured the host (and your contacts) to send notifications on unreachable states, you may still get notifications for it, but not HOST DOWN ones. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niall at makalumedia.com Thu Apr 9 01:05:35 2009 From: niall at makalumedia.com (Niall O Broin) Date: Thu, 9 Apr 2009 00:05:35 +0100 Subject: Hostnames and regex Message-ID: I recently changed a Nagios configuration to use a regex with hostnames but it hasn't been entirely satisfactory. I have e.g. define service{ use generic-service host_name host* service_description Total Processes check_command snmp_procs!120!150 but for some hosts, I need to use different thresholds. I tried to use define service{ use generic-service host_name hostNN service_description Total Processes check_command snmp_procs!200!250 but hostNN still alerts based on the host* thresholds. I tried placing the definition for host NN before AND after the host* definition - it made no difference. From what I read of Nagios regex, they're not full regex so it wouldn't be possible to write one which matched host* but didn't match hostNN. Is there a way of doing what I want, apart from the obvious one of renaming the hosts which I don't want to match the regex? __ Kindest regards, Niall O Broin MakaluMedia Group | http://makalumedia.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From muralikrishnan.s at gmail.com Thu Apr 9 06:15:33 2009 From: muralikrishnan.s at gmail.com (Murali Krishnan S) Date: Thu, 9 Apr 2009 09:45:33 +0530 Subject: NSClient not providing results Message-ID: <5a6fb4e0904082115y64b46720j2f73257e36d39334@mail.gmail.com> Hi, When I set NSClient++ to start automatically in services, its running but not providing the results. All I'm getting is "could not fetch information from server" . Even when I run the "check_nt" plugin manually also, I'm getting the same result. [root at nagios libexec]# /usr/local/nagios/libexec/check_nt -H 192.168.0.119 -p 12489 -v MEMUSE -w 80 -c 90 could not fetch information from server After searching and reading mailing lists I've tweaked certain things like "disabling firewall", "enabling DEP", etc. Still the same result. Only one way I could make the NSClient to respond is, running it in Command line with "-test" option. c:\NSClient++>"NSClient++.exe" -test When I run this, I'm getting the CHECKS GREEN.. [root at nagios libexec]# /usr/local/nagios/libexec/check_nt -H 192.168.0.119 -p 12489 -v MEMUSE -w 80 -c 90 Memory usage: total:4308.71 Mb - used: 1606.41 Mb (37%) - free: 2702.30 Mb (63%) | 'Memory usage'=1606.41Mb;3446.97;3877.84;0.00;4308.71 Everytime I reboot the machine. I need to start this in command line. Any solution, inputs ? Please provide... Thanks. -- Regards Mkrish -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Thu Apr 9 07:17:53 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Thu, 9 Apr 2009 10:47:53 +0530 Subject: Monitor netstat connection states using nagios. Message-ID: <25251aec0904082217s783e7c45k131353e212f6c01a@mail.gmail.com> Hi All, I am using check_tcp to check status of a particular port on the server. This is working good. I would also need to monitor LISTEN status (SYN_RECV) of that port. for ex, I have a ldap service running on port 3890, so the command netstat -anp | grep 3890 tcp 0 0 0.0.0.0:3890 0.0.0.0:* LISTEN 16029/java tcp 0 0 10.121.30.121:3890 10.121.6.1:8831 ESTABLISHED 16029/java tcp 0 0 10.121.30.121:3890 10.121.6.1:61052 ESTABLISHED 16029/java tcp 228 0 10.121.30.121:3890 10.121.6.1:49440 ESTABLISHED 16029/java tcp 0 0 10.121.30.121:3890 10.121.6.1:11664 SYN_RECV 16029/java The establish connections are ok to allow, but we need to monitor SYN_RECV status. If there is any such(SYN_RECV) connection appears, we immediately get an alert from nagios. Is there any way to monitor such states with nagios or check_tcp? I have written some shell script to monitor such events, but also I would like to integrate that scripts into nagios? Is that possible? Please help me or provide some suggestions -- Shankar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Thu Apr 9 07:16:41 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Thu, 9 Apr 2009 10:46:41 +0530 Subject: Monitor netstat connection states using nagios. Message-ID: <25251aec0904082216l6076babex3f3048245a7de00f@mail.gmail.com> Hi All, I am using check_tcp to check status of a particular port on the server. This is working good. I would also need to monitor LISTEN status (SYN_RECV) of that port. for ex, I have a ldap service running on port 3890, so the command netstat -anp | grep 3890 tcp 0 0 0.0.0.0:3890 0.0.0.0:* LISTEN 16029/java tcp 0 0 10.121.30.121:3890 10.121.6.1:8831 ESTABLISHED 16029/java tcp 0 0 10.121.30.121:3890 10.121.6.1:61052 ESTABLISHED 16029/java tcp 228 0 10.121.30.121:3890 10.121.6.1:49440 ESTABLISHED 16029/java tcp 0 0 10.121.30.121:3890 10.121.6.1:11664 SYN_RECV 16029/java The establish connections are ok to allow, but we need to monitor SYN_RECV status. If there is any such(SYN_RECV) connection appears, we immediately get an alert from nagios. Is there any way to monitor such states with nagios or check_tcp? I have written some shell script to monitor such events, but also I would like to integrate that scripts into nagios? Is that possible? Please help me Thanks -- Shankar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amol.bute at tatatechnologies.com Thu Apr 9 07:10:58 2009 From: amol.bute at tatatechnologies.com (amol.bute at tatatechnologies.com) Date: Thu, 9 Apr 2009 10:40:58 +0530 Subject: Nagios for IRIX Message-ID: Greeting. I have IRIX 6.5 servers which I like to monitor using Nagios 3.0. I am able to monitor other servers like Linux & Windows but not able to configure nagios on IRIX OS servers. Please guide me how can I install nagios plug-in on IRIX OS and configure. Where do we will get nagios plug-ins for IRIX. Thanks and Regards Amol Bute ************************************************************************************************************************************************** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vmanojv at rediffmail.com Thu Apr 9 08:35:06 2009 From: vmanojv at rediffmail.com (Nair) Date: 9 Apr 2009 06:35:06 -0000 Subject: Service Dependency Message-ID: <20090409063506.17551.qmail@f5mail-237-237.rediffmail.com> Friends, I need to define mutal dependancy between two web services in different hosts. PLease see the config below which end up throwing error: ----------------------- Error: A circular execution dependency (which could result in a deadlock) exists for service 'www' on host 'host2'! ----------------------- # Service Dependency Definition for cfservd define servicedependency{ host_name host1 service_description www dependent_host_name host2 dependent_service_description www execution_failure_criteria o notification_failure_criteria c,p } define servicedependency{ host_name host2 service_description www dependent_host_name host1 dependent_service_description www execution_failure_criteria o notification_failure_criteria c,p } Please share your thoughts for getting the config right. Thank you in advance, Nair -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ankit.mehrotra at tcs.com Thu Apr 9 08:15:33 2009 From: ankit.mehrotra at tcs.com (ankit.mehrotra at tcs.com) Date: Thu, 9 Apr 2009 11:45:33 +0530 Subject: Nagios for IRIX In-Reply-To: References: Message-ID: HI, Not very sure about the problem u are facing .... To my understanding of your, problem you can compile the source files of the add-ons and the plug-ins and use them for monitoring. If this is not the issue, then send the problem in detail ! Cheers, Ankit 04/09/2009 10:40 AM To cc Subject [Nagios-users] Nagios for IRIX Greeting. I have IRIX 6.5 servers which I like to monitor using Nagios 3.0. I am able to monitor other servers like Linux & Windows but not able to configure nagios on IRIX OS servers. Please guide me how can I install nagios plug-in on IRIX OS and configure. Where do we will get nagios plug-ins for IRIX. Thanks and Regards Amol Bute ************************************************************************************************************************************************** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************************************************************************************ ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00034FB2 =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amol.bute at tatatechnologies.com Thu Apr 9 09:41:11 2009 From: amol.bute at tatatechnologies.com (amol.bute at tatatechnologies.com) Date: Thu, 9 Apr 2009 13:11:11 +0530 Subject: Nagios for IRIX In-Reply-To: References: Message-ID: Hi, I Tried for compiling but getting error. PSA. # pwd /nagios # ls -l total 584 -rw-r--r-- 1 root sys 5276 Apr 7 14:37 Changelog -rw-r--r-- 1 root sys 446 Apr 7 14:37 LEGAL -rwxrwxrwx 1 root sys 1819 Apr 7 14:37 Makefile.in -rw-r--r-- 1 root sys 6855 Apr 7 14:37 README -rwxrwxrwx 1 root sys 1206 Apr 7 14:37 README.SSL -rw-r--r-- 1 root sys 2484 Apr 7 14:37 SECURITY drwxrwxrwx 2 root sys 51 Apr 7 14:37 autom4te.cache drwxr-xr-x 2 root sys 39 Apr 7 14:37 common -rwxrwxrwx 1 root sys 205817 Apr 9 12:52 configure -rwxrwxrwx 1 root sys 8029 Apr 7 14:37 configure.in drwxr-xr-x 2 root sys 65 Apr 7 14:37 contrib -rwxrwxrwx 1 root sys 1028 Apr 7 14:37 init-script.debian.in -rwxrwxrwx 1 root sys 454 Apr 7 14:37 init-script.freebsd.in -rwxrwxrwx 1 root sys 1233 Apr 7 14:37 init-script.in -rw-r--r-- 1 root sys 5835 Apr 7 14:37 install-sh -rwxrwxrwx 1 root sys 5090 Apr 7 14:37 nrpe.cfg.in -rwxrwxrwx 1 root sys 4423 Apr 7 14:37 nrpe.spec -rwxrwxrwx 1 root sys 450 Apr 7 14:37 nrpe.xinetd.in drwxr-xr-x 2 root sys 125 Apr 7 14:37 src -rwxrwxrwx 1 root sys 1049 Apr 7 14:37 subst.in -rw-r--r-- 1 root sys 1108 Apr 7 14:37 update-version # ./configure sh: ./configure: not found # Also error with make all command # make all don't know how to make all (bu42). # ________________________________ From: ankit.mehrotra at tcs.com [mailto:ankit.mehrotra at tcs.com] Sent: Thursday, April 09, 2009 11:46 AM To: Bute Amol [Junior Engineer] Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios for IRIX HI, Not very sure about the problem u are facing .... To my understanding of your, problem you can compile the source files of the add-ons and the plug-ins and use them for monitoring. If this is not the issue, then send the problem in detail ! Cheers, Ankit 04/09/2009 10:40 AM To cc Subject [Nagios-users] Nagios for IRIX Greeting. I have IRIX 6.5 servers which I like to monitor using Nagios 3.0. I am able to monitor other servers like Linux & Windows but not able to configure nagios on IRIX OS servers. Please guide me how can I install nagios plug-in on IRIX OS and configure. Where do we will get nagios plug-ins for IRIX. Thanks and Regards Amol Bute ************************************************************************ ************************************************************************ ** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************ ************************************************************************ ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00034FB2 =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ************************************************************************************************************************************************** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From narendran.neelamegam at wipro.com Thu Apr 9 09:44:49 2009 From: narendran.neelamegam at wipro.com (narendran.neelamegam at wipro.com) Date: Thu, 9 Apr 2009 13:14:49 +0530 Subject: Nagios for IRIX In-Reply-To: References: Message-ID: <4998B78E3FE856409DA742DDFEE793320104E14F@HYD-MKD-MBX02.wipro.com> May be this will help. http://opsview-blog.opsera.com/dotorg/2005/09/nagios_remote_p.html Regards, Naren ________________________________ From: amol.bute at tatatechnologies.com [mailto:amol.bute at tatatechnologies.com] Sent: Thursday, April 09, 2009 8:41 AM To: ankit.mehrotra at tcs.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios for IRIX Hi, I Tried for compiling but getting error. PSA. # pwd /nagios # ls -l total 584 -rw-r--r-- 1 root sys 5276 Apr 7 14:37 Changelog -rw-r--r-- 1 root sys 446 Apr 7 14:37 LEGAL -rwxrwxrwx 1 root sys 1819 Apr 7 14:37 Makefile.in -rw-r--r-- 1 root sys 6855 Apr 7 14:37 README -rwxrwxrwx 1 root sys 1206 Apr 7 14:37 README.SSL -rw-r--r-- 1 root sys 2484 Apr 7 14:37 SECURITY drwxrwxrwx 2 root sys 51 Apr 7 14:37 autom4te.cache drwxr-xr-x 2 root sys 39 Apr 7 14:37 common -rwxrwxrwx 1 root sys 205817 Apr 9 12:52 configure -rwxrwxrwx 1 root sys 8029 Apr 7 14:37 configure.in drwxr-xr-x 2 root sys 65 Apr 7 14:37 contrib -rwxrwxrwx 1 root sys 1028 Apr 7 14:37 init-script.debian.in -rwxrwxrwx 1 root sys 454 Apr 7 14:37 init-script.freebsd.in -rwxrwxrwx 1 root sys 1233 Apr 7 14:37 init-script.in -rw-r--r-- 1 root sys 5835 Apr 7 14:37 install-sh -rwxrwxrwx 1 root sys 5090 Apr 7 14:37 nrpe.cfg.in -rwxrwxrwx 1 root sys 4423 Apr 7 14:37 nrpe.spec -rwxrwxrwx 1 root sys 450 Apr 7 14:37 nrpe.xinetd.in drwxr-xr-x 2 root sys 125 Apr 7 14:37 src -rwxrwxrwx 1 root sys 1049 Apr 7 14:37 subst.in -rw-r--r-- 1 root sys 1108 Apr 7 14:37 update-version # ./configure sh: ./configure: not found # Also error with make all command # make all don't know how to make all (bu42). # ________________________________ From: ankit.mehrotra at tcs.com [mailto:ankit.mehrotra at tcs.com] Sent: Thursday, April 09, 2009 11:46 AM To: Bute Amol [Junior Engineer] Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios for IRIX HI, Not very sure about the problem u are facing .... To my understanding of your, problem you can compile the source files of the add-ons and the plug-ins and use them for monitoring. If this is not the issue, then send the problem in detail ! Cheers, Ankit 04/09/2009 10:40 AM To cc Subject [Nagios-users] Nagios for IRIX Greeting. I have IRIX 6.5 servers which I like to monitor using Nagios 3.0. I am able to monitor other servers like Linux & Windows but not able to configure nagios on IRIX OS servers. Please guide me how can I install nagios plug-in on IRIX OS and configure. Where do we will get nagios plug-ins for IRIX. Thanks and Regards Amol Bute ************************************************************************ ************************************************************************ ** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************ ************************************************************************ ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00034FB2 =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ************************************************************************ ************************************************************************ ** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************ ************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amol.bute at tatatechnologies.com Thu Apr 9 10:05:53 2009 From: amol.bute at tatatechnologies.com (amol.bute at tatatechnologies.com) Date: Thu, 9 Apr 2009 13:35:53 +0530 Subject: Nagios for IRIX In-Reply-To: <4998B78E3FE856409DA742DDFEE793320104E14F@HYD-MKD-MBX02.wipro.com> References: <4998B78E3FE856409DA742DDFEE793320104E14F@HYD-MKD-MBX02.wipro.com> Message-ID: Hi, I downloaded the plug-ins from the same site. as per README try to run ./configure make all but following errors shown. # ./configure sh: ./configure: not found # make all don't know how to make all (bu42). # Regards Amol ________________________________ From: narendran.neelamegam at wipro.com [mailto:narendran.neelamegam at wipro.com] Sent: Thursday, April 09, 2009 1:15 PM To: Bute Amol [Junior Engineer]; ankit.mehrotra at tcs.com Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios for IRIX May be this will help. http://opsview-blog.opsera.com/dotorg/2005/09/nagios_remote_p.html Regards, Naren ________________________________ From: amol.bute at tatatechnologies.com [mailto:amol.bute at tatatechnologies.com] Sent: Thursday, April 09, 2009 8:41 AM To: ankit.mehrotra at tcs.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios for IRIX Hi, I Tried for compiling but getting error. PSA. # pwd /nagios # ls -l total 584 -rw-r--r-- 1 root sys 5276 Apr 7 14:37 Changelog -rw-r--r-- 1 root sys 446 Apr 7 14:37 LEGAL -rwxrwxrwx 1 root sys 1819 Apr 7 14:37 Makefile.in -rw-r--r-- 1 root sys 6855 Apr 7 14:37 README -rwxrwxrwx 1 root sys 1206 Apr 7 14:37 README.SSL -rw-r--r-- 1 root sys 2484 Apr 7 14:37 SECURITY drwxrwxrwx 2 root sys 51 Apr 7 14:37 autom4te.cache drwxr-xr-x 2 root sys 39 Apr 7 14:37 common -rwxrwxrwx 1 root sys 205817 Apr 9 12:52 configure -rwxrwxrwx 1 root sys 8029 Apr 7 14:37 configure.in drwxr-xr-x 2 root sys 65 Apr 7 14:37 contrib -rwxrwxrwx 1 root sys 1028 Apr 7 14:37 init-script.debian.in -rwxrwxrwx 1 root sys 454 Apr 7 14:37 init-script.freebsd.in -rwxrwxrwx 1 root sys 1233 Apr 7 14:37 init-script.in -rw-r--r-- 1 root sys 5835 Apr 7 14:37 install-sh -rwxrwxrwx 1 root sys 5090 Apr 7 14:37 nrpe.cfg.in -rwxrwxrwx 1 root sys 4423 Apr 7 14:37 nrpe.spec -rwxrwxrwx 1 root sys 450 Apr 7 14:37 nrpe.xinetd.in drwxr-xr-x 2 root sys 125 Apr 7 14:37 src -rwxrwxrwx 1 root sys 1049 Apr 7 14:37 subst.in -rw-r--r-- 1 root sys 1108 Apr 7 14:37 update-version # ./configure sh: ./configure: not found # Also error with make all command # make all don't know how to make all (bu42). # ________________________________ From: ankit.mehrotra at tcs.com [mailto:ankit.mehrotra at tcs.com] Sent: Thursday, April 09, 2009 11:46 AM To: Bute Amol [Junior Engineer] Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios for IRIX HI, Not very sure about the problem u are facing .... To my understanding of your, problem you can compile the source files of the add-ons and the plug-ins and use them for monitoring. If this is not the issue, then send the problem in detail ! Cheers, Ankit 04/09/2009 10:40 AM To cc Subject [Nagios-users] Nagios for IRIX Greeting. I have IRIX 6.5 servers which I like to monitor using Nagios 3.0. I am able to monitor other servers like Linux & Windows but not able to configure nagios on IRIX OS servers. Please guide me how can I install nagios plug-in on IRIX OS and configure. Where do we will get nagios plug-ins for IRIX. Thanks and Regards Amol Bute ************************************************************************ ************************************************************************ ** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************ ************************************************************************ ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00034FB2 =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ************************************************************************ ************************************************************************ ** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************ ************************************************************************ Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com ************************************************************************************************************************************************** Email Disclaimer: Information contained and transmitted by this e-mail (including any attachments) is confidential, proprietary and legally privileged data of Tata Technologies that is intended for use only by the addressee. If you are not the intended recipient, you are notified that any review, use, dissemination, distribution, copying or printing of this e-mail is strictly prohibited. You are requested to delete this e-mail or any copies immediately and notify the sender by reply email. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. Tata Technologies does not accept any liability for virus infected email or errors or omissions or consequences which may arise as a result of this e-mail transmission. To know more about Tata Technologies please visit http://www.tatatechnologies.com ************************************************************************************************************************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Apr 9 10:53:11 2009 From: ae at op5.se (Andreas Ericsson) Date: Thu, 09 Apr 2009 10:53:11 +0200 Subject: Service Dependency In-Reply-To: <20090409063506.17551.qmail@f5mail-237-237.rediffmail.com> References: <20090409063506.17551.qmail@f5mail-237-237.rediffmail.com> Message-ID: <49DDB777.4020607@op5.se> Nair wrote: > Friends, > I need to define mutal dependancy between two web services in different hosts. > Why? If the two services *really* depend on each other, there's no way to start either, since it wouldn't function without the other one running. > PLease see the config below which end up throwing error: > ----------------------- > Error: A circular execution dependency (which could result in a deadlock) exists for service 'www' on host 'host2'! > ----------------------- > # Service Dependency Definition for cfservd > define servicedependency{ > host_name host1 > service_description www > dependent_host_name host2 > dependent_service_description www > execution_failure_criteria o > notification_failure_criteria c,p > } > > define servicedependency{ > host_name host2 > service_description www > dependent_host_name host1 > dependent_service_description www > execution_failure_criteria o > notification_failure_criteria c,p > } > This sort of dependency would mean that as soon as both of those services go OK at the same time, they would never be checked again, ever. > Please share your thoughts for getting the config right. > I'm guessing this is a failover solution so that either of the two has to work for the check to return ok. If so, just check the web service through whatever IP your users access this. If you aren't running IP takeover (or some other "same-IP" thing), write a wrapper for check_http which checks both hosts at once and only returns critical if both services are non-ok. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Thu Apr 9 11:02:03 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 9 Apr 2009 02:02:03 -0700 Subject: Monitor netstat connection states using nagios. In-Reply-To: <25251aec0904082217s783e7c45k131353e212f6c01a@mail.gmail.com> References: <25251aec0904082217s783e7c45k131353e212f6c01a@mail.gmail.com> Message-ID: <49DDB98B.8050803@kkeane.com> asam30 at gmail.com wrote: > > Hi All, > > I am using check_tcp to check status of a particular port on the > server. This is working good. I would also need to monitor LISTEN > status (SYN_RECV) of that port. for ex, > > I have a ldap service running on port 3890, so the command > > netstat -anp | grep 3890 > > tcp 0 0 0.0.0.0:3890 > 0.0.0.0:* LISTEN > 16029/java > tcp 0 0 10.121.30.121:3890 > 10.121.6.1:8831 > ESTABLISHED 16029/java > tcp 0 0 10.121.30.121:3890 > 10.121.6.1:61052 > ESTABLISHED 16029/java > tcp 228 0 10.121.30.121:3890 > 10.121.6.1:49440 > ESTABLISHED 16029/java > tcp 0 0 10.121.30.121:3890 > 10.121.6.1:11664 > SYN_RECV 16029/java > > The establish connections are ok to allow, but we need to monitor > SYN_RECV status. If there is any such(SYN_RECV) connection appears, we > immediately get an alert from nagios. Is there any way to monitor such > states with nagios or check_tcp? > > I have written some shell script to monitor such events, but also I > would like to integrate that scripts into nagios? Is that possible? > > Please help me or provide some suggestions You can integrate almost any shell script you want into Nagios. All you need to do is implement the Nagios plugin specification, which is fairly trivial to do for most scripts. Return 0, 1 or 2 (OK, warn or critical) to as exit code, and return the actual result data via stdout in a single line. The details are in the Nagios documentation. -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Thu Apr 9 11:34:13 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Thu, 9 Apr 2009 15:04:13 +0530 Subject: Monitor netstat connection states using nagios. In-Reply-To: <49DDB98B.8050803@kkeane.com> References: <25251aec0904082217s783e7c45k131353e212f6c01a@mail.gmail.com> <49DDB98B.8050803@kkeane.com> Message-ID: <25251aec0904090234x309ce04dq3b4ad9c1043443fd@mail.gmail.com> Hi All, thank you for prompt response. I am trying this on one of the linux test server and I am monitoring port 80 (web server) to monitor port status TIME_WAIT. which means if netstat -anp | grep 80 returns any state as TIME, then get an alert on nagios. STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 netstat -anp | grep 80 > synport err=`cat synport | grep TIME | wc -l |awk '{print $1}'` if [ $err -gt 0 ] then echo "WARNING - STATUS= TIME_WAIT port status on $HOSTNAME | "WARNING - STATUS=TIME_WAIT port status on $HOSTNAME #exit ${STATE_WARNING} fi Can you tell me if this ok? Guide me where I am missing? This is my first script to integrate to nagios. Thanks On Thu, Apr 9, 2009 at 2:32 PM, Kevin Keane wrote: > asam30 at gmail.com wrote: > > > > Hi All, > > > > I am using check_tcp to check status of a particular port on the > > server. This is working good. I would also need to monitor LISTEN > > status (SYN_RECV) of that port. for ex, > > > > I have a ldap service running on port 3890, so the command > > > > netstat -anp | grep 3890 > > > > tcp 0 0 0.0.0.0:3890 > > 0.0.0.0:* LISTEN > > 16029/java > > tcp 0 0 10.121.30.121:3890 > > 10.121.6.1:8831 > > ESTABLISHED 16029/java > > tcp 0 0 10.121.30.121:3890 > > 10.121.6.1:61052 > > ESTABLISHED 16029/java > > tcp 228 0 10.121.30.121:3890 > > 10.121.6.1:49440 > > ESTABLISHED 16029/java > > tcp 0 0 10.121.30.121:3890 > > 10.121.6.1:11664 > > SYN_RECV 16029/java > > > > The establish connections are ok to allow, but we need to monitor > > SYN_RECV status. If there is any such(SYN_RECV) connection appears, we > > immediately get an alert from nagios. Is there any way to monitor such > > states with nagios or check_tcp? > > > > I have written some shell script to monitor such events, but also I > > would like to integrate that scripts into nagios? Is that possible? > > > > Please help me or provide some suggestions > You can integrate almost any shell script you want into Nagios. All you > need to do is implement the Nagios plugin specification, which is fairly > trivial to do for most scripts. Return 0, 1 or 2 (OK, warn or critical) > to as exit code, and return the actual result data via stdout in a > single line. The details are in the Nagios documentation. > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think > About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or > proprietary information. Please be advised that the unauthorized use or > disclosure of the information is strictly prohibited. The information herein > is intended only for use by the intended recipient(s) named above. If you > have received this transmission in error, please notify the sender > immediately and permanently delete the e-mail and any copies, printouts or > attachments thereof. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 9 11:48:56 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 9 Apr 2009 10:48:56 +0100 Subject: nagiosgraph for paging file Message-ID: <200904091048.57200.assaf.flatto@ssp-intl.com> Hello I've been using nagiosgraph for a while , and i am slowly adding new graphs to the nagios , now i am trying to add a graph for our windows based machines , to show the Page file use , this is what i have now now in my map file : # Service type: ntcount # check command: check_nt -H $HOSTADDRESS$ -t 20 -p 1248 -v COUNTER -l $ARG1$ -w $ARG2$ -c $ARG3$ # output: Paging file usage is 53.07 % # perfdata:Paging file usage is %.2f %%=1.899340%;35.000000;90.000000; #/prefdata:Paging file usage is.*=([.0-9]+)%;([.0-9]+);([.0-9]+)/ /output:Paging file usage is (\d+)%/ and push @s, [ pagecounter, [ pageused , GAUGE, $1 ], # [ pagewarn , GAUGE, $2 ], # [ pagecrit , GAUGE, $3 ], ]; As you can see i tried the prefdata , and output options but with no success . >From the nagiosgrapg.log : Thu Apr 9 10:51:38 2009 insert.pl debug - processdata data = [ '1239270667', 'Host', 'Page file use', 'Paging file usage is 1.90 %', 'Paging file usage is %.2f %%=1.897430%;35.000000;90.000000; ' ]; Thu Apr 9 10:51:38 2009 insert.pl warn - perfdata not recognized: date||host||desc||out||data for: servicedescr:Page file use output:Paging file usage is 1.90 % perfdata:Paging file usage is %.2f %%=1.897430%;35.000000;90.000000; Can anyone help me understand where my mistake is ? Thank You -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE From Surajit.Mukherjee at ness.com Thu Apr 9 12:09:35 2009 From: Surajit.Mukherjee at ness.com (Surajit Mukherjee) Date: Thu, 9 Apr 2009 15:39:35 +0530 Subject: Nagis connection refused error Message-ID: <7288B253FF8D33498BF175A570821F56F26A@INBLRNT11.ness.com> Hi All, I am new in Nagios and configured Nagios 3.0.6 in Redhat5 VMware. I am configured windows machines for to monitor memory load, cpu load erc. I am logging to http://myserver/nagios and getting the host status information as it shows UP. But in notification area it is showing connection refused. Can anybody help me what are all the things I should check for this error? Surajit The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to MailAdmin at ness.com and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 9 12:21:51 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 9 Apr 2009 11:21:51 +0100 Subject: Nagis connection refused error In-Reply-To: <7288B253FF8D33498BF175A570821F56F26A@INBLRNT11.ness.com> References: <7288B253FF8D33498BF175A570821F56F26A@INBLRNT11.ness.com> Message-ID: <200904091121.52267.assaf.flatto@ssp-intl.com> Hello A couple of things pop to mind : 1) is the windows firewall active ? 2) have you configured the windows NSClient to accept queries from the nagios server ? 3) do you have a firewall in between the nagios server and the target machines ? Assaf On Thursday 09 April 2009 11:09:35 Surajit Mukherjee wrote: > Hi All, > > > > I am new in Nagios and configured Nagios 3.0.6 in Redhat5 VMware. I am > configured windows machines for to monitor memory load, cpu load erc. > > > > I am logging to http://myserver/nagios and > getting the host status information as it shows UP. > > But in notification area it is showing connection refused. Can anybody > help me what are all the things I should check for this error? > > > > Surajit > > > > > > > > > > > > The information contained in this communication is intended solely for > the use of the individual or entity to whom it is addressed and others > authorized to receive it. It may contain confidential or legally > privileged information. If you are not the intended recipient you are > hereby notified that any disclosure, copying, distribution or taking any > action in reliance on the contents of this information is strictly > prohibited and may be unlawful. If you have received this communication in > error, please notify us immediately by forwarding this email to > MailAdmin at ness.com and then delete it from your system. > > Ness technologies is neither liable for the proper and complete > transmission of the information contained in this communication nor for > any delay in its receipt. -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Surajit.Mukherjee at ness.com Thu Apr 9 11:52:11 2009 From: Surajit.Mukherjee at ness.com (Surajit Mukherjee) Date: Thu, 9 Apr 2009 15:22:11 +0530 Subject: Welcome to the "Nagios-users" mailing list In-Reply-To: References: Message-ID: <7288B253FF8D33498BF175A570821F56F269@INBLRNT11.ness.com> Surajit M * System Administrator Infrastructure Services Group Ness Technologies India Pvt. Ltd. No. 18, 5th Block, Industrial Main Road, Koramangala, Bangalore - 560095. India Mobile: +91-9663306031 | Tel.: +91-80-41961000 | Fax: +91-80-41303530 surajit.mukherjee at ness.com | www.ness.com -----Original Message----- From: nagios-users-request at lists.sourceforge.net [mailto:nagios-users-request at lists.sourceforge.net] Sent: Thursday, April 09, 2009 3:17 PM To: Surajit Mukherjee Subject: Welcome to the "Nagios-users" mailing list Welcome to the Nagios-users at lists.sourceforge.net mailing list! To post to this list, send your email to: nagios-users at lists.sourceforge.net General information about the mailing list is at: https://lists.sourceforge.net/lists/listinfo/nagios-users If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: https://lists.sourceforge.net/lists/options/nagios-users/surajit.mukherj ee%40ness.com You can also make such adjustments via email by sending a message to: Nagios-users-request at lists.sourceforge.net with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. It is: pm19861983 Normally, Mailman will remind you of your lists.sourceforge.net mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to MailAdmin at ness.com and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Surajit.Mukherjee at ness.com Thu Apr 9 12:37:05 2009 From: Surajit.Mukherjee at ness.com (Surajit Mukherjee) Date: Thu, 9 Apr 2009 16:07:05 +0530 Subject: Nagis connection refused error In-Reply-To: <200904091121.52267.assaf.flatto@ssp-intl.com> References: <7288B253FF8D33498BF175A570821F56F26A@INBLRNT11.ness.com> <200904091121.52267.assaf.flatto@ssp-intl.com> Message-ID: <7288B253FF8D33498BF175A570821F56F26B@INBLRNT11.ness.com> Hi Assaf, I have checked all the things that you mentioned below. I think something related to the configuration. Please suggest. Surajit -----Original Message----- From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] Sent: Thursday, April 09, 2009 3:52 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagis connection refused error Hello A couple of things pop to mind : 1) is the windows firewall active ? 2) have you configured the windows NSClient to accept queries from the nagios server ? 3) do you have a firewall in between the nagios server and the target machines ? Assaf On Thursday 09 April 2009 11:09:35 Surajit Mukherjee wrote: > Hi All, > > > > I am new in Nagios and configured Nagios 3.0.6 in Redhat5 VMware. I am > configured windows machines for to monitor memory load, cpu load erc. > > > > I am logging to http://myserver/nagios and > getting the host status information as it shows UP. > > But in notification area it is showing connection refused. Can anybody > help me what are all the things I should check for this error? > > > > Surajit > > > > > > > > > > > > The information contained in this communication is intended solely for > the use of the individual or entity to whom it is addressed and others > authorized to receive it. It may contain confidential or legally > privileged information. If you are not the intended recipient you are > hereby notified that any disclosure, copying, distribution or taking any > action in reliance on the contents of this information is strictly > prohibited and may be unlawful. If you have received this communication in > error, please notify us immediately by forwarding this email to > MailAdmin at ness.com and then delete it from your system. > > Ness technologies is neither liable for the proper and complete > transmission of the information contained in this communication nor for > any delay in its receipt. -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to MailAdmin at ness.com and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 9 12:52:35 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 9 Apr 2009 11:52:35 +0100 Subject: Nagis connection refused error In-Reply-To: <7288B253FF8D33498BF175A570821F56F26B@INBLRNT11.ness.com> References: <7288B253FF8D33498BF175A570821F56F26A@INBLRNT11.ness.com> Message-ID: <200904091152.35352.assaf.flatto@ssp-intl.com> On the windows machine in nsclient installation directory look for a *.ini file . In the file you have several sections defined by "[]" find the one relating to NSclient . In that section you have a directive "allowed_hosts " - you will need to add the nagios server ip . Below it you have directive "port" - you need to un comment it and define the port you wish to use - this port should also be used in your service and command definitions on the nagios server. once that is done , stop the nsclient service and restart it. Assaf On Thursday 09 April 2009 11:37:05 Surajit Mukherjee wrote: > Hi Assaf, > > I have checked all the things that you mentioned below. I think > something related to the configuration. Please suggest. > > Surajit > > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] > Sent: Thursday, April 09, 2009 3:52 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagis connection refused error > > Hello > > A couple of things pop to mind : > > 1) is the windows firewall active ? > > 2) have you configured the windows NSClient to accept queries from the > nagios server ? > > 3) do you have a firewall in between the nagios server and the target > machines ? > > Assaf > > On Thursday 09 April 2009 11:09:35 Surajit Mukherjee wrote: > > Hi All, > > > > > > > > I am new in Nagios and configured Nagios 3.0.6 in Redhat5 VMware. I am > > configured windows machines for to monitor memory load, cpu load erc. > > > > > > > > I am logging to http://myserver/nagios and > > getting the host status information as it shows UP. > > > > But in notification area it is showing connection refused. Can anybody > > help me what are all the things I should check for this error? > > > > > > > > Surajit > > > > > > > > > > > > > > > > > > > > > > > > The information contained in this communication is intended solely for > > the use of the individual or entity to whom it is addressed and others > > authorized to receive it. It may contain confidential or legally > > privileged information. If you are not the intended recipient you > > are > > > hereby notified that any disclosure, copying, distribution or taking > > any > > > action in reliance on the contents of this information is strictly > > prohibited and may be unlawful. If you have received this > > communication in > > > error, please notify us immediately by forwarding this email to > > MailAdmin at ness.com and then delete it from your system. > > > > Ness technologies is neither liable for the proper and complete > > transmission of the information contained in this communication nor > > for > > > any delay in its receipt. -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Thu Apr 9 13:06:30 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Thu, 9 Apr 2009 16:36:30 +0530 Subject: Monitor netstat connection states using nagios. In-Reply-To: <25251aec0904090234x309ce04dq3b4ad9c1043443fd@mail.gmail.com> References: <25251aec0904082217s783e7c45k131353e212f6c01a@mail.gmail.com> <49DDB98B.8050803@kkeane.com> <25251aec0904090234x309ce04dq3b4ad9c1043443fd@mail.gmail.com> Message-ID: <25251aec0904090406j7485d83era5b2c882d7266d13@mail.gmail.com> These are the steps I did, on nagios server under libexec, created check_netstat file and that contains STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 netstat -anp | grep 80 > synport err=`cat synport | grep TIME | wc -l |awk '{print $1}'` if [ $err -gt 0 ] then echo "WARNING - STATUS= TIME_WAIT port status on $HOSTNAME | "WARNING - STATUS=TIME_WAIT port status on $HOSTNAME exit $STATE_CRITICAL else echo "OK - The port is up and running no TIME_WAIT established" exit $STATE_OK fi The same file copied to the nagios client where I am trying to monitor this. And on the nagios server i went to commands.cfg and added one commadn, define command{ command_name check_netstat command_line $USER1$/check_netstat -H $HOSTADDRESS$ } then on the nagios server, i am executeing /usr/local/nagios/libexec/check_netstat -H 172.16.17.18 this scripts runs locally and find the nagios servers apache port status not the monitored servers apache port. how would configure so that it should go to nagios client and get those port TIME_WAIT status. thanks On Thu, Apr 9, 2009 at 3:04 PM, wrote: > Hi All, > > thank you for prompt response. > > I am trying this on one of the linux test server and I am monitoring port > 80 (web server) to monitor port status TIME_WAIT. which means if netstat > -anp | grep 80 returns any state as TIME, then get an alert on nagios. > > > STATE_OK=0 > STATE_WARNING=1 > STATE_CRITICAL=2 > STATE_UNKNOWN=3 > > netstat -anp | grep 80 > synport > err=`cat synport | grep TIME | wc -l |awk '{print $1}'` > if [ $err -gt 0 ] > then > echo "WARNING - STATUS= TIME_WAIT port status on $HOSTNAME | "WARNING - > STATUS=TIME_WAIT port status on $HOSTNAME > #exit ${STATE_WARNING} > fi > > > Can you tell me if this ok? Guide me where I am missing? This is my first > script to integrate to nagios. > > Thanks > > > On Thu, Apr 9, 2009 at 2:32 PM, Kevin Keane wrote: > >> asam30 at gmail.com wrote: >> > >> > Hi All, >> > >> > I am using check_tcp to check status of a particular port on the >> > server. This is working good. I would also need to monitor LISTEN >> > status (SYN_RECV) of that port. for ex, >> > >> > I have a ldap service running on port 3890, so the command >> > >> > netstat -anp | grep 3890 >> > >> > tcp 0 0 0.0.0.0:3890 >> > 0.0.0.0:* LISTEN >> > 16029/java >> > tcp 0 0 10.121.30.121:3890 >> > 10.121.6.1:8831 >> > ESTABLISHED 16029/java >> > tcp 0 0 10.121.30.121:3890 >> > 10.121.6.1:61052 >> > ESTABLISHED 16029/java >> > tcp 228 0 10.121.30.121:3890 >> > 10.121.6.1:49440 >> > ESTABLISHED 16029/java >> > tcp 0 0 10.121.30.121:3890 >> > 10.121.6.1:11664 >> > SYN_RECV 16029/java >> > >> > The establish connections are ok to allow, but we need to monitor >> > SYN_RECV status. If there is any such(SYN_RECV) connection appears, we >> > immediately get an alert from nagios. Is there any way to monitor such >> > states with nagios or check_tcp? >> > >> > I have written some shell script to monitor such events, but also I >> > would like to integrate that scripts into nagios? Is that possible? >> > >> > Please help me or provide some suggestions >> You can integrate almost any shell script you want into Nagios. All you >> need to do is implement the Nagios plugin specification, which is fairly >> trivial to do for most scripts. Return 0, 1 or 2 (OK, warn or critical) >> to as exit code, and return the actual result data via stdout in a >> single line. The details are in the Nagios documentation. >> >> -- >> Kevin Keane >> Owner >> The NetTech >> Find the Uncommon: Expert Solutions for a Network You Never Have to Think >> About >> >> Office: 866-642-7116 >> http://www.4nettech.com >> >> This e-mail and attachments, if any, may contain confidential and/or >> proprietary information. Please be advised that the unauthorized use or >> disclosure of the information is strictly prohibited. The information herein >> is intended only for use by the intended recipient(s) named above. If you >> have received this transmission in error, please notify the sender >> immediately and permanently delete the e-mail and any copies, printouts or >> attachments thereof. >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > -- > Shankar Asam > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Surajit.Mukherjee at ness.com Thu Apr 9 13:15:52 2009 From: Surajit.Mukherjee at ness.com (Surajit Mukherjee) Date: Thu, 9 Apr 2009 16:45:52 +0530 Subject: Nagis connection refused error In-Reply-To: <200904091152.35352.assaf.flatto@ssp-intl.com> References: <7288B253FF8D33498BF175A570821F56F26B@INBLRNT11.ness.com> <200904091152.35352.assaf.flatto@ssp-intl.com> Message-ID: <7288B253FF8D33498BF175A570821F56F26C@INBLRNT11.ness.com> I did everything and I am sure that the windows plug-in are perfectly alright. Any other guess plz? Surajit -----Original Message----- From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] Sent: Thursday, April 09, 2009 4:23 PM To: Nagios User list Subject: Re: [Nagios-users] Nagis connection refused error On the windows machine in nsclient installation directory look for a *.ini file . In the file you have several sections defined by "[]" find the one relating to NSclient . In that section you have a directive "allowed_hosts " - you will need to add the nagios server ip . Below it you have directive "port" - you need to un comment it and define the port you wish to use - this port should also be used in your service and command definitions on the nagios server. once that is done , stop the nsclient service and restart it. Assaf On Thursday 09 April 2009 11:37:05 Surajit Mukherjee wrote: > Hi Assaf, > > I have checked all the things that you mentioned below. I think > something related to the configuration. Please suggest. > > Surajit > > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] > Sent: Thursday, April 09, 2009 3:52 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagis connection refused error > > Hello > > A couple of things pop to mind : > > 1) is the windows firewall active ? > > 2) have you configured the windows NSClient to accept queries from the > nagios server ? > > 3) do you have a firewall in between the nagios server and the target > machines ? > > Assaf > > On Thursday 09 April 2009 11:09:35 Surajit Mukherjee wrote: > > Hi All, > > > > > > > > I am new in Nagios and configured Nagios 3.0.6 in Redhat5 VMware. I am > > configured windows machines for to monitor memory load, cpu load erc. > > > > > > > > I am logging to http://myserver/nagios and > > getting the host status information as it shows UP. > > > > But in notification area it is showing connection refused. Can anybody > > help me what are all the things I should check for this error? > > > > > > > > Surajit > > > > > > > > > > > > > > > > > > > > > > > > The information contained in this communication is intended solely for > > the use of the individual or entity to whom it is addressed and others > > authorized to receive it. It may contain confidential or legally > > privileged information. If you are not the intended recipient you > > are > > > hereby notified that any disclosure, copying, distribution or taking > > any > > > action in reliance on the contents of this information is strictly > > prohibited and may be unlawful. If you have received this > > communication in > > > error, please notify us immediately by forwarding this email to > > MailAdmin at ness.com and then delete it from your system. > > > > Ness technologies is neither liable for the proper and complete > > transmission of the information contained in this communication nor > > for > > > any delay in its receipt. -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to MailAdmin at ness.com and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Thu Apr 9 13:48:31 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Thu, 9 Apr 2009 12:48:31 +0100 Subject: Nagios and Cacti In-Reply-To: References: <913905.71792.qm@web303.biz.mail.mud.yahoo.com> Message-ID: > With parallel checks in Nagios 3 and some configuration tuning and > well-written SNMP checks, I'd argue that Nagios is as good if not a > better poller than cactid :). ? our instance is not huge, but > currently we do 7000+ SNMP-based checks in 3 minutes on a dual > quad-core Linux-based server. > > Before PNP I used to use Cacti and Nagios. ?I like Cacti, but with PNP > around I would never go back to that combination again .. Nagios + PNP > really does simplify life for Nagios administrators and provides a lot > of flexibility as far as how you scale your graphing as your node base > grows. > > - Max Hi Max, Do you all of your SNMP management manually? I'm still learning a lot about SNMP, and was under the impression that Cacti took a lot of the pain out of SNMP management, but I'd be interested in hearing how you administer it in your system just using Nagios + PNP4Nagios if you don't mind? Cheers, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 9 14:14:57 2009 From: marc at ena.com (Marc Powell) Date: Thu, 9 Apr 2009 07:14:57 -0500 Subject: Hostnames and regex In-Reply-To: References: Message-ID: <243C4803-5A41-46E5-98C3-AA127CFAC5A9@ena.com> On Apr 8, 2009, at 6:05 PM, Niall O Broin wrote: > Is there a way of doing what I want, apart from the obvious one of > renaming the hosts which I don't want to match the regex? Yes, I expect the following will work. http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service -- define service{ use generic-service host_name host*, !hostNN service_description Total Processes check_command snmp_procs!120!150 define service{ use generic-service host_name hostNN service_description Total Processes check_command snmp_procs!200!250 -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 9 14:22:08 2009 From: marc at ena.com (Marc Powell) Date: Thu, 9 Apr 2009 07:22:08 -0500 Subject: Nagios for IRIX In-Reply-To: References: Message-ID: On Apr 9, 2009, at 3:05 AM, wrote: > Hi, > > I downloaded the plug-ins from the same site. > > as per README try to run > ./configure > make all > > but following errors shown. > # ./configure > sh: ./configure: not found > > > # make all > don't know how to make all (bu42). > # I'm pretty sure you need to use autoconf, M4, GNU make and friends... -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 9 14:27:22 2009 From: marc at ena.com (Marc Powell) Date: Thu, 9 Apr 2009 07:27:22 -0500 Subject: Nagis connection refused error In-Reply-To: <7288B253FF8D33498BF175A570821F56F26B@INBLRNT11.ness.com> References: <7288B253FF8D33498BF175A570821F56F26A@INBLRNT11.ness.com> <200904091121.52267.assaf.flatto@ssp-intl.com> <7288B253FF8D33498BF175A570821F56F26B@INBLRNT11.ness.com> Message-ID: On Apr 9, 2009, at 5:37 AM, Surajit Mukherjee wrote: > Hi Assaf, > > I have checked all the things that you mentioned below. I think > something related to the configuration. Please suggest. You should send configuration information then so that we do not have to guess what you've done. You should also detail which windows client you installed and how you installed and configured it. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 9 14:31:01 2009 From: marc at ena.com (Marc Powell) Date: Thu, 9 Apr 2009 07:31:01 -0500 Subject: Monitor netstat connection states using nagios. In-Reply-To: <25251aec0904090406j7485d83era5b2c882d7266d13@mail.gmail.com> References: <25251aec0904082217s783e7c45k131353e212f6c01a@mail.gmail.com> <49DDB98B.8050803@kkeane.com> <25251aec0904090234x309ce04dq3b4ad9c1043443fd@mail.gmail.com> <25251aec0904090406j7485d83era5b2c882d7266d13@mail.gmail.com> Message-ID: <81EC30BA-0C3F-4533-BA6C-EF34C2A26E42@ena.com> On Apr 9, 2009, at 6:06 AM, asam30 at gmail.com wrote: > this scripts runs locally and find the nagios servers apache port > status not the monitored servers apache port. how would configure so > that it should go to nagios client and get those port TIME_WAIT > status. You'll need to copy the script to the remote host then use one of the standard remote plugin execution methods (NRPE, check_by_ssh, etc) to run it from nagios on the remote host. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 9 14:56:13 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 9 Apr 2009 13:56:13 +0100 Subject: nagiosgraph for paging file In-Reply-To: <200904091048.57200.assaf.flatto@ssp-intl.com> References: <200904091048.57200.assaf.flatto@ssp-intl.com> Message-ID: <765d77c80904090556r16d02e9dv62e237b3b1b8d2b1@mail.gmail.com> 2009/4/9 Assaf Flatto : > Hello > > I've been using nagiosgraph for a while , and i am slowly adding new graphs to the nagios , now i am > trying to add a graph for our windows based machines , to show the Page file use , > > this is what i have now now in my map file : > # Service type: ntcount > # ? check command: check_nt -H $HOSTADDRESS$ -t 20 -p 1248 -v COUNTER -l $ARG1$ -w $ARG2$ -c $ARG3$ > # ? output: Paging file usage is 53.07 % > # ? perfdata:Paging file usage is %.2f %%=1.899340%;35.000000;90.000000; > #/prefdata:Paging file usage is.*=([.0-9]+)%;([.0-9]+);([.0-9]+)/ > /output:Paging file usage is (\d+)%/ > ?and push @s, [ pagecounter, > ? ? ? ?[ pageused , GAUGE, $1 ], > # ? ? ? [ pagewarn , GAUGE, $2 ], > # ? ? ? [ pagecrit , GAUGE, $3 ], > ? ? ? ?]; > > As you can see i tried the prefdata , and output options but with no success . > > > >From the nagiosgrapg.log : > > ?Thu Apr ?9 10:51:38 2009 insert.pl debug - processdata data = [ > ?'1239270667', > ?'Host', > ?'Page file use', > ?'Paging file usage is 1.90 %', > ?'Paging file usage is %.2f %%=1.897430%;35.000000;90.000000; > ' > ]; > Thu Apr ?9 10:51:38 2009 insert.pl warn - perfdata not recognized: > date||host||desc||out||data for: > servicedescr:Page file use > output:Paging file usage is 1.90 % > perfdata:Paging file usage is %.2f %%=1.897430%;35.000000;90.000000; > > > Can anyone help me understand where my mistake is ? > > Thank You The normal version of check_nt doesn't do performance data very well. You might be better off querying the NSClient++ agent using check_nrpe rather than check_nt. Alternatively I guess you could try the enhanced version of check_nt which comes with nc_net. See http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1663.html;d=1 hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Thu Apr 9 14:58:58 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Thu, 9 Apr 2009 13:58:58 +0100 Subject: Centreon Message-ID: Hi all, Does anyone have any experience using Centreon? http://www.centreon.com/ It seems like a really nice front-end to Nagios, but I'd like to hear of other people's experiences using it before installing and setting it up. Cheers, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niall at makalumedia.com Thu Apr 9 15:14:44 2009 From: niall at makalumedia.com (Niall O Broin) Date: Thu, 9 Apr 2009 14:14:44 +0100 Subject: Hostnames and regex In-Reply-To: <243C4803-5A41-46E5-98C3-AA127CFAC5A9@ena.com> References: <243C4803-5A41-46E5-98C3-AA127CFAC5A9@ena.com> Message-ID: <7E64A568-CBC6-4360-9A8F-96D20F86E60B@makalumedia.com> On 9 Apr 2009, at 13:14, Marc Powell wrote: > > On Apr 8, 2009, at 6:05 PM, Niall O Broin wrote: > > >> Is there a way of doing what I want, apart from the obvious one of >> renaming the hosts which I don't want to match the regex? > > Yes, I expect the following will work. http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service Sounds perfect Marc - but yet with this in the config define service{ use generic-service host_name host*,!host17 service_description Total Processes check_command snmp_procs!120!150 } I get this error Reading configuration data... Error: Could not find any host matching '!host17' (config file '/etc/ nagios3/conf.d/MM-snmp-checks.cfg', starting on line 43) Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios3/conf.d/MM-snmp-checks.cfg', starting on line 43) Any more ideas? Kindest regards, Niall O Broin ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Thu Apr 9 15:22:29 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Thu, 9 Apr 2009 14:22:29 +0100 Subject: Centreon In-Reply-To: <8147CCE3C4A8764DA9980125EE70E823B3C328@nuexchg.norwich.edu> References: <8147CCE3C4A8764DA9980125EE70E823B3C328@nuexchg.norwich.edu> Message-ID: 2009/4/9 James Pratt : > > >> -----Original Message----- >> From: Christopher McAtackney [mailto:cristoir at gmail.com] >> Sent: Thursday, April 09, 2009 8:59 AM >> To: Nagios Users >> Subject: [Nagios-users] Centreon >> >> Hi all, >> >> Does anyone have any experience using Centreon? > http://www.centreon.com/ >> >> It seems like a really nice front-end to Nagios, but I'd like to hear >> of other people's experiences using it before installing and setting >> it up. >> >> Cheers, >> Chris >> > > Hi, if you search the archives, this was actually discussed fairly > recently: > > > http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg24257. > html > > > regards, > jamie > Hm, doesn't sound too promising. That's a shame, because it looks great from the description and screen shots. Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Thu Apr 9 15:26:01 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Thu, 9 Apr 2009 18:56:01 +0530 Subject: Monitor netstat connection states using nagios. In-Reply-To: <81EC30BA-0C3F-4533-BA6C-EF34C2A26E42@ena.com> References: <25251aec0904082217s783e7c45k131353e212f6c01a@mail.gmail.com> <49DDB98B.8050803@kkeane.com> <25251aec0904090234x309ce04dq3b4ad9c1043443fd@mail.gmail.com> <25251aec0904090406j7485d83era5b2c882d7266d13@mail.gmail.com> <81EC30BA-0C3F-4533-BA6C-EF34C2A26E42@ena.com> Message-ID: <25251aec0904090626l39535ba2n2fb52684f8a34a77@mail.gmail.com> Hi, I did copy the scipt to the remote host as check_netstat and used check_nrpe method to excute from nagios server. It looks when executing the command on remote server works well, [root at airlin libexec]# /usr/local/nagios/libexec/check_netstat WARNING - STATUS= TIME_WAIT port status on airlin | WARNING - STATUS=TIME_WAIT port status on airlin as there are some TIME wait connections on port 80. but from the nagios server, it always reports that the port is up and no TIME wait connections established. This is wrong. [root at lnx-nagios libexec]# /usr/local/nagios/libexec/check_nrpe -H 172.16.17.18 -c check_netstat OK - The port is up and running NO established connections on airlin It looks something is worng between with nagios server or nrpe plug ins. please help me thanks On Thu, Apr 9, 2009 at 6:01 PM, Marc Powell wrote: > > On Apr 9, 2009, at 6:06 AM, asam30 at gmail.com wrote: > > > this scripts runs locally and find the nagios servers apache port > > status not the monitored servers apache port. how would configure so > > that it should go to nagios client and get those port TIME_WAIT > > status. > > You'll need to copy the script to the remote host then use one of the > standard remote plugin execution methods (NRPE, check_by_ssh, etc) to > run it from nagios on the remote host. > > -- > Marc > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Thu Apr 9 15:28:49 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Thu, 9 Apr 2009 09:28:49 -0400 Subject: nagios upgrade Message-ID: <699b436a0904090628y342d6fa9o206d58d41aaae9ed@mail.gmail.com> Hi I was planning to upgrade nagios from 2.9 to 3.0.6. We already have the pnp tool (performance graph at the side bar). My first question , while upgrading will the pnp tool get affected or messed up by any chance? I just want to be careful enough because nagios is one of our heavely used application. As a backup plan already the complete nagios is being backed up by the cron job. My second question : Can i know which directory is the one that is dynamic meaning that keeps on changing day by day. Let me list some of them here as far as i know: 1)nagios/etc 2)nagios/var If there is any can you please list them .... -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohandas.k at tcs.com Thu Apr 9 15:30:05 2009 From: mohandas.k at tcs.com (mohandas.k at tcs.com) Date: Thu, 9 Apr 2009 19:00:05 +0530 Subject: Pppnp4nagios graph customization Message-ID: Hi All, We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool (1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. By default we are getting following graph for locolhost free swap. I want to configure following requirements : (1) can we add more variable (i.e say "Total Swap" ) in graph ? (2) Can we create different-different color in graph for different-different status critical-> RED,OK->Green,Warnijng->Yellow ? (3) last question how can we change graph updation time interval (here it's showing as 20 Minutes) however in our service definition,it's 10 Minutes Following is default graph for your better understanding : =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 12518 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Thu Apr 9 15:55:08 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Thu, 9 Apr 2009 09:55:08 -0400 Subject: serious performance issue In-Reply-To: References: <6db4a4200904072054u38fcb2e4hd13690bdf3539d01@mail.gmail.com> Message-ID: <6db4a4200904090655s1771fd29h658ff20c6c41e792@mail.gmail.com> Now my nagios is not running any check at all. I get a lot of "looks like it was orphaned" message and then nagios just sit there. Can someone help me with this. I will add some entries from nagios.debug and nagios.log along with my nagios.cfg. Thanks in advance. nagios.debug: [1239284464.560241] [016.2] [pid=15690] Found another host check event for this host @ Thu Apr 9 08:59:56 2009 [1239284464.560248] [016.2] [pid=15690] New host check event occurs after the ex isting event, so we'll ignore it. [1239284464.560253] [016.2] [pid=15690] Keeping original host check event (ignor ing the new one). [1239284464.560261] [016.1] [pid=15690] ** Async check result for host 'iab323pc 20.atg.columbia.edu' handled: new state=0 nagios.log: [1239254607] Warning: The check of host 'et251pc70.atg.columbia.edu' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... [1239254607] Warning: The check of host 'et251pc71.atg.columbia.edu' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... [1239254607] Warning: The check of host 'et251pc72.atg.columbia.edu' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... nagiostats: Nagios Stats 3.0.6 Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org) Last Modified: 12-01-2008 License: GPL CURRENT STATUS DATA ------------------------------------------------------ Status File: /var/log/nagios/status.dat Status File Age: 0d 0h 0m 4s Status File Version: 3.0.6 Program Running Time: 0d 15h 37m 5s Nagios PID: 15690 Used/High/Total Command Buffers: 0 / 1 / 4096 Total Services: 2783 Services Checked: 2783 Services Scheduled: 2782 Services Actively Checked: 2783 Services Passively Checked: 0 Total Service State Change: 0.000 / 38.820 / 0.328 % Active Service Latency: 244.062 / 37353.761 / 22185.948 sec Active Service Execution Time: 0.010 / 15.072 / 0.293 sec Active Service State Change: 0.000 / 38.820 / 0.328 % Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Passive Service Latency: 0.000 / 0.000 / 0.000 sec Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit: 2571 / 14 / 143 / 55 Services Flapping: 19 Services In Downtime: 0 Total Hosts: 3037 Hosts Checked: 3005 Hosts Scheduled: 3030 Hosts Actively Checked: 3037 Host Passively Checked: 0 Total Host State Change: 0.000 / 57.170 / 0.448 % Active Host Latency: 0.000 / 36712.008 / 19785.947 sec Active Host Execution Time: 0.000 / 30.011 / 1.589 sec Active Host State Change: 0.000 / 57.170 / 0.448 % Active Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 299 Passive Host Latency: 0.000 / 0.000 / 0.000 sec Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 2854 / 183 / 0 Hosts Flapping: 16 Hosts In Downtime: 0 Active Host Checks Last 1/5/15 min: 0 / 0 / 0 Scheduled: 0 / 0 / 0 On-demand: 0 / 0 / 0 Parallel: 0 / 0 / 0 Serial: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 Active Service Checks Last 1/5/15 min: 0 / 0 / 0 Scheduled: 0 / 0 / 0 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 External Commands Last 1/5/15 min: 0 / 0 / 0 nagios.cfg: log_file=/var/log/nagios/nagios.log cfg_file=/etc/nagios/commands.cfg cfg_file=/etc/nagios/contacts.cfg cfg_file=/etc/nagios/timeperiods.cfg cfg_file=/etc/nagios/templates.cfg cfg_dir=/etc/nagios/hosts cfg_dir=/etc/nagios/services object_cache_file=/var/log/nagios/objects.cache precached_object_file=/var/log/nagios/objects.precache resource_file=/etc/nagios/resource.cfg status_file=/var/log/nagios/status.dat status_update_interval=60 nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/var/log/nagios/rw/nagios.cmd external_command_buffer_slots=4096 lock_file=/var/log/nagios/nagios.lock temp_file=/var/log/nagios/nagios.tmp temp_path=/tmp event_broker_options=8 broker_module=/usr/lib64/nagios/ndomod.o config_file=/etc/nagios/ndomod.cfg log_rotation_method=m log_archive_path=/var/log/nagios/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_checks=1 service_inter_check_delay_method=s max_service_check_spread=30 service_interleave_factor=s host_inter_check_delay_method=s max_host_check_spread=30 max_concurrent_checks=0 check_result_reaper_frequency=10 max_check_result_reaper_time=20 check_result_path=/var/log/nagios/spool/checkresults max_check_result_file_age=3600 cached_host_check_horizon=15 cached_service_check_horizon=15 enable_predictive_host_dependency_checks=1 enable_predictive_service_dependency_checks=1 soft_state_dependencies=0 auto_reschedule_checks=0 auto_rescheduling_interval=30 auto_rescheduling_window=180 sleep_time=0.25 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=var/log/nagios/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 interval_length=60 use_aggressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 translate_passive_host_checks=0 passive_host_checks_are_soft=0 check_for_orphaned_services=1 check_for_orphaned_hosts=1 check_service_freshness=1 service_freshness_check_interval=60 check_host_freshness=0 host_freshness_check_interval=60 additional_freshness_latency=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=us enable_embedded_perl=0 use_embedded_perl_implicitly=0 illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> use_regexp_matching=0 use_true_regexp_matching=0 admin_email=sr2690 at columbia.edu daemon_dumps_core=0 use_large_installation_tweaks=1 enable_environment_macros=1 debug_level=-1 debug_verbosity=2 debug_file=/var/log/nagios/nagios.debug max_debug_file_size=1000000 On Wed, Apr 8, 2009 at 1:56 AM, fancyrabbit wrote: > i met almost the same issue. > after tweaking enable_embedded_perl=0, the load average was brought up but > latencies became lower. > > On Wed, Apr 8, 2009 at 11:54 AM, shadih rahman wrote: > >> I am seeing a ton of orphaned error message for both services and hosts. >> I am running nagios on a quad core 2.2 GHZ machine running 4 GHZ memory. I >> will paste my configuration file below. I have the machine sending ndo to a >> local database sitting on a 170 GB Hard drive. nagios is obcessing on both >> host and services and sending data to a machine with identical >> configuration. I am doing failover using NSCA. Please advise on this. >> >> >> >> >> >> nagios.cfg >> >> >> >> log_file=/var/log/nagios/nagios.log >> cfg_file=/etc/nagios/commands.cfg >> cfg_file=/etc/nagios/contacts.cfg >> cfg_file=/etc/nagios/timeperiods.cfg >> cfg_file=/etc/nagios/templates.cfg >> cfg_dir=/etc/nagios/hosts >> cfg_dir=/etc/nagios/services >> object_cache_file=/var/log/nagios/objects.cache >> precached_object_file=/var/log/nagios/objects.precache >> resource_file=/etc/nagios/resource.cfg >> status_file=/var/log/nagios/status.dat >> status_update_interval=60 >> nagios_user=nagios >> nagios_group=nagios >> check_external_commands=1 >> command_check_interval=-1 >> command_file=/var/log/nagios/rw/nagios.cmd >> external_command_buffer_slots=8192 >> lock_file=/var/log/nagios/nagios.lock >> temp_file=/var/log/nagios/nagios.tmp >> temp_path=/tmp >> event_broker_options=8 >> broker_module=/usr/lib64/nagios/ndomod.o >> config_file=/etc/nagios/ndomod.cfg >> log_rotation_method=m >> log_archive_path=/var/log/nagios/archives >> use_syslog=1 >> log_notifications=1 >> log_service_retries=1 >> log_host_retries=1 >> log_event_handlers=1 >> log_initial_states=0 >> log_external_commands=1 >> log_passive_checks=1 >> service_inter_check_delay_method=n >> max_service_check_spread=30 >> service_interleave_factor=s >> host_inter_check_delay_method=s >> max_host_check_spread=30 >> max_concurrent_checks=0 >> check_result_reaper_frequency=2 >> max_check_result_reaper_time=10 >> check_result_path=/var/log/nagios/spool/checkresults >> max_check_result_file_age=3600 >> cached_host_check_horizon=15 >> cached_service_check_horizon=15 >> enable_predictive_host_dependency_checks=1 >> enable_predictive_service_dependency_checks=1 >> soft_state_dependencies=1 >> auto_reschedule_checks=1 >> auto_rescheduling_interval=30 >> auto_rescheduling_window=180 >> sleep_time=0.25 >> service_check_timeout=30 >> host_check_timeout=20 >> >> event_handler_timeout=30 >> notification_timeout=60 >> ocsp_timeout=5 >> perfdata_timeout=5 >> retain_state_information=1 >> state_retention_file=var/log/nagios/retention.dat >> retention_update_interval=60 >> use_retained_program_state=1 >> use_retained_scheduling_info=1 >> retained_host_attribute_mask=0 >> retained_service_attribute_mask=0 >> retained_process_host_attribute_mask=0 >> retained_process_service_attribute_mask=0 >> retained_contact_host_attribute_mask=0 >> retained_contact_service_attribute_mask=0 >> interval_length=60 >> use_aggressive_host_checking=0 >> execute_service_checks=1 >> accept_passive_service_checks=1 >> execute_host_checks=1 >> accept_passive_host_checks=1 >> enable_notifications=1 >> enable_event_handlers=1 >> process_performance_data=0 >> obsess_over_services=1 >> ocsp_command=send_service_check >> ochp_command=send_host_check >> obsess_over_hosts=1 >> translate_passive_host_checks=0 >> passive_host_checks_are_soft=0 >> check_for_orphaned_services=1 >> check_for_orphaned_hosts=1 >> check_service_freshness=1 >> service_freshness_check_interval=60 >> check_host_freshness=0 >> host_freshness_check_interval=60 >> additional_freshness_latency=15 >> enable_flap_detection=1 >> low_service_flap_threshold=5.0 >> high_service_flap_threshold=20.0 >> low_host_flap_threshold=5.0 >> high_host_flap_threshold=20.0 >> date_format=us >> enable_embedded_perl=1 >> use_embedded_perl_implicitly=1 >> illegal_object_name_chars=`~!$%^&*|'"<>?,()= >> illegal_macro_output_chars=`~$&|'"<> >> use_regexp_matching=0 >> use_true_regexp_matching=0 >> admin_email=sr2690 at columbia.edu >> daemon_dumps_core=0 >> use_large_installation_tweaks=1 >> enable_environment_macros=1 >> debug_level=-1debug_verbosity=2 >> debug_file=/var/log/nagios/nagios.debug >> max_debug_file_size=1000000 >> >> >> >> >> my nagiostats output >> >> >> >> >> >> >> >> [sr2690>nagiostats >> >> Nagios Stats 3.0.6 >> Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org) >> Last Modified: 12-01-2008 >> License: GPL >> >> CURRENT STATUS DATA >> ------------------------------------------------------ >> Status File: /var/log/nagios/status.dat >> Status File Age: 0d 0h 0m 19s >> Status File Version: 3.0.6 >> >> Program Running Time: 0d 2h 5m 28s >> Nagios PID: 12139 >> Used/High/Total Command Buffers: 0 / 0 / 8192 >> >> Total Services: 2783 >> Services Checked: 2783 >> Services Scheduled: 2782 >> Services Actively Checked: 2783 >> Services Passively Checked: 0 >> Total Service State Change: 0.000 / 52.830 / 0.263 % >> Active Service Latency: 1.304 / 12092.843 / 1469.130 sec >> Active Service Execution Time: 0.011 / 15.103 / 0.468 sec >> Active Service State Change: 0.000 / 52.830 / 0.263 % >> Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 129 >> Passive Service Latency: 0.000 / 0.000 / 0.000 sec >> Passive Service State Change: 0.000 / 0.000 / 0.000 % >> Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 >> Services Ok/Warn/Unk/Crit: 2560 / 13 / 186 / 24 >> Services Flapping: 17 >> Services In Downtime: 0 >> >> Total Hosts: 3037 >> Hosts Checked: 3005 >> Hosts Scheduled: 3029 >> Hosts Actively Checked: 3037 >> Host Passively Checked: 0 >> Total Host State Change: 0.000 / 53.620 / 0.227 % >> Active Host Latency: 0.000 / 12080.792 / 3770.409 sec >> Active Host Execution Time: 0.000 / 104.093 / 2.500 sec >> Active Host State Change: 0.000 / 53.620 / 0.227 % >> Active Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 256 >> Passive Host Latency: 0.000 / 0.000 / 0.000 sec >> Passive Host State Change: 0.000 / 0.000 / 0.000 % >> Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 >> Hosts Up/Down/Unreach: 2849 / 188 / 0 >> Hosts Flapping: 10 >> Hosts In Downtime: 0 >> >> Active Host Checks Last 1/5/15 min: 0 / 0 / 1 >> Scheduled: 0 / 0 / 0 >> On-demand: 0 / 0 / 1 >> Parallel: 0 / 0 / 0 >> Serial: 0 / 0 / 0 >> Cached: 0 / 0 / 1 >> Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 >> Active Service Checks Last 1/5/15 min: 0 / 0 / 0 >> Scheduled: 0 / 0 / 0 >> On-demand: 0 / 0 / 0 >> Cached: 0 / 0 / 0 >> Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 >> >> External Commands Last 1/5/15 min: 0 / 0 / 0 >> >> >> >> >> >> >> -- >> Cordially, >> Shadhin Rahman >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel at danielemmanuelfeinsmith.com Thu Apr 9 15:58:25 2009 From: daniel at danielemmanuelfeinsmith.com (Daniel Emmanuel Feinsmith) Date: Thu, 9 Apr 2009 06:58:25 -0700 (PDT) Subject: Nagios and Cacti Message-ID: <198805.72006.qm@web305.biz.mail.mud.yahoo.com> That's impressive and good to hear about the high snmp performance you've achieved with nagios. ===================== Daniel Feinsmith ===================== {sent from iPhone} On Apr 9, 2009, at 4:48 AM, Christopher McAtackney wrote: With parallel checks in Nagios 3 and some configuration tuning and well-written SNMP checks, I'd argue that Nagios is as good if not a better poller than cactid :). our instance is not huge, but currently we do 7000+ SNMP-based checks in 3 minutes on a dual quad-core Linux-based server. Before PNP I used to use Cacti and Nagios. I like Cacti, but with PNP around I would never go back to that combination again .. Nagios + PNP really does simplify life for Nagios administrators and provides a lot of flexibility as far as how you scale your graphing as your node base grows. - Max Hi Max, Do you all of your SNMP management manually? I'm still learning a lot about SNMP, and was under the impression that Cacti took a lot of the pain out of SNMP management, but I'd be interested in hearing how you administer it in your system just using Nagios + PNP4Nagios if you don't mind? Cheers, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 9 16:09:48 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 9 Apr 2009 15:09:48 +0100 Subject: nagiosgraph for paging file In-Reply-To: <765d77c80904090556r16d02e9dv62e237b3b1b8d2b1@mail.gmail.com> References: <200904091048.57200.assaf.flatto@ssp-intl.com> Message-ID: <200904091509.48804.assaf.flatto@ssp-intl.com> Jim Thanks for the advise , i will try it . My confusion is that i am able to get graphs from the check_nt for other checks : # Service type: ntdisk # check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90 # output: L: - total: 200.00 Gb - used: 188.43 Gb (94%) - free 11.56 Gb (6%) # perfdata: L:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87 /perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ and push @s, [ ntdisk, [ diskused, GAUGE, $1*1024**3 ], [ diskwarn, GAUGE, $2*1024**3 ], [ diskcrit, GAUGE, $3*1024**3 ], [ diskmaxi, GAUGE, $5*1024**3 ] ]; works and i have the graphs and also : # Service type: ntmem # check command: check_nt -H Address -v MEMUSE -w 50 -c 90 # output: Memory usage: total:2467.75 Mb - used: 510.38 Mb (21%) - free: 1957.37 Mb (79%) # perfdata: Memory usage=510.38Mb;1233.88;2220.98;0.00;2467.75 /perfdata:.*usage=([.0-9]+)Mb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ and push @s, [ ntmem, [ memused, GAUGE, $1*1024**2 ], [ memwarn, GAUGE, $2*1024**2 ], [ memcrit, GAUGE, $3*1024**2 ], [ memmmax, GAUGE, $5*1024**2 ] ]; works. I tried to use the same mechanism and a similar regex , but still it fails . Assaf On Thursday 09 April 2009 13:56:13 Jim Avery wrote: > 2009/4/9 Assaf Flatto : > > Hello > > > > I've been using nagiosgraph for a while , and i am slowly adding new > > graphs to the nagios , now i am trying to add a graph for our windows > > based machines , to show the Page file use , > > > > this is what i have now now in my map file : > > # Service type: ntcount > > # ? check command: check_nt -H $HOSTADDRESS$ -t 20 -p 1248 -v COUNTER -l > > $ARG1$ -w $ARG2$ -c $ARG3$ # ? output: Paging file usage is 53.07 % > > # ? perfdata:Paging file usage is %.2f %%=1.899340%;35.000000;90.000000; > > #/prefdata:Paging file usage is.*=([.0-9]+)%;([.0-9]+);([.0-9]+)/ > > /output:Paging file usage is (\d+)%/ > > ?and push @s, [ pagecounter, > > ? ? ? ?[ pageused , GAUGE, $1 ], > > # ? ? ? [ pagewarn , GAUGE, $2 ], > > # ? ? ? [ pagecrit , GAUGE, $3 ], > > ? ? ? ?]; > > > > As you can see i tried the prefdata , and output options but with no > > success . > > > > >From the nagiosgrapg.log : > > > > ?Thu Apr ?9 10:51:38 2009 insert.pl debug - processdata data = [ > > ?'1239270667', > > ?'Host', > > ?'Page file use', > > ?'Paging file usage is 1.90 %', > > ?'Paging file usage is %.2f %%=1.897430%;35.000000;90.000000; > > ' > > ]; > > Thu Apr ?9 10:51:38 2009 insert.pl warn - perfdata not recognized: > > date||host||desc||out||data for: > > servicedescr:Page file use > > output:Paging file usage is 1.90 % > > perfdata:Paging file usage is %.2f %%=1.897430%;35.000000;90.000000; > > > > > > Can anyone help me understand where my mistake is ? > > > > Thank You > > The normal version of check_nt doesn't do performance data very well. > You might be better off querying the NSClient++ agent using check_nrpe > rather than check_nt. > > Alternatively I guess you could try the enhanced version of check_nt > which comes with nc_net. See > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1663.html;d=1 > > hth, > > Jim -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prandal at herefordshire.gov.uk Thu Apr 9 15:49:02 2009 From: prandal at herefordshire.gov.uk (Randal, Phil) Date: Thu, 9 Apr 2009 14:49:02 +0100 Subject: nagios upgrade In-Reply-To: <699b436a0904090628y342d6fa9o206d58d41aaae9ed@mail.gmail.com> References: <699b436a0904090628y342d6fa9o206d58d41aaae9ed@mail.gmail.com> Message-ID: <7EF0EE5CB3B263488C8C18823239BEBA06626F3F@HC-MBX02.herefordshire.gov.uk> Is there any way you can clone your nagios box to a VM and test on the cloned box? I've just done that here testing for a planned 2.12 to 3.0.6 upgrade. You'll need to edit your nagios.cfg file to remove one obsolete option, and there are a few new options to merge in from the example nagios.cfg. I tested the worst-possible migration case - from self-compiled 2.12 to RPMForge-packaged 3.0.6 RPM. It was fun dealing with all the default directory changes, but not impossible. If you're compiling from source for both versions it should be a fairly painless migration. The side.html file is, as far as I remember, the same in both versions, so I think you can keep your old one and copy over the newly installed 3.0.6 version. My word, of course, is not gospel (and rarely is), so I'd advise you to test, test, and test again if you can. The directories which change depend on your config - a look at the paths specified in your nagios.cfg etc will point yopu in the right direction. (your logs might be in /var/log/nagios/, for example). Cheers, Phil -- Phil Randal | Networks Engineer Herefordshire Council | Deputy Chief Executive's Office | I.C.T. Services Division Thorn Office Centre, Rotherwas, Hereford, HR2 6JT Tel: 01432 260160 email: prandal at herefordshire.gov.uk Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Herefordshire Council. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it. ________________________________ From: Anirudh Srinivasan [mailto:srianirudh at gmail.com] Sent: 09 April 2009 14:29 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios upgrade Hi I was planning to upgrade nagios from 2.9 to 3.0.6. We already have the pnp tool (performance graph at the side bar). My first question , while upgrading will the pnp tool get affected or messed up by any chance? I just want to be careful enough because nagios is one of our heavely used application. As a backup plan already the complete nagios is being backed up by the cron job. My second question : Can i know which directory is the one that is dynamic meaning that keeps on changing day by day. Let me list some of them here as far as i know: 1)nagios/etc 2)nagios/var If there is any can you please list them .... -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Thu Apr 9 15:05:12 2009 From: jpratt at norwich.edu (James Pratt) Date: Thu, 9 Apr 2009 09:05:12 -0400 Subject: Centreon In-Reply-To: References: Message-ID: <8147CCE3C4A8764DA9980125EE70E823B3C328@nuexchg.norwich.edu> > -----Original Message----- > From: Christopher McAtackney [mailto:cristoir at gmail.com] > Sent: Thursday, April 09, 2009 8:59 AM > To: Nagios Users > Subject: [Nagios-users] Centreon > > Hi all, > > Does anyone have any experience using Centreon? http://www.centreon.com/ > > It seems like a really nice front-end to Nagios, but I'd like to hear > of other people's experiences using it before installing and setting > it up. > > Cheers, > Chris > Hi, if you search the archives, this was actually discussed fairly recently: http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg24257. html regards, jamie ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From erik.froese at gmail.com Thu Apr 9 16:43:08 2009 From: erik.froese at gmail.com (Erik Froese) Date: Thu, 9 Apr 2009 10:43:08 -0400 Subject: Nagios for IRIX In-Reply-To: References: Message-ID: I think you may be in the wrong directory. Is your home directory bu42? Type pwd to see what directory you are in. If its not nagios-plugins-SOME-NUMBER then cd nagios-plugins-SOME-NUMBER Erik On Thu, Apr 9, 2009 at 8:22 AM, Marc Powell wrote: > > On Apr 9, 2009, at 3:05 AM, < > amol.bute at tatatechnologies.com > > wrote: > > > Hi, > > > > I downloaded the plug-ins from the same site. > > > > as per README try to run > > ./configure > > make all > > > > but following errors shown. > > # ./configure > > sh: ./configure: not found > > > > > > # make all > > don't know how to make all (bu42). > > # > > I'm pretty sure you need to use autoconf, M4, GNU make and friends... > > -- > Marc > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 9 16:51:51 2009 From: marc at ena.com (Marc Powell) Date: Thu, 9 Apr 2009 09:51:51 -0500 Subject: Monitor netstat connection states using nagios. In-Reply-To: <25251aec0904090626l39535ba2n2fb52684f8a34a77@mail.gmail.com> References: <25251aec0904082217s783e7c45k131353e212f6c01a@mail.gmail.com> <49DDB98B.8050803@kkeane.com> <25251aec0904090234x309ce04dq3b4ad9c1043443fd@mail.gmail.com> <25251aec0904090406j7485d83era5b2c882d7266d13@mail.gmail.com> <81EC30BA-0C3F-4533-BA6C-EF34C2A26E42@ena.com> <25251aec0904090626l39535ba2n2fb52684f8a34a77@mail.gmail.com> Message-ID: <77300A69-2466-4AA9-B3C1-FDAC313545EE@ena.com> On Apr 9, 2009, at 8:26 AM, asam30 at gmail.com wrote: > Hi, > > I did copy the scipt to the remote host as check_netstat and used > check_nrpe method to excute from nagios server. It looks when > executing the command on remote server works well, > > [root at airlin libexec]# /usr/local/nagios/libexec/check_netstat > WARNING - STATUS= TIME_WAIT port status on airlin | WARNING - > STATUS=TIME_WAIT port status on airlin You're testing as root here. Test as the user nrpe runs as. It could very well be a difference in privileges... -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sri.lumpa at free.fr Thu Apr 9 17:03:29 2009 From: sri.lumpa at free.fr (MAD) Date: Thu, 9 Apr 2009 17:03:29 +0200 (CEST) Subject: Pppnp4nagios graph customization In-Reply-To: <586023538.1213291239289390729.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <586023538.1213291239289390729.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: <1853954049.1213381239289409843.JavaMail.root@zimbra16-e3.priv.proxad.net> I managed to create some templates graphing in different colors according to the threshold defined with your services This will graph in green if the value is under the warning threshold, in yellow if it is between warning and critical threshold and red if it is beyond critical threshold or unknown... I don't know how to do this if the performance and the state are independent (for example if perf are the execution time of the check script...) Marc-Andr? ----- Mail Original ----- De: "mohandas k" ?: nagios-users at lists.sourceforge.net Envoy?: Jeudi 9 Avril 2009 15h30:05 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [Nagios-users] Pppnp4nagios graph customization Hi All, We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool (1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. By default we are getting following graph for locolhost free swap. I want to configure following requirements : (1) can we add more variable (i.e say "Total Swap" ) in graph ? (2) Can we create different-different color in graph for different-different status critical-> RED,OK->Green,Warnijng->Yellow ? (3) last question how can we change graph updation time interval (here it's showing as 20 Minutes) however in our service definition,it's 10 Minutes Following is default graph for your better understanding : =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: check_pnp_rrd.php Type: application/octet-stream Size: 3317 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pnp_test.png Type: image/png Size: 12138 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From genetj at yahoo.com Thu Apr 9 17:15:20 2009 From: genetj at yahoo.com (Genet Tesfaye) Date: Thu, 9 Apr 2009 08:15:20 -0700 (PDT) Subject: status map Message-ID: <804329.8333.qm@web56807.mail.re3.yahoo.com> Hi All, ? i have installed and configured nagios 3.0.6 on SUSE linux.i plan to monitor Servers, Printers and Switches for which i have added samples. i need help on how to configure: 1. if i have more than two partitions on windows machine. i have managed to monitor c and D partitions but could't for the additional partition 2. i have a problem with the status map. clicking on it brings an error "Object Not found" ? Thank you very much GT from Ethiopia -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giorgio at zarrelli.org Thu Apr 9 17:22:14 2009 From: giorgio at zarrelli.org (Giorgio Zarrelli) Date: Thu, 09 Apr 2009 17:22:14 +0200 Subject: Monitor netstat connection states using nagios. In-Reply-To: <77300A69-2466-4AA9-B3C1-FDAC313545EE@ena.com> References: <77300A69-2466-4AA9-B3C1-FDAC313545EE@ena.com> Message-ID: <20090409.wA5.35170600@www.zarrelli.org> Hi As I told before, that netstat command won't work "out of the box", with an unprivileged user. Giorgio Marc Powell (marc at ena.com) scritto: > > > On Apr 9, 2009, at 8:26 AM, asam30 at gmail.com wrote: > > > Hi, > > > > I did copy the scipt to the remote host as check_netstat and used > > check_nrpe method to excute from nagios server. It looks when > > executing the command on remote server works well, > > > > [root at airlin libexec]# /usr/local/nagios/libexec/check_netstat > > WARNING - STATUS= TIME_WAIT port status on airlin | WARNING - > > STATUS=TIME_WAIT port status on airlin > > You're testing as root here. Test as the user nrpe runs as. It could > very well be a difference in privileges... > > -- > Marc > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 9 17:29:23 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 9 Apr 2009 16:29:23 +0100 Subject: Pppnp4nagios graph customization In-Reply-To: References: Message-ID: <765d77c80904090829g61574611tbfc3172a64556776@mail.gmail.com> 2009/4/9 : > > Hi All, > > We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool > (1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. > > By default we are getting following graph for locolhost free swap. I want to > configure ?following requirements : > > (1) can we add more variable (i.e say "Total Swap" ) in graph ? > > (2) Can we create different-different color in graph for different-different > status critical-> RED,OK->Green,Warnijng->Yellow ? ? ? > > (3) last question how can we change graph updation time interval (here it's > showing as 20 Minutes) however in our service definition,it's 10 Minutes > > Following is default graph for your better understanding : I believe there's a typo in the default.php template which means default graphs don't show the maximum value. Copy the file "default.php" from /usr/local/nagios/share/pnp/templates.dist/ to the ../templates folder, giving it the name "check_local_swap.php". Then edit this file to correct the problem. The erroneous section is: if ($WARN[$i] != "") { $warning = $WARN[$i]; } if ($CRIT[$i] != "") { $critical = $CRIT[$i]; } if ($MIN[$i] != "") { $lower = " --lower=" . $MIN[$i]; $minimum = $MIN[$i]; } if ($CRIT[$i] != "") { <<----THIS LINE IS WRONG!! $upper = " --upper=" . $MAX[$i]; $maximum = $MAX[$i]; } if ($UNIT[$i] == "%%") { $vlabel = "%"; } In the line I've pointed out here, it should read $MAX not $CRIT. Whether that fixes your problem will depend also on whether your plugin returns the performance data in the correct format. You can also edit the template to change colours and so on. As for the time interval, I'm not too sure. If you want to tinker with the template, you'll need to read up on how it all works, for example at http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html and edit the template accordingly. For in-depth discussion of PNP, I recommend you subscribe to their email list https://lists.sourceforge.net/lists/listinfo/pnp4nagios-users hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Thu Apr 9 17:31:54 2009 From: perldork at webwizarddesign.com (Max) Date: Thu, 9 Apr 2009 11:31:54 -0400 Subject: Nagios and Cacti In-Reply-To: <198805.72006.qm@web305.biz.mail.mud.yahoo.com> References: <198805.72006.qm@web305.biz.mail.mud.yahoo.com> Message-ID: Hi Chris, Daniel, I write about a number of the configuration decisions we made in order to achieve our current level of performance on my blog: http://www.semintelligent.com/blog/?q=Nagios Please note that a number of configuration steps we have done go against what the Nagios documentation recommends, so if you wish to do anything similar to what we have done, make sure you understand the Nagios documentation and understand the risks of violating the recommendations in it. We have done a lot of custom development to help make implementing SNMP-based checks across a large number of hosts easier for us: 1) We develop agent-specific checks (we currently use Net-SNMP and SysEdge, starting to do Cisco monitoring) using perl that run clean under ePN. These groups of checks are associated with host groups specific to each agent type (e.g. net-snmp-host). 2) We create a custom base template for each agent type. The template has custom attributess that associate SNMP version, community string etc with the host template. We also use custom attributes in each agent-specific check (e.g. CPU), so that all thresholds are defined at the host level and we can provide default thresholds. For example define host { name net_snmp_host hostgroups +net_snmp_hosts __snmp_version 2c __snmp_community myreadonlycommunity __snmp_port 161 __snmp_version 2c __snmp_storage_partitions all __snmp_storage_warn 90 __snmp_storage_crit 95 __snmp_la_warn 15:10:5 __snmp_la_crit 30:20:10 __snmp_mem_warn free,lt,8 __snmp_mem_crit free,lt,5 __snmp_swap_warn 50 __snmp_swap_crit 65 __snmp_cpu_warn wait,gt,20 __snmp_cpu_crit wait,gt,30 ... register 0 } for custom communities we create separate templates, e.g. define host { name southwest-region-host hostgroups +southwest-hosts __snmp_community southWestRegionCommunity } so now our end users can easily tell Nagios to poll their hosts with SNMP and they can override our thresholds if they want at the host level without having to know a thing about programming: define host { use generic-host, net_snmp_host, southwest-region-host # Override CPU default thresholds __snmp_cpu_warn wait,gt,40 ... } 3) We have developed, and hope to release sometime this year, a perl-based, ePN friendly SNMP check script that handles counters and gauges well, it lets you check multple SNMP OIDs at once. This has been extremely useful for custom SNMP application agents .. a service definition ends up looking like this: define service { use check_snmp_oids-base service_description Custom App - 5 minute SNMP checks __snmp_oids_spec -O 'TimeMin:g:1.3.6.1.4.1.1900.5.5.2.2.1.0' \ -O 'labelFor1sttOid:g:1.3.6.1.4.1.9999.1.3.0' \ -O 'labelFor2ndOid:g:1.3.6.1.4.1.9999.1.4.0' \ -O 'labelFor3rdtOid:g:1.3.6.1.4.1.9999.1.5.0'\ __snmp_oids_crit_spec labelFor1stoid,lt,0 hostgroup_name custom-agent-group servicegroups custom-service-group } In some cases we check 15-20 OIDs at once using this methodology. Our script uses memcached to cache counter data to get delta output properly and we have code that adjusts data properly for over samples, under samples, and large deltas. Many of our checks are based off of the code I wrote that can be downloaded here: http://www.nagios3book.com/nagios-3-enm/checks/ Though we have significantly enhanced things. So, a lot of development time up front but the end result is we get terrific performance and a lot of flexibility. We are using Nagios to replace $$$ COTS products, so our company is happy to have us spend time doing custom development. I realize many of you do not have that luxury so I understand that this won't be ideal for many of you. sorry. Development time with two people to get to where we are now - about 3-4 months. We have permission to release a lot of the code we have done, just need time to package it properly for a public release .. so hopefully we can share some of our tools and help others do something similar without the 3-4 months development time :p. hope this helps more than it confuses. - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ctemple at merethis.com Thu Apr 9 15:47:57 2009 From: ctemple at merethis.com (Cedric Temple) Date: Thu, 9 Apr 2009 15:47:57 +0200 Subject: Centreon In-Reply-To: References: Message-ID: <960a54cc0904090647v267d71f0ib7d3d97eb33664d5@mail.gmail.com> 2009/4/9 Christopher McAtackney > Hi all, Hi, > Does anyone have any experience using Centreon? http://www.centreon.com/ > > It seems like a really nice front-end to Nagios, but I'd like to hear > of other people's experiences using it before installing and setting > it up. I use it since the first version. It was named "oreon" before. I think you should give it a try, it's a really good project. Maybe it is difficult to install the first time but you have some documentation to help you: http://en.doc.centreon.com/Setup Then you have to understand that Centreon overwrites all nagios cfg files. Some people disagree this kind of feature because they want to modify the nagios cfg files by hand... but if it is not a problem for you, go! Give it a try, if you have questions, the forum may help you: http://forum.centreon.com/ Hope it helps. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 9 17:38:03 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 9 Apr 2009 16:38:03 +0100 Subject: nagiosgraph for paging file In-Reply-To: <200904091509.48804.assaf.flatto@ssp-intl.com> References: <200904091048.57200.assaf.flatto@ssp-intl.com> <765d77c80904090556r16d02e9dv62e237b3b1b8d2b1@mail.gmail.com> <200904091509.48804.assaf.flatto@ssp-intl.com> Message-ID: <765d77c80904090838t4a2e1301i7794113f8e488918@mail.gmail.com> 2009/4/9 Assaf Flatto : > > Jim > > Thanks for the advise , i will try it . > > My confusion is that i am able to get graphs from the check_nt for other checks : > # Service type: ntdisk > # ? check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90 > # ? output: L: - total: 200.00 Gb - used: 188.43 Gb (94%) - free 11.56 Gb (6%) > # ? perfdata: L:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87 > /perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ > ?and push @s, [ ntdisk, > ? ? ? ?[ diskused, GAUGE, $1*1024**3 ], > ? ? ? ?[ diskwarn, GAUGE, $2*1024**3 ], > ? ? ? ?[ diskcrit, GAUGE, $3*1024**3 ], > ? ? ? ?[ diskmaxi, GAUGE, $5*1024**3 ] ]; > works and i have the graphs ?and also : > > # Service type: ntmem > ?# ? check command: check_nt -H Address -v MEMUSE -w 50 -c 90 > ?# ? output: Memory usage: total:2467.75 Mb - used: 510.38 Mb (21%) - free: 1957.37 Mb (79%) > ?# ? perfdata: Memory usage=510.38Mb;1233.88;2220.98;0.00;2467.75 > ?/perfdata:.*usage=([.0-9]+)Mb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ > ?and push @s, [ ntmem, > ? ? ? ?[ memused, GAUGE, $1*1024**2 ], > ? ? ? ?[ memwarn, GAUGE, $2*1024**2 ], > ? ? ? ?[ memcrit, GAUGE, $3*1024**2 ], > ? ? ? ?[ memmmax, GAUGE, $5*1024**2 ] ]; > > works. > > I tried to use the same mechanism and a similar regex , but still it fails . Yes, some of the -v options work okay and others (in particular -v COUNTER) don't work well or at all with the default check_nt plugin. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.novak at eds.com Thu Apr 9 17:54:05 2009 From: mark.novak at eds.com (Novak, Mark) Date: Thu, 9 Apr 2009 10:54:05 -0500 Subject: Centreon In-Reply-To: <960a54cc0904090647v267d71f0ib7d3d97eb33664d5@mail.gmail.com> References: <960a54cc0904090647v267d71f0ib7d3d97eb33664d5@mail.gmail.com> Message-ID: <906530D5DDCFB34DBF9A6697071FDB3404748469@usplm215.amer.corp.eds.com> Does anyone have any experience using Centreon? http://www.centreon.com/ It seems like a really nice front-end to Nagios, but I'd like to hear of other people's experiences using it before installing and setting it up. Hi Christopher, I am using the latest version of Centreon now with Nagios 3 on Ubuntu. There were a couple of "gotchas" but overall it works beautifully. See this link for their Wiki that has step by step installation instructions. I am going to be adding some Ubuntu specific tweaks that I ran into on their Wiki in the next few days. But, this is how I got mine set up. Feel free to email me directly if you have any questions! Thanks, Mark Novak EDS, an HP Company SAP Practice Global Centers/Automotive Industry Delivery Leader Cell: 214-725-5295 Email: mark.novak at hp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Apr 9 18:14:19 2009 From: patrick.morris at hp.com (Morris, Patrick) Date: Thu, 9 Apr 2009 16:14:19 +0000 Subject: nagiosgraph for paging file In-Reply-To: <200904091048.57200.assaf.flatto@ssp-intl.com> References: <200904091048.57200.assaf.flatto@ssp-intl.com> Message-ID: > -----Original Message----- > From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] > Sent: Thursday, April 09, 2009 2:49 AM > To: Nagios User list > Subject: [Nagios-users] nagiosgraph for paging file > > Hello > > I've been using nagiosgraph for a while , and i am slowly adding new > graphs to the nagios , now i am > trying to add a graph for our windows based machines , to show the Page > file use , > > this is what i have now now in my map file : > # Service type: ntcount > # check command: check_nt -H $HOSTADDRESS$ -t 20 -p 1248 -v COUNTER - > l $ARG1$ -w $ARG2$ -c $ARG3$ > # output: Paging file usage is 53.07 % > # perfdata:Paging file usage is %.2f > %%=1.899340%;35.000000;90.000000; > #/prefdata:Paging file usage is.*=([.0-9]+)%;([.0-9]+);([.0-9]+)/ > /output:Paging file usage is (\d+)%/ > and push @s, [ pagecounter, > [ pageused , GAUGE, $1 ], > # [ pagewarn , GAUGE, $2 ], > # [ pagecrit , GAUGE, $3 ], > ]; > > As you can see i tried the prefdata , and output options but with no > success . > > > >From the nagiosgrapg.log : > > Thu Apr 9 10:51:38 2009 insert.pl debug - processdata data = [ > '1239270667', > 'Host', > 'Page file use', > 'Paging file usage is 1.90 %', > 'Paging file usage is %.2f %%=1.897430%;35.000000;90.000000; > ' > ]; > Thu Apr 9 10:51:38 2009 insert.pl warn - perfdata not recognized: > date||host||desc||out||data for: > servicedescr:Page file use > output:Paging file usage is 1.90 % > perfdata:Paging file usage is %.2f %%=1.897430%;35.000000;90.000000; [> ] "/output:Paging file usage is (\d+)%/" will not match against "Paging file usage is 1.90 %" because a space is not a number. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pitchfork at ederdrom.de Thu Apr 9 18:18:21 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Thu, 09 Apr 2009 18:18:21 +0200 Subject: Pppnp4nagios graph customization In-Reply-To: <765d77c80904090829g61574611tbfc3172a64556776@mail.gmail.com> References: <765d77c80904090829g61574611tbfc3172a64556776@mail.gmail.com> Message-ID: <49DE1FCD.8000507@ederdrom.de> Jim Avery schrieb: > 2009/4/9 : >> Hi All, >> >> We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool >> (1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. >> >> By default we are getting following graph for locolhost free swap. I want to >> configure following requirements : >> >> (1) can we add more variable (i.e say "Total Swap" ) in graph ? >> >> (2) Can we create different-different color in graph for different-different >> status critical-> RED,OK->Green,Warnijng->Yellow ? >> >> (3) last question how can we change graph updation time interval (here it's >> showing as 20 Minutes) however in our service definition,it's 10 Minutes >> >> Following is default graph for your better understanding : > > > I believe there's a typo in the default.php template which means > default graphs don't show the maximum value. Copy the file > "default.php" from /usr/local/nagios/share/pnp/templates.dist/ to the > ../templates folder, giving it the name "check_local_swap.php". Then > edit this file to correct the problem. > > The erroneous section is: > > if ($WARN[$i] != "") { > $warning = $WARN[$i]; > } > if ($CRIT[$i] != "") { > $critical = $CRIT[$i]; > } > if ($MIN[$i] != "") { > $lower = " --lower=" . $MIN[$i]; > $minimum = $MIN[$i]; > } > if ($CRIT[$i] != "") { <<----THIS LINE IS WRONG!! > $upper = " --upper=" . $MAX[$i]; > $maximum = $MAX[$i]; > } > if ($UNIT[$i] == "%%") { > $vlabel = "%"; > } > < ---cut --> This issue is fixed since SVN Revision 555 and also in 0.4.13 http://pnp4nagios.svn.sourceforge.net/viewvc/pnp4nagios/trunk/share/pnp/templates.dist/default.php?view=annotate Cheers Joerg ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 9 18:35:22 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 9 Apr 2009 17:35:22 +0100 Subject: Pppnp4nagios graph customization In-Reply-To: <49DE1FCD.8000507@ederdrom.de> References: <765d77c80904090829g61574611tbfc3172a64556776@mail.gmail.com> <49DE1FCD.8000507@ederdrom.de> Message-ID: <765d77c80904090935t7bbdbb24l41d563ab20672744@mail.gmail.com> 2009/4/9 Joerg Linge : > This issue is fixed since SVN Revision 555 and also in 0.4.13 > > http://pnp4nagios.svn.sourceforge.net/viewvc/pnp4nagios/trunk/share/pnp/templates.dist/default.php?view=annotate > > Cheers Joerg Many thanks Joerg, and thank you for reminding me - I must upgrade! There's lots of (more) neat new stuff in 0.4.13. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmccoy at cedarville.edu Thu Apr 9 18:21:23 2009 From: mmccoy at cedarville.edu (Michael McCoy) Date: Thu, 09 Apr 2009 12:21:23 -0400 Subject: NRPE_NT Checks on Mapped Network Drive Message-ID: <49DDE843020000150023183B@poplar.cedarville.edu> For off let me say this is my first mailing list, so I'm new at this, so please excuse any mailing list etiquette that I violate :-) I am attempting to monitor the file count of a directory on a remote Windows XP machine. I have installed NRPE_NT on the remote box and check_nrpe on my Nagios machine. The two are talking to one another fine. The problem is that the directory that I need to monitor is on a mapped network drives. Here is the command I am running... command[directory_file_count]=c:\WINDOWS\system32\cscript.exe //NoLogo //T:30 c:\temp\nagioschecks\file_count.wsf g: \folder1\folder2\ 0 10 Basically if run this command from the DOS command line on the XP machine it works fine. Once I try to run the command from check_nrpe on the Nagios host it gives me the following error... c:\temp\nagioschecks\file_count.wsf(123, 2) Microsoft VBScript runtime error: Path not found I have switched out the G:\folder1\folder2 for c:\temp in the command and Nagios checks it fine, so the problem is with the network drive. I have looked into the NRPE_NT service itself and changed the log on account for it to one that should be able to see the drives and still nothing. Any assistance would be helpful, thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Thu Apr 9 19:10:16 2009 From: jpratt at norwich.edu (James Pratt) Date: Thu, 9 Apr 2009 13:10:16 -0400 Subject: NRPE_NT Checks on Mapped Network Drive In-Reply-To: <49DDE843020000150023183B@poplar.cedarville.edu> References: <49DDE843020000150023183B@poplar.cedarville.edu> Message-ID: <8147CCE3C4A8764DA9980125EE70E823B3C504@nuexchg.norwich.edu> > -----Original Message----- > From: Michael McCoy [mailto:mmccoy at cedarville.edu] > Sent: Thursday, April 09, 2009 12:21 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NRPE_NT Checks on Mapped Network Drive > > For off let me say this is my first mailing list, so I'm new at this, so > please excuse any mailing list etiquette that I violate :-) > > I am attempting to monitor the file count of a directory on a remote > Windows XP machine. I have installed NRPE_NT on the remote box and > check_nrpe on my Nagios machine. The two are talking to one another fine. > The problem is that the directory that I need to monitor is on a mapped > network drives. Here is the command I am running... > > command[directory_file_count]=c:\WINDOWS\system32\cscript.exe //NoLogo > //T:30 c:\temp\nagioschecks\file_count.wsf g: \folder1\folder2\ 0 10 > > Basically if run this command from the DOS command line on the XP machine > it works fine. Once I try to run the command from check_nrpe on the > Nagios host it gives me the following error... > > c:\temp\nagioschecks\file_count.wsf(123, 2) Microsoft VBScript runtime > error: Path not found > Hello Michael - Just a quick stab in the dark here, but in your command def above, you have a space character after your g: - is that correct, or could it be causing your issue? Also, are your drives mapped as persistent, as I'm not positive the user running the script would see them either way if not "logged on interactively". Can you use UNC pathing instead? Ie \\machine\share$ ? That should work if the user has rights, and you won't have to deal with the mapped drive issue(s) . HTH, Regards, jamie ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ejtrochim at alaska.edu Thu Apr 9 18:58:48 2009 From: ejtrochim at alaska.edu (Edward Trochim) Date: Thu, 9 Apr 2009 08:58:48 -0800 Subject: Excluding a hostgroup from a service check Message-ID: <0AAD1497-3734-42E9-A608-B06B0A9B63A6@alaska.edu> I have a service template that specifies several host groups and one host to check. One of the services that inherits this template should not be executed by one of the host groups defined. I read the object tricks documentation page and found that I could include a ! before the name in a hostgroup_name definition in the service definition to exclude that hostgroup from that service. However, when I do that nagios excludes all hostgroups from the list from running that service. That explanation of the problem might be a little thick so here is an abbreviated example. I have a service template like this: define service{ name standard-check use generic-service hostgroup_name hostgroup1, hostgroup2, hostgroup3,\ hostgroup4, hostgroup5, hostgroup6,\ hostgroup7 host_name host1 servicegroups standard_checks register 0 } And a service definition like this. I want to exclude hostgroup5 from this one service definition: define service{ use standard-check hostgroup_name !hostgroup5 service_description Disk Space } Instead of doing what I want this excludes every hostgroup defined in the template. host1 still gets the service though. I am currently running nagios version 3.0.6. Is this a bug in nagios or am I misunderstanding the way this should behave? ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 9 20:41:46 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 9 Apr 2009 19:41:46 +0100 Subject: Excluding a hostgroup from a service check In-Reply-To: <0AAD1497-3734-42E9-A608-B06B0A9B63A6@alaska.edu> References: <0AAD1497-3734-42E9-A608-B06B0A9B63A6@alaska.edu> Message-ID: <765d77c80904091141x271a7788naa60b781b3f2fcd@mail.gmail.com> 2009/4/9 Edward Trochim : > I have a service template that specifies several host groups and one > host to check. One of the services that inherits this template should > not be executed by one of the host groups defined. I read the object > tricks documentation page and found that I could include a ! before > the name in a hostgroup_name definition in the service definition to > exclude that hostgroup from that service. However, when I do that > nagios excludes all hostgroups from the list from running that service. > > That explanation of the problem might be a little thick so here is an > abbreviated example. > > I have a service template like this: > > define service{ > ? ? ? ? name ? ? ? ? ? ? ? ? ? ? ? ? ? standard-check > ? ? ? ? use ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?generic-service > ? ? ? ? hostgroup_name ? ? ? ? hostgroup1, hostgroup2, hostgroup3,\ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?hostgroup4, hostgroup5, hostgroup6,\ > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?hostgroup7 > ? ? ? ? host_name ? ? ? ? ? ? ? ? ? ? ?host1 > ? ? ? ? servicegroups ? ? ? ? ?standard_checks > ? ? ? ? register ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0 > } > > And a service definition like this. I want to exclude hostgroup5 from > this one service definition: > > define service{ > ? ? ? ? use ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?standard-check > ? ? ? ? hostgroup_name ? ? ? ? !hostgroup5 > ? ? ? ? service_description ? ?Disk Space > } > > Instead of doing what I want this excludes every hostgroup defined in > the template. host1 still gets the service though. > > I am currently running nagios version 3.0.6. > > Is this a bug in nagios or am I misunderstanding the way this should > behave? > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > The line "hostgroup_name !hostgroup5" will completely supercede anything previously specified for hostgroup_name in the template. If you want it to be processed as an addition to what was in your template, you need to prefix the list with a "+". So in your service definition, you need to put: hostgroup_name +!hostgroup5 I've only ever used this syntax myself for specifying additional contacts, but I guess the logic would be the same for hostgroups too. Give it a try anyway and come back if it doesn't work. I assume you're using Nagios 3. I don't think use of "+" in this way was possible in version 2. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Thu Apr 9 20:44:51 2009 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Thu, 09 Apr 2009 14:44:51 -0400 Subject: Excluding a hostgroup from a service check In-Reply-To: <0AAD1497-3734-42E9-A608-B06B0A9B63A6@alaska.edu> References: <0AAD1497-3734-42E9-A608-B06B0A9B63A6@alaska.edu> Message-ID: <49DE4223.1060701@collaborativefusion.com> Edward Trochim wrote: > And a service definition like this. I want to exclude hostgroup5 from > this one service definition: > > define service{ > use standard-check > hostgroup_name !hostgroup5 > service_description Disk Space > } > > Instead of doing what I want this excludes every hostgroup defined in > the template. host1 still gets the service though. > > I am currently running nagios version 3.0.6. > > Is this a bug in nagios or am I misunderstanding the way this should > behave? I believe you're just missing the magic "+" that indicates additive inheritance instead of making it override. Try: define service{ use standard-check hostgroup_name +!hostgroup5 service_description Disk Space } -- Sean McAfee System Engineer ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ejtrochim at alaska.edu Thu Apr 9 20:53:17 2009 From: ejtrochim at alaska.edu (Edward Trochim) Date: Thu, 9 Apr 2009 10:53:17 -0800 Subject: Excluding a hostgroup from a service check In-Reply-To: <765d77c80904091141x271a7788naa60b781b3f2fcd@mail.gmail.com> References: <0AAD1497-3734-42E9-A608-B06B0A9B63A6@alaska.edu> <765d77c80904091141x271a7788naa60b781b3f2fcd@mail.gmail.com> Message-ID: <0225E47F-B6AC-45DB-A9F2-744E67B787C9@alaska.edu> Ah, that is exactly what I was missing. Thanks! On Apr 9, 2009, at 10:41 AM, Jim Avery wrote: > 2009/4/9 Edward Trochim : >> I have a service template that specifies several host groups and one >> host to check. One of the services that inherits this template should >> not be executed by one of the host groups defined. I read the object >> tricks documentation page and found that I could include a ! before >> the name in a hostgroup_name definition in the service definition to >> exclude that hostgroup from that service. However, when I do that >> nagios excludes all hostgroups from the list from running that >> service. >> >> That explanation of the problem might be a little thick so here is an >> abbreviated example. >> >> I have a service template like this: >> >> define service{ >> name standard-check >> use generic-service >> hostgroup_name hostgroup1, hostgroup2, hostgroup3,\ >> hostgroup4, >> hostgroup5, hostgroup6,\ >> hostgroup7 >> host_name host1 >> servicegroups standard_checks >> register 0 >> } >> >> And a service definition like this. I want to exclude hostgroup5 from >> this one service definition: >> >> define service{ >> use standard-check >> hostgroup_name !hostgroup5 >> service_description Disk Space >> } >> >> Instead of doing what I want this excludes every hostgroup defined in >> the template. host1 still gets the service though. >> >> I am currently running nagios version 3.0.6. >> >> Is this a bug in nagios or am I misunderstanding the way this should >> behave? >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/ >> null >> > > The line "hostgroup_name !hostgroup5" will completely > supercede anything previously specified for hostgroup_name in the > template. > > If you want it to be processed as an addition to what was in your > template, you need to prefix the list with a "+". So in your service > definition, you need to put: > > hostgroup_name +!hostgroup5 > > I've only ever used this syntax myself for specifying additional > contacts, but I guess the logic would be the same for hostgroups too. > Give it a try anyway and come back if it doesn't work. > > I assume you're using Nagios 3. I don't think use of "+" in this way > was possible in version 2. > > Cheers, > > Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gevery at gmail.com Thu Apr 9 20:54:42 2009 From: gevery at gmail.com (Gary Every) Date: Thu, 9 Apr 2009 11:54:42 -0700 Subject: Excluding a hostgroup from a service check In-Reply-To: <49DE4223.1060701@collaborativefusion.com> References: <0AAD1497-3734-42E9-A608-B06B0A9B63A6@alaska.edu> <49DE4223.1060701@collaborativefusion.com> Message-ID: On Thu, Apr 9, 2009 at 11:44 AM, Sean McAfee < smcafee at collaborativefusion.com> wrote: > Edward Trochim wrote: > > > And a service definition like this. I want to exclude hostgroup5 from > > this one service definition: > > > > define service{ > > use standard-check > > hostgroup_name !hostgroup5 > > service_description Disk Space > > } > > > > Instead of doing what I want this excludes every hostgroup defined in > > the template. host1 still gets the service though. > > > > I am currently running nagios version 3.0.6. > > > > Is this a bug in nagios or am I misunderstanding the way this should > > behave? > > I believe you're just missing the magic "+" that indicates additive > inheritance instead of making it override. > > Try: > > define service{ > use standard-check > hostgroup_name +!hostgroup5 > service_description Disk Space > } > > -- > Sean McAfee > System Engineer > Sean is right. Otherwise, you're REDEFINING the hostgroup_name directive. -- Gary Every "Pay it Forward!" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Fri Apr 10 02:54:54 2009 From: amontibello at gmail.com (Anthony Montibello) Date: Thu, 9 Apr 2009 20:54:54 -0400 Subject: NSClient not providing results In-Reply-To: <5a6fb4e0904082115y64b46720j2f73257e36d39334@mail.gmail.com> References: <5a6fb4e0904082115y64b46720j2f73257e36d39334@mail.gmail.com> Message-ID: IF you are running all your checks through Check_nt you could convert over to NC_NEt or to NSCLient(the older version) but several things to try, I am not sure now NSCLient installs, but read its manuals and nsclient++ forum to see if you can find a solution. NC_Net installs as a service then you can configure it to startup automatically using window service manage. If you MUST use NSCLient and the ONLY way you can get it runnng is by the commadn line, then load a schedualed task that runs a bat file to start it. Hope this helps Tony (Author of NC_NEt) On Thu, Apr 9, 2009 at 12:15 AM, Murali Krishnan S < muralikrishnan.s at gmail.com> wrote: > Hi, > > When I set NSClient++ to start automatically in services, its running but > not providing the results. All I'm getting is > > "could not fetch information from server" . > > Even when I run the "check_nt" plugin manually also, I'm getting the same > result. > > [root at nagios libexec]# /usr/local/nagios/libexec/check_nt -H 192.168.0.119 > -p 12489 -v MEMUSE -w 80 -c 90 > could not fetch information from server > > After searching and reading mailing lists I've tweaked certain things like > "disabling firewall", "enabling DEP", etc. Still the same result. > > Only one way I could make the NSClient to respond is, running it in > Command line with "-test" option. > > c:\NSClient++>"NSClient++.exe" -test > > When I run this, I'm getting the CHECKS GREEN.. > > [root at nagios libexec]# /usr/local/nagios/libexec/check_nt -H 192.168.0.119 > -p 12489 -v MEMUSE -w 80 -c 90 > Memory usage: total:4308.71 Mb - used: 1606.41 Mb (37%) - free: 2702.30 Mb > (63%) | 'Memory usage'=1606.41Mb;3446.97;3877.84;0.00;4308.71 > > Everytime I reboot the machine. I need to start this in command line. Any > solution, inputs ? Please provide... > > Thanks. > > -- > Regards > Mkrish > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From finchs at stgeorge.com.au Fri Apr 10 06:51:48 2009 From: finchs at stgeorge.com.au (Simon Finch) Date: Fri, 10 Apr 2009 14:51:48 +1000 Subject: Centreon Message-ID: <49DF5D04020000480008D21D@stgeorge.com.au> Chris, Centreon is a very powerful addition to Nagios, so good that I have managed to replace a large enterprise deployment of IBM Tivoli monitoring with Nagios, but only by using Centreon, Nagios by itself wouldn't have stood a chance. I started using it from version 2.0 beta 4 and the doco was terrible or non existent. I am currently using version 2.1 and the doco is still non existent, but the wiki / forum support more than makes up for it. If you compiled Nagios, nrpe, ndo and got it all working then you could easily get Centreon working. I work in IT for a moderately large bank in Australia who has recently been taken over by a larger bank. The new IT top dog is an American who used to run IT for a huge US aircraft manufacturer, he was impressed by what he saw in our NOC / war room. It was Nagios3 front ended by Centreon with management eye candy provided by NagVis, so I truly believe it when I say it's worth the effort because I am in the middle of doing it. If you want more details the feel free to ask as I found a number of traps in the beginning, eg, I don't recommend Redhat RHEL5 for the main server that runs Centreon, I switched to Ubuntu 8.04 , but I still use Redhat RHEL4 & 5 for the remote satellite Nagios servers. Rgds, Simon Simon Finch ESM Team Leader St George Bank ********************************************************************** ***** IMPORTANT INFORMATION ***** This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. ********************************************************************** ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Surajit.Mukherjee at ness.com Fri Apr 10 06:56:44 2009 From: Surajit.Mukherjee at ness.com (Surajit Mukherjee) Date: Fri, 10 Apr 2009 10:26:44 +0530 Subject: serious performance issue In-Reply-To: <6db4a4200904090655s1771fd29h658ff20c6c41e792@mail.gmail.com> References: <6db4a4200904072054u38fcb2e4hd13690bdf3539d01@mail.gmail.com> <6db4a4200904090655s1771fd29h658ff20c6c41e792@mail.gmail.com> Message-ID: <7288B253FF8D33498BF175A570821F5601CBC6@INBLRNT11.ness.com> Hi All, Even I am also facing the same kind of issue. I am using Nagios 3.0.6 and Redhat 5 OS. I am not getting archive logs in the notification area and it says Error: Cannot open log file '/usr/local/nagios/var/archives/nagios-04-10-2009-00.log' for reading! Please help. Surajit ________________________________ From: shadih rahman [mailto:shadhin71 at gmail.com] Sent: Thursday, April 09, 2009 7:25 PM To: fancyrabbit Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] serious performance issue Now my nagios is not running any check at all. I get a lot of "looks like it was orphaned" message and then nagios just sit there. Can someone help me with this. I will add some entries from nagios.debug and nagios.log along with my nagios.cfg. Thanks in advance. nagios.debug: [1239284464.560241] [016.2] [pid=15690] Found another host check event for this host @ Thu Apr 9 08:59:56 2009 [1239284464.560248] [016.2] [pid=15690] New host check event occurs after the ex isting event, so we'll ignore it. [1239284464.560253] [016.2] [pid=15690] Keeping original host check event (ignor ing the new one). [1239284464.560261] [016.1] [pid=15690] ** Async check result for host 'iab323pc 20.atg.columbia.edu' handled: new state=0 nagios.log: [1239254607] Warning: The check of host 'et251pc70.atg.columbia.edu' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... [1239254607] Warning: The check of host 'et251pc71.atg.columbia.edu' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... [1239254607] Warning: The check of host 'et251pc72.atg.columbia.edu' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the host... nagiostats: Nagios Stats 3.0.6 Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org) Last Modified: 12-01-2008 License: GPL CURRENT STATUS DATA ------------------------------------------------------ Status File: /var/log/nagios/status.dat Status File Age: 0d 0h 0m 4s Status File Version: 3.0.6 Program Running Time: 0d 15h 37m 5s Nagios PID: 15690 Used/High/Total Command Buffers: 0 / 1 / 4096 Total Services: 2783 Services Checked: 2783 Services Scheduled: 2782 Services Actively Checked: 2783 Services Passively Checked: 0 Total Service State Change: 0.000 / 38.820 / 0.328 % Active Service Latency: 244.062 / 37353.761 / 22185.948 sec Active Service Execution Time: 0.010 / 15.072 / 0.293 sec Active Service State Change: 0.000 / 38.820 / 0.328 % Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Passive Service Latency: 0.000 / 0.000 / 0.000 sec Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit: 2571 / 14 / 143 / 55 Services Flapping: 19 Services In Downtime: 0 Total Hosts: 3037 Hosts Checked: 3005 Hosts Scheduled: 3030 Hosts Actively Checked: 3037 Host Passively Checked: 0 Total Host State Change: 0.000 / 57.170 / 0.448 % Active Host Latency: 0.000 / 36712.008 / 19785.947 sec Active Host Execution Time: 0.000 / 30.011 / 1.589 sec Active Host State Change: 0.000 / 57.170 / 0.448 % Active Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 299 Passive Host Latency: 0.000 / 0.000 / 0.000 sec Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 2854 / 183 / 0 Hosts Flapping: 16 Hosts In Downtime: 0 Active Host Checks Last 1/5/15 min: 0 / 0 / 0 Scheduled: 0 / 0 / 0 On-demand: 0 / 0 / 0 Parallel: 0 / 0 / 0 Serial: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 Active Service Checks Last 1/5/15 min: 0 / 0 / 0 Scheduled: 0 / 0 / 0 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 External Commands Last 1/5/15 min: 0 / 0 / 0 nagios.cfg: log_file=/var/log/nagios/nagios.log cfg_file=/etc/nagios/commands.cfg cfg_file=/etc/nagios/contacts.cfg cfg_file=/etc/nagios/timeperiods.cfg cfg_file=/etc/nagios/templates.cfg cfg_dir=/etc/nagios/hosts cfg_dir=/etc/nagios/services object_cache_file=/var/log/nagios/objects.cache precached_object_file=/var/log/nagios/objects.precache resource_file=/etc/nagios/resource.cfg status_file=/var/log/nagios/status.dat status_update_interval=60 nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/var/log/nagios/rw/nagios.cmd external_command_buffer_slots=4096 lock_file=/var/log/nagios/nagios.lock temp_file=/var/log/nagios/nagios.tmp temp_path=/tmp event_broker_options=8 broker_module=/usr/lib64/nagios/ndomod.o config_file=/etc/nagios/ndomod.cfg log_rotation_method=m log_archive_path=/var/log/nagios/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_checks=1 service_inter_check_delay_method=s max_service_check_spread=30 service_interleave_factor=s host_inter_check_delay_method=s max_host_check_spread=30 max_concurrent_checks=0 check_result_reaper_frequency=10 max_check_result_reaper_time=20 check_result_path=/var/log/nagios/spool/checkresults max_check_result_file_age=3600 cached_host_check_horizon=15 cached_service_check_horizon=15 enable_predictive_host_dependency_checks=1 enable_predictive_service_dependency_checks=1 soft_state_dependencies=0 auto_reschedule_checks=0 auto_rescheduling_interval=30 auto_rescheduling_window=180 sleep_time=0.25 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=var/log/nagios/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 interval_length=60 use_aggressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 translate_passive_host_checks=0 passive_host_checks_are_soft=0 check_for_orphaned_services=1 check_for_orphaned_hosts=1 check_service_freshness=1 service_freshness_check_interval=60 check_host_freshness=0 host_freshness_check_interval=60 additional_freshness_latency=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=us enable_embedded_perl=0 use_embedded_perl_implicitly=0 illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> use_regexp_matching=0 use_true_regexp_matching=0 admin_email=sr2690 at columbia.edu daemon_dumps_core=0 use_large_installation_tweaks=1 enable_environment_macros=1 debug_level=-1 debug_verbosity=2 debug_file=/var/log/nagios/nagios.debug max_debug_file_size=1000000 On Wed, Apr 8, 2009 at 1:56 AM, fancyrabbit wrote: i met almost the same issue. after tweaking enable_embedded_perl=0, the load average was brought up but latencies became lower. On Wed, Apr 8, 2009 at 11:54 AM, shadih rahman wrote: I am seeing a ton of orphaned error message for both services and hosts. I am running nagios on a quad core 2.2 GHZ machine running 4 GHZ memory. I will paste my configuration file below. I have the machine sending ndo to a local database sitting on a 170 GB Hard drive. nagios is obcessing on both host and services and sending data to a machine with identical configuration. I am doing failover using NSCA. Please advise on this. nagios.cfg log_file=/var/log/nagios/nagios.log cfg_file=/etc/nagios/commands.cfg cfg_file=/etc/nagios/contacts.cfg cfg_file=/etc/nagios/timeperiods.cfg cfg_file=/etc/nagios/templates.cfg cfg_dir=/etc/nagios/hosts cfg_dir=/etc/nagios/services object_cache_file=/var/log/nagios/objects.cache precached_object_file=/var/log/nagios/objects.precache resource_file=/etc/nagios/resource.cfg status_file=/var/log/nagios/status.dat status_update_interval=60 nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/var/log/nagios/rw/nagios.cmd external_command_buffer_slots=8192 lock_file=/var/log/nagios/nagios.lock temp_file=/var/log/nagios/nagios.tmp temp_path=/tmp event_broker_options=8 broker_module=/usr/lib64/nagios/ndomod.o config_file=/etc/nagios/ndomod.cfg log_rotation_method=m log_archive_path=/var/log/nagios/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_checks=1 service_inter_check_delay_method=n max_service_check_spread=30 service_interleave_factor=s host_inter_check_delay_method=s max_host_check_spread=30 max_concurrent_checks=0 check_result_reaper_frequency=2 max_check_result_reaper_time=10 check_result_path=/var/log/nagios/spool/checkresults max_check_result_file_age=3600 cached_host_check_horizon=15 cached_service_check_horizon=15 enable_predictive_host_dependency_checks=1 enable_predictive_service_dependency_checks=1 soft_state_dependencies=1 auto_reschedule_checks=1 auto_rescheduling_interval=30 auto_rescheduling_window=180 sleep_time=0.25 service_check_timeout=30 host_check_timeout=20 event_handler_timeout=30 notification_timeout=60 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=var/log/nagios/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 retained_host_attribute_mask=0 retained_service_attribute_mask=0 retained_process_host_attribute_mask=0 retained_process_service_attribute_mask=0 retained_contact_host_attribute_mask=0 retained_contact_service_attribute_mask=0 interval_length=60 use_aggressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=1 ocsp_command=send_service_check ochp_command=send_host_check obsess_over_hosts=1 translate_passive_host_checks=0 passive_host_checks_are_soft=0 check_for_orphaned_services=1 check_for_orphaned_hosts=1 check_service_freshness=1 service_freshness_check_interval=60 check_host_freshness=0 host_freshness_check_interval=60 additional_freshness_latency=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=us enable_embedded_perl=1 use_embedded_perl_implicitly=1 illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> use_regexp_matching=0 use_true_regexp_matching=0 admin_email=sr2690 at columbia.edu daemon_dumps_core=0 use_large_installation_tweaks=1 enable_environment_macros=1 debug_level=-1debug_verbosity=2 debug_file=/var/log/nagios/nagios.debug max_debug_file_size=1000000 my nagiostats output [sr2690>nagiostats Nagios Stats 3.0.6 Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org ) Last Modified: 12-01-2008 License: GPL CURRENT STATUS DATA ------------------------------------------------------ Status File: /var/log/nagios/status.dat Status File Age: 0d 0h 0m 19s Status File Version: 3.0.6 Program Running Time: 0d 2h 5m 28s Nagios PID: 12139 Used/High/Total Command Buffers: 0 / 0 / 8192 Total Services: 2783 Services Checked: 2783 Services Scheduled: 2782 Services Actively Checked: 2783 Services Passively Checked: 0 Total Service State Change: 0.000 / 52.830 / 0.263 % Active Service Latency: 1.304 / 12092.843 / 1469.130 sec Active Service Execution Time: 0.011 / 15.103 / 0.468 sec Active Service State Change: 0.000 / 52.830 / 0.263 % Active Services Last 1/5/15/60 min: 0 / 0 / 0 / 129 Passive Service Latency: 0.000 / 0.000 / 0.000 sec Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit: 2560 / 13 / 186 / 24 Services Flapping: 17 Services In Downtime: 0 Total Hosts: 3037 Hosts Checked: 3005 Hosts Scheduled: 3029 Hosts Actively Checked: 3037 Host Passively Checked: 0 Total Host State Change: 0.000 / 53.620 / 0.227 % Active Host Latency: 0.000 / 12080.792 / 3770.409 sec Active Host Execution Time: 0.000 / 104.093 / 2.500 sec Active Host State Change: 0.000 / 53.620 / 0.227 % Active Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 256 Passive Host Latency: 0.000 / 0.000 / 0.000 sec Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 2849 / 188 / 0 Hosts Flapping: 10 Hosts In Downtime: 0 Active Host Checks Last 1/5/15 min: 0 / 0 / 1 Scheduled: 0 / 0 / 0 On-demand: 0 / 0 / 1 Parallel: 0 / 0 / 0 Serial: 0 / 0 / 0 Cached: 0 / 0 / 1 Passive Host Checks Last 1/5/15 min: 0 / 0 / 0 Active Service Checks Last 1/5/15 min: 0 / 0 / 0 Scheduled: 0 / 0 / 0 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 External Commands Last 1/5/15 min: 0 / 0 / 0 -- Cordially, Shadhin Rahman ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Cordially, Shadhin Rahman The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to MailAdmin at ness.com and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Fri Apr 10 09:38:37 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Fri, 10 Apr 2009 13:08:37 +0530 Subject: Monitor netstat connection states using nagios. In-Reply-To: <20090409.wA5.35170600@www.zarrelli.org> References: <77300A69-2466-4AA9-B3C1-FDAC313545EE@ena.com> <20090409.wA5.35170600@www.zarrelli.org> Message-ID: <25251aec0904100038l5171a097l2ade9bae2850e567@mail.gmail.com> Hi Giorgio, I tried all the ways to fix the problem but still no luck. Do not know how to run the custom scripts, i will explain in detail here, please someone guide me here, Nagios server: Running the below command, this command will go to nagios client (172.16.17.18) and execute check_netstat script. The netstat script will check for port 80 listen status also if there are any TIME_WAIT connections happens, then it should alert us (WARNING - STATUS= TIME_WAIT port status on airlin | WARNING - STATUS=TIME_WAIT port status on airlin). For testing I made some connections happend to be listen on port 80 and as TIME_WAIT status. But it still reports as (OK, which means this is reporting incorrectly) [nagios at lnx-nagios ~]$ /usr/local/nagios/libexec/check_nrpe -H 172.16.17.18 -c check_netstat OK - The port is up and running NO established connections on airlin on Nagios client:, I executed below command here, and this reports exactly correct as there are some TIME_WAIT listening on port 80 [nagios at airlin nagios]$ netstat -an | grep 80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 172.16.17.18:80 10.10.19.85:2293 TIME_WAIT [nagios at airlin nagios]$ /usr/local/nagios/libexec/check_netstat WARNING - STATUS= TIME_WAIT port status on airlin | WARNING - STATUS=TIME_WAIT port status on airlin. The same warning message should appear when I execute first command on nagios server but it reports incorrectly as (OK, no port status).... I am running above commands as nagios user because this as preivileges to run nrpe. the check_nrpe , nrpe , check_netstat owned by nagios:nagios on both the servers. in /etc/sudoers file I wrote below line on both the servers nagios ALL=/bin/netstat and [root at airlin libexec]# sudo -u nagios sudo -l Password: User nagios may run the following commands on this host: (root) /bin/netstat in the check_netstat script I wrote the netstat command as, netstat -an | grep 80 > synport12 should I add sudo here??? Please help your valuable suggestions...... thanks On Thu, Apr 9, 2009 at 8:52 PM, Giorgio Zarrelli wrote: > Hi > > As I told before, that netstat command won't work "out of the box", with an > unprivileged user. > > Giorgio > > Marc Powell (marc at ena.com) scritto: > > > > > > On Apr 9, 2009, at 8:26 AM, asam30 at gmail.com wrote: > > > > > Hi, > > > > > > I did copy the scipt to the remote host as check_netstat and used > > > check_nrpe method to excute from nagios server. It looks when > > > executing the command on remote server works well, > > > > > > [root at airlin libexec]# /usr/local/nagios/libexec/check_netstat > > > WARNING - STATUS= TIME_WAIT port status on airlin | WARNING - > > > STATUS=TIME_WAIT port status on airlin > > > > You're testing as root here. Test as the user nrpe runs as. It could > > very well be a difference in privileges... > > > > -- > > Marc > > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Fri Apr 10 14:32:57 2009 From: marcismael at gmail.com (Marc Ismael) Date: Fri, 10 Apr 2009 20:32:57 +0800 Subject: how macros on event handlers work Message-ID: <48603ddb0904100532v4a9c7e98m581f29309987a683@mail.gmail.com> Hi, I'm slightly unsure about how i used event_handler in this situation > [Fri Apr 10 05:38:16 2009];Nagios 3.0.6 starting... (PID=1017) > [Fri Apr 10 05:38:16 2009];Local time is Fri Apr 10 05:38:16 EDT 2009 > [Fri Apr 10 05:38:16 2009];LOG VERSION: 2.0 > [Fri Apr 10 05:38:16 2009];Finished daemonizing... (New PID=1018) > [Fri Apr 10 05:38:16 2009];INITIAL HOST STATE: remotehost;UP;HARD;1; > [Fri Apr 10 05:38:16 2009];INITIAL HOST STATE: mynagios;UP;HARD;1; > [Fri Apr 10 05:38:16 2009];INITIAL SERVICE STATE: > remotehost;check_nagios_cronjob;OK;HARD;1;(null) > [Fri Apr 10 05:38:16 2009];INITIAL SERVICE STATE: mynagios;Current > Load;OK;HARD;1;(null) > [Fri Apr 10 05:51:16 2009];Warning: The results of service > 'check_nagios_cronjob' on host 'remotehost' are stale by 0d 0h 3m 0s > (threshold=0d 0h 10m 0s). I'm forcing an immediate check of the service. > [Fri Apr 10 05:51:21 2009];SERVICE ALERT: > remotehost;check_nagios_cronjob;WARNING;HARD;1;WARNING: no information > received from passive check (stale) > [Fri Apr 10 05:51:21 2009];SERVICE EVENT HANDLER: > remotehost;check_nagios_cronjob;(null);(null);(null);check_by_ssh > > > define command{ > command_name check_by_ssh > command_line $USER1$/eventhandlers/check_by_ssh.pl > $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTNAME$ > } > > > > define service{ > use passive_template > service_description check_nagios_cronjob > hostgroup_name testgroup > check_command i_am_stale > event_handler check_by_ssh > freshness_treshold 600 > } > > > define command{ > command_name i_am_stale > command_line $USER1$/check_dummy 1 "no information received from > passive check (stale)" > } > based on the configuration above, im expecting a passive check to timeout after 10 mins. Then check_command will kick in, but it just returns WARNING which is HARD (i've set max_check_attempts to 1). it will then execute the event_handler, passing the macros $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTNAME$ as argument to check_by_ssh.pl. But based on the log output above, these macros contain 'null'? i'm not sure why but im pretty sure macros are working since $HOSTNAME$ was passed correctly. Please give me a hint on what im missing. Thanks, Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Fri Apr 10 16:45:32 2009 From: nccomp at gmail.com (Andrew Davis) Date: Fri, 10 Apr 2009 10:45:32 -0400 Subject: Integrating host notes into Nagios html... Message-ID: <49DF5B8C.4040701@gmail.com> I'm thinking about using something like sysreport to generate info about our hosts. It (and other tools like it) have the ability to output to html. To me that makes it somewhat logical to add a per-host html link into Nagios (clicking the host name would take you to a page that shows the detailed info). Have any of you tried this or something similar? Care to share your experience or what you edited, etc? -- A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Fri Apr 10 17:51:37 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Fri, 10 Apr 2009 11:51:37 -0400 Subject: Centreon In-Reply-To: <49DF5D04020000480008D21D@stgeorge.com.au> References: <49DF5D04020000480008D21D@stgeorge.com.au> Message-ID: <4881ECF1AB752843908A20CEE07A8EB1127F0A@buf-ex01.cymfony.com> Just wondering, why do you not recommend RH5 for centreon? -----Original Message----- From: Simon Finch [mailto:finchs at stgeorge.com.au] Sent: Friday, April 10, 2009 12:52 AM To: nagios-users at lists.sourceforge.net; nagios-users-request at lists.sourceforge.net Subject: Re: [Nagios-users] Centreon Chris, Centreon is a very powerful addition to Nagios, so good that I have managed to replace a large enterprise deployment of IBM Tivoli monitoring with Nagios, but only by using Centreon, Nagios by itself wouldn't have stood a chance. I started using it from version 2.0 beta 4 and the doco was terrible or non existent. I am currently using version 2.1 and the doco is still non existent, but the wiki / forum support more than makes up for it. If you compiled Nagios, nrpe, ndo and got it all working then you could easily get Centreon working. I work in IT for a moderately large bank in Australia who has recently been taken over by a larger bank. The new IT top dog is an American who used to run IT for a huge US aircraft manufacturer, he was impressed by what he saw in our NOC / war room. It was Nagios3 front ended by Centreon with management eye candy provided by NagVis, so I truly believe it when I say it's worth the effort because I am in the middle of doing it. If you want more details the feel free to ask as I found a number of traps in the beginning, eg, I don't recommend Redhat RHEL5 for the main server that runs Centreon, I switched to Ubuntu 8.04 , but I still use Redhat RHEL4 & 5 for the remote satellite Nagios servers. Rgds, Simon Simon Finch ESM Team Leader St George Bank ********************************************************************** ***** IMPORTANT INFORMATION ***** This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. ********************************************************************** ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naloi at experisdatacenters.com Fri Apr 10 18:57:42 2009 From: naloi at experisdatacenters.com (Natalie Aloi) Date: Fri, 10 Apr 2009 16:57:42 +0000 Subject: trouble w/SNMP Message-ID: I am trying to get something to work in Nagios and my command generates a response of unknown, but the snmpwalk generates a value of 2 I also tried another oid and the values generated are identical for the snmpwalk and the snmpget (the one for the upsBatteryStatus is the one I am curious about) [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) [root at nagios mibwalk]# Data from snmpwalk is below: UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds Natalie Experis Data Center LLC 8209 Valley Pike PO Box 535 Middletown,VA 22645 phone:540-869-8702 cell:240-988-3267 fax:540-869-8710 e-mail:naloi at experisdatacenters.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From torresgi at ninds.nih.gov Fri Apr 10 19:05:09 2009 From: torresgi at ninds.nih.gov (Giovanni Torres) Date: Fri, 10 Apr 2009 13:05:09 -0400 Subject: trouble w/SNMP In-Reply-To: References: Message-ID: <49DF7C45.3000700@ninds.nih.gov> try: /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 -r ok Giovanni Natalie Aloi wrote: > I am trying to get something to work in Nagios and my command generates > a response of unknown, but the snmpwalk generates a value of 2 > I also tried another oid and the values generated are identical for the > snmpwalk and the snmpget > > (the one for the upsBatteryStatus is the one I am curious about) > > [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 > -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 > SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds > > [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 > -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 > SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) > [root at nagios mibwalk]# > > Data from snmpwalk is below: > > UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) > UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds > > Natalie > > Experis Data Center LLC > 8209 Valley Pike > PO Box 535 > Middletown,VA 22645 > phone:540-869-8702 > cell:240-988-3267 > fax:540-869-8710 > e-mail:naloi at experisdatacenters.com > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From perldork at webwizarddesign.com Fri Apr 10 19:18:36 2009 From: perldork at webwizarddesign.com (Max) Date: Fri, 10 Apr 2009 13:18:36 -0400 Subject: trouble w/SNMP In-Reply-To: References: Message-ID: Natalie, On Fri, Apr 10, 2009 at 12:57 PM, Natalie Aloi wrote: > I am trying to get something to work in Nagios and my command generates a > response of unknown, but the snmpwalk generates a value of 2 > I also tried another oid and the values generated are identical for the > snmpwalk and the snmpget > > (the one for the upsBatteryStatus is the one I am curious about) If you do an SNMP get for the battery status from the CLI using the Net-SNMP snmpget command do you get the same response (unknown) as you do from the check_snmp command? - Max ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From allanc at chickenandporn.com Fri Apr 10 19:19:31 2009 From: allanc at chickenandporn.com (Allan Clark) Date: Fri, 10 Apr 2009 13:19:31 -0400 Subject: trouble w/SNMP In-Reply-To: References: Message-ID: <37c712e0904101019n4863b0c6lede1a4454cc7346a@mail.gmail.com> On Fri, Apr 10, 2009 at 12:57, Natalie Aloi wrote: > I am trying to get something to work in Nagios and my command generates a > response of unknown, but the snmpwalk generates a value of 2 > I also tried another oid and the values generated are identical for the > snmpwalk and the snmpget > > (the one for the upsBatteryStatus is the one I am curious about) > > [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 > -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 > SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds > > [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 > -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 > SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) > [root at nagios mibwalk]# > > Data from snmpwalk is below: > > UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) > UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds > > try something like: snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 Assuming SNMP-v1; try with "-v 2c" as well, to see which one matches your results. I don't have a commandline available to check which the snmp command plugin uses, but maybe this will give you an idea whether the snmpwalk differs form the snmpget result, perhaps an avenue to investigate further. Allan -- allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naloi at experisdatacenters.com Fri Apr 10 19:28:57 2009 From: naloi at experisdatacenters.com (Natalie Aloi) Date: Fri, 10 Apr 2009 17:28:57 +0000 Subject: trouble w/SNMP Message-ID: [root at nagios mibwalk]# snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 SNMPv2-SMI::mib-2.33.1.2.1.0 = INTEGER: 1 [root at nagios mibwalk]# Huh? - weird! why would snmpget give me 1, but walk gives me 2? -----Original Message----- From: Allan Clark [mailto:allanc at chickenandporn.com] Sent: Friday, April 10, 2009 01:19 PM To: 'Natalie Aloi' Cc: 'Nagios Users Mail-list' Subject: Re: [Nagios-users] trouble w/SNMP On Fri, Apr 10, 2009 at 12:57, Natalie Aloi wrote: I am trying to get something to work in Nagios and my command generates a response of unknown, but the snmpwalk generates a value of 2 I also tried another oid and the values generated are identical for the snmpwalk and the snmpget (the one for the upsBatteryStatus is the one I am curious about) [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) [root at nagios mibwalk]# Data from snmpwalk is below: UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds try something like: snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 Assuming SNMP-v1; try with "-v 2c" as well, to see which one matches your results. I don't have a commandline available to check which the snmp command plugin uses, but maybe this will give you an idea whether the snmpwalk differs form the snmpget result, perhaps an avenue to investigate further. Allan -- allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naloi at experisdatacenters.com Fri Apr 10 19:34:54 2009 From: naloi at experisdatacenters.com (Natalie Aloi) Date: Fri, 10 Apr 2009 17:34:54 +0000 Subject: trouble w/SNMP Message-ID: tried v 2c too - same results - testing walk again still gives a value of 2 UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) [root at nagios mibwalk]# snmpget -v 2c -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 SNMPv2-SMI::mib-2.33.1.2.1.0 = INTEGER: 1 -----Original Message----- From: Natalie Aloi [mailto:naloi at experisdatacenters.com] Sent: Friday, April 10, 2009 01:28 PM To: 'Allan Clark', 'Natalie Aloi' Cc: 'Nagios Users Mail-list' Subject: Re: [Nagios-users] trouble w/SNMP [root at nagios mibwalk]# snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 SNMPv2-SMI::mib-2.33.1.2.1.0 = INTEGER: 1 [root at nagios mibwalk]# Huh? - weird! why would snmpget give me 1, but walk gives me 2? -----Original Message----- From: Allan Clark [mailto:allanc at chickenandporn.com] Sent: Friday, April 10, 2009 01:19 PM To: 'Natalie Aloi' Cc: 'Nagios Users Mail-list' Subject: Re: [Nagios-users] trouble w/SNMP On Fri, Apr 10, 2009 at 12:57, Natalie Aloi wrote: I am trying to get something to work in Nagios and my command generates a response of unknown, but the snmpwalk generates a value of 2 I also tried another oid and the values generated are identical for the snmpwalk and the snmpget (the one for the upsBatteryStatus is the one I am curious about) [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) [root at nagios mibwalk]# Data from snmpwalk is below: UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds try something like: snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 Assuming SNMP-v1; try with "-v 2c" as well, to see which one matches your results. I don't have a commandline available to check which the snmp command plugin uses, but maybe this will give you an idea whether the snmpwalk differs form the snmpget result, perhaps an avenue to investigate further. Allan -- allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From egalstad at nagios.org Fri Apr 10 19:49:46 2009 From: egalstad at nagios.org (Ethan Galstad) Date: Fri, 10 Apr 2009 12:49:46 -0500 Subject: Survey: Nagios Conference at LISA '09 Message-ID: <49DF86BA.6000906@nagios.org> Hey Nagios Admins - [Apologies for cross-posting. This message originally went to the -announce list last week. So far we've had ~70 responses to the survey, which isn't yet statistically significant enough for us to make a decision on a conference...] We're considering holding a Nagios event of some sort to be co-located with the USENIX LISA Conference November 1?6 in Baltimore, MD (see http://www.usenix.org/events/lisa09/). We're currently thinking of a one-day or two-day "mini conference" to be held the Sunday and/or Monday, November 1/2. This is in the idea stage at the moment, and we'd like to gauge the community's interest before we get too far down the planning path. If you would be interested in attending or participating in the conference, please take our survey by visiting the nagios.org website using the URL below: http://www.surveymonkey.com/s.aspx?sm=G9_2f6HPGVHeRUuY9008Wv_2bA_3d_3d Until later, happy monitoring! - Ethan Galstad ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-devel mailing list Nagios-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-devel From allanc at chickenandporn.com Fri Apr 10 19:57:56 2009 From: allanc at chickenandporn.com (Allan Clark) Date: Fri, 10 Apr 2009 13:57:56 -0400 Subject: trouble w/SNMP In-Reply-To: References: Message-ID: <37c712e0904101057o484ef66bo658fa322aec60635@mail.gmail.com> 2009/4/10 Natalie Aloi > > ?moved top-post) > > -----Original Message----- > *From:* Allan Clark [mailto:allanc at chickenandporn.com] > *Sent:* Friday, April 10, 2009 01:19 PM > *To:* 'Natalie Aloi' > *Cc:* 'Nagios Users Mail-list' > *Subject:* Re: [Nagios-users] trouble w/SNMP > > On Fri, Apr 10, 2009 at 12:57, Natalie Aloi wrote: > >> I am trying to get something to work in Nagios and my command generates >> a response of unknown, but the snmpwalk generates a value of 2 >> I also tried another oid and the values generated are identical for the >> snmpwalk and the snmpget >> >> (the one for the upsBatteryStatus is the one I am curious about) >> >> [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 >> -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 >> SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds >> >> [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 >> -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 >> SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) >> [root at nagios mibwalk]# >> >> Data from snmpwalk is below: >> >> UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) >> UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds >> >> > > try something like: > > snmpget -v 1 -c public 10.1.102.40 > SNMPv2-SMI::mib-2.33.1.2.1.0 > > Assuming SNMP-v1; try with "-v 2c" as well, to see which one matches your > results. I don't have a commandline available to check which the snmp > command plugin uses, but maybe this will give you an idea whether the > snmpwalk differs form the snmpget result, perhaps an avenue to investigate > further. > > Allan > > > [root at nagios mibwalk]# snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 > SNMPv2-SMI::mib-2.33.1.2.1.0 = INTEGER: 1 > [root at nagios mibwalk]# > > Huh? - weird! why would snmpget give me 1, but walk gives me 2? If we assume Nagios is doing snmpget rather than snmpwalk, then the problem is slightly different: how would we get snmpget to produce the desired/accurate "2" rather than "1". For giggles, try: snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1 (dropping the .0) I'm curious about this because I remember something with snmpwalk needing a .0 in places where snmpget didn't seem to. Don't recall exactly what it was. Allan -- allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) Sent from New York, NY, United States -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naloi at experisdatacenters.com Fri Apr 10 20:23:18 2009 From: naloi at experisdatacenters.com (Natalie Aloi) Date: Fri, 10 Apr 2009 18:23:18 +0000 Subject: trouble w/SNMP Message-ID: Thanks Allan! That's what its doing a getnext - see below! note mib oid and value! [root at nagios mibwalk]# snmpgetnext -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.1.5.0 SNMPv2-SMI::mib-2.33.1.2.1.0 = INTEGER: 1 [root at nagios mibwalk]# hmmm now I need to figure out how to tell nagios to do a walk on that oid... -----Original Message----- From: Allan Clark [mailto:allanc at chickenandporn.com] Sent: Friday, April 10, 2009 01:57 PM To: 'Natalie Aloi' Cc: 'Nagios Users Mail-list' Subject: Re: [Nagios-users] trouble w/SNMP 2009/4/10 Natalie Aloi ?moved top-post) -----Original Message----- From: Allan Clark [mailto:allanc at chickenandporn.com] Sent: Friday, April 10, 2009 01:19 PM To: 'Natalie Aloi' Cc: 'Nagios Users Mail-list' Subject: Re: [Nagios-users] trouble w/SNMP On Fri, Apr 10, 2009 at 12:57, Natalie Aloi wrote: I am trying to get something to work in Nagios and my command generates a response of unknown, but the snmpwalk generates a value of 2 I also tried another oid and the values generated are identical for the snmpwalk and the snmpget (the one for the upsBatteryStatus is the one I am curious about) [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) [root at nagios mibwalk]# Data from snmpwalk is below: UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds try something like: snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 Assuming SNMP-v1; try with "-v 2c" as well, to see which one matches your results. I don't have a commandline available to check which the snmp command plugin uses, but maybe this will give you an idea whether the snmpwalk differs form the snmpget result, perhaps an avenue to investigate further. Allan > [root at nagios mibwalk]# snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 > SNMPv2-SMI::mib-2.33.1.2.1.0 = INTEGER: 1 > [root at nagios mibwalk]# > > Huh? - weird! why would snmpget give me 1, but walk gives me 2? If we assume Nagios is doing snmpget rather than snmpwalk, then the problem is slightly different: how would we get snmpget to produce the desired/accurate "2" rather than "1". For giggles, try: snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1 (dropping the .0) I'm curious about this because I remember something with snmpwalk needing a .0 in places where snmpget didn't seem to. Don't recall exactly what it was. Allan -- allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) Sent from New York, NY, United States -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naloi at experisdatacenters.com Fri Apr 10 20:26:08 2009 From: naloi at experisdatacenters.com (Natalie Aloi) Date: Fri, 10 Apr 2009 18:26:08 +0000 Subject: trouble w/SNMP Message-ID: TADA! Thanks you so much! [root at nagios mibwalk]# snmpwalk -v 1 -c public 10.1.102.40 UPS-MIB::upsBatteryStatus.0 UPS-MIB::upsBatteryStatus.0 = INTEGER: unknown(1) [root at nagios mibwalk]# snmpwalk -v 1 -c public 10.1.102.40 UPS-MIB::upsBatteryStatus UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) [root at nagios mibwalk]# -----Original Message----- From: Allan Clark [mailto:allanc at chickenandporn.com] Sent: Friday, April 10, 2009 01:57 PM To: 'Natalie Aloi' Cc: 'Nagios Users Mail-list' Subject: Re: [Nagios-users] trouble w/SNMP 2009/4/10 Natalie Aloi ?moved top-post) -----Original Message----- From: Allan Clark [mailto:allanc at chickenandporn.com] Sent: Friday, April 10, 2009 01:19 PM To: 'Natalie Aloi' Cc: 'Nagios Users Mail-list' Subject: Re: [Nagios-users] trouble w/SNMP On Fri, Apr 10, 2009 at 12:57, Natalie Aloi wrote: I am trying to get something to work in Nagios and my command generates a response of unknown, but the snmpwalk generates a value of 2 I also tried another oid and the values generated are identical for the snmpwalk and the snmpget (the one for the upsBatteryStatus is the one I am curious about) [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.2.0 SNMP OK - 0 seconds | UPS-MIB::upsSecondsOnBattery.0=0 seconds [root at nagios mibwalk]# /usr/lib/nagios/plugins/check_snmp -H 10.1.102.40 -C public -o SNMPv2-SMI::mib-2.33.1.2.1.0 SNMP OK - unknown(1) | UPS-MIB::upsBatteryStatus.0=unknown(1) [root at nagios mibwalk]# Data from snmpwalk is below: UPS-MIB::upsBatteryStatus.0 = INTEGER: batteryNormal(2) UPS-MIB::upsSecondsOnBattery.0 = INTEGER: 0 seconds try something like: snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 Assuming SNMP-v1; try with "-v 2c" as well, to see which one matches your results. I don't have a commandline available to check which the snmp command plugin uses, but maybe this will give you an idea whether the snmpwalk differs form the snmpget result, perhaps an avenue to investigate further. Allan > [root at nagios mibwalk]# snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1.0 > SNMPv2-SMI::mib-2.33.1.2.1.0 = INTEGER: 1 > [root at nagios mibwalk]# > > Huh? - weird! why would snmpget give me 1, but walk gives me 2? If we assume Nagios is doing snmpget rather than snmpwalk, then the problem is slightly different: how would we get snmpget to produce the desired/accurate "2" rather than "1". For giggles, try: snmpget -v 1 -c public 10.1.102.40 SNMPv2-SMI::mib-2.33.1.2.1 (dropping the .0) I'm curious about this because I remember something with snmpwalk needing a .0 in places where snmpget didn't seem to. Don't recall exactly what it was. Allan -- allanc at chickenandporn.com "??" http://linkedin.com/in/goldfish please, no proprietary attachments (http://tinyurl.com/cbgq) Sent from New York, NY, United States -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Fri Apr 10 21:16:11 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Fri, 10 Apr 2009 15:16:11 -0400 Subject: upgrading nagios Message-ID: <699b436a0904101216h13e8e6f8u83a4106ab8268b0e@mail.gmail.com> has anyone done upgrage from 2.x to 3.x the previous guy who has installed 2.8 had specified different directories , instead of /usr/local/nagios. I almost figured it out what the directories are. Now should i specify them in ./configure --bindir=/usr/bin --sbindir=/usr/lib/nagios/cgi --datadir=/usr/share/nagios --sysconfdir=/etc/nagios --localstatedir=/var/log/nagios What is --prefix will do, and is there any thing else that is left over? Can any one guide me through proper direction -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Fri Apr 10 21:29:24 2009 From: jpratt at norwich.edu (James Pratt) Date: Fri, 10 Apr 2009 15:29:24 -0400 Subject: upgrading nagios In-Reply-To: <699b436a0904101216h13e8e6f8u83a4106ab8268b0e@mail.gmail.com> References: <699b436a0904101216h13e8e6f8u83a4106ab8268b0e@mail.gmail.com> Message-ID: <8147CCE3C4A8764DA9980125EE70E823B3CA0E@nuexchg.norwich.edu> > -----Original Message----- > From: Anirudh Srinivasan [mailto:srianirudh at gmail.com] > Sent: Friday, April 10, 2009 3:16 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] upgrading nagios > > has anyone done upgrage from 2.x to 3.x > the previous guy who has installed 2.8 had specified different > directories , instead of /usr/local/nagios. I almost figured it out what > the directories are. > > Now should i specify them in ./configure > > --bindir=/usr/bin > --sbindir=/usr/lib/nagios/cgi > --datadir=/usr/share/nagios > --sysconfdir=/etc/nagios > --localstatedir=/var/log/nagios > > What is --prefix will do, and is there any thing else that is left over? > Can any one guide me through proper direction > > > -- > Anirudh Srinivasan > --prefix=/usr/local/nagios would install all files in: /usr/local/nagios/ . (i.e /usr/local/nagios/bin ,/usr/local/nagios/etc [....] In other words, it would put the whole nagios install under /usr/local/nagios, the "default" location if you do not specify an alternate prefix. Personally, if I were you, I would _not_ rebuild it in a non-standard way like you mention above unless you have very good reason to do so - Yes, there may be more work involved, but the end result will be worth it. (The guy who takes over your job down the road will also be grateful, and you won't have to hunt over the whole system to find the stuff you need!) Cheers, Jamie ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Sat Apr 11 04:36:50 2009 From: marcismael at gmail.com (Marc Ismael) Date: Sat, 11 Apr 2009 10:36:50 +0800 Subject: how macros on event handlers work In-Reply-To: <48603ddb0904100532v4a9c7e98m581f29309987a683@mail.gmail.com> References: <48603ddb0904100532v4a9c7e98m581f29309987a683@mail.gmail.com> Message-ID: <48603ddb0904101936w1a24873fjce1ecacc1a6ac826@mail.gmail.com> Hi, I'm slightly unsure about how i used event_handler in this situation > [Fri Apr 10 05:38:16 2009];Nagios 3.0.6 starting... (PID=1017) > [Fri Apr 10 05:38:16 2009];Local time is Fri Apr 10 05:38:16 EDT 2009 > [Fri Apr 10 05:38:16 2009];LOG VERSION: 2.0 > [Fri Apr 10 05:38:16 2009];Finished daemonizing... (New PID=1018) > [Fri Apr 10 05:38:16 2009];INITIAL HOST STATE: remotehost;UP;HARD;1; > [Fri Apr 10 05:38:16 2009];INITIAL HOST STATE: mynagios;UP;HARD;1; > [Fri Apr 10 05:38:16 2009];INITIAL SERVICE STATE: > remotehost;check_nagios_cronjob;OK;HARD;1;(null) > [Fri Apr 10 05:38:16 2009];INITIAL SERVICE STATE: mynagios;Current > Load;OK;HARD;1;(null) > [Fri Apr 10 05:51:16 2009];Warning: The results of service > 'check_nagios_cronjob' on host 'remotehost' are stale by 0d 0h 3m 0s > (threshold=0d 0h 10m 0s). I'm forcing an immediate check of the service. > [Fri Apr 10 05:51:21 2009];SERVICE ALERT: > remotehost;check_nagios_cronjob;WARNING;HARD;1;WARNING: no information > received from passive check (stale) > [Fri Apr 10 05:51:21 2009];SERVICE EVENT HANDLER: > remotehost;check_nagios_cronjob;(null);(null);(null);check_by_ssh > > > define command{ > command_name check_by_ssh > command_line $USER1$/eventhandlers/check_by_ssh.pl > $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTNAME$ > } > > > > define service{ > use passive_template > service_description check_nagios_cronjob > hostgroup_name testgroup > check_command i_am_stale > event_handler check_by_ssh > freshness_treshold 600 > } > > > define command{ > command_name i_am_stale > command_line $USER1$/check_dummy 1 "no information received from > passive check (stale)" > } > based on the configuration above, im expecting a passive check to timeout after 10 mins. Then check_command will kick in, but it just returns WARNING which is HARD (i've set max_check_attempts to 1). it will then execute the event_handler, passing the macros $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ $HOSTNAME$ as argument to check_by_ssh.pl. But based on the log output above, these macros contain 'null'? i'm not sure why but im pretty sure macros are working since $HOSTNAME$ was passed correctly. Please give me a hint on what im missing. Thanks, Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From natxo.asenjo at gmail.com Sat Apr 11 21:15:13 2009 From: natxo.asenjo at gmail.com (Natxo Asenjo) Date: Sat, 11 Apr 2009 21:15:13 +0200 Subject: NSClient not providing results In-Reply-To: <5a6fb4e0904082115y64b46720j2f73257e36d39334@mail.gmail.com> References: <5a6fb4e0904082115y64b46720j2f73257e36d39334@mail.gmail.com> Message-ID: <90f6e8270904111215h7fd879c5jaeeaa501d128a83e@mail.gmail.com> On Thu, Apr 9, 2009 at 6:15 AM, Murali Krishnan S wrote: > Hi, > > ? When I set NSClient++ to start automatically in services, its running but > not providing the results. All I'm getting is > > "could not fetch information from server" . > > Even when I run the "check_nt" plugin manually also, I'm getting the same > result. > > [root at nagios libexec]# /usr/local/nagios/libexec/check_nt -H 192.168.0.119 > -p 12489 -v MEMUSE? -w 80 -c 90 > could not fetch information from server can you telnet to the windows box port 12489? If you cannot, then it is firewalled or you have not configured nsc.ini correctly -- Natxo Asenjo ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at suso.org Sun Apr 12 11:21:03 2009 From: mark at suso.org (Mark Krenz) Date: Sun, 12 Apr 2009 09:21:03 +0000 Subject: check_snmp memory leak Message-ID: <20090412092102.GS4592@arvo.suso.org> I've run into some kind of memory leak in Nagios. After removing checks and services to narrow it down, I've determined that its the check_snmp command that is leaking memory. With 33 hosts and almost each one having 1 check that uses check_snmp in it, it leaks about 1MB every couple checks. It only takes a day for it to get to the point where nagiops is using 200-300MB of RAM. I'd say that's pretty bad. Anyways, I've tried recompiling nagios and the nagios plugins and I've upgraded all the packages on my system to make sure it wasn't something there and then recompiled again. Any ideas as to what this might be? Here are my system specs for the nagios server: System type: Xen virtual machine. Architecture: x86_64 Physical memory: 512MB Distribution: CentOS 5.3 gcc ver: gcc-4.1.2-44.el5 Nagios ver: 3.0.6 Nagios Configure settings: configure --with-command-group=nagcmd --enable-embedded-perl Nagios plugins ver: 1.4.13 Nagios Plugins Configure settings: configure --with-nagios-user=nagios --with-nagios-group=nagios --with-mysql I actually have another machine that I was running Nagios on recently where I don't have this problem. It has the same setup except its RHEL 5.2. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at suso.org Sun Apr 12 16:20:08 2009 From: mark at suso.org (Mark Krenz) Date: Sun, 12 Apr 2009 14:20:08 +0000 Subject: check_snmp memory leak In-Reply-To: <20090412092102.GS4592@arvo.suso.org> References: <20090412092102.GS4592@arvo.suso.org> Message-ID: <20090412142008.GT4592@arvo.suso.org> Nevermind, figured it out. I just tried recompiling without the --enable-embedded-perl option and that seems to have fixed it. Now the memory usage is staying at just a couple MB. Not sure why check_snmp was the only check that seemed to aggravate it though. On Sun, Apr 12, 2009 at 09:21:03AM GMT, Mark Krenz [mark at suso.org] said the following: > > I've run into some kind of memory leak in Nagios. After removing > checks and services to narrow it down, I've determined that its the > check_snmp command that is leaking memory. With 33 hosts and almost > each one having 1 check that uses check_snmp in it, it leaks about 1MB > every couple checks. It only takes a day for it to get to the point > where nagiops is using 200-300MB of RAM. I'd say that's pretty bad. > > Anyways, I've tried recompiling nagios and the nagios plugins and I've > upgraded all the packages on my system to make sure it wasn't something > there and then recompiled again. Any ideas as to what this might be? > > Here are my system specs for the nagios server: > > System type: Xen virtual machine. > Architecture: x86_64 > Physical memory: 512MB > Distribution: CentOS 5.3 > gcc ver: gcc-4.1.2-44.el5 > > Nagios ver: 3.0.6 > Nagios Configure settings: > configure --with-command-group=nagcmd --enable-embedded-perl > > Nagios plugins ver: 1.4.13 > Nagios Plugins Configure settings: > configure --with-nagios-user=nagios --with-nagios-group=nagios --with-mysql > > > I actually have another machine that I was running Nagios on recently > where I don't have this problem. It has the same setup except its RHEL > 5.2. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Mark S. Krenz IT Director Suso Technology Services, Inc. http://suso.org/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ti1ion2005 at gmail.com Sun Apr 12 20:52:54 2009 From: ti1ion2005 at gmail.com (David A.) Date: Sun, 12 Apr 2009 14:52:54 -0400 Subject: APC UPS Monitoring Setup. Message-ID: <4417b8200904121152w567785c9y7f64c92268bfa46d@mail.gmail.com> Hello, I have been searching for help in setting up SNMP monitoring of an APC UPS. I found a plug-in called check_snmp_apcups and have been trying to configure it -- with no success. I am using nagios 3.0.6 and plugins 1.4.13 I placed check_snmp_apcups into the libexec folder and ran it from the command line. It worked well, giving me UPS information. However, I cannot figure out what to do to make it work in the web interface. The latest instructions I found (and followed) were from the wiki: http://community.nagios.org/wiki/index.php/Howtos:snmp-apc-smart-ups Now, these instructions refer to the check_snmp command, but this did not work from the command line for me. It got no response from the UPS. So, I changed the command to check_snmp_apcups. I added the command definitions to the command.cfg file and then created a ups.cfg file with the following: #### HOST #### define host{ use generic-host host_name apc-smart-ups alias apc-smart-ups address 192.168.1.10 hostgroups ups } #### HOST GROUP #### define hostgroup{ hostgoup_name ups alias ups } #### SERVICES #### define service{ use generic-service host_name apc-smart-ups service_description Environment-Temperature check_command snmp_ups_envtemp!nagmon } define service{ use generic-service host_name apc-smart-ups service_description Battery-Status check_command snmp_ups_stat!nagmon } define service{ use generic-service host_name apc-smart-ups service_description Battery-Status check_command snmp_ups_capa!nagmon } define service{ use generic-service host_name apc-smart-ups service_description Battery-Status check_command snmp_ups_freq!nagmon } define service{ use generic-service host_name apc-smart-ups service_description Battery-Status check_command snmp_ups_volt!nagmon } define service{ use generic-service host_name apc-smart-ups service_description Battery-Status check_command snmp_ups_current!nagmon } define service{ use generic-service host_name apc-smart-ups service_description Battery-Status check_command snmp_ups_load!nagmon } I then modified the nagios.cfg file to point to to the ups.cfg file. Next, I ran the verification command and received a warning of NULL value in the line that points to my ups.cfg file. I don't know what is wrong with it, or what I am missing. Could anyone give me some pointers as to what I am doing wrong? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Mon Apr 13 01:26:36 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Sun, 12 Apr 2009 18:26:36 -0500 Subject: check_snmp memory leak In-Reply-To: <20090412142008.GT4592@arvo.suso.org> References: <20090412142008.GT4592@arvo.suso.org> Message-ID: You could have also just disabled the embedded perl interpreter in the plugin itself. By disabling the embedded perl function, your load and memory usage will certainly be higher. The real question, though, is since you're using Cent OS, why not use the Nagios RPM's available via yum repository? It makes upgrading and keeping track of dependencies a breeze. Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3 system using the exact options that were found in the RPM spec file. I ended up with a nagios binary that was twice as large as the one that came in the RPM package and the version I compiled myself ran using more memory and processor resources than the RPM version. The difference was probably the compiler flags I was using were not optimized for my (or any RHEL) system. Nine times out of ten, using yum rpm's will ultimately end up yielding better results when factoring in system performce, upgrades, etc - and save tons of time and headaches. That's why you're using RHEL, right? Yes, I still have to make RPM's via compilation of source RPM's when the yum repository version doesn't include the feature's I need. For example, I have to roll my own Postfix because I need mysql support. James Moseley Mark Krenz To 04/12/2009 09:20 nagios-users at lists.sourceforge.net AM cc Subject Re: [Nagios-users] check_snmp memory leak Nevermind, figured it out. I just tried recompiling without the --enable-embedded-perl option and that seems to have fixed it. Now the memory usage is staying at just a couple MB. Not sure why check_snmp was the only check that seemed to aggravate it though. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Mon Apr 13 01:37:46 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Sun, 12 Apr 2009 18:37:46 -0500 Subject: APC UPS Monitoring Setup. In-Reply-To: <4417b8200904121152w567785c9y7f64c92268bfa46d@mail.gmail.com> References: <4417b8200904121152w567785c9y7f64c92268bfa46d@mail.gmail.com> Message-ID: The instructions you are referring to use check_snmp and have nothing to do with the plugin you are trying to use. I'm not familiar with that plugin, but you should be able to get all the status you want with a single service entry. If you'll give me an example of the command line call, I'll give you an example service and command definition. James Moseley "David A." To nagios-users at lists.sourceforge.net 04/12/2009 01:52 cc PM Subject [Nagios-users] APC UPS Monitoring Setup. Hello, I have been searching for help in setting up SNMP monitoring of an APC UPS.? I found a plug-in called check_snmp_apcups and have been trying to configure it -- with no success.? I am using nagios 3.0.6 and plugins 1.4.13 I placed check_snmp_apcups into the libexec folder and ran it from the command line.? It worked well, giving me UPS information.? However, I cannot figure out what to do to make it work in the web interface. The latest instructions I found (and followed) were from the wiki: http://community.nagios.org/wiki/index.php/Howtos:snmp-apc-smart-ups Now, these instructions refer to the check_snmp command, but this did not work from the command line for me.? It got no response from the UPS.? So, I changed the command to check_snmp_apcups.? I added the command definitions to the command.cfg file and then created a ups.cfg file with the following: #### HOST #### define host{??????? use???????????????????? generic-host host_name?????????????? apc-smart-ups??????? alias apc-smart-ups??????? address???????????????? 192.168.1.10 hostgroups????????????? ups??????? } #### HOST GROUP #### define hostgroup{??????? hostgoup_name?????????? ups alias?????????????????? ups??????? } #### SERVICES #### define service{??????? use generic-service??????? host_name?????????????????????? apc-smart-ups service_description???????????? Environment-Temperature check_command?????????????????? snmp_ups_envtemp!nagmon??????? } define service{??????? use generic-service??????? host_name?????????????????????? apc-smart-ups service_description???????????? Battery-Status check_command?????????????????? snmp_ups_stat!nagmon??????? } define service{??????? use generic-service??????? host_name?????????????????????? apc-smart-ups service_description???????????? Battery-Status check_command?????????????????? snmp_ups_capa!nagmon??????? } define service{??????? use generic-service??????? host_name?????????????????????? apc-smart-ups service_description???????????? Battery-Status check_command?????????????????? snmp_ups_freq!nagmon??????? } define service{??????? use generic-service??????? host_name?????????????????????? apc-smart-ups service_description???????????? Battery-Status check_command?????????????????? snmp_ups_volt!nagmon??????? } define service{??????? use generic-service??????? host_name?????????????????????? apc-smart-ups service_description???????????? Battery-Status check_command?????????????????? snmp_ups_current!nagmon??????? } define service{??????? use generic-service??????? host_name?????????????????????? apc-smart-ups service_description???????????? Battery-Status check_command?????????????????? snmp_ups_load!nagmon??????? } I then modified the nagios.cfg file to point to to the ups.cfg file.? Next, I ran the verification command and received a warning of NULL value in the line that points to my ups.cfg file.? I don't know what is wrong with it, or what I am missing. Could anyone give me some pointers as to what I am doing wrong? Thanks. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Mon Apr 13 04:26:49 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Sun, 12 Apr 2009 21:26:49 -0500 Subject: APC UPS Monitoring Setup. In-Reply-To: <4417b8200904121719p27b29e74ub651ba0f134e3e8b@mail.gmail.com> References: <4417b8200904121719p27b29e74ub651ba0f134e3e8b@mail.gmail.com> Message-ID: Remember to CC the nagios users' list... From looking at the script, it doesn't look like there are any options for setting critical/warning thresholds for temperature, load, etc. It appears they are all predefined. In that case, the command configuration would look something like: define command { command_name check_apcups command_line $USER1$/check_snmp_apcups -H $HOSTADDRESS$ -C $ARG1$ } The service check configuration would look like: define service{??????? use generic-service??????? host_name????????????????????? apc-smart-ups service_description APC_STATUS??????? check_command check_apcups!public ??????? } Obviously, you would replace 'public' above with whatever SNMP community string you have setup... The host group and host defintions you supplied earlier should be fine. Remember, this script is fairly elementary in that it appears it predetermines all the critical/warning levels for things like temp, battery capacity, input/output voltage, etc. So, there's nothing else you need to do. It will either return an 'OK' value or generate a critical or warning alert with the simple configuration above. Obviously, you could edit the script to change any of the thresholds by hardcoding them into the script, or you could modify it to accept warning/critical threshold limits as variables. James Moseley "David A." To jmoseley at corp.xanadoo.com 04/12/2009 07:19 cc PM Subject Re: [Nagios-users] APC UPS Monitoring Setup. Thanks again. The command I issue in the libexec folder is: ./check_snmp_apcups -H xxx.xxx.xxx.xxx -C public (I changed that to something different) The reply from the system is: Status is OK - Symmetra xxxx - BATTERY:(capacity 100%, temperature 38 C, runtime 40 minutes, 00.00) INPUT:(voltage 120 V, frequency 59 Hz) OUTPUT:(voltage 119 V, frequency 59 Hz, load 18%) SELF TEST:(Passed on 04/02/2009) LAST EVENT:(UPS self test) What I am trying to do is display this information in the web interface under its own device type. Thank you for any help you can provide. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From finchs at stgeorge.com.au Mon Apr 13 06:40:05 2009 From: finchs at stgeorge.com.au (Simon Finch) Date: Mon, 13 Apr 2009 14:40:05 +1000 Subject: NSClient not providing results In-Reply-To: <5a6fb4e0904082115y64b46720j2f73257e36d39334@mail.gmail.com> References: <5a6fb4e0904082115y64b46720j2f73257e36d39334@mail.gmail.com> Message-ID: <49E34EC5.B47D.0048.0@stgeorge.com.au> Murali, In the NSC.ini config file under [Settings] is the parameter called allowed_hosts= Is the IP address of your Nagios server in the list ? If so then do you have multiple IP addresses in this list, if you do then make sure that there are no spaces between the entries. Even when you get past this problem I found that check_nt didn't always return performance data, switch to check_nrpe if you want it to be reliable. It is slightly more complicated to use, but it is much more flexible after you get going. Simon Finch | ESM Specialist Ground Floor, 4-16 Montgomery St, Kogarah NSW 2217 (+61 2 9952 2574 7 +61 412 256 814 Email: finchs at stgeorge.com.au www.stgeorge.com.au ______________________________________ St.George Bank IT - Good with people. Good with monitoring. ********************************************************************** ***** IMPORTANT INFORMATION ***** This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/xxx Size: 1753 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: applicaton/octect-stream Size: 6060 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From finchs at stgeorge.com.au Mon Apr 13 06:53:23 2009 From: finchs at stgeorge.com.au (Simon Finch) Date: Mon, 13 Apr 2009 14:53:23 +1000 Subject: Centreon In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1127F0A@buf-ex01.cymfony.com> References: <49DF5D04020000480008D21D@stgeorge.com.au> <4881ECF1AB752843908A20CEE07A8EB1127F0A@buf-ex01.cymfony.com> Message-ID: <49E351E3.B47D.0048.0@stgeorge.com.au> The only reason I don't recommend RHEL5 for the main Centreon server was the prerequisites, I found that many of the packages that were needed were behind the versions needed. So I was uninstalling the packages and compiling from source code, which is fine up to a point. I spent a couple of weeks on it and then out of frustration looked for something more suitable, for me that was Ubuntu server 8.04 LTS. Virtually all of the dependancies needed were available directly from ubuntu and there was an install script available that downloads everything you need to build Centreon and Nagios. Simon Finch | ESM Specialist Ground Floor, 4-16 Montgomery St, Kogarah NSW 2217 (+61 2 9952 2574 7 +61 412 256 814 Email: finchs at stgeorge.com.au www.stgeorge.com.au ______________________________________ St.George Bank IT - Good with people. Good with monitoring. ********************************************************************** ***** IMPORTANT INFORMATION ***** This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/xxx Size: 1753 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: applicaton/octect-stream Size: 6093 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Mon Apr 13 07:01:02 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Mon, 13 Apr 2009 10:31:02 +0530 Subject: Fwd: Monitor netstat connection states using nagios. In-Reply-To: <25251aec0904100236ne545d27qb3dd712c6fc5352c@mail.gmail.com> References: <25251aec0904100038l5171a097l2ade9bae2850e567@mail.gmail.com> <20090410.rrm.11728800@www.zarrelli.org> <25251aec0904100236ne545d27qb3dd712c6fc5352c@mail.gmail.com> Message-ID: <25251aec0904122201g511d2d4dr81dbd94e78243349@mail.gmail.com> Hi All, I've tried all suggestions and there are not worked. Please find the files/permissions, provide any help would be appreciated SCRIPT ************************************************************************* #!/bin/sh STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 netstat -an | grep 80 > synport12 err=`cat synport12 | grep -i TIME_WAIT | wc -l |awk '{print $1}'` if [ $err -gt 0 ] then echo "WARNING - STATUS= TIME_WAIT port status on $HOSTNAME | "WARNING - STATUS=TIME_WAIT port status on $HOSTNAME exit $STATE_CRITICAL else echo "OK - The port is up and running NO established connections on $HOSTNAME" exit $STATE_OK fi ******************************************************************************* ON nagios server ******************* [nagios at lnx-nagios libexec]$ pwd /usr/local/nagios/libexec drwxrwxr-x 2 nagios nagios 4.0K Apr 9 18:37 . drwxrwxr-x 8 nagios nagios 4.0K Dec 26 12:43 .. -rwxr-xr-x 1 nagios nagios 53K Aug 7 2008 check_apt -rwxr-xr-x 1 nagios nagios 2.3K Aug 7 2008 check_breeze -rwxr-xr-x 1 nagios nagios 63K Aug 7 2008 check_by_ssh lrwxrwxrwx 1 root root 9 Aug 7 2008 check_clamd -> check_tcp -rwxr-xr-x 1 nagios nagios 38K Aug 7 2008 check_cluster -r-sr-xr-x 1 root nagios 65K Aug 7 2008 check_dhcp -rwxr-xr-x 1 nagios nagios 59K Aug 7 2008 check_dig -rwxr-xr-x 1 nagios nagios 89K Aug 7 2008 check_disk -rwxr-xr-x 1 nagios nagios 8.0K Aug 7 2008 check_disk_smb -rwxr-xr-x 1 nagios nagios 64K Aug 7 2008 check_dns -rwxr-xr-x 1 nagios nagios 34K Aug 7 2008 check_dummy -rwxr-xr-x 1 nagios nagios 3.1K Aug 7 2008 check_file_age -rwxr-xr-x 1 nagios nagios 6.3K Aug 7 2008 check_flexlm lrwxrwxrwx 1 root root 9 Aug 7 2008 check_ftp -> check_tcp -rwxr-xr-x 1 nagios nagios 141K Aug 7 2008 check_http -r-sr-xr-x 1 root nagios 71K Aug 7 2008 check_icmp -rwxr-xr-x 1 nagios nagios 43K Aug 7 2008 check_ide_smart -rwxr-xr-x 1 nagios nagios 15K Aug 7 2008 check_ifoperstatus -rwxr-xr-x 1 nagios nagios 13K Aug 7 2008 check_ifstatus lrwxrwxrwx 1 root root 9 Aug 7 2008 check_imap -> check_tcp -rwxr-xr-x 1 nagios nagios 7.3K Aug 7 2008 check_ircd lrwxrwxrwx 1 root root 9 Aug 7 2008 check_jabber -> check_tcp -rwxr-xr-x 1 nagios nagios 53K Aug 7 2008 check_ldap lrwxrwxrwx 1 root root 10 Aug 7 2008 check_ldaps -> check_ldap -rwxr-xr-x 1 nagios nagios 49K Aug 7 2008 check_load -rwxr-xr-x 1 nagios nagios 6.0K Aug 7 2008 check_log -rwxr-xr-x 1 nagios nagios 20K Aug 7 2008 check_mailq -rwxr-xr-x 1 nagios nagios 44K Aug 7 2008 check_mrtg -rwxr-xr-x 1 nagios nagios 43K Aug 7 2008 check_mrtgtraf -rwxr-xr-x 1 nagios nagios 63K Aug 7 2008 check_mysql -rwxr-xr-x 1 nagios nagios 59K Aug 7 2008 check_mysql_query -rwxr-xr-x 1 nagios nagios 50K Aug 7 2008 check_nagios lrwxrwxrwx 1 root root 9 Aug 7 2008 check_nntp -> check_tcp lrwxrwxrwx 1 root root 9 Aug 7 2008 check_nntps -> check_tcp -rwxr-xr-x 1 nagios nagios 53K Aug 8 2008 check_nrpe -rwxr-xr-x 1 nagios nagios 64K Aug 7 2008 check_nt -rwxr-xr-x 1 nagios nagios 67K Aug 7 2008 check_ntp -rwxr-xr-x 1 nagios nagios 61K Aug 7 2008 check_ntp_peer -rwxr-xr-x 1 nagios nagios 60K Aug 7 2008 check_ntp_time -rwxr-xr-x 1 nagios nagios 84K Aug 7 2008 check_nwstat -rwxr-xr-x 1 nagios nagios 8.3K Dec 17 14:22 check_oracle -rwxr-xr-x 1 nagios nagios 54K Aug 7 2008 check_overcr -rwxr-xr-x 1 nagios nagios 68K Aug 7 2008 check_ping lrwxrwxrwx 1 root root 9 Aug 7 2008 check_pop -> check_tcp -rwxr-xr-x 1 nagios nagios 67K Aug 7 2008 check_procs -rwxr-xr-x 1 nagios nagios 52K Aug 7 2008 check_real -rwxr-xr-x 1 nagios nagios 9.5K Aug 7 2008 check_rpc -rwxr-xr-x 1 nagios nagios 1.2K Aug 7 2008 check_sensors lrwxrwxrwx 1 root root 9 Aug 7 2008 check_simap -> check_tcp -rwxr-xr-x 1 nagios nagios 99K Aug 7 2008 check_smtp lrwxrwxrwx 1 root root 9 Aug 7 2008 check_spop -> check_tcp -rwxr-xr-x 1 nagios nagios 49K Aug 7 2008 check_ssh lrwxrwxrwx 1 root root 9 Aug 7 2008 check_ssmtp -> check_tcp -rwxr-xr-x 1 nagios nagios 52K Aug 7 2008 check_swap -rwxr-xr-x 1 nagios nagios 88K Aug 7 2008 check_tcp -rwxr-xr-x 1 nagios nagios 52K Aug 7 2008 check_time lrwxrwxrwx 1 root root 9 Aug 7 2008 check_udp -> check_tcp -rwxr-xr-x 1 nagios nagios 59K Aug 7 2008 check_ups -rwxr-xr-x 1 nagios nagios 48K Aug 7 2008 check_users -rwxr-xr-x 1 nagios nagios 3.0K Aug 7 2008 check_wave -rwxr-xr-x 1 nagios nagios 49K Aug 7 2008 negate -rwxr-xr-x 1 nagios nagios 86K Aug 8 2008 nrpe -rwxr-xr-x 1 nagios nagios 7.1K Aug 8 2008 nrpe.cfg -rwxr-xr-x 1 nagios nagios 47K Aug 7 2008 urlize -rwxr-xr-x 1 nagios nagios 2.1K Aug 7 2008 utils.pm -rwxr-xr-x 1 nagios nagios 862 Aug 7 2008 utils.sh On Nagios client ******************** [nagios at airlin libexec]$ pwd /usr/local/nagios/libexec total 2828 -rwxr-xr-x 1 root root 169277 Jul 28 2008 check_apt -rwxr-xr-x 1 root root 2265 Jul 28 2008 check_breeze -rwxr-xr-x 1 root root 57891 Jul 28 2008 check_by_ssh lrwxrwxrwx 1 root root 9 Jul 28 2008 check_clamd -> check_tcp -rwxr-xr-x 1 root root 34870 Jul 28 2008 check_cluster -r-sr-xr-x 1 root root 59896 Jul 28 2008 check_dhcp -rwxr-xr-x 1 root root 53316 Jul 28 2008 check_dig -rwxr-xr-x 1 root root 202136 Jul 28 2008 check_disk -rwxr-xr-x 1 root root 8163 Jul 28 2008 check_disk_smb -rwxr-xr-x 1 root root 58043 Jul 28 2008 check_dns -rwxr-xr-x 1 root root 30895 Jul 28 2008 check_dummy -rwxr-xr-x 1 root root 3143 Jul 28 2008 check_file_age -rwxr-xr-x 1 root root 6395 Jul 28 2008 check_flexlm lrwxrwxrwx 1 root root 9 Jul 28 2008 check_ftp -> check_tcp -rwxr-xr-x 1 root root 257943 Jul 28 2008 check_http -r-sr-xr-x 1 root root 64965 Jul 28 2008 check_icmp -rwxr-xr-x 1 root root 39055 Jul 28 2008 check_ide_smart -rwxr-xr-x 1 root root 15310 Jul 28 2008 check_ifoperstatus -rwxr-xr-x 1 root root 12853 Jul 28 2008 check_ifstatus lrwxrwxrwx 1 root root 9 Jul 28 2008 check_imap -> check_tcp -rwxr-xr-x 1 root root 7429 Jul 28 2008 check_ircd lrwxrwxrwx 1 root root 9 Jul 28 2008 check_jabber -> check_tcp -rwxr-xr-x 1 root root 48777 Jul 28 2008 check_ldap lrwxrwxrwx 1 root root 10 Jul 28 2008 check_ldaps -> check_ldap -rwxr-xr-x 1 root root 43795 Jul 28 2008 check_load -rwxr-xr-x 1 root root 6062 Jul 28 2008 check_log -rwxr-xr-x 1 root root 20367 Jul 28 2008 check_mailq -rwxr-xr-x 1 root root 40486 Jul 28 2008 check_mrtg -rwxr-xr-x 1 root root 39055 Jul 28 2008 check_mrtgtraf -rwxr-xr-x 1 root root 45592 Jul 28 2008 check_nagios -rwxr-xr-x 1 nagios nagios 444 Apr 10 12:37 check_netstat lrwxrwxrwx 1 root root 9 Jul 28 2008 check_nntp -> check_tcp lrwxrwxrwx 1 root root 9 Jul 28 2008 check_nntps -> check_tcp -rwxr-xr-x 1 nagios nagios 55872 Jul 28 2008 check_nrpe -rwxr-xr-x 1 root root 57239 Jul 28 2008 check_nt -rwxr-xr-x 1 root root 60513 Jul 28 2008 check_ntp -rwxr-xr-x 1 root root 55544 Jul 28 2008 check_ntp_peer -rwxr-xr-x 1 root root 53548 Jul 28 2008 check_ntp_time -rwxr-xr-x 1 root root 75669 Jul 28 2008 check_nwstat -rwxr-xr-x 1 root root 8366 Jul 28 2008 check_oracle -rwxr-xr-x 1 root root 49971 Jul 28 2008 check_overcr -rwxr-xr-x 1 root root 47093 Jul 28 2008 check_pgsql -rwxr-xr-x 1 root root 62651 Jul 28 2008 check_ping lrwxrwxrwx 1 root root 9 Jul 28 2008 check_pop -> check_tcp -rwxr-xr-x 1 root root 61001 Jul 28 2008 check_procs -rwxr-xr-x 1 root root 47725 Jul 28 2008 check_real -rwxr-xr-x 1 root root 9707 Jul 28 2008 check_rpc -rwxr-xr-x 1 root root 1176 Jul 28 2008 check_sensors lrwxrwxrwx 1 root root 9 Jul 28 2008 check_simap -> check_tcp -rwxr-xr-x 1 root root 215773 Jul 28 2008 check_smtp lrwxrwxrwx 1 root root 9 Jul 28 2008 check_spop -> check_tcp -rwxr-xr-x 1 root root 44229 Jul 28 2008 check_ssh lrwxrwxrwx 1 root root 9 Jul 28 2008 check_ssmtp -> check_tcp -rwxr-xr-x 1 root root 47371 Jul 28 2008 check_swap -rwxr-xr-x 1 root root 82929 Jul 28 2008 check_tcp -rwxr-xr-x 1 root root 47012 Jul 28 2008 check_time lrwxrwxrwx 1 root root 9 Jul 28 2008 check_udp -> check_tcp -rwxr-xr-x 1 root root 54897 Jul 28 2008 check_ups -rwxr-xr-x 1 root root 42488 Jul 28 2008 check_users -rwxr-xr-x 1 root root 3019 Jul 28 2008 check_wave -rwxr-xr-x 1 root root 44410 Jul 28 2008 negate -rwxr-xr-x 1 nagios nagios 83120 Jul 28 2008 nrpe -rwxrwxrwx 1 nagios nagios 8336 Apr 9 14:34 nrpe.cfg -rw-r--r-- 1 root root 484 Apr 9 17:50 synport -rw-r--r-- 1 nagios nagios 162 Apr 10 13:59 synport12 -rwxr-xr-x 1 root root 41991 Jul 28 2008 urlize -rwxr-xr-x 1 root root 2070 Jul 28 2008 utils.pm -rwxr-xr-x 1 root root 862 Jul 28 2008 utils.sh On nagios server ******************* [nagios at lnx-nagios xinetd.d]$ pwd /etc/xinetd.d [nagios at lnx-nagios xinetd.d]$ cat nrpe # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios groups = yes server = /usr/local/nagios/libexec/nrpe server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd log_on_failure += USERID disable = no # Change this to your primary Nagios server only_from = 10.10.13.34 } Thanks for your patience -Shankar On Fri, Apr 10, 2009 at 1:28 PM, Giorgio Zarrelli wrote: > Hi, > > It won't work this way. If you define > > nagios ALL=/bin/netstat > > The script will hang, waiting for you to input a password for the user. > Modify > it to this string: > > nagios ALL=NOPASSWD:/bin/netstat > > Please, send me a copy of your script an ls -lah of your plugin libexec > directory content and a > > cat /etc/xinetd.d/nrpe > > Giorgio > > > asam30 at gmail.com scritto: > > > > Hi Giorgio, > > > > I tried all the ways to fix the problem but still no luck. Do not know > how > > to run the custom scripts, i will explain in detail here, please someone > > guide me here, > > > > Nagios server: > > > > Running the below command, this command will go to nagios client > > (172.16.17.18) and execute check_netstat script. The netstat script will > > check for port 80 listen status also if there are any TIME_WAIT > connections > > happens, then it should alert us (WARNING - STATUS= TIME_WAIT port status > on > > airlin | WARNING - STATUS=TIME_WAIT port status on airlin). For testing > I > > made some connections happend to be listen on port 80 and as TIME_WAIT > > status. But it still reports as (OK, which means this is reporting > > incorrectly) > > > > [nagios at lnx-nagios ~]$ /usr/local/nagios/libexec/check_nrpe -H > 172.16.17.18 > > -c check_netstat > > OK - The port is up and running NO established connections on airlin > > > > > > on Nagios client:, > > > > I executed below command here, and this reports exactly correct as there > are > > some TIME_WAIT listening on port 80 > > > > [nagios at airlin nagios]$ netstat -an | grep 80 > > tcp 0 0 0.0.0.0:80 0.0.0.0:* > LISTEN > > tcp 0 0 172.16.17.18:80 10.10.19.85:2293 > > TIME_WAIT > > > > [nagios at airlin nagios]$ /usr/local/nagios/libexec/check_netstat > > WARNING - STATUS= TIME_WAIT port status on airlin | WARNING - > > STATUS=TIME_WAIT port status on airlin. > > > > The same warning message should appear when I execute first command on > > nagios server but it reports incorrectly as (OK, no port status).... > > > > I am running above commands as nagios user because this as preivileges to > > run nrpe. > > > > the check_nrpe , nrpe , check_netstat owned by nagios:nagios on both the > > servers. > > > > in /etc/sudoers file I wrote below line on both the servers > > > > nagios ALL=/bin/netstat > > > > and > > > > [root at airlin libexec]# sudo -u nagios sudo -l > > Password: > > User nagios may run the following commands on this host: > > (root) /bin/netstat > > > > in the check_netstat script I wrote the netstat command as, > > > > netstat -an | grep 80 > synport12 > > > > should I add sudo here??? > > > > Please help your valuable suggestions...... > > thanks > > > > > > > > > > > > > > > > > > On Thu, Apr 9, 2009 at 8:52 PM, Giorgio Zarrelli >wrote: > > > > > Hi > > > > > > As I told before, that netstat command won't work "out of the box", > with an > > > unprivileged user. > > > > > > Giorgio > > > > > > Marc Powell (marc at ena.com) scritto: > > > > > > > > > > > > On Apr 9, 2009, at 8:26 AM, asam30 at gmail.com wrote: > > > > > > > > > Hi, > > > > > > > > > > I did copy the scipt to the remote host as check_netstat and used > > > > > check_nrpe method to excute from nagios server. It looks when > > > > > executing the command on remote server works well, > > > > > > > > > > [root at airlin libexec]# /usr/local/nagios/libexec/check_netstat > > > > > WARNING - STATUS= TIME_WAIT port status on airlin | WARNING - > > > > > STATUS=TIME_WAIT port status on airlin > > > > > > > > You're testing as root here. Test as the user nrpe runs as. It could > > > > very well be a difference in privileges... > > > > > > > > -- > > > > Marc > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > This SF.net email is sponsored by: > > > > High Quality Requirements in a Collaborative Environment. > > > > Download a free trial of Rational Requirements Composer Now! > > > > http://p.sf.net/sfu/www-ibm-com > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to > /dev/null > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > This SF.net email is sponsored by: > > > High Quality Requirements in a Collaborative Environment. > > > Download a free trial of Rational Requirements Composer Now! > > > http://p.sf.net/sfu/www-ibm-com > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > -- > > Shankar Asam > > > > -- Shankar Asam -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mnmis at hotmail.com Mon Apr 13 07:09:43 2009 From: mnmis at hotmail.com (mnmis at hotmail.com) Date: Sun, 12 Apr 2009 22:09:43 -0700 Subject: [SPAM] Vacation reply In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ledondo2000 at gmail.com Mon Apr 13 08:57:45 2009 From: ledondo2000 at gmail.com (Mika Chu) Date: Mon, 13 Apr 2009 14:57:45 +0800 Subject: how to let nagios think host is online Message-ID: Hi all, I have one host need to be monitoring, but it is not allow ping. So the nagios plug-in check_ping can not work. Host line in the web page is red. How can I let nagios think it is OK? I checked the manual, about host definition, check_command This directive is used to specify the *short name* of the command that should be used to check if the host is up or down. Typically, this command would try and ping the host to see if it is "alive". The command must return a status of OK (0) or Nagios will assume the host is down. If you leave this argument blank, the host will *not* be actively checked. Thus, Nagios will likely always assume the host is up (it may show up as being in a "PENDING" state in the web interface). This is useful if you are monitoring printers or other devices that are frequently turned off. The maximum amount of time that the notification command can run is controlled by the host_check_timeout option. sorry, I don't understand what should I do. Please advice me. Thanks a lot! -- --- Mika Chu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vmanojv at rediffmail.com Mon Apr 13 10:17:29 2009 From: vmanojv at rediffmail.com (Nair) Date: 13 Apr 2009 08:17:29 -0000 Subject: Service Dependency Config Message-ID: <20090413081729.9078.qmail@f5mail-237-205.rediffmail.com> Friends, I need to define mutal dependancy between two web services in different hosts. PLease see the config below which end up throwing error: ----------------------- Error: A circular execution dependency (which could result in a deadlock) exists for service 'www' on host 'host2'! ----------------------- # Service Dependency Definition for cfservd define servicedependency{ host_name host1 service_description www dependent_host_name host2 dependent_service_description www execution_failure_criteria o notification_failure_criteria c,p } define servicedependency{ host_name host2 service_description www dependent_host_name host1 dependent_service_description www execution_failure_criteria o notification_failure_criteria c,p } Please share your thoughts for getting the config right. Thank you in advance ? Nair -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cloved at gmail.com Mon Apr 13 10:43:46 2009 From: cloved at gmail.com (Lei Chen) Date: Mon, 13 Apr 2009 16:43:46 +0800 Subject: status map In-Reply-To: <804329.8333.qm@web56807.mail.re3.yahoo.com> References: <804329.8333.qm@web56807.mail.re3.yahoo.com> Message-ID: 2009/4/9 Genet Tesfaye : > Hi All, > > i have installed and configured nagios 3.0.6 on SUSE linux.i plan to monitor > Servers, Printers and Switches for which i have added samples. i need help > on how to configure: > 1. if i have more than two partitions on windows machine. i have managed to > monitor c and D partitions but could't for the additional partition why not other partitions, can u provide your conf files? > 2. i have a problem with the status map. clicking on it brings an error > "Object Not found" status map need gd support, download and install gd first, then re configure/make and cp status map cgi to the proper position. > > Thank you very much > GT from Ethiopia > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cloved at gmail.com Mon Apr 13 10:52:58 2009 From: cloved at gmail.com (Lei Chen) Date: Mon, 13 Apr 2009 16:52:58 +0800 Subject: Integrating host notes into Nagios html... In-Reply-To: <49DF5B8C.4040701@gmail.com> References: <49DF5B8C.4040701@gmail.com> Message-ID: I think that action_url can do that. Such as: action_url /some_dir/some_pages?host=$HOSTNAME$&some_key=some_value 2009/4/10 Andrew Davis : > I'm thinking about using something like sysreport to generate info about our > hosts. It (and other tools like it) have the ability to output to html. To > me that makes it somewhat logical to add a per-host html link into Nagios > (clicking the host name would take you to a page that shows the detailed > info). Have any of you tried this or something similar? Care to share your > experience or what you edited, etc? > > -- > > > A. Davis > Email: nccomp at gmail.com > > "There is no limit to what a man can accomplish > if he doesn't care who gets the credit." - Ronald Reagan > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cloved at gmail.com Mon Apr 13 11:05:18 2009 From: cloved at gmail.com (Lei Chen) Date: Mon, 13 Apr 2009 17:05:18 +0800 Subject: how to let nagios think host is online In-Reply-To: References: Message-ID: You can use other check_command instead of check_ping. Such as check_tcp, check_http or other. For example: This is a router, not permmit ping, but it's port 23 is open. define host{ use generic-switch ; Inherit default values from a template host_name qz-gw alias qz-gw address x.x.x.x parents sjhl-gw icon_image switch.gif icon_image_alt Switch vrml_image switch.gif statusmap_image switch.gd2 hostgroups gws check_command check_tcp!23 } 2009/4/13 Mika Chu : > Hi all, > I have one host need to be monitoring, but it is not allow ping. So the > nagios plug-in check_ping can not work. Host line in the web page is red. > How can I let nagios think it is OK? > I checked the manual, about host definition, check_command > > This directive is used to specify the short name of the command that should > be used to check if the host is up or down. Typically, this command would > try and ping the host to see if it is "alive". The command must return a > status of OK (0) or Nagios will assume the host is down. If you leave this > argument blank, the host will not be actively checked. Thus, Nagios will > likely always assume the host is up (it may show up as being in a "PENDING" > state in the web interface). This is useful if you are monitoring printers > or other devices that are frequently turned off. The maximum amount of time > that the notification command can run is controlled by the > host_check_timeout option. > > sorry, I don't understand what should I do. Please advice me. > > Thanks a lot! > > -- > --- > Mika Chu > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cloved at gmail.com Mon Apr 13 11:09:42 2009 From: cloved at gmail.com (Lei Chen) Date: Mon, 13 Apr 2009 17:09:42 +0800 Subject: Service Dependency Config In-Reply-To: <20090413081729.9078.qmail@f5mail-237-205.rediffmail.com> References: <20090413081729.9078.qmail@f5mail-237-205.rediffmail.com> Message-ID: Not permmit a circular execution dependency here. That may be like this: define servicedependency{ host_name host1 service_description www dependent_host_name host3 dependent_service_description www execution_failure_criteria o notification_failure_criteria c,p } define servicedependency{ host_name host2 service_description www dependent_host_name host3 dependent_service_description www execution_failure_criteria o notification_failure_criteria c,p } Or: define servicedependency{ host_name host1 service_description www dependent_host_name host1 dependent_service_description ping execution_failure_criteria o notification_failure_criteria c,p } define servicedependency{ host_name host2 service_description www dependent_host_name host1 dependent_service_description ping execution_failure_criteria o notification_failure_criteria c,p } 2009/4/13 Nair : > Friends, > I need to define mutal dependancy between two web services in different > hosts. > > PLease see the config below which end up throwing error: > ----------------------- > Error: A circular execution dependency (which could result in a deadlock) > exists for service 'www' on host 'host2'! > ----------------------- > # Service Dependency Definition for cfservd > define servicedependency{ > host_name host1 > service_description www > dependent_host_name host2 > dependent_service_description www > execution_failure_criteria o > notification_failure_criteria c,p > } > > define servicedependency{ > host_name host2 > service_description www > dependent_host_name host1 > dependent_service_description www > execution_failure_criteria o > notification_failure_criteria c,p > } > > Please share your thoughts for getting the config right. > > Thank you in advance > Nair > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Apr 13 11:22:50 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 13 Apr 2009 10:22:50 +0100 Subject: Service Dependency Config In-Reply-To: <20090413081729.9078.qmail@f5mail-237-205.rediffmail.com> References: <20090413081729.9078.qmail@f5mail-237-205.rediffmail.com> Message-ID: <765d77c80904130222h429ab9a2rf57d1663934b7ae8@mail.gmail.com> 2009/4/13 Nair : > Friends, > I need to define mutal dependancy between two web services in different > hosts. Define each as individual services in the usual way, then use Nagios Business Process Addons http://nagiosbp.projects.nagiosforge.org/ to define a service view which is dependent on both of those services. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vmanojv at rediffmail.com Mon Apr 13 15:37:33 2009 From: vmanojv at rediffmail.com (Nair) Date: 13 Apr 2009 13:37:33 -0000 Subject: Service Dependency Config Message-ID: <20090413133733.51845.qmail@f5mail-237-214.rediffmail.com> Thanks you, Lei. But, I have two web servers in cluster. Webserver may be online in any one of the servers. So I have defined www services in web servers - host1 and host2. And dont need an alert when www is online in any one of the servers. Is there any config to support this senario. Thank you Nair. On Mon, 13 Apr 2009 Lei Chen wrote : >Not permmit a circular execution dependency here. > >That may be like this: > >define servicedependency{ >host_name host1 >service_description www >dependent_host_name host3 >dependent_service_description www >execution_failure_criteria o >notification_failure_criteria c,p >} > >define servicedependency{ >host_name host2 >service_description www >dependent_host_name host3 >dependent_service_description www >execution_failure_criteria o >notification_failure_criteria c,p >} > >Or: >define servicedependency{ >host_name host1 >service_description www >dependent_host_name host1 >dependent_service_description ping >execution_failure_criteria o >notification_failure_criteria c,p >} > >define servicedependency{ >host_name host2 >service_description www >dependent_host_name host1 >dependent_service_description ping >execution_failure_criteria o >notification_failure_criteria c,p >} > > >2009/4/13 Nair : > > Friends, > > I need to define mutal dependancy between two web services in different > > hosts. > > > > PLease see the config below which end up throwing error: > > ----------------------- > > Error: A circular execution dependency (which could result in a deadlock) > > exists for service 'www' on host 'host2'! > > ----------------------- > > # Service Dependency Definition for cfservd > > define servicedependency{ > > host_name host1 > > service_description www > > dependent_host_name host2 > > dependent_service_description www > > execution_failure_criteria o > > notification_failure_criteria c,p > > } > > > > define servicedependency{ > > host_name host2 > > service_description www > > dependent_host_name host1 > > dependent_service_description www > > execution_failure_criteria o > > notification_failure_criteria c,p > > } > > > > Please share your thoughts for getting the config right. > > > > Thank you in advance > > Nair > > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > >-- >Thanks, >Chenlei & ????++ >MSN Messenger: chnl at 163.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 13 15:59:34 2009 From: marc at ena.com (Marc Powell) Date: Mon, 13 Apr 2009 08:59:34 -0500 Subject: Service Dependency Config In-Reply-To: <20090413133733.51845.qmail@f5mail-237-214.rediffmail.com> References: <20090413133733.51845.qmail@f5mail-237-214.rediffmail.com> Message-ID: <69702060-536D-4E1D-BCCE-934574585A29@ena.com> On Apr 13, 2009, at 8:37 AM, Nair wrote: > Thanks you, Lei. But, I have two web servers in cluster. Webserver > may be online in any one of the servers. So I have defined www > services in web servers - host1 and host2. And dont need an alert > when www is online in any one of the servers. > It sounds like you want to use the check_cluster plugin, not service dependencies... -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mbogdanov at ncport.ru Mon Apr 13 16:12:14 2009 From: mbogdanov at ncport.ru (Mihail N Bogdanov) Date: Mon, 13 Apr 2009 18:12:14 +0400 Subject: i want post in nagios-users mail list Message-ID: <49E3483E.4040405@ncport.ru> mbogdanov at ncport.ru -- Mihail N. Bogdanov, Programmer of Software Design Dept., mbogdanov at ncport.ru "Newcom Port" JSC ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at gridshield.net Mon Apr 13 17:02:59 2009 From: marc at gridshield.net (Marc DeTrano) Date: Mon, 13 Apr 2009 09:02:59 -0600 Subject: Name or service not known Message-ID: <49E35423.9070004@gridshield.net> On Wednesday 08 April 2009 14:41:27 Thierry Lavall?e wrote: > > Hi, > > I am getting the following about 50 times per day: > > > > HTTP CRITICAL 04-08-2009 09:37:29 0d 0h 1m 50s 1/4 Name or service not > > known SSH UNKNOWN 04-08-2009 09:34:39 0d 0h 4m 40s 1/4 Usage:check_ssh > > [-46] [-t ] [-r ] [-p ] > > > > I am somewhat at lost here... > > Can anyone help with this? > I'd recommend to first check your DNS setup on the machine. If that's good, monitor your DNS servers. Marc Gridshield, S.A. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Apr 13 17:26:30 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 13 Apr 2009 16:26:30 +0100 Subject: Service Dependency Config In-Reply-To: <20090413133733.51845.qmail@f5mail-237-214.rediffmail.com> References: <20090413133733.51845.qmail@f5mail-237-214.rediffmail.com> Message-ID: <765d77c80904130826y4f47f7a7r4f19153bec118ccd@mail.gmail.com> 2009/4/13 Nair : > Thanks you, Lei. But, I have two web servers in cluster. Webserver may be > online in any one of the servers. So I have defined www services in web > servers - host1 and host2. And dont need an alert when www is online in any > one of the servers. > > Is there any config to support this senario. > > Thank you > Nair. Another option is you could define the cluster address as a host in its own right, and specify host1 and host2 as parents. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cbeattie at geninfo.com Mon Apr 13 17:29:48 2009 From: cbeattie at geninfo.com (Chris Beattie) Date: Mon, 13 Apr 2009 11:29:48 -0400 Subject: Compliance: Re: check_snmp memory leak In-Reply-To: References: Message-ID: <49E35A6C.3040603@geninfo.com> jmoseley at corp.xanadoo.com wrote: > > The real question, though, is since you're using Cent OS, why not use the > Nagios RPM's available via yum repository? It makes upgrading and keeping > track of dependencies a breeze. A long time ago I got frustrated with a package provider installing Nagios in a different location. I'd been compiling Nagios from source since the NetSaint days, so I just went back to doing what I'd always done. That's worked on Red Hat 7.x, various Fedora versions, RHEL4, CentOS 5.x, and Debian so far. I do use the disto provider's mechanisms to take care of Nagios' dependencies, however. That does make life much easier than the RPM Hell days! -- Chris Beattie ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark at suso.org Mon Apr 13 13:45:59 2009 From: mark at suso.org (Mark Krenz) Date: Mon, 13 Apr 2009 11:45:59 +0000 Subject: check_snmp memory leak In-Reply-To: References: <20090412142008.GT4592@arvo.suso.org> Message-ID: <20090413114559.GC8147@arvo.suso.org> Think your so smart, then why doesn't the Fedora quickinstall in the Nagios manual just tell you to do that. ;-) Doh! On Sun, Apr 12, 2009 at 11:26:36PM GMT, jmoseley at corp.xanadoo.com [jmoseley at corp.xanadoo.com] said the following: > > The real question, though, is since you're using Cent OS, why not use the > Nagios RPM's available via yum repository? It makes upgrading and keeping > track of dependencies a breeze. > > Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3 > system using the exact options that were found in the RPM spec file. I > ended up with a nagios binary that was twice as large as the one that came > in the RPM package and the version I compiled myself ran using more memory > and processor resources than the RPM version. The difference was probably > the compiler flags I was using were not optimized for my (or any RHEL) > system. > > Nine times out of ten, using yum rpm's will ultimately end up yielding > better results when factoring in system performce, upgrades, etc - and save > tons of time and headaches. That's why you're using RHEL, right? Yes, I > still have to make RPM's via compilation of source RPM's when the yum > repository version doesn't include the feature's I need. For example, I > have to roll my own Postfix because I need mysql support. > > > James Moseley > > > > > > Mark Krenz > > To > 04/12/2009 09:20 nagios-users at lists.sourceforge.net > AM cc > > Subject > Re: [Nagios-users] check_snmp > memory leak > > > > > > > > > > > > Nevermind, figured it out. I just tried recompiling without the > --enable-embedded-perl option and that seems to have fixed it. Now the > memory usage is staying at just a couple MB. > > Not sure why check_snmp was the only check that seemed to aggravate it > though. > -- Mark S. Krenz IT Director Suso Technology Services, Inc. http://suso.org/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 13 17:54:59 2009 From: marc at ena.com (Marc Powell) Date: Mon, 13 Apr 2009 10:54:59 -0500 Subject: i want post in nagios-users mail list In-Reply-To: <49E3483E.4040405@ncport.ru> References: <49E3483E.4040405@ncport.ru> Message-ID: Error -3324: Access Granted On Apr 13, 2009, at 9:12 AM, Mihail N Bogdanov wrote: > mbogdanov at ncport.ru ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dermoth at aei.ca Mon Apr 13 18:13:25 2009 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Mon, 13 Apr 2009 12:13:25 -0400 Subject: check_snmp memory leak In-Reply-To: References: Message-ID: <49E364A5.6010803@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/04/09 07:26 PM, jmoseley at corp.xanadoo.com wrote: > You could have also just disabled the embedded perl interpreter in the > plugin itself. By disabling the embedded perl function, your load and > memory usage will certainly be higher. > > The real question, though, is since you're using Cent OS, why not use the > Nagios RPM's available via yum repository? It makes upgrading and keeping > track of dependencies a breeze. > > Not sure what the problem was, but I compiled Nagios 3.0.6 on a RHEL 3 > system using the exact options that were found in the RPM spec file. I > ended up with a nagios binary that was twice as large as the one that came > in the RPM package and the version I compiled myself ran using more memory > and processor resources than the RPM version. The difference was probably > the compiler flags I was using were not optimized for my (or any RHEL) > system. Are you sure your nagios binaries have been stripped? > $ ls -lh /usr/src/nagios-3.0.1-cvs/base/nagios /usr/local/nagios/bin/nagios > -rwxrwxr-- 1 nagios nagios 1.5M 2008-05-06 11:15 /usr/local/nagios/bin/nagios* > -rwxr-xr-x 1 user user 2.1M 2008-05-06 10:08 /usr/src/nagios-3.0.1-cvs/base/nagios* > $ file /usr/src/nagios-3.0.1-cvs/base/nagios /usr/local/nagios/bin/nagios > /usr/src/nagios-3.0.1-cvs/base/nagios: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped > /usr/local/nagios/bin/nagios: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped The memory and processor (system time) is directly related to the size of the running process (which includes executable image size). Every time Nagios executes a check it has to fork two or three times (depending on configuration) and the kernel has to map/copy the executable memory for the new processes. Performance degradation can become even worse on systems that does not support copy-on-write for forked processes as they perform a full copy of the process memory during forks only to free it seconds later. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJ42Sl6dZ+Kt5BchYRAkMpAKCZTMJLOmfelHxjRfwOcV3qfYyrIACeMwaC 8u+QBWjmHfSjOvcYg3pQhK4= =pL0b -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jimmyjose2980 at gmail.com Mon Apr 13 20:19:37 2009 From: jimmyjose2980 at gmail.com (Jimmyboy) Date: Mon, 13 Apr 2009 23:49:37 +0530 Subject: Apache Server configuration for Nagios 3.0 Message-ID: Hi All, I am following the Quickstart Guide for installing NAGIOS using http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. One of the prerequisites is Apache2, which I installed, and was successful in getting "*It Works!!"* for http://127.0.0.1. However, I am stuck at point 5) Configure the Web Interface, *make install-webconf*. *When this command is issued, this is what I get*. /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf /usr/bin/install: cannot create regular file '/etc/httpd/conf.d/nagios.conf': No such file or directory make: *** [install-webconf] Error 1 Prefix for Apache: /etc/apache2 I believe the httpd.conf file and a few others also need to be edited for Nagios. Can some please guide me through this? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jimmyjose2980 at gmail.com Mon Apr 13 20:25:12 2009 From: jimmyjose2980 at gmail.com (Jimmyboy) Date: Mon, 13 Apr 2009 23:55:12 +0530 Subject: Fwd: Apache Server configuration for Nagios 3.0 In-Reply-To: References: Message-ID: Hi, On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I understand that /etc/apache2/*apache2.conf* is the most important file. Though I have installed Apache in */etc/apache2* location, I do not have apache2.conf file as mentioned in the site. However, when I stop/start the Apache service using the command '/etc/apache2/bin/apachectl -k stop/start' respectively, and check http://127.0.0.1 and ps -A | grep httpd, the results are OK. Thanks, Jim =-=-=-=-= ---------- Forwarded message ---------- From: Jimmyboy Date: Mon, Apr 13, 2009 at 11:49 PM Subject: Apache Server configuration for Nagios 3.0 To: nagios-users at lists.sourceforge.net Hi All, I am following the Quickstart Guide for installing NAGIOS using http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. One of the prerequisites is Apache2, which I installed, and was successful in getting "*It Works!!"* for http://127.0.0.1. However, I am stuck at point 5) Configure the Web Interface, *make install-webconf*. *When this command is issued, this is what I get*. /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf /usr/bin/install: cannot create regular file '/etc/httpd/conf.d/nagios.conf': No such file or directory make: *** [install-webconf] Error 1 Prefix for Apache: /etc/apache2 I believe the httpd.conf file and a few others also need to be edited for Nagios. Can some please guide me through this? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marco.tirado at gmail.com Mon Apr 13 21:46:56 2009 From: marco.tirado at gmail.com (Marco Tirado) Date: Mon, 13 Apr 2009 21:46:56 +0200 Subject: Integrating host notes into Nagios html... In-Reply-To: References: <49DF5B8C.4040701@gmail.com> Message-ID: Actually it is the notes_url you are interested in, this is a variable you can set in the host definition. The action url is normally used to display extra actions for a host, this is normally a pnp graph with the host performance data from pnp4nagios, nagiosgraph or some other graphing plugin. >From the nagios documentation: *notes_url: This variable is used to define an optional URL that can be used to provide more information about the host. If you specify an URL, you will see a red folder icon in the CGIs (when you are viewing host information) that links to the URL you specify here. Any valid URL can be used. If you plan on using relative paths, the base path will the the same as what is used to access the CGIs (i.e. **/cgi-bin/nagios/). This can be very useful if you want to make detailed information on the host, emergency contact methods, etc. available to other support staff. * //Marco 2009/4/13 Lei Chen > I think that action_url can do that. > Such as: > action_url /some_dir/some_pages?host=$HOSTNAME$&some_key=some_value > > 2009/4/10 Andrew Davis : > > I'm thinking about using something like sysreport to generate info about > our > > hosts. It (and other tools like it) have the ability to output to html. > To > > me that makes it somewhat logical to add a per-host html link into Nagios > > (clicking the host name would take you to a page that shows the detailed > > info). Have any of you tried this or something similar? Care to share > your > > experience or what you edited, etc? > > > > -- > > > > > > A. Davis > > Email: nccomp at gmail.com > > > > "There is no limit to what a man can accomplish > > if he doesn't care who gets the credit." - Ronald Reagan > > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > Thanks, > Chenlei & ??++ > MSN Messenger: chnl at 163.com > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lraymond at weatherflow.com Mon Apr 13 22:49:16 2009 From: lraymond at weatherflow.com (lance raymond) Date: Mon, 13 Apr 2009 16:49:16 -0400 Subject: initial setups, hostgroup help requested Message-ID: <49E3A54C.1010407@weatherflow.com> An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 13 23:23:15 2009 From: marc at ena.com (Marc Powell) Date: Mon, 13 Apr 2009 16:23:15 -0500 Subject: initial setups, hostgroup help requested In-Reply-To: <49E3A54C.1010407@weatherflow.com> References: <49E3A54C.1010407@weatherflow.com> Message-ID: <9CCE7FC8-3A91-46C4-BACD-608E3B160BB8@ena.com> On Apr 13, 2009, at 3:49 PM, lance raymond wrote: > still getting things in order, and having a problem with adding my > 1st hostgroup. Side note, is there any kind of logging, or > debugging to see where a failure occurs? run /path/to/nagios -v /path/to/nagios.cfg > Ex. I add a new config file with the following basic line in the > main conf; > cfg_file=/usr/local/nagios/etc/hostgroups.cfg > The file has the following; > define hostgroup{ > hostgroup_name webservers > alias webservers > contact_groups sysadmins > members cs0 > } > > The alias I just made up, the contact group sysadmin's exists and > the member cs0 is one of my webservers. In the actual server.cfg > file for that server I have a line; > hostgroups webservers > > I don't know if that needs to be there as I am defining his as a > member in the hostgroups.cfg file. It needs to be in one or the other, not both; either on the members line in the hostgroup definition or the hostgroup specified in the service definition (I think the latter is more maintainable, IMHO). -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BChan at Shawcor.com Mon Apr 13 23:11:13 2009 From: BChan at Shawcor.com (Brian Chan) Date: Mon, 13 Apr 2009 17:11:13 -0400 Subject: Chan, Brian is out of the office. Message-ID: I will be out of the office starting 04/13/2009 and will not return until 04/14/2009. I will respond to your message when I return. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ti1ion2005 at gmail.com Mon Apr 13 23:56:00 2009 From: ti1ion2005 at gmail.com (David A.) Date: Mon, 13 Apr 2009 17:56:00 -0400 Subject: APC UPS Monitoring Setup. In-Reply-To: References: <4417b8200904121719p27b29e74ub651ba0f134e3e8b@mail.gmail.com> Message-ID: <4417b8200904131456h2cfac3ebw60d6d744b8bfda74@mail.gmail.com> Thank you, James. Turns out I had two problems. I edited my command definition in the commands.cfg file to match yours (I actually had that at one point, but changed it when I could not the plugin to work!) I then used the switch.cfg sample file to set up the host, group and service definitions. And that is when I discovered my second problem. After editing the nagios.cfg file to include a pointer to my ups monitoring config file I ran the verification command (/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg) and got the same darned WARNING (null value on line 48) message I have been getting all weekend! I don't know what made me do it this time, but I decided to check the nagios.cfg file for errors. I had an error in my pointer line -- used a "-" isntead of an "=". $%&@#$*! Sigh. All is well now. Thanks again. And I ran out this morning and picked up Wolfgang Barth's book on Nagios to assist me with the rest of my configurations. On Sun, Apr 12, 2009 at 10:26 PM, wrote: > Remember to CC the nagios users' list... From looking at the script, it > doesn't look like there are any options for setting critical/warning > thresholds for temperature, load, etc. It appears they are all predefined. > > In that case, the command configuration would look something like: > > define command { > command_name check_apcups > command_line $USER1$/check_snmp_apcups -H $HOSTADDRESS$ -C $ARG1$ > } > > The service check configuration would look like: > > define service{ use > generic-service host_name apc-smart-ups > service_description APC_STATUS check_command > check_apcups!public > } > > Obviously, you would replace 'public' above with whatever SNMP community > string you have setup... > > The host group and host defintions you supplied earlier should be fine. > Remember, this script is fairly elementary in that it appears it > predetermines all the critical/warning levels for things like temp, battery > capacity, input/output voltage, etc. So, there's nothing else you need to > do. It will either return an 'OK' value or generate a critical or warning > alert with the simple configuration above. Obviously, you could edit the > script to change any of the thresholds by hardcoding them into the script, > or you could modify it to accept warning/critical threshold limits as > variables. > > > > James Moseley > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Tue Apr 14 00:20:40 2009 From: jpratt at norwich.edu (James Pratt) Date: Mon, 13 Apr 2009 18:20:40 -0400 Subject: Fwd: Apache Server configuration for Nagios 3.0 In-Reply-To: References: Message-ID: <8147CCE3C4A8764DA9980125EE70E823B3CF6A@nuexchg.norwich.edu> Hi - sounds like your issue is that the generic make install in nagios src tries to drop a file called nagios.conf into httpd's (usually the default) location, /etc/httpd/conf.d/, which, appears does not exist on your server... If you can find what directory your apache uses for "/etc/httpd/conf.d/" you can manually copy and paste whatever is in nagios.conf (the one trying to be installed from nagios src dir) into your "/etc/httpd/conf/httpd.conf" (You can likely disregard the "apache2.conf" stuff - sounds like they used their own file naming, as the default is normally "httpd.conf") - Apache itself is very flexible, there are many ways to configure it - nagios simply guesses you are using redhat, so it tries to drop it's httpd config into /etc/httpd/conf.d) HTH ... Regards, jamie > -----Original Message----- > From: Jimmyboy [mailto:jimmyjose2980 at gmail.com] > Sent: Monday, April 13, 2009 2:25 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0 > > Hi, > > On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I > understand that /etc/apache2/apache2.conf is the most important file. > Though I have installed Apache in /etc/apache2 location, I do not have > apache2.conf file as mentioned in the site. > > However, when I stop/start the Apache service using the command > '/etc/apache2/bin/apachectl -k stop/start' respectively, and check > http://127.0.0.1 and ps -A | grep httpd, the results > are OK. > > Thanks, > Jim > > =-=-=-=-= > > > ---------- Forwarded message ---------- > From: Jimmyboy > Date: Mon, Apr 13, 2009 at 11:49 PM > Subject: Apache Server configuration for Nagios 3.0 > To: nagios-users at lists.sourceforge.net > > > > Hi All, > > I am following the Quickstart Guide for installing NAGIOS using > http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. > > One of the prerequisites is Apache2, which I installed, and was successful > in getting "It Works!!" for http://127.0.0.1 . > > However, I am stuck at point 5) Configure the Web Interface, make install- > webconf. > > When this command is issued, this is what I get. > /usr/bin/install -c -m 644 sample-config/httpd.conf > /etc/httpd/conf.d/nagios.conf > /usr/bin/install: cannot create regular file > '/etc/httpd/conf.d/nagios.conf': No such file or directory > make: *** [install-webconf] Error 1 > > Prefix for Apache: /etc/apache2 > > I believe the httpd.conf file and a few others also need to be edited for > Nagios. Can some please guide me through this? > > > Thanks, > Jim > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaiho8 at gmail.com Tue Apr 14 01:10:00 2009 From: jaiho8 at gmail.com (Jai Ram) Date: Mon, 13 Apr 2009 19:10:00 -0400 Subject: Files Missing While upgrading. Message-ID: <9cfff3f00904131610u43b39eaaobcd9f59ca4d62488@mail.gmail.com> Hello, I have upgraded nagios from version 2.8 to 3.0.6 on Solaris-10. When I was going through upgrade it has requested me for *statusmap.cgi*,*histogram.cgi * and *trends.cgi*, was not found so I copied it from version 2.8. ** Is this because the above three files belongs to Version 2.8, If so how would i get those three files for Nagios-3.0.6. I looked in to Nagios-3.0.6 and those three files are missing. So how do I compile them for Nagios-3.0.6** **When I try to access from webinterface below is the situation I am facing. When I click trends on the webinterface Host and Service State Trends Last Updated: Mon Apr 13 18:56:33 EDT 2009 Logged in as *nagiosadmin* - Notifications are disabled - Service checks are disabled When I click Alert Histogram on the webinterface Whoops! *Error: Could not read object configuration data!* Here are some things you should check in order to resolve this error: 1. Verify configuration options using the *-v* command-line option to check for errors. 2. Check the Nagios log file for messages relating to startup or status data errors. 3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file). Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org. and when I click Status Map on webinterface Whoops! *Error: Could not read object configuration data!* Here are some things you should check in order to resolve this error: 1. Verify configuration options using the *-v* command-line option to check for errors. 2. Check the Nagios log file for messages relating to startup or status data errors. 3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file). Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org Any help in this is highly appreciated. Thanks Jai. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 14 03:56:35 2009 From: marc at ena.com (Marc Powell) Date: Mon, 13 Apr 2009 20:56:35 -0500 Subject: Files Missing While upgrading. In-Reply-To: <9cfff3f00904131610u43b39eaaobcd9f59ca4d62488@mail.gmail.com> References: <9cfff3f00904131610u43b39eaaobcd9f59ca4d62488@mail.gmail.com> Message-ID: On Apr 13, 2009, at 6:10 PM, Jai Ram wrote: > Hello, > > I have upgraded nagios from version 2.8 to 3.0.6 on Solaris-10. When > I was going through upgrade it has requested me for > statusmap.cgi,histogram.cgi and trends.cgi, was not found so I > copied it from version 2.8. > > ** Is this because the above three files belongs to Version 2.8, If > so how would i get those three files for Nagios-3.0.6. I looked in > to Nagios-3.0.6 and those three files are missing. So how do I > compile them for Nagios-3.0.6** It's because the GD libs (devel) are not installed or were not found in standard locations. There's a FAQ entry for it but it looks like the FAQ is broken right now. Examine the output of ./configure or config.log for information and links. if the GD devel libraries are installed, you may need to pass their location to ./configure with -- --with-gd-lib=DIR sets location of the gd library --with-gd-inc=DIR sets location of the gd include files -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Steve.Onotsky at broadridge.com Tue Apr 14 03:49:42 2009 From: Steve.Onotsky at broadridge.com (Onotsky, Steve x55328) Date: Mon, 13 Apr 2009 21:49:42 -0400 Subject: i want post in nagios-users mail list In-Reply-To: <49E3483E.4040405@ncport.ru> References: <49E3483E.4040405@ncport.ru> Message-ID: <30A417B62E7EE448B3864ADC881CEFD60855B9B6@missemsa01.bsg.ad.adp.com> Mission accomplished. -----Original Message----- From: Mihail N Bogdanov [mailto:mbogdanov at ncport.ru] Sent: April 13, 2009 10:12 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] i want post in nagios-users mail list mbogdanov at ncport.ru -- Mihail N. Bogdanov, Programmer of Software Design Dept., mbogdanov at ncport.ru "Newcom Port" JSC This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohandas.k at tcs.com Tue Apr 14 06:37:45 2009 From: mohandas.k at tcs.com (mohandas.k at tcs.com) Date: Tue, 14 Apr 2009 10:07:45 +0530 Subject: Pppnp4nagios graph customization In-Reply-To: <1853954049.1213381239289409843.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <586023538.1213291239289390729.JavaMail.root@zimbra16-e3.priv.proxad.net> <1853954049.1213381239289409843.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: Hi Mad, I have checked and tried to changed php template file of " Swap Utilization" but am not able to generate colors in graph as per service status (i.e. Green,Yellow,Red as per service status ). Have attached php file and graph as well for your reference. obviously I have changed hostname in PHP file. I am not PHP expert to make changes in pnp template. Could you please suggest what changes need to make for the same ? Mohandas Kudva K ASE Tata Consultancy Services Cell:- +91 9619144048 Mailto: mohandas.k at tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ MAD 04/09/2009 08:33 PM To mohandas k cc nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Pppnp4nagios graph customization I managed to create some templates graphing in different colors according to the threshold defined with your services This will graph in green if the value is under the warning threshold, in yellow if it is between warning and critical threshold and red if it is beyond critical threshold or unknown... I don't know how to do this if the performance and the state are independent (for example if perf are the execution time of the check script...) Marc-Andr? ----- Mail Original ----- De: "mohandas k" ?: nagios-users at lists.sourceforge.net Envoy?: Jeudi 9 Avril 2009 15h30:05 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [Nagios-users] Pppnp4nagios graph customization Hi All, We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool (1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. By default we are getting following graph for locolhost free swap. I want to configure following requirements : (1) can we add more variable (i.e say "Total Swap" ) in graph ? (2) Can we create different-different color in graph for different-different status critical-> RED,OK->Green,Warnijng->Yellow ? (3) last question how can we change graph updation time interval (here it's showing as 20 Minutes) however in our service definition,it's 10 Minutes Following is default graph for your better understanding : =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00000F5E =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11215 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_swap.php.txt URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaushalshriyan at gmail.com Tue Apr 14 08:33:22 2009 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Tue, 14 Apr 2009 12:03:22 +0530 Subject: No notifications while restarting any services on remote host Message-ID: <6b16fb4c0904132333s19827858h7b6e865d13dd451f@mail.gmail.com> Hi, When i restart any services on the remote client For example tomcat application server running on port 8080. I dont get any notifications or alerts. Just want to understand the technique is it because of the normal_check_interval 5 configured in services.cfg and interval_length=60 defined in nagios.cfg. Please explain. Thanks and Regards Kaushal -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From roy at karlsbakk.net Tue Apr 14 09:35:18 2009 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Tue, 14 Apr 2009 09:35:18 +0200 Subject: No notifications while restarting any services on remote host In-Reply-To: <6b16fb4c0904132333s19827858h7b6e865d13dd451f@mail.gmail.com> References: <6b16fb4c0904132333s19827858h7b6e865d13dd451f@mail.gmail.com> Message-ID: <52323B85-8C5C-4762-AA70-6C1F3B00ED78@karlsbakk.net> On 14. april. 2009, at 08.33, Kaushal Shriyan wrote: > Hi, > > When i restart any services on the remote client For example tomcat > application server running on port 8080. I dont get any > notifications or alerts. Just want to understand the technique is it > because of the normal_check_interval 5 configured in services.cfg > and interval_length=60 defined in nagios.cfg. When you restart something like a tomcat server, it takes to short a time for Nagios to notice. If you want a notice when something is restarted, write a script that checks the root PID of the process and make this generate an email. I don't Nagios is very well suited for this operation, but a small script written in can do it without much problems. Example: --- $ cat pidcheck.sh #!/bin/sh PIDDIR=/var/pidcheck PIDFILE=$PIDDIR/$1 [ -d $PIDDIR ] || mkdir -p $PIDDIR thispid=`pidof apache2 | cut -d" " -f1` if [ ! -f $PIDFILE ] then echo -n $thispid > $PIDFILE exit 0 fi # implicit 'else' oldpid=`cat $PIDFILE` if [ $thispid -ne $oldpid ] then echo New pid for $1: $thispid echo -n $thispid > $PIDFILE exit 1 else exit 0 fi # ---- $ ./pidcheck.sh apache2 $ ./pidcheck.sh apache2 $ sudo /etc/init.d/apache2 restart * Restarting web server apache2 ...done. $ ./pidcheck.sh apache2 New pid for apache2: 3125 $ echo $? 1 $ ./pidcheck.sh apache2 $ echo $? 0 -- Roy Sigurd Karlsbakk (+47) 97542685 / 98013356 roy at karlsbakk.net -- I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er en element?rt imperativ for alle pedagoger ? unng? eksessiv anvendelse av idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og relevante synonymer p? norsk. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sri.lumpa at free.fr Tue Apr 14 09:39:50 2009 From: sri.lumpa at free.fr (MAD) Date: Tue, 14 Apr 2009 09:39:50 +0200 (CEST) Subject: Pppnp4nagios graph customization In-Reply-To: <1789857409.1799401239694739561.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <1789857409.1799401239694739561.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: <453851747.1799471239694790454.JavaMail.root@zimbra16-e3.priv.proxad.net> Hi Mohandas Here is a template for swap utilization performances with colours changing following the service state. I hope this will be what you've been looking for. I didn't tested it by I'm quite confident ;). All you have to do is to copy the file in the 'templates' directory (not in the 'templates.dist' one) and this should work. In fact, that's not really about PHP coding, but more about RPN (Reverse Polish Notation) and RRD. See http://oss.oetiker.ch/rrdtool/doc/index.en.html (and more precisely the rrdgraphs sections) fore more information. Marc-Andr? ----- Mail Original ----- De: "mohandas k" ?: "MAD" Cc: nagios-users at lists.sourceforge.net Envoy?: Mardi 14 Avril 2009 06h37:45 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [Nagios-users] Pppnp4nagios graph customization Hi Mad, I have checked and tried to changed php template file of " Swap Utilization" but am not able to generate colors in graph as per service status (i.e. Green,Yellow,Red as per service status ). Have attached php file and graph as well for your reference. obviously I have changed hostname in PHP file. I am not PHP expert to make changes in pnp template. Could you please suggest what changes need to make for the same ? Mohandas Kudva K ASE Tata Consultancy Services Cell:- +91 9619144048 Mailto: mohandas.k at tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ MAD 04/09/2009 08:33 PM To mohandas k cc nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Pppnp4nagios graph customization I managed to create some templates graphing in different colors according to the threshold defined with your services This will graph in green if the value is under the warning threshold, in yellow if it is between warning and critical threshold and red if it is beyond critical threshold or unknown... I don't know how to do this if the performance and the state are independent (for example if perf are the execution time of the check script...) Marc-Andr? ----- Mail Original ----- De: "mohandas k" ?: nagios-users at lists.sourceforge.net Envoy?: Jeudi 9 Avril 2009 15h30:05 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [Nagios-users] Pppnp4nagios graph customization Hi All, We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool (1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. By default we are getting following graph for locolhost free swap. I want to configure following requirements : (1) can we add more variable (i.e say "Total Swap" ) in graph ? (2) Can we create different-different color in graph for different-different status critical-> RED,OK->Green,Warnijng->Yellow ? (3) last question how can we change graph updation time interval (here it's showing as 20 Minutes) however in our service definition,it's 10 Minutes Following is default graph for your better understanding : =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00000F5E =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: check_swap.php Type: application/octet-stream Size: 2091 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From roy at karlsbakk.net Tue Apr 14 09:40:33 2009 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Tue, 14 Apr 2009 09:40:33 +0200 Subject: No notifications while restarting any services on remote host In-Reply-To: <52323B85-8C5C-4762-AA70-6C1F3B00ED78@karlsbakk.net> References: <6b16fb4c0904132333s19827858h7b6e865d13dd451f@mail.gmail.com> <52323B85-8C5C-4762-AA70-6C1F3B00ED78@karlsbakk.net> Message-ID: <4D6D6D5F-9E39-4E95-BB1F-E94C25E581C6@karlsbakk.net> > > When you restart something like a tomcat server, it takes to short a > time for Nagios to notice. If you want a notice when something is > restarted, write a script that checks the root PID of the process > and make this generate an email. I don't Nagios is very well suited > for this operation, but a small script written in language> can do it without much problems. Example: There were a few errors in that - see this for fewer bugs: Fixed up version here http://karlsbakk.net/nagios/pidcheck.sh.txt -- Roy Sigurd Karlsbakk (+47) 97542685 / 98013356 roy at karlsbakk.net -- I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er en element?rt imperativ for alle pedagoger ? unng? eksessiv anvendelse av idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og relevante synonymer p? norsk. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From giorgio at zarrelli.org Tue Apr 14 09:46:39 2009 From: giorgio at zarrelli.org (Giorgio Zarrelli) Date: Tue, 14 Apr 2009 09:46:39 +0200 Subject: initial setups, hostgroup help requested In-Reply-To: <49E3A54C.1010407@weatherflow.com> References: <49E3A54C.1010407@weatherflow.com> Message-ID: <20090414.8FW.30513000@www.zarrelli.org> nagios -h -v, --verify-config Verify all configuration data Use: nagios -v /path/to/your/nagios.cfg > I don't know if that needs to be there as I am defining his as a member > in the hostgroups.cfg file. No, you do not need to mention it twice. The first snippet is enough. > Now if I comment out the hostgroup line in the main conf, things start, > but I would like to use hostgroups for the obvious reasons.? I am sure > these and the new ones will be pretty basic as the needs are simple, > and if I can debug where it stopping would be even easier, but again, > this will be a1 or 2 sentence reply I bet! Try nagios -v and paste here the output. -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 14 09:48:19 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 14 Apr 2009 08:48:19 +0100 Subject: No notifications while restarting any services on remote host In-Reply-To: <6b16fb4c0904132333s19827858h7b6e865d13dd451f@mail.gmail.com> References: <6b16fb4c0904132333s19827858h7b6e865d13dd451f@mail.gmail.com> Message-ID: <765d77c80904140048x2e93d325na75b6703eb76177a@mail.gmail.com> 2009/4/14 Kaushal Shriyan : > Hi, > > When i restart any services on the remote client For example tomcat > application server running on port 8080. I dont get any notifications or > alerts. Just want to understand the technique is it because of the > normal_check_interval? 5 configured in services.cfg and interval_length=60 > defined in nagios.cfg. > > Please explain. > > Thanks and Regards > > Kaushal With those settings, Nagios will check the service every five minutes. If you restart the service in between those checks, Nagios will not notice. Even if Nagios does notice, it won't send you a notification until the specified number of retries specified by max_check_attempts. Make sure notifications are enabled, and that you have the correct notification_options set. A common error is accidentally to set the "n" option in notification_options which disables all notifications for that service. Another parameter which can have an effect on whether notifications are sent (new in 3.0 Nagios) is first_notification_delay. I assume you are using the check_http plugin, as you haven't said. If you want to be notified even for very short duration outages, you're probably best off checking the event log and/or one or more of the tomcat logs too. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bpel4ws at gmail.com Tue Apr 14 10:09:27 2009 From: bpel4ws at gmail.com (ankaboot) Date: Tue, 14 Apr 2009 12:09:27 +0400 Subject: e-mail notification customization guidence Message-ID: Hello, I receive more than 10 e-mails daily from nagios about the backup status. I want to change those 10 e-mails to only one, updating me the status of backup (either failed or successful etc). Shall i change some macro or command or what? i can not understand what to do. Pleaes guide. Thanks and regards, -Ankaboot -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pitchfork at ederdrom.de Tue Apr 14 10:44:26 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Tue, 14 Apr 2009 10:44:26 +0200 Subject: Pppnp4nagios graph customization In-Reply-To: <453851747.1799471239694790454.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <453851747.1799471239694790454.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: <49E44CEA.7040809@ederdrom.de> MAD schrieb: > Hi Mohandas > > Here is a template for swap utilization performances with colours changing following the service state. I hope this will be what you've been looking for. I didn't tested it by I'm quite confident ;). All you have to do is to copy the file in the 'templates' directory (not in the 'templates.dist' one) and this should work. @MAD: Good Job! i would like to include this Template in PNP-0.4.14 How do you feel about this? Cheers Joerg ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sri.lumpa at free.fr Tue Apr 14 11:19:36 2009 From: sri.lumpa at free.fr (MAD) Date: Tue, 14 Apr 2009 11:19:36 +0200 (CEST) Subject: Pppnp4nagios graph customization In-Reply-To: <749089641.1825261239700752860.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <749089641.1825261239700752860.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: <96820720.1825421239700776698.JavaMail.root@zimbra16-e3.priv.proxad.net> Thank you. Feel free to use it, distribute it and modify it as you want. After all, it is the grounds of Open Source, isn't it ? ;) Marc-Andr? ----- Mail Original ----- De: "Joerg Linge" Cc: nagios-users at lists.sourceforge.net Envoy?: Mardi 14 Avril 2009 10h44:26 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [Nagios-users] Pppnp4nagios graph customization MAD schrieb: > Hi Mohandas > > Here is a template for swap utilization performances with colours changing following the service state. I hope this will be what you've been looking for. I didn't tested it by I'm quite confident ;). All you have to do is to copy the file in the 'templates' directory (not in the 'templates.dist' one) and this should work. @MAD: Good Job! i would like to include this Template in PNP-0.4.14 How do you feel about this? Cheers Joerg ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arabbaj at gmail.com Tue Apr 14 12:19:54 2009 From: arabbaj at gmail.com (Idriss ARABBAJ) Date: Tue, 14 Apr 2009 10:19:54 +0000 Subject: Problem with MySql log Message-ID: <1ebd356a0904140319o29639f8dqae68d7fc45b7f9a9@mail.gmail.com> hi all, I have a problem with my mysql bin log, the log is growing in a very fast and because of the changes effected by nagios for recording performance data, so I need your advice about this subject, how can I solve this problem -- Cordialement, Idriss ARABBAJ ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Tue Apr 14 12:29:01 2009 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Tue, 14 Apr 2009 07:29:01 -0300 Subject: Doubt about email notifications Message-ID: <20090414102901.GG28777@defiant.freesoftware.org> Hi all! Is there any variable where I can configure each how long are sent the email notifications for the services? At first I see that these are sent hourly. On the other hand, I would like also to know if it is possible to define the maximum number of notifications that are sent. I read exist variables that allow to configure both things using escalations, although I do not have defined escalations. I am using Nagios 3.0.1 in Debian GNU/Linux Thanks in advance. Regards, Daniel -- Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sascha.Runschke at gfkl.com Tue Apr 14 12:33:24 2009 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Tue, 14 Apr 2009 12:33:24 +0200 Subject: Antwort: Problem with MySql log In-Reply-To: <1ebd356a0904140319o29639f8dqae68d7fc45b7f9a9@mail.gmail.com> References: <1ebd356a0904140319o29639f8dqae68d7fc45b7f9a9@mail.gmail.com> Message-ID: Idriss ARABBAJ schrieb am 14.04.2009 12:19:54: > I have a problem with my mysql bin log, the log is growing in a very > fast and because of the changes effected by nagios for recording > performance data, so I need your advice about this subject, how can I > solve this problem Uhm, disable mysql binlogging? S -- Sascha Runschke IT-Infrastruktur GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edgar.Matzinger at valid.nl Tue Apr 14 12:37:57 2009 From: Edgar.Matzinger at valid.nl (Edgar Matzinger) Date: Tue, 14 Apr 2009 12:37:57 +0200 Subject: upgrading nagios In-Reply-To: <8147CCE3C4A8764DA9980125EE70E823B3CA0E@nuexchg.norwich.edu> References: <699b436a0904101216h13e8e6f8u83a4106ab8268b0e@mail.gmail.com> <8147CCE3C4A8764DA9980125EE70E823B3CA0E@nuexchg.norwich.edu> Message-ID: LS, > > In other words, it would put the whole nagios install under > /usr/local/nagios, the "default" location if you do not specify an > alternate prefix. > Great! I've always had nagios in /usr/local. And is also documented in our installation documents. So, I (or we) prefer to have nagios in /usr/local. > Personally, if I were you, I would _not_ rebuild it in a non-standard > way like you mention above unless you have very good reason to do so - > Yes, there may be more work involved, but the end result will be worth > it. > Which non-standard way? Oh, with regard to other tools... Or the docs on nagios.org... And because there's more work involved (where is this or that file located?), we keep nagios in a central place. > (The guy who takes over your job down the road will also be grateful, > and you won't have to hunt over the whole system to find the stuff you > need!) That guy needs to read our docs first... :-))). And when I store everything in /usr/local/nagios, I don't have to hunt anything... ;-)) Just my $0,10, cu l8r, Edgar. PS And /opt would be a suitable location also. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Paradijslaan 36 \ /| /\| : : 5611 KN Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ... ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arabbaj at gmail.com Tue Apr 14 12:56:22 2009 From: arabbaj at gmail.com (Idriss ARABBAJ) Date: Tue, 14 Apr 2009 10:56:22 +0000 Subject: Antwort: Problem with MySql log In-Reply-To: References: <1ebd356a0904140319o29639f8dqae68d7fc45b7f9a9@mail.gmail.com> Message-ID: <1ebd356a0904140356t5e383f4cmb43180414aa8b81f@mail.gmail.com> you think that this solution helpful? and I would not need this log? 2009/4/14 : > Idriss ARABBAJ schrieb am 14.04.2009 12:19:54: > >> I have a problem with my mysql bin log, the log is growing in a very >> fast and ?because of the changes effected by nagios for recording >> performance data, so I need your advice about this subject, how can I >> solve this problem > > Uhm, disable mysql binlogging? > > S > > -- > Sascha Runschke > IT-Infrastruktur > > > > GFKL Financial Services AG > Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp > Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma > Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Cordialement, Idriss ARABBAJ ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Deborah.Martin at Kognitio.com Tue Apr 14 13:07:23 2009 From: Deborah.Martin at Kognitio.com (Deborah Martin) Date: Tue, 14 Apr 2009 12:07:23 +0100 Subject: Business objects plugin Message-ID: <84836290D5AD43418C40DCF0C4A54ED38E3BF4@kogex02.pmpl.co.uk> Folks, Does anyone know if a plugin exists for Business Objects. We have a requirement to replicate end users and their use of Business Objects so that we can determine if they are receiving a service within their agreed SLA. Basically, we want Nagios to connect to the BO environment and actually run a BO report in the same way as the end user. I've googled but so far not seen anything that can help. If anyone has any ideas, pointers etc, it would be really appreciated. thanks, deborah *************************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From misch at multinet.de Tue Apr 14 13:34:47 2009 From: misch at multinet.de (Michael Schwartzkopff) Date: Tue, 14 Apr 2009 13:34:47 +0200 Subject: Monitoring steeleye lifekeeper Message-ID: <200904141334.48033.misch@multinet.de> Hi, anybody monitoring a steeleye lifekeeper cluster with nagios? Is there any good nagios plugin for this task? Thanks for any help. -- Dr. Michael Schwartzkopff MultiNET Services GmbH Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany Tel: +49 - 89 - 45 69 11 0 Fax: +49 - 89 - 45 69 11 21 mob: +49 - 174 - 343 28 75 mail: misch at multinet.de web: www.multinet.de Sitz der Gesellschaft: 85630 Grasbrunn Registergericht: Amtsgericht M?nchen HRB 114375 Gesch?ftsf?hrer: G?nter Jurgeneit, Hubert Martens --- PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42 ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sudhakar_B at i2.com Tue Apr 14 13:22:22 2009 From: Sudhakar_B at i2.com (Sudhakar_B at i2.com) Date: Tue, 14 Apr 2009 16:52:22 +0530 Subject: Is Clientless monitoring possible Message-ID: Hi, I have installed nagios on one of the system running redhat. Our network has around 25-30 server incluing windows and other network devices such as switches etc. Please let me know if we can monitor the server (Including windows) without installing any client on the remote host. Regards, Sudhakar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Tue Apr 14 13:58:51 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Tue, 14 Apr 2009 17:28:51 +0530 Subject: Is Clientless monitoring possible In-Reply-To: References: Message-ID: <25251aec0904140458l1a4e6a7am6076d62e0467e12c@mail.gmail.com> I think it is not possible with nagios. you need to install nagios-plugins or nrpe on the remote clients end. -Shankar On Tue, Apr 14, 2009 at 4:52 PM, wrote: > > Hi, > > I have installed nagios on one of the system running redhat. Our network > has around 25-30 server incluing windows and other network devices such as > switches etc. > > Please let me know if we can monitor the server (Including windows) without > installing any client on the remote host. > > Regards, > Sudhakar > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Tue Apr 14 13:58:13 2009 From: subscription at kkeane.com (Kevin Keane) Date: Tue, 14 Apr 2009 04:58:13 -0700 Subject: Is Clientless monitoring possible In-Reply-To: References: Message-ID: <49E47A55.4060307@kkeane.com> Depends what you want to monitor about them. If you simply want to find out if they are up and running, check_ping should work very well. You can also use SNMP, WMI and other mechanisms that allow a degree of agentless monitoring. Sudhakar_B at i2.com wrote: > > Hi, > > I have installed nagios on one of the system running redhat. Our > network has around 25-30 server incluing windows and other network > devices such as switches etc. > > Please let me know if we can monitor the server (Including windows) > without installing any client on the remote host. > > Regards, > Sudhakar -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 14 14:03:52 2009 From: marc at ena.com (Marc Powell) Date: Tue, 14 Apr 2009 07:03:52 -0500 Subject: e-mail notification customization guidence In-Reply-To: References: Message-ID: <0B34708C-0BA1-4850-B125-DF930B81BFDB@ena.com> On Apr 14, 2009, at 3:09 AM, ankaboot wrote: > > > Hello, > > I receive more than 10 e-mails daily from nagios about the backup > status. > I want to change those 10 e-mails to only one, updating me the > status of backup (either failed or successful etc). > Shall i change some macro or command or what? > i can not understand what to do. Without the service and contact definition and information about how you're checking your backup status, it's difficult to say what you need to change. An arbitrary guess is that you may need to change the normal_check_interval to be 1440 (i.e. once a day). There are other things you may need to change but config information will keep us from just guessing. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From treibholz at sozial-inkompetent.de Tue Apr 14 14:07:55 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Tue, 14 Apr 2009 14:07:55 +0200 Subject: Doubt about email notifications In-Reply-To: <20090414102901.GG28777@defiant.freesoftware.org> References: <20090414102901.GG28777@defiant.freesoftware.org> Message-ID: <20090414120755.GC12246@umbach-racing.de> On 14/04/09 07:29, Daniel Bareiro wrote: > Hi all! > > Is there any variable where I can configure each how long are sent the > email notifications for the services? At first I see that these are sent > hourly. look for notification_interval in the documentation (I've set it to zero, so there is only one mail) > > On the other hand, I would like also to know if it is possible to define > the maximum number of notifications that are sent. > > I read exist variables that allow to configure both things using > escalations, although I do not have defined escalations. This can be defined with the "Notification Escalations" (see. the documentation about more) - Klaus -- BOFH excuse #179: multicasts on broken packets ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 14 14:11:28 2009 From: marc at ena.com (Marc Powell) Date: Tue, 14 Apr 2009 07:11:28 -0500 Subject: Doubt about email notifications In-Reply-To: <20090414102901.GG28777@defiant.freesoftware.org> References: <20090414102901.GG28777@defiant.freesoftware.org> Message-ID: On Apr 14, 2009, at 5:29 AM, Daniel Bareiro wrote: > Hi all! > > Is there any variable where I can configure each how long are sent the > email notifications for the services? At first I see that these are > sent > hourly. notification_interval -- http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service > On the other hand, I would like also to know if it is possible to > define > the maximum number of notifications that are sent. > > I read exist variables that allow to configure both things using > escalations, although I do not have defined escalations. yes, I believe an escalation would do for this. I haven't done this but I expect you could set your first notification to the number of the last notification you want to receive (i.e. 3 for the third notification) and your last notification to some high number (99). Create a contact with a notification period of 'none' and set it as the contact for the escalation. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 14 14:20:58 2009 From: marc at ena.com (Marc Powell) Date: Tue, 14 Apr 2009 07:20:58 -0500 Subject: Is Clientless monitoring possible In-Reply-To: References: Message-ID: On Apr 14, 2009, at 6:22 AM, Sudhakar_B at i2.com wrote: > > Hi, > > I have installed nagios on one of the system running redhat. Our > network has around 25-30 server incluing windows and other network > devices such as switches etc. > > Please let me know if we can monitor the server (Including windows) > without installing any client on the remote host. Only for things that are visible from the network (i.e. web services, dns services, pinging the host, etc). If you're wanting to know things like disk usage, cpu utilization and things like that, some kind of agent is needed whether that be nsclient++, SNMP, WMI, etc... http://www.nagiosexchange.org is a good resource for WMI and SNMP plugins. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 14 14:26:40 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 14 Apr 2009 13:26:40 +0100 Subject: Business objects plugin In-Reply-To: <84836290D5AD43418C40DCF0C4A54ED38E3BF4@kogex02.pmpl.co.uk> References: <84836290D5AD43418C40DCF0C4A54ED38E3BF4@kogex02.pmpl.co.uk> Message-ID: <765d77c80904140526pcd99042u10e49f7c9a08233f@mail.gmail.com> 2009/4/14 Deborah Martin : > Folks, > > Does anyone know if a plugin exists for Business Objects. > > We have a requirement to replicate end users and their use of Business > Objects so that we can determine if they are receiving a service > > within their agreed SLA. > > Basically, we want Nagios to connect to the BO environment and actually run > a BO report in the same way as the end user. > > I've googled but so far not seen anything that can help. > > If anyone has any ideas, pointers etc, it would be really appreciated. > > thanks, > deborah Searching for Business Objects at http://nagiosexchange.org shows there is a plugin check_bo.pl available there. I wouldn't have a clue whether it would help in your particular case though. If the application has a web interface, I expect you could try WebInject http://www.webinject.org/ to script the end user monitoring and return results back to Nagios. I keep meaning to try WebInject myself sometime, but haven't gotten around to it yet. hth, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Apr 14 14:36:15 2009 From: ae at op5.se (Andreas Ericsson) Date: Tue, 14 Apr 2009 14:36:15 +0200 Subject: Is Clientless monitoring possible In-Reply-To: References: Message-ID: <49E4833F.20100@op5.se> Sudhakar_B at i2.com wrote: > Hi, > > I have installed nagios on one of the system running redhat. Our network > has around 25-30 server incluing windows and other network devices such as > switches etc. > > Please let me know if we can monitor the server (Including windows) > without installing any client on the remote host. > That depends on your definition of client. Without any sort of program answering questions at all you won't be able to monitor anything but network services. NRPE, SNMP, NSClient, NSClient++, NC.NET, ssh or some other means of accessing the server is necessary to get disk-usage and other data that servers do not publicly advertise. It's up to you to pick your poison. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sri.lumpa at free.fr Tue Apr 14 14:38:10 2009 From: sri.lumpa at free.fr (MAD) Date: Tue, 14 Apr 2009 14:38:10 +0200 (CEST) Subject: Pppnp4nagios graph customization In-Reply-To: <1944670873.1868971239712645960.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <1944670873.1868971239712645960.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: <1938185696.1869121239712690315.JavaMail.root@zimbra16-e3.priv.proxad.net> I knew I should have tested it... I assumed check_swap was giving the swap utilization but it gives the free space left. So I had to make some changes to reverse the situation and print the space the swap actually uses. Marc-Andr? ----- Mail Original ----- De: "MAD" ?: "Joerg Linge" Cc: nagios-users at lists.sourceforge.net Envoy?: Mardi 14 Avril 2009 11h19:36 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [Nagios-users] Pppnp4nagios graph customization Thank you. Feel free to use it, distribute it and modify it as you want. After all, it is the grounds of Open Source, isn't it ? ;) Marc-Andr? ----- Mail Original ----- De: "Joerg Linge" Cc: nagios-users at lists.sourceforge.net Envoy?: Mardi 14 Avril 2009 10h44:26 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [Nagios-users] Pppnp4nagios graph customization MAD schrieb: > Hi Mohandas > > Here is a template for swap utilization performances with colours changing following the service state. I hope this will be what you've been looking for. I didn't tested it by I'm quite confident ;). All you have to do is to copy the file in the 'templates' directory (not in the 'templates.dist' one) and this should work. @MAD: Good Job! i would like to include this Template in PNP-0.4.14 How do you feel about this? Cheers Joerg ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: check_swap_v2.php Type: application/octet-stream Size: 2068 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Tue Apr 14 14:42:00 2009 From: marcismael at gmail.com (Marc Ismael) Date: Tue, 14 Apr 2009 20:42:00 +0800 Subject: Is Clientless monitoring possible In-Reply-To: References: Message-ID: <48603ddb0904140542v2147dcb8s24cd57c104e02836@mail.gmail.com> On Tue, Apr 14, 2009 at 7:22 PM, wrote: > > Hi, > > I have installed nagios on one of the system running redhat. Our network > has around 25-30 server incluing windows and other network devices such as > switches etc. > > Please let me know if we can monitor the server (Including windows) without > installing any client on the remote host. > > Regards, > Sudhakar > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > You can also take a look at nsca. It does require you to install and run a daemon on the nagios server, but atleast you don't need to worry about running daemons on the clients. You'll need to schedule the checks on the clients via cron or something else. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From antoine.musso at laposte.fr Tue Apr 14 14:03:28 2009 From: antoine.musso at laposte.fr (Antoine Musso) Date: Tue, 14 Apr 2009 14:03:28 +0200 Subject: Is Clientless monitoring possible In-Reply-To: References: Message-ID: <49E47B90.9060602@laposte.fr> Sudhakar_B at i2.com a ?crit : > > Hi, > > I have installed nagios on one of the system running redhat. Our network > has around 25-30 server incluing windows and other network devices such > as switches etc. > > Please let me know if we can monitor the server (Including windows) > without installing any client on the remote host. hello, Your routers and switches most probably support SNMP which you can use to monitor your devices. It is just a matter of configuration. For MS Windows, you will need the SNMP Service : http://support.microsoft.com/kb/324263 http://www.loriotpro.com/ServiceAndSupport/How_to/InstallWXPAgent_EN.php cheers, -- Antoine MUSSO DISIT/PROD/QFO/OUT mailto:antoine.musso at laposte.fr t?l. 02 40 12 73 62 -------------- next part -------------- Post-scriptum La Poste Ce message est confidentiel. Sous r?serve de tout accord conclu par ?crit entre vous et La Poste, son contenu ne repr?sente en aucun cas un engagement de la part de La Poste. Toute publication, utilisation ou diffusion, m?me partielle, doit ?tre autoris?e pr?alablement. Si vous n'?tes pas destinataire de ce message, merci d'en avertir imm?diatement l'exp?diteur. -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From msantana.asyst at suzano.com.br Tue Apr 14 14:49:23 2009 From: msantana.asyst at suzano.com.br (Marcos Antonio Santana Junior) Date: Tue, 14 Apr 2009 09:49:23 -0300 Subject: Help Message-ID: <0FDA5E70C2A0654EB7B5B5D38DFBF699127B3DCACB@kraft3.suzano.com.br> The nagios processID can monitor the application ? When a processid > 99999 nagios shows the alarm? Marcos Antonio Sant' Ana Junior Esta mensagem pode conter informa??o confidencial. Se voc? n?o for o destinat?rio ou a pessoa autorizada a receber esta mensagem, n?o poder? usar, copiar ou divulgar as informa??es nela contidas ou tomar qualquer a??o baseada nessas informa??es. Se voc? recebeu esta mensagem por engano, favor avisar imediatamente o remetente, respondendo o e-mail e, em seguida, apague-o. Agradecemos sua coopera??o. This message may contain confidential information. If you are not the addressee or authorized person to receive it for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by replying this e-mail message and delete it. Thanks in advance for your cooperation. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Tue Apr 14 14:59:06 2009 From: lflacayo at cps.k12.il.us (Luis Fernando Lacayo) Date: Tue, 14 Apr 2009 07:59:06 -0500 Subject: Nagios - rpoerting. In-Reply-To: <1938185696.1869121239712690315.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <1938185696.1869121239712690315.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: <1239713946.25058.10.camel@UNIX-TEAM-LACAYO> HI All, hope all is well with everyone. Quick Question.... I been tasked with producing uptime reports for our management team. I have been able to produce the reports they want from NAGIOS, but I need a way to automate them, I am thinking CRON (but open to suggestions). Can anyone point me in the right direction? Thanks Live well, and Prosper. Luis -- ______________________________________________________ Luis Fernando Lacayo Chicago Public Schools Senior Unix Administrator ITS/ UNIX Infrastructure Office: 773-553-3835 Cell: 773-203-4493 lflacayo at cps.k12.il.us ______________________________________________________ "In God we trust, the rest we monitor ..." -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Tue Apr 14 16:22:30 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Tue, 14 Apr 2009 10:22:30 -0400 Subject: downtime scheduling Message-ID: <699b436a0904140722l2405e880g49f978d409d76d89@mail.gmail.com> When we schedule a downtime for a host does it mean it automatically schedules a downtime for its services also? I remember when we were patching our servers , we scheduled downtime for the entire hostgroup by selecting "schedule downtime for all host in this hostgroup". Inspite of it we still got alerts for few services under certail hosts. Should we select "schedule downtime for all the services in this hostgroup" ? Can some one explain me what this is all about and how does it work? Thank you very much -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Tue Apr 14 16:25:01 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Tue, 14 Apr 2009 15:25:01 +0100 Subject: Centreon In-Reply-To: <49E351E3.B47D.0048.0@stgeorge.com.au> References: <49DF5D04020000480008D21D@stgeorge.com.au> <4881ECF1AB752843908A20CEE07A8EB1127F0A@buf-ex01.cymfony.com> <49E351E3.B47D.0048.0@stgeorge.com.au> Message-ID: Thanks to all for the replies, I appreciate the offers of help. I was thinking of trying to port Centreon to run against Oracle instead of MySQL. I took a quick skim over the source and it looks like a lot of the database calls are going through PEAR and are fairly generic, so I'm hoping that it won't be overly complicated. The installation scripts look simple enough to port too. Does anyone have any pointers on this idea? I've noticed in some places that NDOUtils is mentioned in connection with Centreon, but I can't determine if it's actually required or not. Anyway, hopefully someone out there has tried something like this before! Cheers, Chris ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 14 18:11:44 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 14 Apr 2009 17:11:44 +0100 Subject: downtime scheduling In-Reply-To: <699b436a0904140722l2405e880g49f978d409d76d89@mail.gmail.com> References: <699b436a0904140722l2405e880g49f978d409d76d89@mail.gmail.com> Message-ID: <765d77c80904140911jd17b5f9we31fc0474215ac21@mail.gmail.com> 2009/4/14 Anirudh Srinivasan : > When we schedule a downtime for a host does it mean it automatically > schedules a downtime for its services also? > I remember when we were patching our servers , we scheduled downtime for the > entire hostgroup by selecting "schedule downtime for all host in this > hostgroup". Inspite of it we still got alerts for few services under certail > hosts. Should we select "schedule downtime for all the services in this > hostgroup" ? > > Can some one explain me what this is all about and how does it work? > Thank you very much > -- > Anirudh Srinivasan If you schedule downtime for the host, then this should stop notifications both for the host and the services. If you have this problem again, please check the Nagios logs and post some more detail about it. I've noticed on earlier versions of Nagios you could sometimes get notifications through for hosts which were in downtime for a brief period following restart of the Nagios daemon. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mmccoy at cedarville.edu Tue Apr 14 18:58:37 2009 From: mmccoy at cedarville.edu (Michael McCoy) Date: Tue, 14 Apr 2009 12:58:37 -0400 Subject: NRPE_NT Checks on Mapped Network Drive In-Reply-To: <8147CCE3C4A8764DA9980125EE70E823B3C504@nuexchg.norwich.edu> References: <49DDE843020000150023183B@poplar.cedarville.edu> <8147CCE3C4A8764DA9980125EE70E823B3C504@nuexchg.norwich.edu> Message-ID: <49E4887D02000015002319D6@poplar.cedarville.edu> The space after the g: is correct, the check then concatenates the drive and the folder together. I'm pretty sure the drives the mapped as persistent (I didn't originally set them up so not 100%). I tried UNC pathing and again it works fine on the windows box itself but same result as using normal absolute path. I have noticed in the NRPE documentation (for UNIX) that it has you add a nagios user to the remote host. Being that there's not a whole lot of official documentation for nrpe_nt itself is there something to this affect that I have to do on the Windows machine? Run the check as a specific user? I've tried running the nrpe_nt service as every user on the windows box to no avail. I'm thinking it's some sort of permissions or "run as this specific user so as to see network drives" issue, but my Windows knowledge in terms of services, access rights, etc. is limited. Thanks! >>> "James Pratt" 4/9/2009 1:10 PM >>> > -----Original Message----- > From: Michael McCoy [mailto:mmccoy at cedarville.edu] > Sent: Thursday, April 09, 2009 12:21 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NRPE_NT Checks on Mapped Network Drive > > For off let me say this is my first mailing list, so I'm new at this, so > please excuse any mailing list etiquette that I violate :-) > > I am attempting to monitor the file count of a directory on a remote > Windows XP machine. I have installed NRPE_NT on the remote box and > check_nrpe on my Nagios machine. The two are talking to one another fine. > The problem is that the directory that I need to monitor is on a mapped > network drives. Here is the command I am running... > > command[directory_file_count]=c:\WINDOWS\system32\cscript.exe //NoLogo > //T:30 c:\temp\nagioschecks\file_count.wsf g: \folder1\folder2\ 0 10 > > Basically if run this command from the DOS command line on the XP machine > it works fine. Once I try to run the command from check_nrpe on the > Nagios host it gives me the following error... > > c:\temp\nagioschecks\file_count.wsf(123, 2) Microsoft VBScript runtime > error: Path not found > Hello Michael - Just a quick stab in the dark here, but in your command def above, you have a space character after your g: - is that correct, or could it be causing your issue? Also, are your drives mapped as persistent, as I'm not positive the user running the script would see them either way if not "logged on interactively". Can you use UNC pathing instead? Ie \\machine\share$ ? That should work if the user has rights, and you won't have to deal with the mapped drive issue(s) . HTH, Regards, jamie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy-lists at networkmail.eu Tue Apr 14 19:41:23 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Tue, 14 Apr 2009 18:41:23 +0100 Subject: NRPE_NT Checks on Mapped Network Drive In-Reply-To: <49E4887D02000015002319D6@poplar.cedarville.edu> References: <49DDE843020000150023183B@poplar.cedarville.edu> <8147CCE3C4A8764DA9980125EE70E823B3C504@nuexchg.norwich.edu> <49E4887D02000015002319D6@poplar.cedarville.edu> Message-ID: <49E4CAC3.8000600@networkmail.eu> Hi Michael, This is in no way related to NRPE or Nagios, but we had similar issues while trying to automatically grab files from a UNC path in a Windows scheduled task. In the end we modified the batch script run by the scheduled task to automatically connect and authenticate to the share, grab the files needed, then disconnect. Perhaps you need to modify your check script the same way? The commands we used were: REM Connect to the share NET USE Z: \\computer\share /USER:domain\username password REM Do stuff.... REM Disconnect NET USE Z: /DELETE I'm not sure if the /PERSISTENT flag would work here (see NET USE /?) - we never had the time to play around. Hope this helps, Andy Michael McCoy wrote: > The space after the g: is correct, the check then concatenates the > drive and the folder together. I'm pretty sure the drives the mapped > as persistent (I didn't originally set them up so not 100%). I tried > UNC pathing and again it works fine on the windows box itself but same > result as using normal absolute path. > > I have noticed in the NRPE documentation (for UNIX) that it has you > add a nagios user to the remote host. Being that there's not a whole > lot of official documentation for nrpe_nt itself is there something to > this affect that I have to do on the Windows machine? Run the check > as a specific user? I've tried running the nrpe_nt service as every > user on the windows box to no avail. > > I'm thinking it's some sort of permissions or "run as this specific > user so as to see network drives" issue, but my Windows knowledge in > terms of services, access rights, etc. is limited. Thanks! > > >>> "James Pratt" 4/9/2009 1:10 PM >>> > > > > -----Original Message----- > > From: Michael McCoy [mailto:mmccoy at cedarville.edu] > > Sent: Thursday, April 09, 2009 12:21 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] NRPE_NT Checks on Mapped Network Drive > > > > For off let me say this is my first mailing list, so I'm new at this, > so > > please excuse any mailing list etiquette that I violate :-) > > > > I am attempting to monitor the file count of a directory on a remote > > Windows XP machine. I have installed NRPE_NT on the remote box and > > check_nrpe on my Nagios machine. The two are talking to one another > fine. > > The problem is that the directory that I need to monitor is on a > mapped > > network drives. Here is the command I am running... > > > > command[directory_file_count]=c:\WINDOWS\system32\cscript.exe //NoLogo > > //T:30 c:\temp\nagioschecks\file_count.wsf g: \folder1\folder2\ 0 10 > > > > Basically if run this command from the DOS command line on the XP > machine > > it works fine. Once I try to run the command from check_nrpe on the > > Nagios host it gives me the following error... > > > > c:\temp\nagioschecks\file_count.wsf(123, 2) Microsoft VBScript runtime > > error: Path not found > > > > Hello Michael - Just a quick stab in the dark here, but in your command > def above, you have a space character after your g: - is that correct, > or could it be causing your issue? > > Also, are your drives mapped as persistent, as I'm not positive the user > running the script would see them either way if not "logged on > interactively". > > Can you use UNC pathing instead? Ie \\machine\share$ ? That should work > if the user has rights, and you won't have to deal with the mapped drive > issue(s) . > > HTH, > > Regards, > jamie > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From echatham at broadvox.net Tue Apr 14 20:16:59 2009 From: echatham at broadvox.net (Eric Chatham) Date: Tue, 14 Apr 2009 14:16:59 -0400 Subject: NAGIOSGRAPH not graphing In-Reply-To: <4ABA3E162F60624A949503A7F960245EB0E367277B@CLEHBEXMS01.broadvox.local> References: <4ABA3E162F60624A949503A7F960245EB0E33565DC@CLEHBEXMS01.broadvox.local> <20090319184150.GV30298@bakgwai.americas.hpqcorp.net> <4ABA3E162F60624A949503A7F960245EB0E3356631@CLEHBEXMS01.broadvox.local> <49C39C98.3000407@iris.uh.cu> <4ABA3E162F60624A949503A7F960245EB0E367277B@CLEHBEXMS01.broadvox.local> Message-ID: <4ABA3E162F60624A949503A7F960245EB111C49D4D@CLEHBEXMS01.broadvox.local> This seems to be the only fix that is working right now. I still don't know why the graphs don't poll any data "like they should." I have to setup a 5 min cronjob to do the insert.pl and I have to restart Nagios for the perfdata to regenerate new data to perfdata.log. I hate to be a pest, but *someone* has to know how to fix this problem! [root@ ~ nagiosgraph]# crontab -l # Nagiosgraph */5 * * * * /usr/bin/perl /opt/nagios/nagiosgraph/lib/insert.pl; /etc/init.d/nagios restart > /dev/null 2>&1 -----Original Message----- From: Cron Daemon [mailto:root@ ~ .net] Sent: Tuesday, April 14, 2009 14:00 To: root@ ~ .net Subject: Cron /usr/bin/perl /opt/nagios/nagiosgraph/lib/insert.pl; /etc/init.d/nagios restart Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Use of uninitialized value in string eq at (eval 1) line 219. Running configuration check...done. Stopping nagios: done. Starting nagios: done. Eric Chatham -----Original Message----- From: Eric Chatham [mailto:echatham at broadvox.net] Sent: Friday, March 20, 2009 18:14 To: Sergio Ariel; nagios-users Subject: Re: [Nagios-users] NAGIOSGRAPH not graphing I've done that too - with and without the perfdata in the command. I also noticed that when I updated a host today, the graphs all had data for an instance and, then, nothing. Unfortunately, I'm rather new to Linux and know nothing of perl and how this is constructed. I've looked at the guts of this program over and over again to find my own f*** ups. If I just run the insert.pl without the perfdata, I get the concatenation errors (probably since it's looking for the parameters like the one listed in commands.cfg - as in command_line of process-service-perfdata). The perfdata file also gets wiped out if I run insert.pl naked. I have to restart Nagios to renew the perfdata file: When I include the parameters for insert.pl, I get the output below. /usr/bin/perl /usr/local/lib/Nagios/insert.pl "1237580865 || reach_media || PING || 4.062 || 0.067 || PING OK - Packet loss = 0%, RTA = 46.26 ms" The entire output: flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 13. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 13. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 13. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 37. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 37. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 37. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 40. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 40. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 40. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 43. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 43. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 43. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 46. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 46. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 46. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 52. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 52. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 52. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 55. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 55. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 55. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 62. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 62. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 62. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 70. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 70. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 70. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 73. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 73. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 73. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 85. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 85. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 85. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 86. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 86. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 86. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 89. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 89. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 89. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 90. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 90. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 90. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 101. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 101. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 101. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 104. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 104. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 104. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 108. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 108. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 108. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 112. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 112. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 112. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 117. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 117. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 117. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 138. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 138. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 138. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 139. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 139. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 139. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 140. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 140. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 140. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 141. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 141. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 141. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 144. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 144. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 144. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 145. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 145. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 145. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 146. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 146. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 146. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 147. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 147. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 147. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 150. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 150. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 150. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 151. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 151. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 151. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 152. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 152. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 152. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 153. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 153. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 153. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 154. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 154. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 154. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 155. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 155. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 155. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 156. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 156. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 156. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 157. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 157. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 157. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 158. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 158. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 158. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 162. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 162. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 162. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 163. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 163. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 163. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 166. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 166. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 166. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 167. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 167. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 167. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 168. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 168. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 168. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 169. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 169. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 169. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 170. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 170. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 170. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 171. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 171. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 171. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 172. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 172. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 172. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 173. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 173. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 173. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 174. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 174. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 174. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 175. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 175. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 175. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 176. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 176. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 176. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 177. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 177. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 177. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 178. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 178. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 178. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 179. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 179. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 179. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 180. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 180. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 180. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 181. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 181. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 181. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 184. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 184. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 184. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 185. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 185. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 185. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 188. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 188. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 188. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 189. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 189. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 189. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 190. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 190. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 190. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81, line 191. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82, line 191. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83, line 191. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 81. print() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 82. flock() on unopened filehandle LOG at /etc/nagios/nagiosgraph/ngshared.pm line 83. Unquoted string "ping" may clash with future reserved word at (eval 1) line 35. Unquoted string "losspct" may clash with future reserved word at (eval 1) line 36. Unquoted string "rta" may clash with future reserved word at (eval 1) line 37. Unquoted string "bytesfree" may clash with future reserved word at (eval 1) line 43. Unquoted string "bytesmax" may clash with future reserved word at (eval 1) line 44. Unquoted string "pctfree" may clash with future reserved word at (eval 1) line 45. Unquoted string "free" may clash with future reserved word at (eval 1) line 57. Unquoted string "user" may clash with future reserved word at (eval 1) line 58. Unquoted string "root" may clash with future reserved word at (eval 1) line 59. Unquoted string "max" may clash with future reserved word at (eval 1) line 60. Unquoted string "blockpct" may clash with future reserved word at (eval 1) line 61. Unquoted string "inodepct" may clash with future reserved word at (eval 1) line 62. Unquoted string "dns" may clash with future reserved word at (eval 1) line 70. Unquoted string "response" may clash with future reserved word at (eval 1) line 71. Unquoted string "imap" may clash with future reserved word at (eval 1) line 76. Unquoted string "response" may clash with future reserved word at (eval 1) line 77. Unquoted string "ldap" may clash with future reserved word at (eval 1) line 83. Unquoted string "response" may clash with future reserved word at (eval 1) line 84. Unquoted string "load" may clash with future reserved word at (eval 1) line 90. Unquoted string "mailq" may clash with future reserved word at (eval 1) line 99. Unquoted string "qsize" may clash with future reserved word at (eval 1) line 100. Unquoted string "qwarn" may clash with future reserved word at (eval 1) line 101. Unquoted string "qcrit" may clash with future reserved word at (eval 1) line 102. Unquoted string "udp" may clash with future reserved word at (eval 1) line 111. Unquoted string "tcp" may clash with future reserved word at (eval 1) line 115. Unquoted string "ntp" may clash with future reserved word at (eval 1) line 125. Unquoted string "offset" may clash with future reserved word at (eval 1) line 126. Unquoted string "jitter" may clash with future reserved word at (eval 1) line 127. Unquoted string "stratum" may clash with future reserved word at (eval 1) line 128. Unquoted string "response" may clash with future reserved word at (eval 1) line 134. Unquoted string "procs" may clash with future reserved word at (eval 1) line 139. Unquoted string "procs" may clash with future reserved word at (eval 1) line 140. Unquoted string "smtp" may clash with future reserved word at (eval 1) line 145. Unquoted string "response" may clash with future reserved word at (eval 1) line 146. Unquoted string "swap" may clash with future reserved word at (eval 1) line 152. Unquoted string "swapfree" may clash with future reserved word at (eval 1) line 153. Unquoted string "swapwarn" may clash with future reserved word at (eval 1) line 154. Unquoted string "swapcrit" may clash with future reserved word at (eval 1) line 155. Unquoted string "swapmax" may clash with future reserved word at (eval 1) line 156. Unquoted string "procs" may clash with future reserved word at (eval 1) line 162. Unquoted string "users" may clash with future reserved word at (eval 1) line 163. Unquoted string "uwarn" may clash with future reserved word at (eval 1) line 164. Unquoted string "ucrit" may clash with future reserved word at (eval 1) line 165. Unquoted string "zombie" may clash with future reserved word at (eval 1) line 170. Unquoted string "zombies" may clash with future reserved word at (eval 1) line 171. Unquoted string "bps" may clash with future reserved word at (eval 1) line 177. Use of uninitialized value in string eq at (eval 1) line 191. [root at dalimnag02 nagiosgraph]# Eric Chatham Broadvox MIS Department (216) 373-4683 echatham at broadvox.net -----Original Message----- From: Sergio Ariel [mailto:sergio.ariel at iris.uh.cu] Sent: Friday, March 20, 2009 09:40 To: Eric Chatham; nagios-users Subject: Re: [Nagios-users] NAGIOSGRAPH not graphing I have some similar problem, I have run insert.pl manually and ir return this: *readline() on closed filehandle PERFLOG at /usr/local/nagios/etc/nagiosgraph/ngshared.pm line 797* I went to /usr/local/nagios/etc/nagiosgraph/ngshared.pm line 797 and it says: 788 sub inputdata () { 789 my @inputlines; 790 if ( $ARGV[0] ) { 791 @inputlines = $ARGV[0]; 792 } elsif ( defined $Config{perflog} ) { 793 if (-s $Config{perflog}) { 794 my $worklog = $Config{perflog} . ".nagiosgraph"; 795 rename($Config{perflog}, $worklog); 796 open PERFLOG, $worklog; 797 while () { 798 push @inputlines, $_; 799 } 800 close PERFLOG; 801 unlink($worklog); 802 } I'm sure I configure logs for perfdata correctly: *service_perfdata_file* in nagios.cfg is the same file that *perflog* in nagiosgraph.conf. And I'm sure I put all path correctly in any file. I use nagiosgraph 1.2.1 -- Sergio Ariel de la Campa Saiz Administrador Red UH Eric Chatham wrote: > Hi Patrick, > > Here are my answers. I hope they give some insight as to the problem. Thank you. > >> Have you checked out the logs? Is there anything in them? > > Here is a sample of my /var/log/nagiosgraph.log file. I had the debugging level at (4). I don't see any INSERT into information though: > > Thu Mar 19 13:34:42 2009 insert.pl warn - perfdata not recognized: > date||host||desc||out||data for: > servicedescr: PING > output: PING OK - Packet loss = 0%, RTA = 0.35 ms > perfdata: > Thu Mar 19 13:34:52 2009 insert.pl warn - perfdata not recognized: > date||host||desc||out||data for: > servicedescr: PING > output: PING OK - Packet loss = 0%, RTA = 99.64 ms > perfdata: > >> Have you tried running the insert command manually to see what happens? > > When I run the insert.pl command manually I get this. > > [root@ ~ sbin]# /usr/local/lib/nagios/insert.pl > . > . > . > . > Unquoted string "procs" may clash with future reserved word at (eval 1) line 139. > Unquoted string "procs" may clash with future reserved word at (eval 1) line 140. > Unquoted string "smtp" may clash with future reserved word at (eval 1) line 145. > Unquoted string "response" may clash with future reserved word at (eval 1) line 146. > Unquoted string "swap" may clash with future reserved word at (eval 1) line 152. > Unquoted string "swapfree" may clash with future reserved word at (eval 1) line 153. > Unquoted string "swapwarn" may clash with future reserved word at (eval 1) line 154. > Unquoted string "swapcrit" may clash with future reserved word at (eval 1) line 155. > Unquoted string "swapmax" may clash with future reserved word at (eval 1) line 156. > Unquoted string "procs" may clash with future reserved word at (eval 1) line 162. > Unquoted string "users" may clash with future reserved word at (eval 1) line 163. > Unquoted string "uwarn" may clash with future reserved word at (eval 1) line 164. > Unquoted string "ucrit" may clash with future reserved word at (eval 1) line 165. > Unquoted string "zombie" may clash with future reserved word at (eval 1) line 170. > Unquoted string "zombies" may clash with future reserved word at (eval 1) line 171. > Unquoted string "bps" may clash with future reserved word at (eval 1) line 177. > >> Is it creating RRD files where it's supposed to? Is there data in them? > [root@ ~sbin]# ls -l /usr/local/nagios/nagiosgraph/rrd/ > total 80 > drwxrwxrwx 2 nagios nagios 4096 Mar 12 14:30 $ > drwxrwxrwx 2 nagios nagios 4096 Mar 12 14:39 ___ > drwxr-xr-x 2 apache apache 4096 Mar 13 15:48 host1 > drwxr-xr-x 2 apache apache 4096 Mar 13 15:48 host2 > drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 localhost > drwxr-xr-x 2 apache apache 4096 Mar 13 15:48 nagiosserver > drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 ny_sap01 > drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 ny_sap02 > drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 ny_transactional_DB > drwxrwxrwx 2 nagios nagios 4096 Mar 12 15:08 reach_media > > > [root@ ~ sbin]# ls -l /usr/local/nagios/nagiosgraph/rrd/reach_media/ > total 156 > -rwxrwxrwx 1 nagios nagios 47624 Mar 12 15:08 PING___ping.rrd > -rwxrwxrwx 1 nagios nagios 47624 Mar 12 15:08 PING___ping.rrd_max > -rwxrwxrwx 1 nagios nagios 47624 Mar 12 15:08 PING___ping.rrd_min > > The graph "template" displays on the page. That's it though. There is no data displaying. According to the last modified date in "reach_media," the graph was last updated on the 12th, the day I installed the program. Shouldn't the last modified date be now, since the graph continually is updated by insert.pl? > > > Eric Chatham > > -----Original Message----- > From: Patrick Morris [mailto:patrick.morris at hp.com] > Sent: Thursday, March 19, 2009 14:42 > To: Eric Chatham > Cc: Nagios Users Mailinglist > Subject: Re: [Nagios-users] NAGIOSGRAPH not graphing > > Hi Eric! > > On Thu, 19 Mar 2009, Eric Chatham wrote: > >> Please, can someone help me with this? I installed Nagios 3.0 and Nagiosgraph on a server with CentOS 5.1 i386 version installed. I am the point now trying to get the graphs to poll PING data. There is nothing on the graphs. What is wrong? I double checked the installation (which I followed the INSTALL instructions that came with the package). I still can?t find the problem. Please, help. > > Have you checked out the logs? Is there anything in them? > > Have you tried running the insert command manually to see what happens? > > Is it creating RRD files where it's supposed to? Is there data in them? > > > > CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. > > ------------------------------------------------------------------------------ > 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. ------------------------------------------------------------------------------ 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaiho8 at gmail.com Tue Apr 14 20:48:06 2009 From: jaiho8 at gmail.com (Jai Ram) Date: Tue, 14 Apr 2009 14:48:06 -0400 Subject: Fwd: Files Missing While upgrading. In-Reply-To: <9cfff3f00904141057k794c8e0fw4da0d82d4c1e460d@mail.gmail.com> References: <9cfff3f00904131610u43b39eaaobcd9f59ca4d62488@mail.gmail.com> <9cfff3f00904141057k794c8e0fw4da0d82d4c1e460d@mail.gmail.com> Message-ID: <9cfff3f00904141148p29deb52clea2581e06110d729@mail.gmail.com> ---------- Forwarded message ---------- From: Jai Ram Date: Tue, Apr 14, 2009 at 1:57 PM Subject: Re: [Nagios-users] Files Missing While upgrading. To: Marc Powell Hello Marc, *Thanks for your help*. As I have already Nagios3.0.6 is running except those three issues *statusmap,histogram and trends* in webinterface, Do I need to reconfigure with the below Process and run *make all *and* make install* or is there any way to make GD libraries available to nagios so that I don't need to run *make all *and*make install * again (or do I need to go again with the same process as i did for upgrading nagios2.8 to Nagios3.0.6). We are monitoring more then 500+ servers.If I run upgrade process again on Nagios3.0.6 with gd libraries available is my data going to be safe. Also could you please let me know if I am correct with the *below output* so that i can go ahead and do it. # *./configure --prefix=/opt/nagios --bindir=/opt/nagios/bin --sbindir=/opt/nagios/cgi-bin --datadir=/opt/nagios/share sysconfdir=/opt/nagios/etc --localstatedir=/opt/nagios/var --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagioscmd --with-gd-lib=/usr/lib --with-gd-inc=/usr/include* checking for a BSD-compatible install... /opt/sfw/bin/install -c checking build system type... i386-pc-solaris2.10 checking host system type... i386-pc-solaris2.10 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether make sets $(MAKE)... yes checking for strip... /usr/ccs/bin/strip checking how to run the C preprocessor... gcc -E checking for egrep... egrep checking for ANSI C header files... yes checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking pthreads.h usability... no checking pthreads.h presence... no checking for pthreads.h... no checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking socket.h usability... no checking socket.h presence... no checking for socket.h... no checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for sys/types.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking for sys/wait.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/msg.h usability... yes checking sys/msg.h presence... yes checking for sys/msg.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking uio.h usability... no checking uio.h presence... no checking for uio.h... no checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... no checking for tzname... yes checking for mode_t... yes checking for pid_t... yes checking for size_t... yes checking return type of signal handlers... void checking for uid_t in sys/types.h... yes checking type of array argument to getgroups... gid_t checking for va_copy... yes checking for vsnprintf... yes checking for snprintf... yes checking for asprintf... no checking for vasprintf... no checking for C99 vsnprintf... yes checking for initgroups... yes checking for setenv... yes checking for strdup... yes checking for strstr... yes checking for strtoul... yes checking for unsetenv... yes checking for type of socket size... size_t checking for pthread_create in -lcma... no checking for pthread_create in -lpthread... yes checking for library containing nanosleep... -lrt checking for mail... /usr/bin/mail We'll use default routines (in xdata/xsddefault.*) for status data I/O... We'll use default routines (in xdata/xcddefault.*) for comment data I/O... We'll use default routines (in xdata/xrddefault.*) for retention data I/O... We'll use template-based routines (in xdata/xodtemplate.*) for object data I/O... We'll use default routines (in xdata/xpddefault.*) for performance data I/O... We'll use default routines (in xdata/xdddefault.*) for scheduled downtime data I/O... checking for main in -liconv... yes *checking for gdImagePng in -lgd (order 1)... no checking for gdImagePng in -lgd (order 2)... yes GD library was found! ./configure: line 6132: pkg-config: command not found ./configure: line 6134: pkg-config: command not found* checking ltdl.h usability... no checking ltdl.h presence... no checking for ltdl.h... no checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for dlopen in -ldl... yes checking for extra flags needed to export symbols... none checking for linker flags for loadable modules... -G checking for traceroute... /usr/sbin/traceroute checking for type va_list... yes checking for perl... /usr/bin/perl configure: creating ./config.status config.status: creating Makefile config.status: creating subst config.status: creating pkginfo config.status: creating base/Makefile config.status: creating common/Makefile config.status: creating contrib/Makefile config.status: creating cgi/Makefile config.status: creating html/Makefile config.status: creating module/Makefile config.status: creating xdata/Makefile config.status: creating daemon-init config.status: creating html/index.html config.status: creating html/side.html config.status: creating include/config.h config.status: include/config.h is unchanged config.status: creating include/snprintf.h config.status: include/snprintf.h is unchanged config.status: creating include/cgiutils.h config.status: include/cgiutils.h is unchanged Creating sample config files in sample-config/ ... *** Configuration summary for nagios 3.0.6 12-01-2008 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagioscmd Embedded Perl: no Event Broker: yes Install ${prefix}: /opt/nagios Lock file: /opt/nagios/var/nagios.lock Check result directory: /opt/nagios/var/spool/checkresults Init directory: /etc/init.d Apache conf.d directory: /etc/httpd/conf.d Mail program: /usr/bin/mail Host OS: solaris2.10 Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /usr/sbin/traceroute Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. Thanks In Advance Jai Ram. On Mon, Apr 13, 2009 at 9:56 PM, Marc Powell wrote: > > On Apr 13, 2009, at 6:10 PM, Jai Ram wrote: > > > Hello, > > > > I have upgraded nagios from version 2.8 to 3.0.6 on Solaris-10. When > > I was going through upgrade it has requested me for > > statusmap.cgi,histogram.cgi and trends.cgi, was not found so I > > copied it from version 2.8. > > > > ** Is this because the above three files belongs to Version 2.8, If > > so how would i get those three files for Nagios-3.0.6. I looked in > > to Nagios-3.0.6 and those three files are missing. So how do I > > compile them for Nagios-3.0.6** > > It's because the GD libs (devel) are not installed or were not found > in standard locations. There's a FAQ entry for it but it looks like > the FAQ is broken right now. Examine the output of ./configure or > config.log for information and links. > > if the GD devel libraries are installed, you may need to pass their > location to ./configure with -- > > --with-gd-lib=DIR sets location of the gd library > --with-gd-inc=DIR sets location of the gd include files > > -- > Marc > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lraymond at weatherflow.com Wed Apr 15 05:18:42 2009 From: lraymond at weatherflow.com (Lance Raymond) Date: Tue, 14 Apr 2009 23:18:42 -0400 Subject: Still some basic 101 items Message-ID: I'm not sure I should say sorry for the basic questions as this is what the group is for, but seeing some of the in depth questions... talk about an inferiority complex. Well, I now can see how to debug the start (thanks Marc) and figured my one problem. But back to a basic few things. I am looking to have nagios monitor 40 or so servers. 10 or so webservers, a few database, all have ssh, etc. so as I am trying to lay this out in my head, for an example, is this the right thinking. Each box has an unique name in a server folder, /server/servername.cfg (that is what I have started and kind of working). The webservers will have the following; the define host { host_name address use (I think this is my problem) } Now the above, the use I think is the actual hostgroup I wish it to belong to (ex, webserver, linux-server, etc.) I am thinking I will have group temapltes, webserver will have an http test, linux-server can have an ssh check, load, users, etc. Now if the above is making sense, the use will have multiple, ex, use webserver, linux-server (I assume this is possible) That would take care of defining the default services to check for those particular box's. I guess I am looking for both confirmation and suggestions on some high level down setups. I don't want each host having 10 define_service items. I would rather say he is a webserver, and linux box. That by nature will check x, y and z. The problem so far is I have 4 servers, and even though I have an address in each, the use is still the default so ALL the box's details, users, swap usage, etc. is referenceing the localhost and not that individual box. That is where I am stuck, the doc's are really not to helpful, but I am trying to understand more the seperate files. How the use works, when to use a hostgroup, etc. I will gladly provide cfg files or if someone has some basic things (aside from the install templates) or some help on the above it's appreciated. Lr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Wed Apr 15 08:51:30 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 15 Apr 2009 07:51:30 +0100 Subject: Still some basic 101 items In-Reply-To: References: Message-ID: <765d77c80904142351n260a859dg91c9a35b8cdeebc9@mail.gmail.com> 2009/4/15 Lance Raymond : > I'm not sure I should say sorry for the basic questions as this is what the > group is for, but seeing some of the in depth questions... talk about an > inferiority complex.?? Well, I now can see how to debug the start (thanks > Marc) and figured my one problem.? But back to a basic few things.? I am > looking to have nagios monitor 40 or so servers.? 10 or so webservers, a few > database, all have ssh, etc. so as I am trying to lay this out in my head, > for an example, is this the right thinking. > > Each box has an unique name in a server folder, /server/servername.cfg > (that is what I have started and kind of working). > The webservers will have the following; > the define host { > host_name > address > use (I think this is my problem) > } > > Now the above, the use I think is the actual hostgroup I wish it to belong > to (ex, webserver, linux-server, etc.)? I am thinking I will have group > temapltes, webserver will have an http test, linux-server can have an ssh > check, load, users, etc. Now if the above is making sense, the use will have > multiple, ex, > use?? webserver, linux-server??? (I assume this is possible) ?That would > take care of defining the default services to check for those particular > box's. > > I guess I am looking for both confirmation and suggestions on some high > level down setups. ?I don't want each host having 10 define_service items. > ?I would rather say he is a webserver, and linux box. ?That by nature will > check x, y and z. ?The problem so far is I have 4 servers, and even though I > have an address in each, the use is still the default so ALL the box's > details, users, swap usage, etc. is referenceing the localhost and not that > individual box. > That is where I am stuck, the doc's are really not to helpful, but I am > trying to understand more the seperate files. ?How the use works, when to > use a hostgroup, etc. ?I will gladly provide cfg files or if someone has > some basic things (aside from the install templates) or some help on the > above it's appreciated. The main trick to note here is that you can specify hostgroup_name in your service definitions. In your linux-server host template for example, you can have: hostgroups linux-server How you organise your config files is pretty much up to you. I have a templates directory containing all my templates, and name the files for example host-linux-server.cfg, host-wintel-server.cfg, service-ftp.cfg and so on. I have a directory for each node type (server-wintel, sever-linux, routers, switches, etc,.) in each of these I have files for both host and service definitions. Some services are not specific to any one host type, so I have a seperate services folder for these generic service definitions (things like ftp, http, telnet go here). This works for me, but might not go with the way you think about your systems. I heartily recommend you buy the book "Nagios" by Wolfgang Barth as it gives an excellent head-start in understanding many of these issues. http://nostarch.com/nagios_2e.htm hth, Jim -- Web Admin for Corsham Diary http://corshamdiary.org.uk ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohandas.k at tcs.com Wed Apr 15 09:48:00 2009 From: mohandas.k at tcs.com (mohandas.k at tcs.com) Date: Wed, 15 Apr 2009 13:18:00 +0530 Subject: Pppnp4nagios graph customization Message-ID: Hi MAD, I have got one more query regarding graph customization. I need to know how can i customize scaling of X-axis and Y-axis in the graph. With reference to graph shown below, the current step size of the X-axis is 20 minutes and Y-axis is 20%. I want to change this scaling as per my convenience. So can you tell me how this customization can be done. Thanks & Regards, Mohandas Kudva K ASE Tata Consultancy Services Cell:- +91 9619144048 Mailto: mohandas.k at tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 9016 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sri.lumpa at free.fr Wed Apr 15 09:58:36 2009 From: sri.lumpa at free.fr (MAD) Date: Wed, 15 Apr 2009 09:58:36 +0200 (CEST) Subject: Pppnp4nagios graph customization In-Reply-To: <1513666386.2014101239782181659.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <1513666386.2014101239782181659.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: <233012247.2015041239782316799.JavaMail.root@zimbra16-e3.priv.proxad.net> Hi Mohandas, I must confess I don't know how (I didn't need to so I didn't think about it). I assume the X-axis is depending on the step of the RRD file, so even if you change its step size, for example to 10 minutes, the graph probably won't change. You'll probably find your answer on rrdtool website (http://oss.oetiker.ch/rrdtool/doc/index.en.html) and on Pnp4Nagios website (http://www.pnp4nagios.org/pnp/start). Sorry I couldn't help you this time. Marc-Andr? ----- Mail Original ----- De: "mohandas k" ?: "MAD" Cc: nagios-users at lists.sourceforge.net Envoy?: Mercredi 15 Avril 2009 09h48:00 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [Nagios-users] Pppnp4nagios graph customization Hi MAD, I have got one more query regarding graph customization. I need to know how can i customize scaling of X-axis and Y-axis in the graph. With reference to graph shown below, the current step size of the X-axis is 20 minutes and Y-axis is 20%. I want to change this scaling as per my convenience. So can you tell me how this customization can be done. Thanks & Regards, Mohandas Kudva K ASE Tata Consultancy Services Cell:- +91 9619144048 Mailto: mohandas.k at tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Wed Apr 15 11:06:54 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Wed, 15 Apr 2009 10:06:54 +0100 Subject: MySQL replication status plugin Message-ID: Good morning guys, (and girls), I hope all is well. I've been given the task to, and I quote - "Write a Nagios plugin to test the replication status of two servers by comparing the position on the master to that on the slave" To save myself a lot of work, I'd like to know if anything has been done in this arena already, I would be over the moon, if someone has beaten me to it, but I am so not in the mood to write one! --- Kind Regards, Mr Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Wed Apr 15 11:26:07 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Wed, 15 Apr 2009 10:26:07 +0100 Subject: MySQL replication status plugin In-Reply-To: <49E5A692.1030600@sysctl.de> References: <49E5A692.1030600@sysctl.de> Message-ID: Christophe, I appreciate your super fast answer! And I feel stupid for not spotting it before! Have a good day my friend. > -----Original Message----- > From: Christophe Zwecker [mailto:czwecker at sysctl.de] > Sent: 15 April 2009 10:19 > To: Gabriel - IP Guys > Subject: Re: MySQL replication status plugin > > check_mysql does what you want. > > best regards, > > Christophe > > Gabriel - IP Guys wrote: > > Good morning guys, (and girls), I hope all is well. I've been given > the > > task to, and I quote - "Write a Nagios plugin to test the replication > > status of two servers by > > comparing the position on the master to that on the slave" > > > > > > > > To save myself a lot of work, I'd like to know if anything has been > done > > in this arena already, I would be over the moon, if someone has > beaten > > me to it, but I am so not in the mood to write one! > > > > > > > > Any hints, recommendations, and ideas are wholly welcome! > > > > > > > > --- > > > > Kind Regards, > > > > Mr Gabriel > > > > > > > > > > > -- > Christophe Zwecker > :Sysctl > Koppel 96 > 20099 Hamburg > phon: +49 40 41263790 > fax: +49 40 41263799 > mail: czwecker at sysctl.de ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Wed Apr 15 11:33:22 2009 From: al at its-lehmann.de (Arno Lehmann) Date: Wed, 15 Apr 2009 11:33:22 +0200 Subject: MySQL replication status plugin In-Reply-To: References: Message-ID: <49E5A9E2.3040706@its-lehmann.de> Hi, 15.04.2009 11:06, Gabriel - IP Guys wrote: > > > Good morning guys, (and girls), I hope all is well. I?ve been given the > task to, and I quote ? ?Write a Nagios plugin to test the replication > status of two servers by > comparing the position on the master to that on the slave? > I don't know about the "position" question, but my check_mysql from the standard plugins 1.4.11 tells me this: Options: ... -S, --check-slave Check if the slave thread is running properly. -w, --warning Exit with WARNING status if slave server is more than INTEGER seconds behind master -c, --critical Exit with CRITICAL status if slave server is more then INTEGER seconds behind master So why not check if that is what you need? > > To save myself a lot of work, I?d like to know if anything has been done > in this arena already, I would be over the moon, if someone has beaten > me to it, but I am so not in the mood to write one! Arno > > > --- > > Kind Regards, > > Mr Gabriel > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabr?ck www.its-lehmann.de ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Wed Apr 15 11:44:13 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Wed, 15 Apr 2009 10:44:13 +0100 Subject: MySQL replication status plugin In-Reply-To: <49E5A9E2.3040706@its-lehmann.de> References: <49E5A9E2.3040706@its-lehmann.de> Message-ID: Thanks to all the people who emailed me off list, to remind me that the check_mysql plugin actually contains the functions I wanted! I appreciate all the help. Thanks. --- Kind Regards, Mr Gabriel > -----Original Message----- > From: Arno Lehmann [mailto:al at its-lehmann.de] > Sent: 15 April 2009 10:33 > To: Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] MySQL replication status plugin > > Hi, > > 15.04.2009 11:06, Gabriel - IP Guys wrote: > > > > > > Good morning guys, (and girls), I hope all is well. I've been given > the > > task to, and I quote - "Write a Nagios plugin to test the replication > > status of two servers by > > comparing the position on the master to that on the slave" > > > > I don't know about the "position" question, but my check_mysql from > the standard plugins 1.4.11 tells me this: > > Options: > ... > -S, --check-slave > Check if the slave thread is running properly. > -w, --warning > Exit with WARNING status if slave server is more than INTEGER > seconds behind master > -c, --critical > Exit with CRITICAL status if slave server is more then INTEGER > seconds behind master > > So why not check if that is what you need? > > > > > To save myself a lot of work, I'd like to know if anything has been > done > > in this arena already, I would be over the moon, if someone has > beaten > > me to it, but I am so not in the mood to write one! > > Arno > > > > > > > --- > > > > Kind Regards, > > > > Mr Gabriel > > > > > > > > > > --------------------------------------------------------------------- > --- > > > > --------------------------------------------------------------------- > --------- > > This SF.net email is sponsored by: > > High Quality Requirements in a Collaborative Environment. > > Download a free trial of Rational Requirements Composer Now! > > http://p.sf.net/sfu/www-ibm-com > > > > > > --------------------------------------------------------------------- > --- > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to > /dev/null > > -- > Arno Lehmann > IT-Service Lehmann > Sandstr. 6, 49080 Osnabr?ck > www.its-lehmann.de > > ----------------------------------------------------------------------- > ------- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knetzorg at gmail.com Wed Apr 15 13:59:39 2009 From: knetzorg at gmail.com (Ken Netzorg) Date: Wed, 15 Apr 2009 07:59:39 -0400 Subject: OS Change Management Auditing using Nagios? Message-ID: Is anyone leveraging Nagios for notification of changes done to operating systems? I am looking to deploy a solution that monitors OS changes and generates alerts when a configuration or file change is made. Is anyone doing this type of thing through a Nagios plug-in? My goal would be to know when an OS is being changed and be able to correlate that to a scheduled change or potential compromise of the OS that needs to be further investigated. (Something more holistic than basic log monitoring unless there is a service that generates logs based on changes that will then be captured by a log review.) The monitoring would be done on both Windows and Linux platforms. Thanks, Ken -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kmechri at gmail.com Wed Apr 15 14:30:31 2009 From: kmechri at gmail.com (kaouther mechri) Date: Wed, 15 Apr 2009 14:30:31 +0200 Subject: Help on Nagios Grapher with Nagios 3 Message-ID: Dear All, I've installed Nagios grapher following its documentation. I've modified the nagios configuration files but, the nagios grapher didn't take into account the configuration I put in the ngraph.d directory. I have only 3 graphs (even no configuration file in ngrap.d): Current users, ping and swap for localhost. Do you have any idea please Otherwise, I want to know if anybody tested the netways grapher v2 ? Any suggestion about nagios graphic tools are welcome Many thanks Kaouther -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From borkmann at cbs.mpg.de Wed Apr 15 14:41:57 2009 From: borkmann at cbs.mpg.de (borkmann at cbs.mpg.de) Date: Wed, 15 Apr 2009 14:41:57 +0200 Subject: Customize "service detail" page Message-ID: <49E5D615.8040600@cbs.mpg.de> hi all, is there a possibility to customize the service detail page of nagios? i think about adding one column to the table that calls my perl script and prints the specific output to the cell. the call-parameters for my perl script need to be host and service from the current table line. would this be possible? best regards daniel ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Wed Apr 15 14:45:03 2009 From: subscription at kkeane.com (Kevin Keane) Date: Wed, 15 Apr 2009 05:45:03 -0700 Subject: OS Change Management Auditing using Nagios? In-Reply-To: References: Message-ID: <49E5D6CF.9010502@kkeane.com> I am not using Nagios for that purpose, but rather Open-Audit. I believe there is a way to have changes in OA propagate to Nagios. Another tool you may want to look into is tripwire; it generates exactly the logs based on changes that you were looking for. Then use the check_log plugin to monitor the tripwire log file. The biggest concern with this type of tool that I would have is that monitoring OS changes is very labor-intensive. For me, to the point of impracticality. The problem is the sheer volume of patches that come out on a regular basis makes it all but impossible to keep up with. You'd have to look at every single patch and find out which files it changes before you have a way of knowing whether a particular tripwire alert is legitimate or not. Ken Netzorg wrote: > Is anyone leveraging Nagios for notification of changes done to > operating systems? > > I am looking to deploy a solution that monitors OS changes and > generates alerts when a configuration or file change is made. Is > anyone doing this type of thing through a Nagios plug-in? My goal > would be to know when an OS is being changed and be able to correlate > that to a scheduled change or potential compromise of the OS that > needs to be further investigated. (Something more holistic than basic > log monitoring unless there is a service that generates logs based on > changes that will then be captured by a log review.) > > The monitoring would be done on both Windows and Linux platforms. > > Thanks, > Ken -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From knetzorg at gmail.com Wed Apr 15 15:16:58 2009 From: knetzorg at gmail.com (Ken Netzorg) Date: Wed, 15 Apr 2009 09:16:58 -0400 Subject: OS Change Management Auditing using Nagios? In-Reply-To: <49E5D6CF.9010502@kkeane.com> References: <49E5D6CF.9010502@kkeane.com> Message-ID: Thanks, Kevin. You do raise a valid point about knowing what is changing in the general updates vs what is un-authorized and knowing the difference. My, possibly naive, thought is that I could batch updates/patches and make the assumption the changes are due to that process, but there is that chance something changes in that period as well..... If nothing else, changes at 2am or off hours would hopefully raise an alarm to be investigated. I'll take a look at Tripwire in more depth (I glanced at it briefly and wasn't sure if it was too involved for what I was looking for or not) as well as open-audit. Thanks. Ken On Wed, Apr 15, 2009 at 8:45 AM, Kevin Keane wrote: > I am not using Nagios for that purpose, but rather Open-Audit. I believe > there is a way to have changes in OA propagate to Nagios. > > Another tool you may want to look into is tripwire; it generates exactly > the logs based on changes that you were looking for. Then use the > check_log plugin to monitor the tripwire log file. > > The biggest concern with this type of tool that I would have is that > monitoring OS changes is very labor-intensive. For me, to the point of > impracticality. The problem is the sheer volume of patches that come out > on a regular basis makes it all but impossible to keep up with. You'd > have to look at every single patch and find out which files it changes > before you have a way of knowing whether a particular tripwire alert is > legitimate or not. > > Ken Netzorg wrote: > > Is anyone leveraging Nagios for notification of changes done to > > operating systems? > > > > I am looking to deploy a solution that monitors OS changes and > > generates alerts when a configuration or file change is made. Is > > anyone doing this type of thing through a Nagios plug-in? My goal > > would be to know when an OS is being changed and be able to correlate > > that to a scheduled change or potential compromise of the OS that > > needs to be further investigated. (Something more holistic than basic > > log monitoring unless there is a service that generates logs based on > > changes that will then be captured by a log review.) > > > > The monitoring would be done on both Windows and Linux platforms. > > > > Thanks, > > Ken > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think > About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or > proprietary information. Please be advised that the unauthorized use or > disclosure of the information is strictly prohibited. The information herein > is intended only for use by the intended recipient(s) named above. If you > have received this transmission in error, please notify the sender > immediately and permanently delete the e-mail and any copies, printouts or > attachments thereof. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 15 15:38:45 2009 From: marc at ena.com (Marc Powell) Date: Wed, 15 Apr 2009 08:38:45 -0500 Subject: Customize "service detail" page In-Reply-To: <49E5D615.8040600@cbs.mpg.de> References: <49E5D615.8040600@cbs.mpg.de> Message-ID: <8620D0B5-77D8-425F-AE77-BC298408C24C@ena.com> On Apr 15, 2009, at 7:41 AM, borkmann at cbs.mpg.de wrote: > hi all, > > is there a possibility to customize the service detail page of nagios? Currently only by modifying the source code of status.c and re- compiling. -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hpsekhon at googlemail.com Wed Apr 15 15:56:22 2009 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 15 Apr 2009 14:56:22 +0100 Subject: problem with check_yum In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com> Message-ID: <49E5E786.5070109@googlemail.com> Seth Simmons wrote: > > I?m running nagios 3.0.6 and using check_yum on my red hat/centos boxes. > > Today I?ve had all my centos boxes show yum warnings about needed > updates; found out centos 5.3 was released. > > I have one red hat 5.2 box. The problem is, check_yum within nagios > shows ?o/s is up to date? as of last check (10 min ago). > > If I run it manually from the machine, it gives a warning that updates > are needed (verified through yum and rhn). > > How can nagios be reporting that yum is ok when it isn?t? > Fyi, see http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2577.html;d=1 for a better check_yum plugin. I wrote it, the one you are using really was too primitive I thought... I've not seen this behaviour with this plugin, but it gives better visibility on how many updates, whether they are security or just regular non-critical updates etc... There is also a note about update check reliability when running as a non root user. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alejandro.sanchez at ite.es Wed Apr 15 17:02:19 2009 From: alejandro.sanchez at ite.es (=?iso-8859-1?Q?Alejandro_S=E1nchez_Mero=F1o?=) Date: Wed, 15 Apr 2009 17:02:19 +0200 Subject: how to let nagios think host is online References: Message-ID: Hello, I created an "Always_OK" command for these hosts I couldn't ping and appeared in red even when all their services were green (i.e., check-host-alive does not work). I decided that if all the services are on, it's because the host is on... define host { use linux-server host_name myhost alias My host that can't stand pings address my.host.ip.address check_command check_ok } And, in commands.cfg: define command { command_name check_ok command_line $USER1$/check_dummy 0 OK } Hope this helps... Best regards, Alejandro == Alejandro Sanchez Merono Area de Informatica y Comunicaciones Instituto de Tecnologia Electrica - http://www.ite.es Valencia - Spain Hi all, I have one host need to be monitoring, but it is not allow ping. So the nagios plug-in check_ping can not work. Host line in the web page is red. How can I let nagios think it is OK? I checked the manual, about host definition, check_command This directive is used to specify the short name of the command that should be used to check if the host is up or down. Typically, this command would try and ping the host to see if it is "alive". The command must return a status of OK (0) or Nagios will assume the host is down. If you leave this argument blank, the host will not be actively checked. Thus, Nagios will likely always assume the host is up (it may show up as being in a "PENDING" state in the web interface). This is useful if you are monitoring printers or other devices that are frequently turned off. The maximum amount of time that the notification command can run is controlled by the host_check_timeout option. sorry, I don't understand what should I do. Please advice me. Thanks a lot! -- --- Mika Chu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Wed Apr 15 18:09:46 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Wed, 15 Apr 2009 12:09:46 -0400 Subject: problem with check_yum In-Reply-To: <49E5E786.5070109@googlemail.com> References: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com> <49E5E786.5070109@googlemail.com> Message-ID: <4881ECF1AB752843908A20CEE07A8EB1127FCF@buf-ex01.cymfony.com> Thanks This version is more verbose and has more options available; I'll see how this works. -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: Wednesday, April 15, 2009 9:56 AM To: Seth Simmons Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] problem with check_yum Seth Simmons wrote: > > I?m running nagios 3.0.6 and using check_yum on my red hat/centos boxes. > > Today I?ve had all my centos boxes show yum warnings about needed > updates; found out centos 5.3 was released. > > I have one red hat 5.2 box. The problem is, check_yum within nagios > shows ?o/s is up to date? as of last check (10 min ago). > > If I run it manually from the machine, it gives a warning that updates > are needed (verified through yum and rhn). > > How can nagios be reporting that yum is ok when it isn?t? > Fyi, see http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2577.html;d=1 for a better check_yum plugin. I wrote it, the one you are using really was too primitive I thought... I've not seen this behaviour with this plugin, but it gives better visibility on how many updates, whether they are security or just regular non-critical updates etc... There is also a note about update check reliability when running as a non root user. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Steve.Onotsky at broadridge.com Wed Apr 15 18:12:21 2009 From: Steve.Onotsky at broadridge.com (Onotsky, Steve x55328) Date: Wed, 15 Apr 2009 12:12:21 -0400 Subject: OS Change Management Auditing using Nagios? In-Reply-To: References: <49E5D6CF.9010502@kkeane.com> Message-ID: <30A417B62E7EE448B3864ADC881CEFD60876CB72@missemsa01.bsg.ad.adp.com> We use AIDE for some systems here; it's included with recent Red Hat distributions (and possibly others) and can be compiled for pretty much any other *nix platform. My ISO is quite keen on it. Cheers ________________________________ From: Ken Netzorg [mailto:knetzorg at gmail.com] Sent: April 15, 2009 09:17 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] OS Change Management Auditing using Nagios? Thanks, Kevin. You do raise a valid point about knowing what is changing in the general updates vs what is un-authorized and knowing the difference. My, possibly naive, thought is that I could batch updates/patches and make the assumption the changes are due to that process, but there is that chance something changes in that period as well..... If nothing else, changes at 2am or off hours would hopefully raise an alarm to be investigated. I'll take a look at Tripwire in more depth (I glanced at it briefly and wasn't sure if it was too involved for what I was looking for or not) as well as open-audit. Thanks. Ken On Wed, Apr 15, 2009 at 8:45 AM, Kevin Keane wrote: I am not using Nagios for that purpose, but rather Open-Audit. I believe there is a way to have changes in OA propagate to Nagios. Another tool you may want to look into is tripwire; it generates exactly the logs based on changes that you were looking for. Then use the check_log plugin to monitor the tripwire log file. The biggest concern with this type of tool that I would have is that monitoring OS changes is very labor-intensive. For me, to the point of impracticality. The problem is the sheer volume of patches that come out on a regular basis makes it all but impossible to keep up with. You'd have to look at every single patch and find out which files it changes before you have a way of knowing whether a particular tripwire alert is legitimate or not. Ken Netzorg wrote: > Is anyone leveraging Nagios for notification of changes done to > operating systems? > > I am looking to deploy a solution that monitors OS changes and > generates alerts when a configuration or file change is made. Is > anyone doing this type of thing through a Nagios plug-in? My goal > would be to know when an OS is being changed and be able to correlate > that to a scheduled change or potential compromise of the OS that > needs to be further investigated. (Something more holistic than basic > log monitoring unless there is a service that generates logs based on > changes that will then be captured by a log review.) > > The monitoring would be done on both Windows and Linux platforms. > > Thanks, > Ken -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Wed Apr 15 18:24:02 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 15 Apr 2009 17:24:02 +0100 Subject: Customize "service detail" page In-Reply-To: <49E5D615.8040600@cbs.mpg.de> References: <49E5D615.8040600@cbs.mpg.de> Message-ID: <765d77c80904150924l4f2cf061p8dcb758e1e19d378@mail.gmail.com> 2009/4/15 : > hi all, > > is there a possibility to customize the service detail page of nagios? > > i think about adding one column to the table that calls my perl script > and prints the specific output to the cell. > the call-parameters for my perl script need to be host and service from > the current table line. > > would this be possible? > > best regards > daniel I've heard of people achieving something similar by running the service plugin through a wrapper which prepends the relevant string to the normal plugin output. I can't say I've ever tried it myself though. As an example, instead of the normal check command: define command{ command_name check_ftp command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ } You could have a wrapper script which prints the output of your perl script (with no newline) then runs the command proper. Depending on how you write the wrapper script (I'll leave that to your imagination), the command definition might then look something like: define command{ command_name check_ftp command_line /usr/local/bin/my_wrapper.pl -c $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ } Your perl output wouldn't appear in a seperate column as such, but at least it would appear on the normal service detail page where you can see it. It's a bit dirty, but if you only need it for a small number of checks might be a quick way to get it done. Cheers, Jim ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Wed Apr 15 18:42:35 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Wed, 15 Apr 2009 12:42:35 -0400 Subject: problem with check_yum In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1127FCF@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com><49E5E786.5070109@googlemail.com> <4881ECF1AB752843908A20CEE07A8EB1127FCF@buf-ex01.cymfony.com> Message-ID: <4881ECF1AB752843908A20CEE07A8EB1127FD2@buf-ex01.cymfony.com> I refreshed the checks for my CentOS systems and now it shows how many updates are there, which is nice. However, there is still an issue with my RH 5 system. If I use this check_yum plugin, it tells me in Nagios "UNKNOWN: Security plugin for yum is required." I did install this on all my CentOS/RH 5 boxes, but this one thinks it isn't there. If I run the plugin locally, it works saying there are updates available. Very strange... -----Original Message----- From: Seth Simmons Sent: Wednesday, April 15, 2009 12:10 PM To: Hari Sekhon Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] problem with check_yum Thanks This version is more verbose and has more options available; I'll see how this works. -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: Wednesday, April 15, 2009 9:56 AM To: Seth Simmons Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] problem with check_yum Seth Simmons wrote: > > I?m running nagios 3.0.6 and using check_yum on my red hat/centos boxes. > > Today I?ve had all my centos boxes show yum warnings about needed > updates; found out centos 5.3 was released. > > I have one red hat 5.2 box. The problem is, check_yum within nagios > shows ?o/s is up to date? as of last check (10 min ago). > > If I run it manually from the machine, it gives a warning that updates > are needed (verified through yum and rhn). > > How can nagios be reporting that yum is ok when it isn?t? > Fyi, see http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2577.html;d=1 for a better check_yum plugin. I wrote it, the one you are using really was too primitive I thought... I've not seen this behaviour with this plugin, but it gives better visibility on how many updates, whether they are security or just regular non-critical updates etc... There is also a note about update check reliability when running as a non root user. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaushalshriyan at gmail.com Wed Apr 15 19:06:25 2009 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Wed, 15 Apr 2009 22:36:25 +0530 Subject: CRITICAL - Socket timeout after 30 seconds (-) for check_http nagios plugin Message-ID: <6b16fb4c0904151006v18751d14l21c0fb858dce327@mail.gmail.com> Hi I have a weird issue here on a particular host for jboss service running on port 8888. I am using check_http Nagios Plugin.I get the below notifications. *CRITICAL - Socket timeout after 30 seconds (-) for check_http nagios plugin.* I have increased the -t parameter value from 15 secs to 30 secs in check_http plugin.There is no issue of load too. Not able to figure out whats causing this issue. Please suggest. Thanks and Regards Kaushal -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Wed Apr 15 19:16:50 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Wed, 15 Apr 2009 13:16:50 -0400 Subject: CRITICAL - Socket timeout after 30 seconds (-) forcheck_http nagios plugin In-Reply-To: <6b16fb4c0904151006v18751d14l21c0fb858dce327@mail.gmail.com> References: <6b16fb4c0904151006v18751d14l21c0fb858dce327@mail.gmail.com> Message-ID: <4881ECF1AB752843908A20CEE07A8EB1127FD9@buf-ex01.cymfony.com> Did you use -p 8888 in your command to specify the port? If you don't use -p it will default to 80. From: Kaushal Shriyan [mailto:kaushalshriyan at gmail.com] Sent: Wednesday, April 15, 2009 1:06 PM To: nagios Mailinglist Subject: [Nagios-users] CRITICAL - Socket timeout after 30 seconds (-) forcheck_http nagios plugin Hi I have a weird issue here on a particular host for jboss service running on port 8888. I am using check_http Nagios Plugin.I get the below notifications. CRITICAL - Socket timeout after 30 seconds (-) for check_http nagios plugin. I have increased the -t parameter value from 15 secs to 30 secs in check_http plugin.There is no issue of load too. Not able to figure out whats causing this issue. Please suggest. Thanks and Regards Kaushal -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kaushalshriyan at gmail.com Wed Apr 15 19:19:07 2009 From: kaushalshriyan at gmail.com (Kaushal Shriyan) Date: Wed, 15 Apr 2009 22:49:07 +0530 Subject: CRITICAL - Socket timeout after 30 seconds (-) forcheck_http nagios plugin In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1127FD9@buf-ex01.cymfony.com> References: <6b16fb4c0904151006v18751d14l21c0fb858dce327@mail.gmail.com> <4881ECF1AB752843908A20CEE07A8EB1127FD9@buf-ex01.cymfony.com> Message-ID: <6b16fb4c0904151019q661878e6r68377a0313234a7a@mail.gmail.com> On Wed, Apr 15, 2009 at 10:46 PM, Seth Simmons wrote: > Did you use ?p 8888 in your command to specify the port? > > If you don?t use ?p it will default to 80. > > > > > > *From:* Kaushal Shriyan [mailto:kaushalshriyan at gmail.com] > *Sent:* Wednesday, April 15, 2009 1:06 PM > *To:* nagios Mailinglist > *Subject:* [Nagios-users] CRITICAL - Socket timeout after 30 seconds (-) > forcheck_http nagios plugin > > > > Hi > > I have a weird issue here on a particular host for jboss service running on > port 8888. I am using check_http Nagios Plugin.I get the below > notifications. > > *CRITICAL - Socket timeout after 30 seconds (-) for check_http nagios > plugin.* > > I have increased the -t parameter value from 15 secs to 30 secs in > check_http plugin.There is no issue of load too. > Not able to figure out whats causing this issue. > > Please suggest. > > Thanks and Regards > > Kaushal > Hi Seth its -p 8888 Thanks and Regards Kaushal -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From livio.zanol.puppim at gmail.com Wed Apr 15 20:48:30 2009 From: livio.zanol.puppim at gmail.com (Livio Zanol Puppim) Date: Wed, 15 Apr 2009 15:48:30 -0300 Subject: "Service check did not exit properly" Message-ID: Just to inform, that I've had this problem... After googling it, couldn't find an answer. Only a similar problem in the past Well, this has happend to me with a perl script. the problem was a "Switch" statement. I was using "use Switch;", and the scripts works, as root and as nagios user, but doesn't work when nagios calls it. Nagios 3.0.3 regards -- []'s L?vio Zanol Puppim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 15 21:04:01 2009 From: marc at ena.com (Marc Powell) Date: Wed, 15 Apr 2009 14:04:01 -0500 Subject: "Service check did not exit properly" In-Reply-To: References: Message-ID: <56B507D9-38A0-40FA-AA9F-240A76E39868@ena.com> On Apr 15, 2009, at 1:48 PM, Livio Zanol Puppim wrote: > Just to inform, that I've had this problem... After googling it, > couldn't find an answer. Only a similar problem in the past > > Well, > this has happend to me with a perl script. the problem was a > "Switch" statement. > I was using "use Switch;", and the scripts works, as root and as > nagios user, but doesn't work when nagios calls it. > > Nagios 3.0.3 It may be that you have the embedded perl interpreter compiled in and enabled, and the script was not specifically designed to work under it. There are special, documented requirements for plugins to work successfully under ePN. You can test if that is the cause by either disabling ePN or prepending the command_line for this plugin with '/ your/path/to/perl' (i.e. command_line /your/path/to/perl $USER1$/ yourplugin -H ...other arguments...) -- Marc ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marney at teramedica.com Thu Apr 16 00:02:16 2009 From: marney at teramedica.com (Michael Arney) Date: Wed, 15 Apr 2009 17:02:16 -0500 Subject: Access as an application vendor from outside a firewall Message-ID: <184970927F240D41B22DDEA372ABA843012218AE5576@SARGE.Tushaus.com> I have been tasked by my company to compare system monitoring tools. We are a small Java software development shop. Our product runs on several servers (Windows or Unix) at each of our clients, and has a web front end, file system storage, and database (PostgreSQL, Oracle, or MS SQL Server). We support our software remotely: the clients agree to provide VPN or Telnet access. The VPN access may not be permanent (ie we may have to use a Cisco or Juniper vpn client each time we remote desktop to them). At present we have fewer than 50 clients. We want to monitor basic up/down and disk free type metrics, but also to issue a variety of custom queries against our database and application to check its status. So, my question is: How much network access would Nagios require for us to use it to monitor our application? Our clients are sometimes reluctant to open their firewall to a vendor like us. I'd like to know what's the minimum we need to ask of them so we can get good proactive monitoring of our installations. Ideally we would not even need to ask for more than we have now, but that may not be realistic. We have even toyed with the idea of buying a dual-NIC machine at each client to put inside their firewall just to communicate with our central monitoring server. I don't know if that would help. We are currently evaluating Nagios. But we are also looking into other products (OpenNMS, Zenoss, Hyperic). So any comparisons with them in this regard would be helpful too. Thanks in advance, Mike ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From finchs at stgeorge.com.au Thu Apr 16 00:40:57 2009 From: finchs at stgeorge.com.au (Simon Finch) Date: Thu, 16 Apr 2009 08:40:57 +1000 Subject: Centreon In-Reply-To: References: <49DF5D04020000480008D21D@stgeorge.com.au> <4881ECF1AB752843908A20CEE07A8EB1127F0A@buf-ex01.cymfony.com> <49E351E3.B47D.0048.0@stgeorge.com.au> Message-ID: <49E6EF19.B47D.0048.0@stgeorge.com.au> Centreon requires NDO for a multiple Nagios server environment, I am not sure about a single server system. Simon Finch | ESM Specialist Ground Floor, 4-16 Montgomery St, Kogarah NSW 2217 (+61 2 9952 2574 7 +61 412 256 814 Email: finchs at stgeorge.com.au www.stgeorge.com.au ______________________________________ St.George Bank IT - Good with people. Good with monitoring. ********************************************************************** ***** IMPORTANT INFORMATION ***** This document should be read only by those persons to whom it is addressed and its content is not intended for use by any other persons. If you have received this message in error, please notify us immediately. Please also destroy and delete the message from your computer. Any unauthorised form of reproduction of this message is strictly prohibited. St George Bank Limited AFSL 240997, Advance Asset Management Limited AFSL 240902, St George Life Limited AFSL 240900, ASGARD Capital Management Limited AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/xxx Size: 1753 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: applicaton/octect-stream Size: 5085 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Thu Apr 16 00:50:16 2009 From: subscription at kkeane.com (Kevin Keane) Date: Wed, 15 Apr 2009 15:50:16 -0700 Subject: OS Change Management Auditing using Nagios? In-Reply-To: References: Message-ID: <49E664A8.6050406@kkeane.com> All that really depends on exactly how you are working. If you are manually applying the patches, and if you can take the machine offline for that period of time, your method will work. You'd simply have to tell tripwire to update its database. That's not a huge deal. I am using automatic updates wherever possible, so all the updates are expected to happen around 3AM. Since that is the default setting (at least in Windows), a hacker might well use the same window to sneak in his own changes. You are right - Tripwire is involved. When you are trying to track some tens of thousands of files (the size of most operating systems today) that is hardly surprising. Ken Netzorg wrote: > Thanks, Kevin. > > You do raise a valid point about knowing what is changing in the > general updates vs what is un-authorized and knowing the difference. > My, possibly naive, thought is that I could batch updates/patches and > make the assumption the changes are due to that process, but there is > that chance something changes in that period as well..... If nothing > else, changes at 2am or off hours would hopefully raise an alarm to be > investigated. > > I'll take a look at Tripwire in more depth (I glanced at it briefly > and wasn't sure if it was too involved for what I was looking for or > not) as well as open-audit. > > Thanks. > Ken > > On Wed, Apr 15, 2009 at 8:45 AM, Kevin Keane > wrote: > > I am not using Nagios for that purpose, but rather Open-Audit. I > believe > there is a way to have changes in OA propagate to Nagios. > > Another tool you may want to look into is tripwire; it generates > exactly > the logs based on changes that you were looking for. Then use the > check_log plugin to monitor the tripwire log file. > > The biggest concern with this type of tool that I would have is that > monitoring OS changes is very labor-intensive. For me, to the point of > impracticality. The problem is the sheer volume of patches that > come out > on a regular basis makes it all but impossible to keep up with. You'd > have to look at every single patch and find out which files it changes > before you have a way of knowing whether a particular tripwire > alert is > legitimate or not. > > Ken Netzorg wrote: > > Is anyone leveraging Nagios for notification of changes done to > > operating systems? > > > > I am looking to deploy a solution that monitors OS changes and > > generates alerts when a configuration or file change is made. Is > > anyone doing this type of thing through a Nagios plug-in? My goal > > would be to know when an OS is being changed and be able to > correlate > > that to a scheduled change or potential compromise of the OS that > > needs to be further investigated. (Something more holistic than > basic > > log monitoring unless there is a service that generates logs > based on > > changes that will then be captured by a log review.) > > > > The monitoring would be done on both Windows and Linux platforms. > > > > Thanks, > > Ken > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have > to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential > and/or proprietary information. Please be advised that the > unauthorized use or disclosure of the information is strictly > prohibited. The information herein is intended only for use by the > intended recipient(s) named above. If you have received this > transmission in error, please notify the sender immediately and > permanently delete the e-mail and any copies, printouts or > attachments thereof. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Thu Apr 16 01:02:35 2009 From: subscription at kkeane.com (Kevin Keane) Date: Wed, 15 Apr 2009 16:02:35 -0700 Subject: Access as an application vendor from outside a firewall In-Reply-To: <184970927F240D41B22DDEA372ABA843012218AE5576@SARGE.Tushaus.com> References: <184970927F240D41B22DDEA372ABA843012218AE5576@SARGE.Tushaus.com> Message-ID: <49E6678B.4000302@kkeane.com> I actually have a very similar problem, and wrote some software to solve it. I am a consultant, and want to proactively monitor my customer's systems for all kinds of performance problems. Like your situation, my monitoring requires access to private data that is not published outside the firewall. What I did was write TNTMonitoring (for Windows) and a one-off script that does basically the same thing (for Linux). Check out http://www.tntmonitoring.com for more information on the Windows version. It is an agent that installs on the server you want to monitor, runs the various checks, and then submits them via https (it also used to support SSH - if you prefer that, let me know, and I can easily put SSH support back in). These checks are always outbound, so you usually do not need to modify the firewall at all. To Nagios, these checks are passive checks. Now I have to caution you: if a client is reluctant to open their firewall, they probably would be just as reluctant to allow you to install software that sends internal data off site, no matter how secure I promise them that it would be. The other option you have is to use an SSH tunnel to send active checks from your Nagios server. This will require that your client open the firewall for SSH, and that they set up an SSH daemon somewhere. The existing VPN may also be an option if you can write a script that establishes the connection before running your checks. Michael Arney wrote: > I have been tasked by my company to compare system monitoring tools. We are a small Java software development shop. Our product runs on several servers (Windows or Unix) at each of our clients, and has a web front end, file system storage, and database (PostgreSQL, Oracle, or MS SQL Server). We support our software remotely: the clients agree to provide VPN or Telnet access. The VPN access may not be permanent (ie we may have to use a Cisco or Juniper vpn client each time we remote desktop to them). At present we have fewer than 50 clients. We want to monitor basic up/down and disk free type metrics, but also to issue a variety of custom queries against our database and application to check its status. > > So, my question is: How much network access would Nagios require for us to use it to monitor our application? Our clients are sometimes reluctant to open their firewall to a vendor like us. I'd like to know what's the minimum we need to ask of them so we can get good proactive monitoring of our installations. Ideally we would not even need to ask for more than we have now, but that may not be realistic. We have even toyed with the idea of buying a dual-NIC machine at each client to put inside their firewall just to communicate with our central monitoring server. I don't know if that would help. > > We are currently evaluating Nagios. But we are also looking into other products (OpenNMS, Zenoss, Hyperic). So any comparisons with them in this regard would be helpful too. > > Thanks in advance, > Mike > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Brian.Phipps at Sun.COM Thu Apr 16 01:15:01 2009 From: Brian.Phipps at Sun.COM (Brian Phipps) Date: Wed, 15 Apr 2009 16:15:01 -0700 Subject: cfg files reference via http location? Message-ID: <49E66A75.1030207@sun.com> Hi all, Is it possible in the nagios.cfg file to reference the location of hosts, command.cfg, etc via an http location instead of a location on disk on the local machine? -Brian -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3249 bytes Desc: S/MIME Cryptographic Signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Thu Apr 16 01:14:55 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Wed, 15 Apr 2009 19:14:55 -0400 Subject: problem with check_yum In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1127FD2@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com><49E5E786.5070109@googlemail.com><4881ECF1AB752843908A20CEE07A8EB1127FCF@buf-ex01.cymfony.com> <4881ECF1AB752843908A20CEE07A8EB1127FD2@buf-ex01.cymfony.com> Message-ID: <4881ECF1AB752843908A20CEE07A8EB1128006@buf-ex01.cymfony.com> I think I found the problem. When I ran check_yum locally I forgot it was running as root which explains why it worked. Running locally as nagios caused the error. Apparently it isn't the plugin. If, as nagios, I run yum check-update it tells me I need to be root to access RHN repositories. Seems CentOS doesn't have that requirement with yum, which explains why it works on all of those systems. Running check_yum as nagios locally with sudo (nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_yum) for that one binary works. Problem now is, using the plugin with sudo through nrpe. When I try to run through nrpe it returns "unable to read output". This is the command: command[check_yum_rhn]=/usr/bin/sudo /usr/local/nagios/libexec/check_yum been looking around and some have had the same problem; often fixed by adding the complete path to sudo, but it isn't working here. -----Original Message----- From: Seth Simmons Sent: Wednesday, April 15, 2009 12:43 PM To: Hari Sekhon Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] problem with check_yum I refreshed the checks for my CentOS systems and now it shows how many updates are there, which is nice. However, there is still an issue with my RH 5 system. If I use this check_yum plugin, it tells me in Nagios "UNKNOWN: Security plugin for yum is required." I did install this on all my CentOS/RH 5 boxes, but this one thinks it isn't there. If I run the plugin locally, it works saying there are updates available. Very strange... -----Original Message----- From: Seth Simmons Sent: Wednesday, April 15, 2009 12:10 PM To: Hari Sekhon Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] problem with check_yum Thanks This version is more verbose and has more options available; I'll see how this works. -----Original Message----- From: Hari Sekhon [mailto:hpsekhon at googlemail.com] Sent: Wednesday, April 15, 2009 9:56 AM To: Seth Simmons Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] problem with check_yum Seth Simmons wrote: > > I?m running nagios 3.0.6 and using check_yum on my red hat/centos boxes. > > Today I?ve had all my centos boxes show yum warnings about needed > updates; found out centos 5.3 was released. > > I have one red hat 5.2 box. The problem is, check_yum within nagios > shows ?o/s is up to date? as of last check (10 min ago). > > If I run it manually from the machine, it gives a warning that updates > are needed (verified through yum and rhn). > > How can nagios be reporting that yum is ok when it isn?t? > Fyi, see http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2577.html;d=1 for a better check_yum plugin. I wrote it, the one you are using really was too primitive I thought... I've not seen this behaviour with this plugin, but it gives better visibility on how many updates, whether they are security or just regular non-critical updates etc... There is also a note about update check reliability when running as a non root user. -h -- Hari Sekhon Always open to interesting opportunities http://www.linkedin.com/in/harisekhon ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Thu Apr 16 02:15:42 2009 From: subscription at kkeane.com (Kevin Keane) Date: Wed, 15 Apr 2009 17:15:42 -0700 Subject: cfg files reference via http location? In-Reply-To: <49E66A75.1030207@sun.com> References: <49E66A75.1030207@sun.com> Message-ID: <49E678AE.7000206@kkeane.com> Take a look at LUFS; it may be able to do what you need. http://sourceforge.net/projects/lufs/ or http://freshmeat.net/projects/lufs/ Brian Phipps wrote: > Hi all, > > Is it possible in the nagios.cfg file to reference the location of > hosts, command.cfg, etc via an http location instead of a location on > disk on the local machine? > > > > > -Brian > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthias.Flacke at gmx.de Thu Apr 16 05:19:20 2009 From: Matthias.Flacke at gmx.de (Matthias Flacke) Date: Thu, 16 Apr 2009 05:19:20 +0200 Subject: problem with check_yum In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1128006@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com><49E5E786.5070109@googlemail.com><4881ECF1AB752843908A20CEE07A8EB1127FCF@buf-ex01.cymfony.com> <4881ECF1AB752843908A20CEE07A8EB1127FD2@buf-ex01.cymfony.com> <4881ECF1AB752843908A20CEE07A8EB1128006@buf-ex01.cymfony.com> Message-ID: <49E6A3B8.6080209@gmx.de> Seth Simmons wrote: > I think I found the problem. When I ran check_yum locally I forgot it was running as root which explains why it worked. Running locally as nagios caused the error. Apparently it isn't the plugin. If, as nagios, I run yum check-update it tells me I need to be root to access RHN repositories. Seems CentOS doesn't have that requirement with yum, which explains why it works on all of those systems. > > Running check_yum as nagios locally with sudo (nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_yum) for that one binary works. > > Problem now is, using the plugin with sudo through nrpe. When I try to run through nrpe it returns "unable to read output". > > This is the command: > command[check_yum_rhn]=/usr/bin/sudo /usr/local/nagios/libexec/check_yum > > been looking around and some have had the same problem; often fixed by adding the complete path to sudo, but it isn't working here. It seems that your /etc/sudoers contains a line 'Defaults requiretty' If you comment it, also connections without a real tty are allowed to run sudo commands. -Matthias ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Thu Apr 16 06:18:44 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Thu, 16 Apr 2009 00:18:44 -0400 Subject: problem with check_yum In-Reply-To: <49E6A3B8.6080209@gmx.de> References: <4881ECF1AB752843908A20CEE07A8EB1127D70@buf-ex01.cymfony.com><49E5E786.5070109@googlemail.com><4881ECF1AB752843908A20CEE07A8EB1127FCF@buf-ex01.cymfony.com> <4881ECF1AB752843908A20CEE07A8EB1127FD2@buf-ex01.cymfony.com> <4881ECF1AB752843908A20CEE07A8EB1128006@buf-ex01.cymfony.com> <49E6A3B8.6080209@gmx.de> Message-ID: <4881ECF1AB752843908A20CEE07A8EB112800D@buf-ex01.cymfony.com> Thanks, that did it. Wasn't sure if it was OS or nrpe; i also had issues before when trying to do check_mail with sudo but now it's obvious what the issue is. -----Original Message----- From: Matthias Flacke [mailto:Matthias.Flacke at gmx.de] Sent: Wednesday, April 15, 2009 11:19 PM To: Seth Simmons Cc: nagios Mailinglist Subject: Re: [Nagios-users] problem with check_yum Seth Simmons wrote: > I think I found the problem. When I ran check_yum locally I forgot it was running as root which explains why it worked. Running locally as nagios caused the error. Apparently it isn't the plugin. If, as nagios, I run yum check-update it tells me I need to be root to access RHN repositories. Seems CentOS doesn't have that requirement with yum, which explains why it works on all of those systems. > > Running check_yum as nagios locally with sudo (nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_yum) for that one binary works. > > Problem now is, using the plugin with sudo through nrpe. When I try to run through nrpe it returns "unable to read output". > > This is the command: > command[check_yum_rhn]=/usr/bin/sudo /usr/local/nagios/libexec/check_yum > > been looking around and some have had the same problem; often fixed by adding the complete path to sudo, but it isn't working here. It seems that your /etc/sudoers contains a line 'Defaults requiretty' If you comment it, also connections without a real tty are allowed to run sudo commands. -Matthias ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From abruce at hope-st.ath.cx Thu Apr 16 03:30:20 2009 From: abruce at hope-st.ath.cx (Andrew Bruce) Date: Thu, 16 Apr 2009 13:30:20 +1200 Subject: =?utf-8?q?Can_you_not_check_a_certain_hostgroup=3F?= Message-ID: Is it possible, in a service definition to tell the service to not check a group of hosts? For example, I have a hostgroup that contains some basic checks for every Windows server. But some of the servers are still on NT, so don't support a particular check, and I want to disable it for just these servers. Can I have a hostgroup called WinNT_old with the servers I don't want to run this particular check against and then do a service check with the hostgroup like (or similar): hostgroup_name Win_All, !WinNT_old Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martin at antibodymx.net Thu Apr 16 10:18:45 2009 From: martin at antibodymx.net (Martin A. Brooks) Date: Thu, 16 Apr 2009 09:18:45 +0100 Subject: Odd errors in nagios.log Message-ID: <49E6E9E5.4010900@antibodymx.net> Hi I've recently been seeing many of the following kind of errors appearing nagios.log: [1239869767] Error: Unable to rename file '/var/lib/nagios3/spool/checkresults/checkSfWj1n' to '/var/lib/nagios3/spool/checkresults/cs7QqHJ': No such file or directory [1239869767] Warning: Unable to move file '/var/lib/nagios3/spool/checkresults/checkSfWj1n' to check results queue. [1239869767] Error: Unable to rename file '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to '/var/lib/nagios3/spool/checkresults/cxj4rUo': No such file or directory [1239869767] Warning: Unable to move file '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to check results queue. [1239869767] Error: Unable to rename file '/var/lib/nagios3/spool/checkresults/checkMroMQn' to '/var/lib/nagios3/spool/checkresults/cwRtKxJ': No such file or directory [1239869767] Warning: Unable to move file '/var/lib/nagios3/spool/checkresults/checkMroMQn' to check results queue. [1239869767] Error: Unable to rename file '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to '/var/lib/nagios3/spool/checkresults/csiU5Uo': No such file or directory [1239869767] Error: Unable to rename file '/var/lib/nagios3/spool/checkresults/checkMroMQn' to '/var/lib/nagios3/spool/checkresults/cj9BayJ': No such file or directory [1239869767] Warning: Unable to move file '/var/lib/nagios3/spool/checkresults/checkMroMQn' to check results queue. [1239869767] Warning: Unable to move file '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to check results queue. The only two references I can find for this error are: http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg22963.html which is inconclusive, and my own Debian bug report at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522538 (you can see nagios package and version details here, too). Any insights as to what might be causing these errors? Regards -- Martin A. Brooks | http://www.antibodymx.net/ | Anti-spam & anti-virus Consultant | martin at antibodymx.net | filtering. Inoculate antibodymx.net | m: +447792493388 | your mail system. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 16 11:29:47 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 16 Apr 2009 10:29:47 +0100 Subject: Can you not check a certain hostgroup? In-Reply-To: References: Message-ID: <765d77c80904160229m373d87atf5a1e25ce5a6d33a@mail.gmail.com> 2009/4/16 Andrew Bruce : > Is it possible, in a service definition to tell the service to not check a > group of hosts? > > > > For example, I have a hostgroup that contains some basic checks for every > Windows server. > > > > But some of the servers are still on NT, so don't support a particular > check, and I want to disable it for just these servers.? Can I have a > hostgroup called WinNT_old with the servers I don't want to run this > particular check against and then do a service check with the hostgroup like > (or similar): > > > > hostgroup_name?? Win_All, !WinNT_old You can indeed do that. I do something similar myself to check all Wintel servers, but not those in a group called 'BRONZE'. Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 16 11:32:39 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 16 Apr 2009 10:32:39 +0100 Subject: Odd errors in nagios.log In-Reply-To: <49E6E9E5.4010900@antibodymx.net> References: <49E6E9E5.4010900@antibodymx.net> Message-ID: <765d77c80904160232r17627d78j3da9aa9fce7fe15a@mail.gmail.com> 2009/4/16 Martin A. Brooks : > Hi > > I've recently been seeing many of the following kind of errors appearing > nagios.log: > > [1239869767] Error: Unable to rename file > '/var/lib/nagios3/spool/checkresults/checkSfWj1n' to > '/var/lib/nagios3/spool/checkresults/cs7QqHJ': No such file or directory > [1239869767] Warning: Unable to move file > '/var/lib/nagios3/spool/checkresults/checkSfWj1n' to check results queue. > [1239869767] Error: Unable to rename file > '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to > '/var/lib/nagios3/spool/checkresults/cxj4rUo': No such file or directory > [1239869767] Warning: Unable to move file > '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to check results queue. > [1239869767] Error: Unable to rename file > '/var/lib/nagios3/spool/checkresults/checkMroMQn' to > '/var/lib/nagios3/spool/checkresults/cwRtKxJ': No such file or directory > [1239869767] Warning: Unable to move file > '/var/lib/nagios3/spool/checkresults/checkMroMQn' to check results queue. > [1239869767] Error: Unable to rename file > '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to > '/var/lib/nagios3/spool/checkresults/csiU5Uo': No such file or directory > [1239869767] Error: Unable to rename file > '/var/lib/nagios3/spool/checkresults/checkMroMQn' to > '/var/lib/nagios3/spool/checkresults/cj9BayJ': No such file or directory > [1239869767] Warning: Unable to move file > '/var/lib/nagios3/spool/checkresults/checkMroMQn' to check results queue. > [1239869767] Warning: Unable to move file > '/var/lib/nagios3/spool/checkresults/checkb2W7d3' to check results queue. > > > The only two references I can find for this error are: > > http://www.mail-archive.com/nagios-users at lists.sourceforge.net/msg22963.html > > which is inconclusive, and my own Debian bug report at: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522538 > > (you can see nagios package and version details here, too). > > Any insights as to what might be causing these errors? > > Regards > > -- > Martin A. Brooks | ?http://www.antibodymx.net/ | Anti-spam & anti-virus > ? Consultant ? ?| ?martin at antibodymx.net ? ? ?| filtering. Inoculate > ?antibodymx.net ?| ?m: +447792493388 ? ? ? ? ? | your mail system. > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > You don't have more than one instance of the Nagios daemon running do you? Try stopping the Nagios daemon, make sure all instances of nagios are stopped (using ps -ef | grep nagios), and kill any which remain then start the Nagios daemon using /etc/init.d/nagios start . hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From borkmann at cbs.mpg.de Thu Apr 16 11:40:55 2009 From: borkmann at cbs.mpg.de (borkmann at cbs.mpg.de) Date: Thu, 16 Apr 2009 11:40:55 +0200 Subject: Customize "service detail" page In-Reply-To: <765d77c80904150924l4f2cf061p8dcb758e1e19d378@mail.gmail.com> References: <49E5D615.8040600@cbs.mpg.de> <765d77c80904150924l4f2cf061p8dcb758e1e19d378@mail.gmail.com> Message-ID: <49E6FD27.4030705@cbs.mpg.de> thanks for your answers! i'm just wondering how nagiosgrapher got their grapher icon into the service page ... i mean ... at first view they doesn't seem to have any patched c file or command. in their configuration (ngraph.ncfg) they have sth like this: icon_image_tag ' dot.png' alt="___ALT___" border="0"> I've heard of people achieving something similar by running the > service plugin through a wrapper which prepends the relevant string to > the normal plugin output. I can't say I've ever tried it myself > though. > > As an example, instead of the normal check command: > > define command{ > command_name check_ftp > command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ > } > > You could have a wrapper script which prints the output of your perl > script (with no newline) then runs the command proper. Depending on > how you write the wrapper script (I'll leave that to your > imagination), the command definition might then look something like: > > define command{ > command_name check_ftp > command_line /usr/local/bin/my_wrapper.pl -c > $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ > } > > Your perl output wouldn't appear in a seperate column as such, but at > least it would appear on the normal service detail page where you can > see it. > > It's a bit dirty, but if you only need it for a small number of checks > might be a quick way to get it done. > > Cheers, > > Jim > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martin at antibodymx.net Thu Apr 16 11:43:47 2009 From: martin at antibodymx.net (Martin A. Brooks) Date: Thu, 16 Apr 2009 10:43:47 +0100 Subject: Odd errors in nagios.log In-Reply-To: <765d77c80904160232r17627d78j3da9aa9fce7fe15a@mail.gmail.com> References: <49E6E9E5.4010900@antibodymx.net> <765d77c80904160232r17627d78j3da9aa9fce7fe15a@mail.gmail.com> Message-ID: <49E6FDD3.9080009@antibodymx.net> Jim Avery wrote: > You don't have more than one instance of the Nagios daemon running do > you? Try stopping the Nagios daemon, make sure all instances of > nagios are stopped (using ps -ef | grep nagios), and kill any which > remain then start the Nagios daemon using /etc/init.d/nagios start . I looked for the before, and there's definitely only one nagios instance running. The problem persists across nagios restarts and reboots. Thanks -- Martin A. Brooks | http://www.antibodymx.net/ | Anti-spam & anti-virus Consultant | martin at antibodymx.net | filtering. Inoculate antibodymx.net | m: +447792493388 | your mail system. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alfonso.baldaserra at gmail.com Thu Apr 16 14:02:48 2009 From: alfonso.baldaserra at gmail.com (alfonso baldaserra) Date: Thu, 16 Apr 2009 17:32:48 +0530 Subject: monitoring critical servers - best practices Message-ID: <726d258e0904160502n4e1af2a2t4b4e58aafb58f0f9@mail.gmail.com> Greetings, We are using Nagios version 3.0.6 on Fedora core 9. I was just looking for some ideas how do you guys monitor critical servers and services, what are the best practices etc.? On a related note I just figured we have been missing a lot of alerts lately. Today we had to reboot couple of AIX servers which usually takes 5+ minutes. Interesting thing is we did not receive any notification for these servers. Below is the host configuration entry define host{ name aix-server ; The name of this host template use generic-host ; This template inherits other values from the generic-host template check_period 24x7 ; By default, Linux hosts are checked round the clock check_interval 2 ; Actively check the host every 5 minutes retry_interval 1 ; Schedule host check retries at 1 minute interval max_check_attempts 2 ; Check each Linux host 10 times (max) check_command check-host-alive ; Default command to check aix hosts notification_interval 10 ; Resend notifications every 2 hours notification_options d,u,r ; Only send notifications for specific host states contact_groups aix-team ; Notifications get sent to the admins by default register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } I was just wondering what do I need to change if: a server goes down nagios check after 1 minute, as usual, and finds the server is down nagios checks again after a minute and finds the server is still down nagios sends notification and keep on sending notification after every 10 minutes until the server comes up again I have checked nagios archives for check_interval, retry_interval and max_check_attempts and as a result I got totally confused. Any help is much appreciated. P.S. I request nagios developers to either change these options to something more meaningful or provide some real life examples. Apparently there are many users which have been confused by these options as seen in archives. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ctemple at merethis.com Thu Apr 16 14:05:14 2009 From: ctemple at merethis.com (Cedric Temple) Date: Thu, 16 Apr 2009 14:05:14 +0200 Subject: Centreon In-Reply-To: <49E6EF19.B47D.0048.0@stgeorge.com.au> References: <49DF5D04020000480008D21D@stgeorge.com.au> <4881ECF1AB752843908A20CEE07A8EB1127F0A@buf-ex01.cymfony.com> <49E351E3.B47D.0048.0@stgeorge.com.au> <49E6EF19.B47D.0048.0@stgeorge.com.au> Message-ID: <960a54cc0904160505s4a7ba1a5o39093951d4f69ce0@mail.gmail.com> Hi, 2009/4/16 Simon Finch > Centreon requires NDO for a multiple Nagios server environment, I am not > sure about a single server system. > Centreon requires NDO for a single server system. regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From melanie_pfefer at yahoo.co.uk Thu Apr 16 15:55:19 2009 From: melanie_pfefer at yahoo.co.uk (Melanie Pfefer) Date: Thu, 16 Apr 2009 13:55:19 +0000 (GMT) Subject: check_by_ssh Message-ID: <826273.54408.qm@web26203.mail.ukl.yahoo.com> Hi I want to use check_by_ssh with a script that uses an argument ./check_by_ssh -l myuser -H myhost -t 120 -C myscript my_script_argument The script gives an output as if the my_script_argument is empty any idea? thank you ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 16 16:08:32 2009 From: marc at ena.com (Marc Powell) Date: Thu, 16 Apr 2009 09:08:32 -0500 Subject: cfg files reference via http location? In-Reply-To: <49E66A75.1030207@sun.com> References: <49E66A75.1030207@sun.com> Message-ID: On Apr 15, 2009, at 6:15 PM, Brian Phipps wrote: > Hi all, > > Is it possible in the nagios.cfg file to reference the location of > hosts, command.cfg, etc via an http location instead of a location > on disk on the local machine? No. Nagios expects the files to be 'local'. That being said, I expect that the previously mentioned lufs, nfs (for certain, I use it) or other network filesystems you can mount should work for the config files... -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 16 16:10:39 2009 From: marc at ena.com (Marc Powell) Date: Thu, 16 Apr 2009 09:10:39 -0500 Subject: Can you not check a certain hostgroup? In-Reply-To: <765d77c80904160229m373d87atf5a1e25ce5a6d33a@mail.gmail.com> References: <765d77c80904160229m373d87atf5a1e25ce5a6d33a@mail.gmail.com> Message-ID: On Apr 16, 2009, at 4:29 AM, Jim Avery wrote: > 2009/4/16 Andrew Bruce : >> hostgroup_name Win_All, !WinNT_old > > You can indeed do that. I do something similar myself to check all > Wintel servers, but not those in a group called 'BRONZE'. And the doc link for reference -- http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 16 16:16:25 2009 From: marc at ena.com (Marc Powell) Date: Thu, 16 Apr 2009 09:16:25 -0500 Subject: check_by_ssh In-Reply-To: <826273.54408.qm@web26203.mail.ukl.yahoo.com> References: <826273.54408.qm@web26203.mail.ukl.yahoo.com> Message-ID: <7A032C47-9B10-4D3D-B9F1-00516BBABB81@ena.com> On Apr 16, 2009, at 8:55 AM, Melanie Pfefer wrote: > > Hi > > I want to use check_by_ssh with a script that uses an argument > > ./check_by_ssh -l myuser -H myhost -t 120 -C myscript > my_script_argument > > > The script gives an output as if the my_script_argument is empty > > any idea? Quote the command. For example -- define command { command_name check-archiver command_line $USER1$/check_by_ssh -t 120 -l monitor -H $HOSTADDRESS$ -C "/home/monitor/libexec/check_smtp -H localhost -p 10025" } -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From texner at eoipso.com Thu Apr 16 16:14:48 2009 From: texner at eoipso.com (Tobias Exner) Date: Thu, 16 Apr 2009 16:14:48 +0200 Subject: nagios plugin configure:3377: error: Message-ID: <49E73D58.6020407@eoipso.com> Dear list, I've got a problem while compiling the nagios-plugins on a suse 10 box. I already searched through the web, but I didn't any helpful information. As I understood the compile needs the path /usr/lib/gcc/i586-suse-linux/4.0.2/include I don't know if that's right and how to fix it. The path does really not exists. Thanks in advance... Here's my ./configure output: mail:~/nagios-plugins-1.4.13 # pwd /root/nagios-plugins-1.4.13 mail:~/nagios-plugins-1.4.13 # ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. mail:~/nagios-plugins-1.4.13 # And here's the interesting part out of the config.log: mail:~/nagios-plugins-1.4.13 # more config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by nagios-plugins configure 1.4.13, which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure ## --------- ## ## Platform. ## ## --------- ## hostname = mail uname -m = i686 uname -r = 2.6.13-15.15-default uname -s = Linux uname -v = #1 Mon Feb 26 14:11:33 UTC 2007 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = i686 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /sbin PATH: /usr/sbin PATH: /usr/local/sbin PATH: /opt/gnome/sbin PATH: /root/bin PATH: /usr/local/bin PATH: /usr/bin PATH: /usr/X11R6/bin PATH: /bin PATH: /usr/games PATH: /opt/gnome/bin PATH: /opt/kde3/bin PATH: /usr/lib/jvm/jre/bin PATH: /usr/lib/mit/bin PATH: /usr/lib/mit/sbin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2397: checking for a BSD-compatible install configure:2453: result: /usr/bin/install -c configure:2464: checking whether build environment is sane configure:2507: result: yes configure:2572: checking for gawk configure:2588: found /usr/bin/gawk configure:2599: result: gawk configure:2610: checking whether make sets $(MAKE) configure:2631: result: yes configure:2823: checking build system type configure:2841: result: i686-pc-linux-gnu configure:2863: checking host system type configure:2878: result: i686-pc-linux-gnu configure:2984: checking for gcc configure:3000: found /usr/bin/gcc configure:3011: result: gcc configure:3249: checking for C compiler version configure:3256: gcc --version >&5 gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3259: $? = 0 configure:3266: gcc -v >&5 Using built-in specs. Target: i586-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-pref ix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib -- libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking -- with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava- multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexi t --without-system-libunwind --host=i586-suse-linux Thread model: posix gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) /usr/lib/gcc/i586-suse-linux/4.0.2/cc1 -E -quiet -v - -mtune=pentium ignoring nonexistent directory "/usr/lib/gcc/i586-suse-linux/4.0.2/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/include /usr/include End of search list. # 1 "" # 1 "" # 1 "" # 1 "" configure:3269: $? = 0 configure:3276: gcc -V >&5 gcc: '-V' option must have argument configure:3279: $? = 1 configure:3302: checking for C compiler default output file name configure:3329: gcc conftest.c >&5 # 1 "conftest.c" # 1 "" # 1 "" # 1 "conftest.c" # 11 "conftest.c" int main () { ; return 0; } configure:3332: $? = 0 configure:3370: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "nagios-plugins" | #define PACKAGE_TARNAME "nagios-plugins" | #define PACKAGE_VERSION "1.4.13" | #define PACKAGE_STRING "nagios-plugins 1.4.13" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "nagios-plugins" | #define VERSION "1.4.13" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3377: error: C compiler cannot create executables See `config.log' for more details. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 16 16:35:50 2009 From: marc at ena.com (Marc Powell) Date: Thu, 16 Apr 2009 09:35:50 -0500 Subject: monitoring critical servers - best practices In-Reply-To: <726d258e0904160502n4e1af2a2t4b4e58aafb58f0f9@mail.gmail.com> References: <726d258e0904160502n4e1af2a2t4b4e58aafb58f0f9@mail.gmail.com> Message-ID: <58B14DF1-4B35-42AC-99A3-10F1ED214E89@ena.com> On Apr 16, 2009, at 7:02 AM, alfonso baldaserra wrote: > Greetings, > > We are using Nagios version 3.0.6 on Fedora core 9. > > I was just looking for some ideas how do you guys monitor critical > servers and services, what are the best practices etc.? Ping and those services that I consider critical on the specific server; smtp for smtp servers, http for http servers, filtering on filtering servers, disk space on all, etc... > On a related note I just figured we have been missing a lot of > alerts lately. Today we had to reboot couple of AIX servers which > usually takes 5+ minutes. Interesting thing is we did not receive > any notification for these servers. Below is the host configuration > entry > > define host{ > name aix-server ; The name of this > host template > use generic-host ; This template > inherits other values from the generic-host template > check_period 24x7 ; By default, Linux > hosts are checked round the clock > check_interval 2 ; Actively check > the host every 5 minutes > retry_interval 1 ; Schedule host > check retries at 1 minute interval > max_check_attempts 2 ; Check each Linux > host 10 times (max) > check_command check-host-alive ; Default command > to check aix hosts > notification_interval 10 ; Resend > notifications every 2 hours > notification_options d,u,r ; Only send > notifications for specific host states > contact_groups aix-team ; Notifications get > sent to the admins by default > register 0 ; DONT REGISTER > THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > } > > I was just wondering what do I need to change if: > > a server goes down > nagios check after 1 minute, as usual, and finds the server is down check_interval 1 > nagios checks again after a minute and finds the server is still down retry_interval 1 > nagios sends notification and keep on sending notification after > every 10 minutes until the server comes up again max_check_attempts 2, notification_interval 10. Looks like you just need to change check_interval. I use -- check_interval 5 retry_interval 3 max_check_attempts 3 > I have checked nagios archives for check_interval, retry_interval > and max_check_attempts and as a result I got totally confused. > > Any help is much appreciated. > > P.S. I request nagios developers to either change these options to > something more meaningful or provide some real life examples. > Apparently there are many users which have been confused by these > options as seen in archives. What would you suggest? The names seem obvious to me but I may be jaded. The documentation is pretty clear on what they mean/do as well, at least to me. Real life examples are provided in the sample config files (or used to be). The documentation links that may help you are (some redundancy between them) -- http://nagios.sourceforge.net/docs/3_0/statetypes.html http://nagios.sourceforge.net/docs/3_0/activechecks.html http://nagios.sourceforge.net/docs/3_0/servicechecks.html http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service And this one from the -2.0 docs that nicely explains much of the scheduling... It's a little dated wrt host checks but for the most part is a good read-- http://nagios.sourceforge.net/docs/2_0/checkscheduling.html -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niall at makalumedia.com Thu Apr 16 16:40:53 2009 From: niall at makalumedia.com (Niall O Broin) Date: Thu, 16 Apr 2009 15:40:53 +0100 Subject: Can you not check a certain hostgroup? In-Reply-To: References: <765d77c80904160229m373d87atf5a1e25ce5a6d33a@mail.gmail.com> Message-ID: <1C988526-DFF6-41FC-AAD2-FCE3BCE2FDC5@makalumedia.com> On 16 Apr 2009, at 15:10, Marc Powell wrote: >> 2009/4/16 Andrew Bruce : > >>> hostgroup_name Win_All, !WinNT_old >> >> You can indeed do that. I do something similar myself to check all >> Wintel servers, but not those in a group called 'BRONZE'. > > And the doc link for reference -- > > http://nagios.sourceforge.net/docs/3_0/objecttricks.html#service Marc answered me in similar vein recently, and I am now using it, but I made a rather odd discovery. This host_name !host17, host* works whereas this host_name host*, !host17 produces this error at start: Reading configuration data... Error: Could not find any host matching '!host17' (config file '/etc/ nagios3/conf.d/MM-snmp-checks.cfg', starting on line 49) Error: Could not expand hostgroups and/or hosts specified in service (config file '/etc/nagios3/conf.d/MM-snmp-checks.cfg', starting on line 49) ***> One or more problems was encountered while processing the config files... It seems that you can't place a negative match after a wildcard. __ Kindest regards, Niall O Broin MakaluMedia Group | http://makalumedia.com | +49 6151 8724600 MakaluMedia Internet & Engineering Services GmbH | Robert-Bosch Strasse 7 | 64293 Darmstadt | Germany Gesch?ftsf?hrer: Matt Henderson | Sitz der Gesellschaft: Darmstadt | Handelsregister: Amtsgericht Darmstadt HRB 6911 ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Thu Apr 16 18:33:22 2009 From: martyn at chetnet.co.uk (Martyn) Date: Thu, 16 Apr 2009 17:33:22 +0100 Subject: Limit the alert notifications Message-ID: Hi all I would like to change the email alerts per users if I may, is there a way of setting up so only 3 mails get sent to users "A" but only two mails to user "B" even if the fault is still there, if not per users then across the board. I have searched around but finding anything, not sure if I'm searching for the correct wording Thanks Chet -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Thu Apr 16 19:12:50 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Thu, 16 Apr 2009 18:12:50 +0100 Subject: Consolidating Log Files Message-ID: Hi all, I'm thinking of setting up my Nagios system in a "Redundant Monitoring" configuration - two servers (a primary and secondary) which both monitor all hosts / services, but only one of which has notifications enabled (the primary). Upon failure of the primary, the secondary will enable its own notifications (and upon the primary returning to an OK state, notifications will be disabled). One aspect of this that I am wondering how to tackle is consolidating my log files after a failure has occurred. I want my primary Nagios server's log files to reflect the total history of check results that have been made - and so would like the results from the secondary server for the time period when the primary was done, to be consolidated into the log files of the primary (for browsing through the web UI). Has anyone looked into this before, and how did you solve the problem of duplicate result checks being created in the primary log? Cheers, Chris ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From treibholz at sozial-inkompetent.de Thu Apr 16 19:31:51 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Thu, 16 Apr 2009 19:31:51 +0200 Subject: Limit the alert notifications In-Reply-To: References: Message-ID: <20090416173151.GB22255@umbach-racing.de> On 16/04/09 17:33, Martyn wrote: > Hi all > I would like to change the email alerts per users if I may, is there a way > of setting up so only 3 mails get sent to users "A" but only two mails to > user "B" even if the fault is still there, if not per users then across the > board. > > I have searched around but finding anything, not sure if I'm searching for > the correct wording See the documentation under "Notification Escalation" http://nagios.sourceforge.net/docs/3_0/escalations.html Cheers Klaus -- BOFH excuse #261: The Usenet news is out of date ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jimmyjose2980 at gmail.com Thu Apr 16 21:24:52 2009 From: jimmyjose2980 at gmail.com (Jimmyboy) Date: Fri, 17 Apr 2009 00:54:52 +0530 Subject: Fwd: Apache Server configuration for Nagios 3.0 In-Reply-To: <8147CCE3C4A8764DA9980125EE70E823B3CF6A@nuexchg.norwich.edu> References: <8147CCE3C4A8764DA9980125EE70E823B3CF6A@nuexchg.norwich.edu> Message-ID: Hi James, You are right. '/etc/httpd/conf.d/' does not exist. Unfortunately, I do not know how to find out the directory, Apache on my system refers to '/etc/httpd/conf.d/'. However, I successfully keyed in the 'ScriptAlias' and 'Alias' directives into my '/usr/local/apache2/httpd.conf' config file (I reinstalled Apache to the default location). Still, I am getting the same error on doing a 'sudo make install-webconf'. =-=-=-= I had raised a query on the Apache forum, on which of *apache2.conf* and * httpd.con*f is the *config file* of Apache. I got an answer stating that it depends on type of installation method followed. If the source files (.tar.gz) are used, then it is *httpd.conf*, else, *apache2.conf*. So, it is true in my case. Based on this, I observed an already installed Nagios setup on a different machine. It's *config file* is *apache2.conf* (again true, it was installed using Synaptic Package Manager). So, I was thinking to try installing using the 'Synaptic Package Manager' or 'apt-get'. However, both aren't working for me. Though I am able to proxy the internet (sitting behind a proxy server), Synaptic & sudo apt-get say, they cannot resolve 'archive.ubuntu.com', etc. Any idea, how to go about? Thanks, Jim =-=-=-= On Tue, Apr 14, 2009 at 3:50 AM, James Pratt wrote: > Hi - sounds like your issue is that the generic make install in nagios > src tries to drop a file called nagios.conf into httpd's (usually the > default) location, /etc/httpd/conf.d/, which, appears does not exist on > your server... > > If you can find what directory your apache uses for "/etc/httpd/conf.d/" > you can manually copy and paste whatever is in nagios.conf (the one > trying to be installed from nagios src dir) into your > "/etc/httpd/conf/httpd.conf" (You can likely disregard the > "apache2.conf" stuff - sounds like they used their own file naming, as > the default is normally "httpd.conf") - Apache itself is very flexible, > there are many ways to configure it - nagios simply guesses you are > using redhat, so it tries to drop it's httpd config into > /etc/httpd/conf.d) > > HTH ... > > Regards, > jamie > > > -----Original Message----- > > From: Jimmyboy [mailto:jimmyjose2980 at gmail.com] > > Sent: Monday, April 13, 2009 2:25 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios > 3.0 > > > > Hi, > > > > On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I > > understand that /etc/apache2/apache2.conf is the most important file. > > Though I have installed Apache in /etc/apache2 location, I do not have > > apache2.conf file as mentioned in the site. > > > > However, when I stop/start the Apache service using the command > > '/etc/apache2/bin/apachectl -k stop/start' respectively, and check > > http://127.0.0.1 and ps -A | grep httpd, the > results > > are OK. > > > > Thanks, > > Jim > > > > =-=-=-=-= > > > > > > ---------- Forwarded message ---------- > > From: Jimmyboy > > Date: Mon, Apr 13, 2009 at 11:49 PM > > Subject: Apache Server configuration for Nagios 3.0 > > To: nagios-users at lists.sourceforge.net > > > > > > > > Hi All, > > > > I am following the Quickstart Guide for installing NAGIOS using > > http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. > > > > One of the prerequisites is Apache2, which I installed, and was > successful > > in getting "It Works!!" for http://127.0.0.1 . > > > > However, I am stuck at point 5) Configure the Web Interface, make > install- > > webconf. > > > > When this command is issued, this is what I get. > > /usr/bin/install -c -m 644 sample-config/httpd.conf > > /etc/httpd/conf.d/nagios.conf > > /usr/bin/install: cannot create regular file > > '/etc/httpd/conf.d/nagios.conf': No such file or directory > > make: *** [install-webconf] Error 1 > > > > Prefix for Apache: /etc/apache2 > > > > I believe the httpd.conf file and a few others also need to be edited > for > > Nagios. Can some please guide me through this? > > > > > > Thanks, > > Jim > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Apr 17 10:35:19 2009 From: ae at op5.se (Andreas Ericsson) Date: Fri, 17 Apr 2009 10:35:19 +0200 Subject: nagios plugin configure:3377: error: In-Reply-To: <49E73D58.6020407@eoipso.com> References: <49E73D58.6020407@eoipso.com> Message-ID: <49E83F47.1020904@op5.se> Tobias Exner wrote: > Dear list, > > I've got a problem while compiling the nagios-plugins on a suse 10 box. > > I already searched through the web, but I didn't any helpful information. > As I understood the compile needs the path > /usr/lib/gcc/i586-suse-linux/4.0.2/include > I don't know if that's right and how to fix it. > > The path does really not exists. > It should have been installed along with gcc unless SuSE have broken packages. Try re-installing the gcc package and see if that works. > gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) > /usr/lib/gcc/i586-suse-linux/4.0.2/cc1 -E -quiet -v - -mtune=pentium > ignoring nonexistent directory "/usr/lib/gcc/i586-suse-linux/4.0.2/include" > #include "..." search starts here: > #include <...> search starts here: > /usr/local/include > /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/include This is broken though. This path resolves to /usr/i586-suse-linux/include which I doubt should exist. I'm guessing autoconf is failing quite magnificently here for some reason. It could be because the real path is missing or because autoconf is a horrible mess. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Apr 17 10:39:33 2009 From: ae at op5.se (Andreas Ericsson) Date: Fri, 17 Apr 2009 10:39:33 +0200 Subject: Consolidating Log Files In-Reply-To: References: Message-ID: <49E84045.7060706@op5.se> Christopher McAtackney wrote: > Hi all, > > I'm thinking of setting up my Nagios system in a "Redundant > Monitoring" configuration - two servers (a primary and secondary) > which both monitor all hosts / services, but only one of which has > notifications enabled (the primary). > > Upon failure of the primary, the secondary will enable its own > notifications (and upon the primary returning to an OK state, > notifications will be disabled). > > One aspect of this that I am wondering how to tackle is consolidating > my log files after a failure has occurred. > > I want my primary Nagios server's log files to reflect the total > history of check results that have been made - and so would like the > results from the secondary server for the time period when the primary > was done, to be consolidated into the log files of the primary (for > browsing through the web UI). > > Has anyone looked into this before, and how did you solve the problem > of duplicate result checks being created in the primary log? > Fortunately, line-based merging of files where every line is prefix with a timestamp is as simple as doing cat file1 file2 file3 filen... | sort -n > merged-file Since the primary server won't be logging at all during the time it's offline, this merge-strategy will work quite nicely. Do note that it requires quite a lot of memory and is fairly cpu intensive though, so if you have a large installation, you'll want to filter out the period where the primary server was up from the logs of the secondary server and then just paste those in at the end of the primary server's logs. Some sed or perl-scripting can help you there. Note that for either of the above ways to work, the two server's clocks have to be in sync. If they're not, you need to take the clock-delta into consideration when merging the logs. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jerome.Meyer at baldata.ch Fri Apr 17 11:21:07 2009 From: Jerome.Meyer at baldata.ch (Meyer Jerome) Date: Fri, 17 Apr 2009 11:21:07 +0200 Subject: check_squid.pl Message-ID: <46EEEA5FAED9CA479556002BA9C27FD705B8C0DA@iw50.iwbnet.ch> Hi all I've downloaded the plugins check_squid.pl + libplugin.pm on www.nagiosexchange.com! [root at test1 libexec]# ./check_squid.pl -H 10.2.4.5 Duplicate specification "H=s" for option "h" Duplicate specification "P=i" for option "p" Squid cache OK (1014 FreeFileDesc) Use of uninitialized value in exit at ./check_squid.pl line 182. [root at test1 libexec]# The result is Ok but there're some warnings about "duplicate spec." and "the exit function"!!!! The script's version is from 2003 and I doesn't find a new one Any ideas?? Thanks a lot Jerome M. Meyer -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mnmis at hotmail.com Fri Apr 17 12:11:33 2009 From: mnmis at hotmail.com (mnmis at hotmail.com) Date: Fri, 17 Apr 2009 03:11:33 -0700 Subject: Vacation reply In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JWinch at aminocom.com Fri Apr 17 12:29:06 2009 From: JWinch at aminocom.com (Jonathan Winch) Date: Fri, 17 Apr 2009 11:29:06 +0100 Subject: Changing the layout of the status map In-Reply-To: <46EEEA5FAED9CA479556002BA9C27FD705B8C0DA@iw50.iwbnet.ch> References: <46EEEA5FAED9CA479556002BA9C27FD705B8C0DA@iw50.iwbnet.ch> Message-ID: Hi, I have been running Nagios for while now to monitor the ~150 servers I look after. Senior management have finally noticed what I have done and want to use Nagios to display the network status on a large display so anyone walking past the IT area can see at a glance what is going on with the network. The only issue with this is I can't get the network map to fit on a 1080p display without going off the edges thus rendering the display idea useless. Is there any way to alter the statusmap cgi page so that the information boxes at the top of the page are placed at the bottom of the page? Or alternatively is there any way to alter the scaling factor permanently? Thanks Jon ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Fri Apr 17 12:29:14 2009 From: al at its-lehmann.de (Arno Lehmann) Date: Fri, 17 Apr 2009 12:29:14 +0200 Subject: check_squid.pl In-Reply-To: <46EEEA5FAED9CA479556002BA9C27FD705B8C0DA@iw50.iwbnet.ch> References: <46EEEA5FAED9CA479556002BA9C27FD705B8C0DA@iw50.iwbnet.ch> Message-ID: <49E859FA.7000401@its-lehmann.de> Hi, 17.04.2009 11:21, Meyer Jerome wrote: > > > Hi all > > I ? ve d ownloaded the plugins check_squid.pl > ... > Any ideas?? Hmm... I never used that check_squid.pl. But I've got one I wrote a while ago. No documentation, no useful help, but feel free to try it... if it works for you I might polish at least the help output a bit and publish it. Note that I consider this a quick and dirty hack, and the best things to say about it are that it uses -w and 'use strict;' It uses snmp to check, i.e. your squid config needs lines like acl snmppublic snmp_community publi snmp_access allow snmppublic our_networks to allow snmp access to squid. Arno -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabr?ck www.its-lehmann.de -------------- next part -------------- A non-text attachment was scrubbed... Name: check_squid.pl Type: application/x-perl Size: 6896 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Apr 17 13:10:10 2009 From: ae at op5.se (Andreas Ericsson) Date: Fri, 17 Apr 2009 13:10:10 +0200 Subject: Changing the layout of the status map In-Reply-To: References: <46EEEA5FAED9CA479556002BA9C27FD705B8C0DA@iw50.iwbnet.ch> Message-ID: <49E86392.3020404@op5.se> Please don't hijack a thread to post a new question. It means everyone who reads mailing lists threaded get to see your question as a response to someone else's, which isn't very nice. Jonathan Winch wrote: > Hi, > > I have been running Nagios for while now to monitor the ~150 servers I > look after. Senior management have finally noticed what I have done and > want to use Nagios to display the network status on a large display so > anyone walking past the IT area can see at a glance what is going on > with the network. The only issue with this is I can't get the network > map to fit on a 1080p display without going off the edges thus rendering > the display idea useless. > > Is there any way to alter the statusmap cgi page so that the information > boxes at the top of the page are placed at the bottom of the page? Or > alternatively is there any way to alter the scaling factor permanently? > Yes. Use a text-editor and re-compile it. Or add 2d_coords for all your hosts. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From imunoz6 at xtec.cat Fri Apr 17 14:28:19 2009 From: imunoz6 at xtec.cat (Ivan) Date: Fri, 17 Apr 2009 14:28:19 +0200 Subject: nagios 3.0.3 on FreeBSD defunct process In-Reply-To: References: <04F3233F47E2714CB7431AE913E57E7703400C4D@IAD-WPRD-XCHB02.corp.verio.net> <49D609BE.3040503@collaborativefusion.com> Message-ID: <49E875E3.7060902@xtec.cat> An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From james.mohr at elaxy.com Fri Apr 17 14:07:38 2009 From: james.mohr at elaxy.com (Mohr James) Date: Fri, 17 Apr 2009 14:07:38 +0200 Subject: SMS notification for warning and critical Message-ID: Hi All! Is there a way to send an SMS when a Service gives a warning, then acknowledged and then another SMS when it goes critical? Stalking does not seem to do what I need. Regards, Jim Mohr -- Diese E-Mail enth?lt vertrauliche und/oder rechtlich gesch?tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Fri Apr 17 14:37:21 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Fri, 17 Apr 2009 13:37:21 +0100 Subject: SMS notification for warning and critical In-Reply-To: References: Message-ID: <200904171337.21383.assaf.flatto@ssp-intl.com> you can do it with a modem and the smsclient software http://www.smsclient.org/ and you can read this for some more details : http://www.nagios.org/faqs/viewfaq.php?faq_id=279 Assaf On Friday 17 April 2009 13:07:38 Mohr James wrote: > Hi All! > > > > Is there a way to send an SMS when a Service gives a warning, then > acknowledged and then another SMS when it goes critical? Stalking does > not seem to do what I need. > > > > Regards, > > > > Jim Mohr > > > > > -- > Diese E-Mail enth?lt vertrauliche und/oder rechtlich gesch?tzte > Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail > irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und > vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte > Weitergabe dieser Mail ist nicht gestattet. > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sascha.Runschke at gfkl.com Fri Apr 17 14:36:19 2009 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Fri, 17 Apr 2009 14:36:19 +0200 Subject: Antwort: Re: Antwort: Problem with MySql log In-Reply-To: <1ebd356a0904140356t5e383f4cmb43180414aa8b81f@mail.gmail.com> References: <1ebd356a0904140319o29639f8dqae68d7fc45b7f9a9@mail.gmail.com> <1ebd356a0904140356t5e383f4cmb43180414aa8b81f@mail.gmail.com> Message-ID: Sidenote: please stop top-posting, it's confusing and just spams my account with unneeded quotes. Thank you. > > Uhm, disable mysql binlogging? > > > you think that this solution helpful? and I would not need > this log? I don't know if you would need those binlogs, that's up to you and your setup. If you don't know what you usually do with binlogs, you probably don't need them... S GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jerome.Meyer at baldata.ch Fri Apr 17 15:07:26 2009 From: Jerome.Meyer at baldata.ch (Meyer Jerome) Date: Fri, 17 Apr 2009 15:07:26 +0200 Subject: check_squid.pl In-Reply-To: <49E859FA.7000401@its-lehmann.de> References: <46EEEA5FAED9CA479556002BA9C27FD705B8C0DA@iw50.iwbnet.ch> <49E859FA.7000401@its-lehmann.de> Message-ID: <46EEEA5FAED9CA479556002BA9C27FD705B8C1DA@iw50.iwbnet.ch> Hi Arno I've downloaded and installed the Net-SNMP package and that seems running : [root at test1 Linux]# /usr/local/nagios/libexec/check_squid.pl -H 10.2.4.5 Squid OK: Up 35 minutes, 30.09, 89.92 MB, 5258 objects, 1 clients. Hit rate 0%|CPU=0%;10;20;; Storage=94289920;68711088128;68719476736;; Objects=5258;1032192;1048576;; HitRatio=0%;;;; IPs=9;3584;4096;; Clients=1;1792;2048;; Thanks for your answer and your great help... Jerome > -----Urspr?ngliche Nachricht----- > Von: Arno Lehmann [mailto:al at its-lehmann.de] > Gesendet: Freitag, 17. April 2009 12:29 > An: Nagios-users at lists.sourceforge.net > Betreff: Re: [Nagios-users] check_squid.pl > > Hi, > > 17.04.2009 11:21, Meyer Jerome wrote: > > > > > > Hi all > > > > I ' ve d ownloaded the plugins check_squid.pl > > ... > > Any ideas?? > > Hmm... I never used that check_squid.pl. > > But I've got one I wrote a while ago. > > No documentation, no useful help, but feel free to try it... if it works for > you I might polish at least the help output a bit and publish it. > > Note that I consider this a quick and dirty hack, and the best things to say > about it are that it uses -w and 'use strict;' > > It uses snmp to check, i.e. your squid config needs lines like > > acl snmppublic snmp_community publi > snmp_access allow snmppublic our_networks > > to allow snmp access to squid. > > Arno > > -- > Arno Lehmann > IT-Service Lehmann > Sandstr. 6, 49080 Osnabr?ck > www.its-lehmann.de ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Fri Apr 17 15:15:49 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 17 Apr 2009 14:15:49 +0100 Subject: Changing the layout of the status map In-Reply-To: References: <46EEEA5FAED9CA479556002BA9C27FD705B8C0DA@iw50.iwbnet.ch> Message-ID: <765d77c80904170615g1bda128co5ed5beae8e55e60b@mail.gmail.com> 2009/4/17 Jonathan Winch : > Hi, > > I have been running Nagios for while now to monitor the ~150 servers I > look after. ?Senior management have finally noticed what I have done and > want to use Nagios to display the network status on a large display so > anyone walking past the IT area can see at a glance what is going on > with the network. ?The only issue with this is I can't get the network > map to fit on a 1080p display without going off the edges thus rendering > the display idea useless. > > Is there any way to alter the statusmap cgi page so that the information > boxes at the top of the page are placed at the bottom of the page? ?Or > alternatively is there any way to alter the scaling factor permanently? > > Thanks > > Jon I recommend you take a look at the Nagios Extended Status Map http://nexsm.gridshield.net/Overview.html and/or NagVis http://www.nagvis.org/ . NEXSM can be a bit of a pain to install, so check the forum for recent posts on the subject before taking the plunge. NagVis is arguably easier to install, but relies on NDOUtils so you'll need to set up a MySQL database if you haven't done that already. The AutoMap feature I would guess might work very well for around 150 servers. hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Fri Apr 17 15:22:55 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Fri, 17 Apr 2009 10:22:55 -0300 Subject: Alarm Message-ID: Is there any way to set alarm to beep only for one host? How do I set it? Cheers Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frank.bourdeau at dga.defense.gouv.fr Fri Apr 17 15:18:14 2009 From: frank.bourdeau at dga.defense.gouv.fr (frank.bourdeau at dga.defense.gouv.fr) Date: Fri, 17 Apr 2009 15:18:14 +0200 Subject: check_squid.pl In-Reply-To: <46EEEA5FAED9CA479556002BA9C27FD705B8C1DA@iw50.iwbnet.ch> References: <46EEEA5FAED9CA479556002BA9C27FD705B8C1DA@iw50.iwbnet.ch> Message-ID: Hi Arno, Can you send me your squid plugin, please ? Thanks [ENVOYE PAR INTERNET] ---------------------------------------------------- Frank BOURDEAU tel: 0241936560 fax: 0241936681 frank.bourdeau at dga.defense.gouv.fr "Meyer Jerome" 17/04/2009 15:07 A cc Objet Re: [Nagios-users] check_squid.pl Hi Arno I've downloaded and installed the Net-SNMP package and that seems running : [root at test1 Linux]# /usr/local/nagios/libexec/check_squid.pl -H 10.2.4.5 Squid OK: Up 35 minutes, 30.09, 89.92 MB, 5258 objects, 1 clients. Hit rate 0%|CPU=0%;10;20;; Storage=94289920;68711088128;68719476736;; Objects=5258;1032192;1048576;; HitRatio=0%;;;; IPs=9;3584;4096;; Clients=1;1792;2048;; Thanks for your answer and your great help... Jerome > -----Urspr?ngliche Nachricht----- > Von: Arno Lehmann [mailto:al at its-lehmann.de] > Gesendet: Freitag, 17. April 2009 12:29 > An: Nagios-users at lists.sourceforge.net > Betreff: Re: [Nagios-users] check_squid.pl > > Hi, > > 17.04.2009 11:21, Meyer Jerome wrote: > > > > > > Hi all > > > > I ' ve d ownloaded the plugins check_squid.pl > > ... > > Any ideas?? > > Hmm... I never used that check_squid.pl. > > But I've got one I wrote a while ago. > > No documentation, no useful help, but feel free to try it... if it works for > you I might polish at least the help output a bit and publish it. > > Note that I consider this a quick and dirty hack, and the best things to say > about it are that it uses -w and 'use strict;' > > It uses snmp to check, i.e. your squid config needs lines like > > acl snmppublic snmp_community publi > snmp_access allow snmppublic our_networks > > to allow snmp access to squid. > > Arno > > -- > Arno Lehmann > IT-Service Lehmann > Sandstr. 6, 49080 Osnabr?ck > www.its-lehmann.de ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Fri Apr 17 16:08:48 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Fri, 17 Apr 2009 15:08:48 +0100 Subject: Precompiled Solaris Binaries Message-ID: Hi everyone, I was wondering if there were pre-compiled binaries of Nagios 3.0.6, NRPE 2.12 and Plugins 1.4.13 for Solaris 10 x86 available anywhere? Cheers, Chris ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Apr 17 16:09:51 2009 From: marc at ena.com (Marc Powell) Date: Fri, 17 Apr 2009 09:09:51 -0500 Subject: Alarm In-Reply-To: References: Message-ID: On Apr 17, 2009, at 8:22 AM, Eduardo Barreto wrote: > Is there any way to set alarm to beep only for one host? If you're talking about the audio alert, no. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kmechri at gmail.com Fri Apr 17 16:35:08 2009 From: kmechri at gmail.com (kaouther mechri) Date: Fri, 17 Apr 2009 16:35:08 +0200 Subject: parsing log files on remote hosts Message-ID: Hello All, I am seraching a way to parse some application log files on remote hosts and grep for specific words, I need to add this as a nagios check. Can anyone help me kind regards kaouther -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Fri Apr 17 16:47:38 2009 From: marcismael at gmail.com (Marc Ismael) Date: Fri, 17 Apr 2009 22:47:38 +0800 Subject: forcing a check script once every startup Message-ID: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> Hi, Is there any way for me to force an active check when nagios starts up? I don't need to execute this check at regular intervals, just once every nagios startup. Thanks, Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Fri Apr 17 16:50:19 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Fri, 17 Apr 2009 09:50:19 -0500 Subject: parsing log files on remote hosts In-Reply-To: References: Message-ID: Write a script to parse the logs on the remote host and have NSCA on that remote host exectute the script and send those passive results back to the Nagios server. There are other solutions you could employ. For example, using NRPE and active checks on the remote host. Ie, the parsing script would actually be a Nagios plugin which would return OK, critical, etc, alerts James Moseleyy kaouther mechri wrote: Hello All, I am seraching a way to parse some? application log files on remote hosts and grep for specific words, I need to add this as a nagios check. Can anyone help me kind regards kaouther ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Fri Apr 17 16:50:13 2009 From: marcismael at gmail.com (Marc Ismael) Date: Fri, 17 Apr 2009 22:50:13 +0800 Subject: parsing log files on remote hosts In-Reply-To: References: Message-ID: <48603ddb0904170750m4f3ef297ic02cf943eba20420@mail.gmail.com> On Fri, Apr 17, 2009 at 10:35 PM, kaouther mechri wrote: > Hello All, > > I am seraching a way to parse some application log files on remote hosts > and grep for specific words, I need to add this as a nagios check. > > Can anyone help me > kind regards > kaouther > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > I would imagine doing this via a simple shell or perl script and executing it via nrpe / nsca. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Fri Apr 17 16:52:25 2009 From: marcismael at gmail.com (Marc Ismael) Date: Fri, 17 Apr 2009 22:52:25 +0800 Subject: Precompiled Solaris Binaries In-Reply-To: References: Message-ID: <48603ddb0904170752o6633613ej44acbf891b7808cf@mail.gmail.com> On Fri, Apr 17, 2009 at 10:08 PM, Christopher McAtackney wrote: > Hi everyone, > > I was wondering if there were pre-compiled binaries of Nagios 3.0.6, > NRPE 2.12 and Plugins 1.4.13 for Solaris 10 x86 available anywhere? > > Cheers, > Chris > Just throwing myself on the thread, I also was looking for these Marc.I -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gevery at gmail.com Fri Apr 17 16:59:30 2009 From: gevery at gmail.com (Gary Every) Date: Fri, 17 Apr 2009 07:59:30 -0700 Subject: parsing log files on remote hosts In-Reply-To: References: Message-ID: #!/bin/bashLOGFILE="/tmp/logfile" WORD="word_to_find" GREP=/bin/grep found=`$GREP -i $WORD $LOGFILE` if [ -z $found ] ## $found is zero bytes then ok=1 RETSTRING=0 ## To be used for the exit code LINE="No instances found" else ok=0 RETSTRING=1 LINE=$found fi echo $LINE exit $RETSTRING ## End of snippet On Fri, Apr 17, 2009 at 7:35 AM, kaouther mechri wrote: > Hello All, > > I am seraching a way to parse some application log files on remote hosts > and grep for specific words, I need to add this as a nagios check. > > Can anyone help me > kind regards > kaouther > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Gary Every "Pay it Forward!" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Fri Apr 17 17:03:37 2009 From: marcismael at gmail.com (Marc Ismael) Date: Fri, 17 Apr 2009 23:03:37 +0800 Subject: Odd errors in nagios.log In-Reply-To: <49E6FDD3.9080009@antibodymx.net> References: <49E6E9E5.4010900@antibodymx.net> <765d77c80904160232r17627d78j3da9aa9fce7fe15a@mail.gmail.com> <49E6FDD3.9080009@antibodymx.net> Message-ID: <48603ddb0904170803q2783e4dt8230d6d6071ce21d@mail.gmail.com> On Thu, Apr 16, 2009 at 5:43 PM, Martin A. Brooks wrote: > Jim Avery wrote: > > You don't have more than one instance of the Nagios daemon running do > > you? Try stopping the Nagios daemon, make sure all instances of > > nagios are stopped (using ps -ef | grep nagios), and kill any which > > remain then start the Nagios daemon using /etc/init.d/nagios start . > > I looked for the before, and there's definitely only one nagios instance > running. The problem persists across nagios restarts and reboots. > > Thanks > > -- > Martin A. Brooks | http://www.antibodymx.net/ | Anti-spam & anti-virus > Consultant | martin at antibodymx.net | filtering. Inoculate > antibodymx.net | m: +447792493388 | your mail system. > > > try playing around with your check_result_reaper_* timings. I have a feeling that your check results are already stale before the reaper gets a chance to process them. tip: for a while, try setting max_check_result_file_age to 0 and see if you'd still get these errors. if not, then its a timing misconfiguration. cheers, Marc.I -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyleodonnell at gmail.com Fri Apr 17 17:10:52 2009 From: kyleodonnell at gmail.com (Kyle O'Donnell) Date: Fri, 17 Apr 2009 11:10:52 -0400 Subject: Precompiled Solaris Binaries In-Reply-To: <48603ddb0904170752o6633613ej44acbf891b7808cf@mail.gmail.com> References: <48603ddb0904170752o6633613ej44acbf891b7808cf@mail.gmail.com> Message-ID: <2274b9c30904170810g689f95b9u70fbf8ee74aa0826@mail.gmail.com> I'll be compiling these shortly and uploading to nagios exchange. On 4/17/09, Marc Ismael wrote: > On Fri, Apr 17, 2009 at 10:08 PM, Christopher McAtackney > wrote: > >> Hi everyone, >> >> I was wondering if there were pre-compiled binaries of Nagios 3.0.6, >> NRPE 2.12 and Plugins 1.4.13 for Solaris 10 x86 available anywhere? >> >> Cheers, >> Chris >> > > Just throwing myself on the thread, I also was looking for these > > Marc.I > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Apr 17 17:15:58 2009 From: marc at ena.com (Marc Powell) Date: Fri, 17 Apr 2009 10:15:58 -0500 Subject: parsing log files on remote hosts In-Reply-To: References: Message-ID: <0318784E-F40C-4F4A-A68B-3F451D8C1E7D@ena.com> On Apr 17, 2009, at 9:35 AM, kaouther mechri wrote: > Hello All, > > I am seraching a way to parse some application log files on remote > hosts and grep for specific words, I need to add this as a nagios > check. You've seen answers on how to handle the remote communication. As far as the log parsing, you're not the first to want to do that. check_log is included in the standard plugins and there are others I am aware of that can be found by searching Nagios Exchange or the web. # Usage: ./check_log # # Description: # # This plugin will scan a log file (specified by the option) # for a specific pattern (specified by the option). Successive # calls to the plugin script will only report *new* pattern matches in the # log file, since an copy of the log file from the previous run is saved # to . -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marouane.himdi at kereval.com Fri Apr 17 17:15:31 2009 From: marouane.himdi at kereval.com (Marouane HIMDI) Date: Fri, 17 Apr 2009 17:15:31 +0200 Subject: parsing log files on remote hosts In-Reply-To: References: Message-ID: <2344898993B34836B457EDCA39A19D34@pcmhi> Why reinvent the weel. There are many plug-in that adrress this need . Personally I use check_logfiles http://www.consol.com/opensource/nagios/check-logfiles without any problem. there are many examples in that website that can help you Best regards Dr Marouane HIMDI Ing?nieur R&D/R&D Engineer KEREVAL 4, rue H?l?ne Boucher Z.A. Bellevue 35235 Thorign? Fouillard Tel : +33 (0)2 23 20 36 64 http://www.kereval.com P Pensez ? l'environnement: n'imprimez ce message et ses pi?ces jointes que si n?cessaire ! _____ De : Gary Every [mailto:gevery at gmail.com] Envoy? : vendredi 17 avril 2009 17:00 ? : kaouther mechri Cc : Nagios-users at lists.sourceforge.net Objet : Re: [Nagios-users] parsing log files on remote hosts #!/bin/bash LOGFILE="/tmp/logfile" WORD="word_to_find" GREP=/bin/grep found=`$GREP -i $WORD $LOGFILE` if [ -z $found ] ## $found is zero bytes then ok=1 RETSTRING=0 ## To be used for the exit code LINE="No instances found" else ok=0 RETSTRING=1 LINE=$found fi echo $LINE exit $RETSTRING ## End of snippet On Fri, Apr 17, 2009 at 7:35 AM, kaouther mechri wrote: Hello All, I am seraching a way to parse some application log files on remote hosts and grep for specific words, I need to add this as a nagios check. Can anyone help me kind regards kaouther ---------------------------------------------------------------------------- -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Gary Every "Pay it Forward!" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 2459 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dani at tydnet.org Fri Apr 17 17:29:56 2009 From: dani at tydnet.org (Daniel =?utf-8?q?L=C3=B3pez?=) Date: Fri, 17 Apr 2009 17:29:56 +0200 Subject: parsing log files on remote hosts In-Reply-To: References: Message-ID: <200904171729.56445.dani@tydnet.org> On Friday 17 April 2009 16:35:08 kaouther mechri wrote: > Hello All, > > I am seraching a way to parse some application log files on remote hosts > and grep for specific words, I need to add this as a nagios check. > > Can anyone help me > kind regards > kaouther check_logfiles is really nice. You can define several patterns to search and define several exclude patterns per warning/critical/logfile. http://www.consol.com/opensource/nagios/check-logfiles regards, Dani ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Fri Apr 17 17:47:00 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Fri, 17 Apr 2009 16:47:00 +0100 Subject: Precompiled Solaris Binaries In-Reply-To: <2274b9c30904170810g689f95b9u70fbf8ee74aa0826@mail.gmail.com> References: <48603ddb0904170752o6633613ej44acbf891b7808cf@mail.gmail.com> <2274b9c30904170810g689f95b9u70fbf8ee74aa0826@mail.gmail.com> Message-ID: 2009/4/17 Kyle O'Donnell : > I'll be compiling these shortly and uploading to nagios exchange. Great, good to hear :) Will these be available today Kyle? I'm quite eager to get my hands on them. Also, whilst on the subject of Nagios under Solaris, does anyone have examples of a bash script / manifest file for running the NRPE daemon under SMF? That would be a big help to me too. Cheers, Chris ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Fri Apr 17 17:55:04 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 17 Apr 2009 16:55:04 +0100 Subject: forcing a check script once every startup In-Reply-To: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> Message-ID: <765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com> 2009/4/17 Marc Ismael : > Hi, > > Is there any way for me to force an active check when nagios starts up? I > don't need to execute this check at regular intervals, just once every > nagios startup. > > Thanks, > Marc Forgive me if I'm missing something here, but can you not just add the relevant command to the /etc/init.d/nagios startup script? ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Fri Apr 17 18:06:54 2009 From: marcismael at gmail.com (Marc Ismael) Date: Sat, 18 Apr 2009 00:06:54 +0800 Subject: forcing a check script once every startup In-Reply-To: <765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> <765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com> Message-ID: <48603ddb0904170906v5989acfar60dec62605da4927@mail.gmail.com> On Fri, Apr 17, 2009 at 11:55 PM, Jim Avery wrote: > 2009/4/17 Marc Ismael : > > Hi, > > > > Is there any way for me to force an active check when nagios starts up? I > > don't need to execute this check at regular intervals, just once every > > nagios startup. > > > > Thanks, > > Marc > > Forgive me if I'm missing something here, but can you not just add the > relevant command to the /etc/init.d/nagios startup script? > I dont want to go that route. If there's a way / workaround to have it as a nagios-executable plugin that'd be great. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Fri Apr 17 17:39:42 2009 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Fri, 17 Apr 2009 16:39:42 +0100 Subject: New to Nagios -- simple problem with data from nrpe Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF3010AF82A0299@MAIL06.curamsoftware.com> There seems to be a lot of documentation on Nagios all over the web. I must say im impressed with it, even though im still installing it. Basically I have the server set up and monitoring itself, and I have one remote machine, which I have set up 6 tests on just for testing. I have the nagios plugins and nrpe installed and everything is working in that regard. If I run the check_nrpe command with any of the base remote commands in the /etc/nagios/nrpe.cfg file, I get the output to my screen. [nagios at mido ~]$ /usr/lib/nagios/plugins/check_nrpe -H 172.16.165.248 -c check_root_disk DISK OK - free space: / 4460 MB (95% inode=98%);| /=208MB;4898;4908;0;4918 (IP is the remote machine) However when these tests are added to server.cfg files, I get Status==UNKNOWN and Status Information=(No output returned from plugin) I reckon its something simple that ive missed, but ive gotten a bit lost looking for it. Server: Rhel5.1 Nagios-3.0.6 installed from source Plugins 1.4.13-4 from rpm Plugins-nrpe 2.12-6 from rpm Remote Server: Rhel4u6 nagios-nrpe-2.5.2-1 nagios-plugins-nrpe-2.12-6 nagios-plugins-1.4.13-1.el4 Thanks B The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Fri Apr 17 18:18:27 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Fri, 17 Apr 2009 17:18:27 +0100 Subject: Precompiled Solaris Binaries In-Reply-To: References: <48603ddb0904170752o6633613ej44acbf891b7808cf@mail.gmail.com> <2274b9c30904170810g689f95b9u70fbf8ee74aa0826@mail.gmail.com> Message-ID: Sorry, I meant to ask, are there also binaries available for Solaris 10 U6 x64? ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Fri Apr 17 18:36:52 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Fri, 17 Apr 2009 17:36:52 +0100 Subject: Consolidating Log Files In-Reply-To: <49E84045.7060706@op5.se> References: <49E84045.7060706@op5.se> Message-ID: 2009/4/17 Andreas Ericsson : > Christopher McAtackney wrote: >> >> Hi all, >> >> I'm thinking of setting up my Nagios system in a "Redundant >> Monitoring" configuration - two servers (a primary and secondary) >> which both monitor all hosts / services, but only one of which has >> notifications enabled (the primary). >> >> Upon failure of the primary, the secondary will enable its own >> notifications (and upon the primary returning to an OK state, >> notifications will be disabled). >> >> One aspect of this that I am wondering how to tackle is consolidating >> my log files after a failure has occurred. >> >> I want my primary Nagios server's log files to reflect the total >> history of check results that have been made - and so would like the >> results from the secondary server for the time period when the primary >> was done, to be consolidated into the log files of the primary (for >> browsing through the web UI). >> >> Has anyone looked into this before, and how did you solve the problem >> of duplicate result checks being created in the primary log? >> > > Fortunately, line-based merging of files where every line is prefix > with a timestamp is as simple as doing > > cat file1 file2 file3 filen... | sort -n > merged-file > > Since the primary server won't be logging at all during the time it's > offline, this merge-strategy will work quite nicely. Do note that it > requires quite a lot of memory and is fairly cpu intensive though, so > if you have a large installation, you'll want to filter out the period > where the primary server was up from the logs of the secondary server > and then just paste those in at the end of the primary server's logs. > Some sed or perl-scripting can help you there. > > Note that for either of the above ways to work, the two server's clocks > have to be in sync. If they're not, you need to take the clock-delta > into consideration when merging the logs. > > -- > Andreas Ericsson ? ? ? ? ? ? ? ? ? andreas.ericsson at op5.se > OP5 AB ? ? ? ? ? ? ? ? ? ? ? ? ? ? www.op5.se > Tel: +46 8-230225 ? ? ? ? ? ? ? ? ?Fax: +46 8-230231 > > Considering the successes of the wars on alcohol, poverty, drugs and > terror, I think we should give some serious thought to declaring war > on peace. > Cheers Andreas, I'll give this a shot, sounds good! Chris ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Fri Apr 17 18:54:35 2009 From: marcismael at gmail.com (Marc Ismael) Date: Sat, 18 Apr 2009 00:54:35 +0800 Subject: New to Nagios -- simple problem with data from nrpe In-Reply-To: <86E8DA9E18BC2344BD0218BF23C88DF3010AF82A0299@MAIL06.curamsoftware.com> References: <86E8DA9E18BC2344BD0218BF23C88DF3010AF82A0299@MAIL06.curamsoftware.com> Message-ID: <48603ddb0904170954n3fc3fd20pa630335c90d48abe@mail.gmail.com> On Fri, Apr 17, 2009 at 11:39 PM, Brian O'Mahony < brian.omahony at curamsoftware.com> wrote: > There seems to be a lot of documentation on Nagios all over the web. I > must say im impressed with it, even though im still installing it. > > > > Basically I have the server set up and monitoring itself, and I have one > remote machine, which I have set up 6 tests on just for testing. I have the > nagios plugins and nrpe installed and everything is working in that regard. > If I run the check_nrpe command with any of the base remote commands in the > /etc/nagios/nrpe.cfg file, I get the output to my screen. > > [nagios at mido ~]$ /usr/lib/nagios/plugins/check_nrpe -H 172.16.165.248 -c > check_root_disk > > DISK OK - free space: / 4460 MB (95% inode=98%);| /=208MB;4898;4908;0;4918 > > (IP is the remote machine) > > > > However when these tests are added to server.cfg files, I get > Status==UNKNOWN and Status Information=(No output returned from plugin) > > > > I reckon its something simple that ive missed, but ive gotten a bit lost > looking for it. > > > > Server: > > Rhel5.1 > > Nagios-3.0.6 installed from source > > Plugins 1.4.13-4 from rpm > > Plugins-nrpe 2.12-6 from rpm > > > > Remote Server: > > Rhel4u6 > > nagios-nrpe-2.5.2-1 > > nagios-plugins-nrpe-2.12-6 > > nagios-plugins-1.4.13-1.el4 > > > > > > Thanks > > > > B > i would do the following - make sure that nrpe on the nagios server is connecting to the correct port at the nrpe server by comparing nrpe config files. (check encryption, port, privs, etc). - make sure that nrpe service on the clients are actually running and listening on the configured port. - check service and command definitions Also I would double check the nrpe pdf documentation -- there are examples there to get you up and running with nrpe. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Apr 17 19:19:42 2009 From: marc at ena.com (Marc Powell) Date: Fri, 17 Apr 2009 12:19:42 -0500 Subject: forcing a check script once every startup In-Reply-To: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> Message-ID: <2CD5EA18-C47C-4D70-ADC5-789BE00609E6@ena.com> On Apr 17, 2009, at 9:47 AM, Marc Ismael wrote: > Hi, > > Is there any way for me to force an active check when nagios starts > up? I don't need to execute this check at regular intervals, just > once every nagios startup. Not directly but I'd try setting a really really long check_interval combined with retain_status_information 0, retain_nonstatus_information 0. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Fri Apr 17 19:19:28 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Fri, 17 Apr 2009 14:19:28 -0300 Subject: Audio Alert Message-ID: How to set audio alert for some host not for all? Is there a way to do it? Cheers Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcismael at gmail.com Fri Apr 17 19:40:59 2009 From: marcismael at gmail.com (Marc Ismael) Date: Sat, 18 Apr 2009 01:40:59 +0800 Subject: forcing a check script once every startup In-Reply-To: <2CD5EA18-C47C-4D70-ADC5-789BE00609E6@ena.com> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> <2CD5EA18-C47C-4D70-ADC5-789BE00609E6@ena.com> Message-ID: <48603ddb0904171040see93e9dl7ed57c5fc0ad9e32@mail.gmail.com> On Sat, Apr 18, 2009 at 1:19 AM, Marc Powell wrote: > > On Apr 17, 2009, at 9:47 AM, Marc Ismael wrote: > > > Hi, > > > > Is there any way for me to force an active check when nagios starts > > up? I don't need to execute this check at regular intervals, just > > once every nagios startup. > > Not directly but I'd try setting a really really long check_interval > combined with retain_status_information 0, > retain_nonstatus_information 0. > > -- > Marc (I just kicked myself..) I have had this problem for a while, why didn't I think of that. Thanks Marc! Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Fri Apr 17 21:15:14 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Fri, 17 Apr 2009 15:15:14 -0400 Subject: New to Nagios -- simple problem with data from nrpe In-Reply-To: <48603ddb0904170954n3fc3fd20pa630335c90d48abe@mail.gmail.com> References: <86E8DA9E18BC2344BD0218BF23C88DF3010AF82A0299@MAIL06.curamsoftware.com> <48603ddb0904170954n3fc3fd20pa630335c90d48abe@mail.gmail.com> Message-ID: <6db4a4200904171215i55f17a95j393b34156d7de743@mail.gmail.com> Brian, First thing to check is version of NRPE? NRPE comes with two version, stripped and non-stripped. Make sure both machine has the same version running. If not, then play with the "-n" option to fix the incompatibility issues. Then check if your nrpe.cfg where you define the actual checks are the same on both nagios server and the monitored machine. I hope this helps. On Fri, Apr 17, 2009 at 12:54 PM, Marc Ismael wrote: > > > On Fri, Apr 17, 2009 at 11:39 PM, Brian O'Mahony < > brian.omahony at curamsoftware.com> wrote: > >> There seems to be a lot of documentation on Nagios all over the web. I >> must say im impressed with it, even though im still installing it. >> >> >> >> Basically I have the server set up and monitoring itself, and I have one >> remote machine, which I have set up 6 tests on just for testing. I have the >> nagios plugins and nrpe installed and everything is working in that regard. >> If I run the check_nrpe command with any of the base remote commands in the >> /etc/nagios/nrpe.cfg file, I get the output to my screen. >> >> [nagios at mido ~]$ /usr/lib/nagios/plugins/check_nrpe -H 172.16.165.248 -c >> check_root_disk >> >> DISK OK - free space: / 4460 MB (95% inode=98%);| /=208MB;4898;4908;0;4918 >> >> (IP is the remote machine) >> >> >> >> However when these tests are added to server.cfg files, I get >> Status==UNKNOWN and Status Information=(No output returned from plugin) >> >> >> >> I reckon its something simple that ive missed, but ive gotten a bit lost >> looking for it. >> >> >> >> Server: >> >> Rhel5.1 >> >> Nagios-3.0.6 installed from source >> >> Plugins 1.4.13-4 from rpm >> >> Plugins-nrpe 2.12-6 from rpm >> >> >> >> Remote Server: >> >> Rhel4u6 >> >> nagios-nrpe-2.5.2-1 >> >> nagios-plugins-nrpe-2.12-6 >> >> nagios-plugins-1.4.13-1.el4 >> >> >> >> >> >> Thanks >> >> >> >> B >> > > i would do the following > > - make sure that nrpe on the nagios server is connecting to the correct > port at the nrpe server by comparing nrpe config files. (check encryption, > port, privs, etc). > - make sure that nrpe service on the clients are actually running and > listening on the configured port. > - check service and command definitions > > Also I would double check the nrpe pdf documentation -- there are examples > there to get you up and running with nrpe. > > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Fri Apr 17 21:17:22 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Fri, 17 Apr 2009 15:17:22 -0400 Subject: Audio Alert In-Reply-To: References: Message-ID: <6db4a4200904171217u3715412w349acc577f79a672@mail.gmail.com> Edurado, Try to use event handler to call the acutal *.wav file. On Fri, Apr 17, 2009 at 1:19 PM, Eduardo Barreto wrote: > How to set audio alert for some host not for all? > > Is there a way to do it? > > > Cheers > > Eduardo > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Fri Apr 17 21:26:02 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Fri, 17 Apr 2009 15:26:02 -0400 Subject: Antwort: Re: Antwort: Problem with MySql log In-Reply-To: References: <1ebd356a0904140319o29639f8dqae68d7fc45b7f9a9@mail.gmail.com> <1ebd356a0904140356t5e383f4cmb43180414aa8b81f@mail.gmail.com> Message-ID: <6db4a4200904171226q58a3cc98rf1ca25cb5c593eda@mail.gmail.com> I have master master replication setup for ndo. I ran into big log file issue. I found this php script for log rotation and modified few things to work on my setup. This works fine for me. I hope this helps. http://forums.mysql.com/read.php?52,210712. On Fri, Apr 17, 2009 at 8:36 AM, wrote: > Sidenote: please stop top-posting, it's confusing and just > spams my account with unneeded quotes. > Thank you. > > > > Uhm, disable mysql binlogging? > > > > > you think that this solution helpful? and I would not need > > this log? > > I don't know if you would need those binlogs, that's up to you > and your setup. If you don't know what you usually do with > binlogs, you probably don't need them... > > S > > > > GFKL Financial Services AG > Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp > Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma > Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hussayn.dabbous at saxess.de Sat Apr 18 00:52:43 2009 From: hussayn.dabbous at saxess.de (Hussayn Dabbous) Date: Sat, 18 Apr 2009 00:52:43 +0200 Subject: how can i define check-sequences ? Message-ID: <49E9083B.204@saxess.de> Hi; I have defined a set of ~40 independent (fully unrelated) Tests for a large set of Webapplications (using bash shell scripts). I need all Tests to be executed every morning between 6 am and 8 am. So i have defined an appropriate time periods setting and i have configured all my tests appropriately. So far so well. Now Nagios schedules all tests at 6 am instead of distributing the tests over the available time period (6-8 am). But i do not want to let all Tests run at the same time. I rather would like to "evenly distribute" the checks over the given time period of 2 hours, so that each check starts 3 minutes after the previous check started... But it definitively would be sufficient, if the checks just run sequentially (one at a time)... How can i achieve the one or the other best ? The only idea i have right now, is to define different time periods for each test. But that does not sound very clever... Is there any better option available ? i am using following software versions: NagiosQl - 3.0.2 nagios 3.0.6 Suse-Linux 11.1 One remark: I am not (yet) well experienced with nagios, but i have a good knowledge about linux and Suse, so if there is a solution available which involves modifying the files directly on the OS, i have no problems as long as NagiosQL will not break ;-) Thanks for any hint. Hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenh?fer Allee 125 50935 K?ln tel.: +49 221 560 11 0 fax.: +49 221 560 11 20 mailto:info at saxess.de http://www.saxess.de http://www.saxess.com http://www.saxess.org ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jimmyjose2980 at gmail.com Sat Apr 18 07:09:36 2009 From: jimmyjose2980 at gmail.com (Jimmyboy) Date: Sat, 18 Apr 2009 10:39:36 +0530 Subject: Fwd: Fwd: Apache Server configuration for Nagios 3.0 In-Reply-To: References: <8147CCE3C4A8764DA9980125EE70E823B3CF6A@nuexchg.norwich.edu> Message-ID: Hi James, I created a file *nagios.conf* under '*/usr/local/apache2/conf*' directory by typing the command *sudo touch nagios.conf*. Then, I keyed in the *ScriptAlias* and *Alias* directives. Then, I did a "*sudo make install-webconfig*", which was again unsuccessful. Same error!! So, I created the directories *httpd* & *conf.d* under the directories '* /etc*' & '*/etc/httpd*' respectively. Then, I copied the *nagios.conf* file into the */etc/httpd/conf.d* directory using the command "sudo cp */usr/local/apache2/conf/nagios.conf/etc/httpd/conf.d". * Ultimately, after running "*sudo make install-webconfig*", I got the web interface for Nagios successfully installed. I was finally able to complete Nagios installation according to the Quickstart Guide for Ubuntu. Now, I am left with its configuration. Appreciate your suggestion. Thanks, Jim ---------- Forwarded message ---------- From: Jimmyboy Date: Apr 17, 2009 12:54 AM Subject: Re: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0 To: James Pratt Cc: nagios-users at lists.sourceforge.net Hi James, You are right. '/etc/httpd/conf.d/' does not exist. Unfortunately, I do not know how to find out the directory, Apache on my system refers to '/etc/httpd/conf.d/'. However, I successfully keyed in the 'ScriptAlias' and 'Alias' directives into my '/usr/local/apache2/httpd.conf' config file (I reinstalled Apache to the default location). Still, I am getting the same error on doing a 'sudo make install-webconf'. =-=-=-= I had raised a query on the Apache forum, on which of *apache2.conf* and * httpd.con*f is the *config file* of Apache. I got an answer stating that it depends on type of installation method followed. If the source files (.tar.gz) are used, then it is *httpd.conf*, else, *apache2.conf*. So, it is true in my case. Based on this, I observed an already installed Nagios setup on a different machine. It's *config file* is *apache2.conf* (again true, it was installed using Synaptic Package Manager). So, I was thinking to try installing using the 'Synaptic Package Manager' or 'apt-get'. However, both aren't working for me. Though I am able to proxy the internet (sitting behind a proxy server), Synaptic & sudo apt-get say, they cannot resolve 'archive.ubuntu.com', etc. Any idea, how to go about? Thanks, Jim =-=-=-= On Tue, Apr 14, 2009 at 3:50 AM, James Pratt wrote: > Hi - sounds like your issue is that the generic make install in nagios > src tries to drop a file called nagios.conf into httpd's (usually the > default) location, /etc/httpd/conf.d/, which, appears does not exist on > your server... > > If you can find what directory your apache uses for "/etc/httpd/conf.d/" > you can manually copy and paste whatever is in nagios.conf (the one > trying to be installed from nagios src dir) into your > "/etc/httpd/conf/httpd.conf" (You can likely disregard the > "apache2.conf" stuff - sounds like they used their own file naming, as > the default is normally "httpd.conf") - Apache itself is very flexible, > there are many ways to configure it - nagios simply guesses you are > using redhat, so it tries to drop it's httpd config into > /etc/httpd/conf.d) > > HTH ... > > Regards, > jamie > > > -----Original Message----- > > From: Jimmyboy [mailto:jimmyjose2980 at gmail.com] > > Sent: Monday, April 13, 2009 2:25 PM > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios > 3.0 > > > > > Hi, > > > > On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I > > understand that /etc/apache2/apache2.conf is the most important file. > > Though I have installed Apache in /etc/apache2 location, I do not have > > apache2.conf file as mentioned in the site. > > > > However, when I stop/start the Apache service using the command > > '/etc/apache2/bin/apachectl -k stop/start' respectively, and check > > > http://127.0.0.1 and ps -A | grep httpd, the > results > > are OK. > > > > Thanks, > > Jim > > > > =-=-=-=-= > > > > > > ---------- Forwarded message ---------- > > From: Jimmyboy > > Date: Mon, Apr 13, 2009 at 11:49 PM > > Subject: Apache Server configuration for Nagios 3.0 > > To: nagios-users at lists.sourceforge.net > > > > > > > > Hi All, > > > > I am following the Quickstart Guide for installing NAGIOS using > > http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. > > > > One of the prerequisites is Apache2, which I installed, and was > successful > > > in getting "It Works!!" for http://127.0.0.1 . > > > > However, I am stuck at point 5) Configure the Web Interface, make > install- > > webconf. > > > > When this command is issued, this is what I get. > > /usr/bin/install -c -m 644 sample-config/httpd.conf > > /etc/httpd/conf.d/nagios.conf > > /usr/bin/install: cannot create regular file > > '/etc/httpd/conf.d/nagios.conf': No such file or directory > > make: *** [install-webconf] Error 1 > > > > Prefix for Apache: /etc/apache2 > > > > I believe the httpd.conf file and a few others also need to be edited > for > > Nagios. Can some please guide me through this? > > > > > > Thanks, > > Jim > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 18 11:32:31 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sat, 18 Apr 2009 10:32:31 +0100 Subject: how can i define check-sequences ? In-Reply-To: <49E9083B.204@saxess.de> References: <49E9083B.204@saxess.de> Message-ID: <765d77c80904180232g4552ea6cycd50e0197673d39a@mail.gmail.com> 2009/4/17 Hussayn Dabbous : > Hi; > > I have defined a set of ~40 independent (fully unrelated) Tests for a > large set of Webapplications (using bash shell scripts). > I need all Tests to be executed every morning between 6 am and 8 am. So > i have defined an appropriate time periods setting > and i have configured all my tests appropriately. So far so well. > > Now Nagios schedules all tests at 6 am instead of distributing the tests > over the available time period (6-8 am). > But i do not want to let all Tests run at the same time. I rather would > like to "evenly distribute" the checks over the given time > period of 2 hours, so that each check starts 3 minutes after the > previous check started... > But it definitively would be sufficient, if the checks just run > sequentially (one at a time)... > How can i achieve the one or the other best ? > > The only idea i have right now, is to define different time periods for > each test. But that does not sound > very clever... Is there any better option available ? > > i am using following software versions: > > ?NagiosQl - 3.0.2 > ?nagios 3.0.6 > ?Suse-Linux 11.1 > > One remark: I am not (yet) well experienced with nagios, but i have a > good knowledge about linux and Suse, so if there is a > solution available which involves modifying the files directly on the > OS, i have no problems as long as NagiosQL will not break ;-) > > Thanks for any hint. > Hussayn If you want to make sure that checks run at a given time and in sequence, I recommend you configure them as a passive checks. Run the checks it in a script under cron with sleeps seperating each one and have them push the check results to nagios either by writing to the command file or using nsca (depending on whether you run the checks on the local or remote host). See http://nagios.sourceforge.net/docs/3_0/passivechecks.html hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Sat Apr 18 15:23:00 2009 From: lflacayo at cps.k12.il.us (Lacayo, Luis F) Date: Sat, 18 Apr 2009 08:23:00 -0500 Subject: NRPE - Event handler. In-Reply-To: <765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> <765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com> Message-ID: <13D6E07A3358E64EB01974BEF18F8BA66176E2@CO-XMB03.admin.cps.k12.il.us> Good Morning all... I have a question, that someone out there might be able to help me with. I want to setup an event handler, to restart a windows service if a service changes to an "UNKNOW" Status. I am not sure of how to set this up on the services.cfg side. Any help is greatly appreciated. Thanks, Luis ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohandas.k at tcs.com Sat Apr 18 17:09:57 2009 From: mohandas.k at tcs.com (mohandas.k at tcs.com) Date: Sat, 18 Apr 2009 20:39:57 +0530 Subject: Windows plugins Message-ID: Hi All, I am planing to monitor windows machine also using Nagios NRPE. I have installed windows NRPE on windows box and downloaded some available plugins also. all are working fine and I am able to do monitoring for windows machiness too. but I want plugins which can give output in usage rather than free (which is default for any plugins, if am not wrong) for following resources : (1) Memory utilization (2) Swap Utilization (3) CPU Utilization However for Unix I have created my own script (memory usage rather that memory free) for such output but for windows, have no idea :) Mohandas Kudva K ASE Tata Consultancy Services Cell:- +91 9619144048 Mailto: mohandas.k at tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From anthony at overnetdata.com Sat Apr 18 18:08:36 2009 From: anthony at overnetdata.com (Anthony Wright) Date: Sat, 18 Apr 2009 17:08:36 +0100 Subject: Getting decent availability stats for servers at remote sites Message-ID: <49E9FB04.4030105@overnetdata.com> I have a central site and servers at a number of remote sites all connected together over the internet. The users of these servers are also at the remote site, so if their internet connection fails they can carry on using the server without interruption. The connections are not under my control, but the servers are. I run Nagios at the central site, and while normally the connections to the remote sites are good, if a connection fails, Nagios records the servers at the site as unavailable. This means that when I come to look at my weekly/monthly server availability stats what I am looking at is a combination of server and network connection availability (and it's mainly network faults that cause outages). This becomes a big problem when I want to start offering SLAs on these remote servers because Nagios isn't recording the availability of the server. I still want to maintain a central monitoring server, but I wondered about installing a monitoring server/proxy/agent at each remote site so that it would record the availability of all the servers at the site, and would periodically feed that back to the central server. Thus if the internet connection failed, when it was restored the site server would tell the central server that everything had been fine with the servers while they were disconnected. Is there a way to do this with Nagios and/or net-snmp? thanks, Anthony Wright. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From hussayn.dabbous at saxess.de Sat Apr 18 18:40:54 2009 From: hussayn.dabbous at saxess.de (Hussayn Dabbous) Date: Sat, 18 Apr 2009 18:40:54 +0200 Subject: how can i define check-sequences ? In-Reply-To: <765d77c80904180232g4552ea6cycd50e0197673d39a@mail.gmail.com> References: <49E9083B.204@saxess.de> <765d77c80904180232g4552ea6cycd50e0197673d39a@mail.gmail.com> Message-ID: <49EA0296.1070702@saxess.de> Jim Avery wrote: > 2009/4/17 Hussayn Dabbous : > >> Now Nagios schedules all tests at 6 am instead of distributing the tests >> over the available time period (6-8 am). >> But i do not want to let all Tests run at the same time. I rather would >> like to "evenly distribute" the checks over the given time >> period of 2 hours, so that each check starts 3 minutes after the >> previous check started... >> > If you want to make sure that checks run at a given time and in > sequence, I recommend you configure them as a passive checks. Run the > checks it in a script under cron with sleeps seperating each one and > have them push the check results to nagios either by writing to the > command file or using nsca (depending on whether you run the checks on > the local or remote host). > > See http://nagios.sourceforge.net/docs/3_0/passivechecks.html > > hth, > > Jim > Ah, thank you, Jim. I see what you mean. That does the trick for the time schedule and i now let cron make the scheduling. But now i got one other problem, that is: Before a particular webapplication check can start, the associated host must be checked to be up. Only if the host is OK, the webapplication-check shall execute. So how can i do this ? I would like to add a sequence into my test script, which asks nagios someting like "What status have you recently determined for host abc?" I could of course check the host status directly from my script, but it sounds much better to me, if i could ask nagios directly for the status information. So is there any possibility to query nagios for information ? I have looked into the CGI scripts documentation. These scripts seem to return high level information but this information is allready layouted. What i am missing here is something like raw data query, which i can ask to give information e.g. as an XML-data stream for further processing in my monitoring application. Does something alike exist ? Maybe as an add-on to nagios? regards, hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenh?fer Allee 125 50935 K?ln tel.: +49 221 560 11 0 fax.: +49 221 560 11 20 mailto:info at saxess.de http://www.saxess.de http://www.saxess.com http://www.saxess.org ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 18 20:11:42 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sat, 18 Apr 2009 19:11:42 +0100 Subject: how can i define check-sequences ? In-Reply-To: <49EA0296.1070702@saxess.de> References: <49E9083B.204@saxess.de> <765d77c80904180232g4552ea6cycd50e0197673d39a@mail.gmail.com> <49EA0296.1070702@saxess.de> Message-ID: <765d77c80904181111n18619f25t222a99564fdf95cd@mail.gmail.com> 2009/4/18 Hussayn Dabbous : > But now i got one other problem, that is: > > Before a particular webapplication check can start, the associated host > must be checked to be up. I'm not sure I understand why this is an issue. If the host is down, it is normal for Nagios still to perform the service checks on that host. While the host is down the checks will still run but will fail (this is true for active checks and it shouldn't be a problem for passive checks either). Nagios is intelligent enough not to send a service notification if the host is down. > Only if the host is OK, the webapplication-check shall execute. > So how > can i do this ? > > I would like to add a sequence into my test script, which asks nagios > someting like > > "What status have you recently determined for host abc?" > > I could of course check the host status directly from my script, but it > sounds much better to me, if i could > ask nagios directly for the status information. Assuming you really do need to do this (please forgive my skepticism) then personally I would simply do a check_ping from within your script. If you must query the host status in Nagios, I expect the easiest would be to use NDOUtils and have your script query the MySQL database. Don't forget that Nagios will do a host check anyway after the service check fails, and if the problem is that the host is already down, it won't send a service notification. Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 18 20:23:17 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sat, 18 Apr 2009 19:23:17 +0100 Subject: Windows plugins In-Reply-To: References: Message-ID: <765d77c80904181123o3e72addbm2c8cbc0bbdb72ba8@mail.gmail.com> 2009/4/18 : > > Hi All, > > I am planing to monitor windows machine also using Nagios NRPE. I have > installed windows NRPE on windows box and downloaded some available plugins > also. all are working fine and I am able to do monitoring for windows > machiness too. > > ?but I want plugins which can give output in usage rather than free (which > is default for any plugins, if am not wrong) for following resources : > > (1) Memory utilization > > (2) Swap Utilization > > (3) CPU Utilization > > However for Unix I have created my own script (memory usage rather that > memory free) for such output but for windows, have no idea :) Have you considered using NSClient++ instead? http://sourceforge.net/projects/nscplus NSClient++ is designed to be queried using nrpe. It can also be queried by check_nt. You can use your custom plugins with NSClient++ too. See also: http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 18 20:31:46 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sat, 18 Apr 2009 19:31:46 +0100 Subject: NRPE - Event handler. In-Reply-To: <13D6E07A3358E64EB01974BEF18F8BA66176E2@CO-XMB03.admin.cps.k12.il.us> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> <765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com> <13D6E07A3358E64EB01974BEF18F8BA66176E2@CO-XMB03.admin.cps.k12.il.us> Message-ID: <765d77c80904181131y161bb662j6fa2fc0ed043aff7@mail.gmail.com> 2009/4/18 Lacayo, Luis F : > Good Morning all... > > I have a question, that someone out there might be able to help me with. > > > I want to setup an event handler, to restart a windows service if a > service changes to an "UNKNOW" Status. ?I am not sure of how to set this > up on the services.cfg side. > > Any help is greatly appreciated. > > Thanks, > > Luis Hopefully the documentation page explains it well enough - http://nagios.sourceforge.net/docs/3_0/eventhandlers.html If you look at the example script there, I guess you pretty much need to swap CRITICAL and UNKNOWN in the "case" statement to achieve what you're after, and it shows what you need in your service definition too. hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From palleje at gmail.com Sat Apr 18 20:51:11 2009 From: palleje at gmail.com (Palle L Jensen) Date: Sat, 18 Apr 2009 14:51:11 -0400 Subject: contactgroups assgined to service groups Message-ID: <84D6E3526891486EA83F4F3C78B3A704@na.dsmain.com> Hello, Been searching the manual to see if it possible to assign a contact group to a service group, but not been able to find that it's possible. Kinda like this: Define Servicegroup ( Servicegroup_name uptime Alias Host uptime Contactgroup acontactgroupname ) Thanks, PJ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 18 23:37:52 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sat, 18 Apr 2009 22:37:52 +0100 Subject: contactgroups assgined to service groups In-Reply-To: <84D6E3526891486EA83F4F3C78B3A704@na.dsmain.com> References: <84D6E3526891486EA83F4F3C78B3A704@na.dsmain.com> Message-ID: <765d77c80904181437m1389ba1at33f74215e6a35980@mail.gmail.com> 2009/4/18 Palle L Jensen : > Hello, > > > > Been searching the manual to see if it possible to assign a contact group to > a service group, but not been able to find that it?s possible. > > > > Kinda like this: > > > > Define Servicegroup ( > > Servicegroup_name ????? uptime > > Alias ??????????? ????? Host uptime > > Contactgroup????? ????? acontactgroupname > > ) I guess you can do something similar using a service template which sets just the servicegroup and the contact_group. Apply the template to each service which you want in your servicegroup. For example, your service template called 'uptime' will look like this: define service { name uptime servicegroups +uptime contact_groups +acontactgroupname register 0 } and in each service definition which will be in the group (assuming you're already using a generic-service template), put: use uptime,generic-service to apply the template on top of the generic one. Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gaurav at subisu.net.np Sun Apr 19 09:43:02 2009 From: gaurav at subisu.net.np (Gaurav Ghimire) Date: Sun, 19 Apr 2009 13:28:02 +0545 Subject: check_ping gives host check timed out instead of packet loss. Message-ID: <49EAD606.5010407@subisu.net.np> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I don't know if I am missing something here. But shouldn't the check_ping plugin give a 100% packet loss if the host is not reachable instead of returning 'Host check timed out'. Yes this could be if there had been some issues with the DNS services or the server's load. But all seem to be fine with my nagios installation. Any references would be appreciated. I feel like I am missing something here, just don't know what in exact. - -- Regards, Gaurav Ghimire System Administrator System Department SuBiSu CableNet Baluwatar, Kathmandu Tel: 4429616/617 Ext:110 Disclaimer: This Email message along with any attachments is intended only for the addressee and may contain confidential and/or privileged information. If you have received this message in error, please notify sender immediately and delete this message from your system. If the reader is not the intended ecipient then any dissemination, distribution or copy of this communication is strictly prohibited. Reasonable precautions have been taken to ensure that this message is virus-free. However, Subisu Cablenet Pvt. Ltd. does not accept responsibility for any loss or damage arising from the use of this message or attachments. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknq1gYACgkQnfv7imVnL2tcCwCdEjmjgKNRAyku4p6GCgt20XUU GKAAniF7SlvBkpY/Sm4l22mk53INCQAp =QX8M -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sun Apr 19 13:10:04 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Sun, 19 Apr 2009 12:10:04 +0100 Subject: check_ping gives host check timed out instead of packet loss. In-Reply-To: <49EAD606.5010407@subisu.net.np> References: <49EAD606.5010407@subisu.net.np> Message-ID: <765d77c80904190410q16adff91n8b5b4704faddfd31@mail.gmail.com> 2009/4/19 Gaurav Ghimire : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I don't know if I am missing something here. But shouldn't the check_ping plugin give a 100% packet loss if the host is not reachable instead of > ?returning 'Host check timed out'. Yes this could be if there had been some issues with the DNS services or the server's load. But all seem to > be fine with my nagios installation. > > Any references would be appreciated. I feel like I am missing something here, just don't know what in exact. You are of course right, however if a host is genuinely down, this is a fundamentally different state from a host which is up but connected to an extremely slow and unreliable network. By using this distinctly different description, the plugin attempts to show this, although you and I both know that the process it uses to arrive at this assessment is based on whatever arbitrary parameters we have chosen and is not always going to be correct. The designer of the plugin no doubt took the view that it's pragmatically more useful 'to draw the line somewhere', and I'm inclined to agree with that. Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sun Apr 19 16:05:44 2009 From: marc at ena.com (Marc Powell) Date: Sun, 19 Apr 2009 09:05:44 -0500 Subject: check_ping gives host check timed out instead of packet loss. In-Reply-To: <49EAD606.5010407@subisu.net.np> References: <49EAD606.5010407@subisu.net.np> Message-ID: On Apr 19, 2009, at 2:43 AM, Gaurav Ghimire wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I don't know if I am missing something here. But shouldn't the > check_ping plugin give a 100% packet loss if the host is not > reachable instead of returning 'Host check timed out'. check_ping is just a wrapper for /bin/ping on your system. It's typically going to just return whatever output that does. In this case, I suspect that /bin/ping is just taking too long to return results, i.e. you've specified too many packets for your timeout value perhaps or devices between you and the destination host are slow to return ICMP results, and check_ping or nagios is timing it out before it's done. You could try lowering the number of packets you send (1 or 2 are typically enough for a host check) or, if you're using nagios-3, increasing the plugin timeout and nagios' master service check timeout (in nagios.cfg) to allow the plugin to wait longer for /bin/ping to finish. You could also try using check_icmp instead of /bin/ping. It doesn't rely on /bin/ping and instead has it's own internal ICMP code. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From texner at eoipso.com Sun Apr 19 21:21:12 2009 From: texner at eoipso.com (Tobias Exner) Date: Sun, 19 Apr 2009 21:21:12 +0200 Subject: Xerox WC M24 monitoring Message-ID: <49EB79A8.8040506@eoipso.com> Hi list, is there anybody who know how to monitor a Xerox WorkCenter M24? There are several plugins available for printers, but none of them seem to be build for Xerox. Of course I don't tried them all, because I hope there's someone who was able to find a solution. Thanks in advance... Tobias ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From info at stoeps.de Sun Apr 19 22:22:56 2009 From: info at stoeps.de (Christoph Stoettner) Date: Sun, 19 Apr 2009 22:22:56 +0200 Subject: Fwd: Fwd: Apache Server configuration for Nagios 3.0 In-Reply-To: References: <8147CCE3C4A8764DA9980125EE70E823B3CF6A@nuexchg.norwich.edu> Message-ID: <90ab54e30904191322v52d8041cwd04e4f6157cce556@mail.gmail.com> Hi, I don't know your ubuntu version, but i think the path should be /etc/apache2 and noch /etc/httpd I didn't receive an error on this point, on my installations the configure-Scripts returns the right path. Greets Stoeps On Sat, Apr 18, 2009 at 7:09 AM, Jimmyboy wrote: > Hi James, > > I created a file *nagios.conf* under '*/usr/local/apache2/conf*' directory > by typing the command *sudo touch nagios.conf*. > Then, I keyed in the *ScriptAlias* and *Alias* directives. > Then, I did a "*sudo make install-webconfig*", which was again > unsuccessful. > Same error!! > > So, I created the directories *httpd* & *conf.d* under the directories '* > /etc*' & '*/etc/httpd*' respectively. > Then, I copied the *nagios.conf* file into the */etc/httpd/conf.d*directory using the command "sudo cp > */usr/local/apache2/conf/nagios.conf /etc/httpd/conf.d".* > Ultimately, after running "*sudo make install-webconfig*", I got the web > interface for Nagios successfully installed. > > I was finally able to complete Nagios installation according to the > Quickstart Guide for Ubuntu. Now, I am left with its configuration. > > Appreciate your suggestion. > > Thanks, > Jim > > > > > > > ---------- Forwarded message ---------- > From: Jimmyboy > Date: Apr 17, 2009 12:54 AM > Subject: Re: [Nagios-users] Fwd: Apache Server configuration for Nagios 3.0 > To: James Pratt > Cc: nagios-users at lists.sourceforge.net > > > Hi James, > > You are right. '/etc/httpd/conf.d/' does not exist. Unfortunately, I do not > know how to find out the directory, Apache on my system refers to > '/etc/httpd/conf.d/'. > > However, I successfully keyed in the 'ScriptAlias' and 'Alias' directives > into my '/usr/local/apache2/httpd.conf' config file (I reinstalled Apache to > the default location). Still, I am getting the same error on doing a 'sudo > make install-webconf'. > > =-=-=-= > > I had raised a query on the Apache forum, on which of *apache2.conf* and * > httpd.con*f is the *config file* of Apache. I got an answer stating that > it depends on type of installation method followed. If the source files > (.tar.gz) are used, then it is *httpd.conf*, else, *apache2.conf*. So, it > is true in my case. > > Based on this, I observed an already installed Nagios setup on a different > machine. It's *config file* is *apache2.conf* (again true, it was > installed using Synaptic Package Manager). > > So, I was thinking to try installing using the 'Synaptic Package Manager' > or 'apt-get'. However, both aren't working for me. Though I am able to proxy > the internet (sitting behind a proxy server), Synaptic & sudo apt-get say, > they cannot resolve 'archive.ubuntu.com', etc. > > Any idea, how to go about? > > Thanks, > Jim > > =-=-=-= > > > On Tue, Apr 14, 2009 at 3:50 AM, James Pratt wrote: > >> Hi - sounds like your issue is that the generic make install in nagios >> src tries to drop a file called nagios.conf into httpd's (usually the >> default) location, /etc/httpd/conf.d/, which, appears does not exist on >> your server... >> >> If you can find what directory your apache uses for "/etc/httpd/conf.d/" >> you can manually copy and paste whatever is in nagios.conf (the one >> trying to be installed from nagios src dir) into your >> "/etc/httpd/conf/httpd.conf" (You can likely disregard the >> "apache2.conf" stuff - sounds like they used their own file naming, as >> the default is normally "httpd.conf") - Apache itself is very flexible, >> there are many ways to configure it - nagios simply guesses you are >> using redhat, so it tries to drop it's httpd config into >> /etc/httpd/conf.d) >> >> HTH ... >> >> Regards, >> jamie >> >> > -----Original Message----- >> > From: Jimmyboy [mailto:jimmyjose2980 at gmail.com] >> > Sent: Monday, April 13, 2009 2:25 PM >> > To: nagios-users at lists.sourceforge.net >> >> > Subject: [Nagios-users] Fwd: Apache Server configuration for Nagios >> 3.0 >> > >> >> > Hi, >> > >> > On reading https://help.ubuntu.com/8.10/serverguide/C/httpd.html, I >> > understand that /etc/apache2/apache2.conf is the most important file. >> > Though I have installed Apache in /etc/apache2 location, I do not have >> > apache2.conf file as mentioned in the site. >> > >> > However, when I stop/start the Apache service using the command >> > '/etc/apache2/bin/apachectl -k stop/start' respectively, and check >> >> > http://127.0.0.1 and ps -A | grep httpd, the >> results >> > are OK. >> > >> > Thanks, >> > Jim >> > >> > =-=-=-=-= >> > >> > >> > ---------- Forwarded message ---------- >> > From: Jimmyboy >> > Date: Mon, Apr 13, 2009 at 11:49 PM >> > Subject: Apache Server configuration for Nagios 3.0 >> > To: nagios-users at lists.sourceforge.net >> > >> > >> > >> > Hi All, >> > >> > I am following the Quickstart Guide for installing NAGIOS using >> > http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html. >> > >> > One of the prerequisites is Apache2, which I installed, and was >> successful >> >> > in getting "It Works!!" for http://127.0.0.1 . >> > >> > However, I am stuck at point 5) Configure the Web Interface, make >> install- >> > webconf. >> > >> > When this command is issued, this is what I get. >> > /usr/bin/install -c -m 644 sample-config/httpd.conf >> > /etc/httpd/conf.d/nagios.conf >> > /usr/bin/install: cannot create regular file >> > '/etc/httpd/conf.d/nagios.conf': No such file or directory >> > make: *** [install-webconf] Error 1 >> > >> > Prefix for Apache: /etc/apache2 >> > >> > I believe the httpd.conf file and a few others also need to be edited >> for >> > Nagios. Can some please guide me through this? >> > >> > >> > Thanks, >> > Jim >> > >> > >> >> >> > > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at gehringgroup.com Sun Apr 19 22:22:47 2009 From: dan at gehringgroup.com (Dan Thagard) Date: Sun, 19 Apr 2009 16:22:47 -0400 Subject: Xerox WC M24 monitoring In-Reply-To: <49EB79A8.8040506@eoipso.com> References: <49EB79A8.8040506@eoipso.com> Message-ID: <9D1AF04A3FBB7A49B1D98275BFDD4AF10131239865C5@gehring-ms01.gehringgroup.local> I've not worked with the M24, but I use the check_snmp_printer command with the Xerox DocuColor 250 and the Xerox EX700 printers using the 2.43.11.1.1.6.1.x OID range, e.g. "check_snmp_printer!10.0.0.100!public!CONSUM 2.43.11.1.1.6.1.8". I'm not sure that this is the best (read correct) way, but I can check the consumable status for these printers. If anyone has a better approach I'd love to hear it. Cheers, Dan Dan Thagard Director, I.T. Gehring Group 11505 Fairchild Gardens Ave. Suite 202 Palm Beach Gardens, FL 33410 P: 561.799.4810 F: 561.626.6970 C: 561.632.8833 E: dan at gehringgroup.com -----Original Message----- From: Tobias Exner [mailto:texner at eoipso.com] Sent: Sunday, April 19, 2009 3:21 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Xerox WC M24 monitoring Hi list, is there anybody who know how to monitor a Xerox WorkCenter M24? There are several plugins available for printers, but none of them seem to be build for Xerox. Of course I don't tried them all, because I hope there's someone who was able to find a solution. Thanks in advance... Tobias ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Please be advised that coverage may not be bound or altered by email correspondence. This message originates from Gehring Group. This email message and all attachments may contain legally privileged and confidential information intended solely for the use of the addressee. If you are not the intended recipient, you should immediately stop reading this message and delete it from your system. Any unauthorized reading, distribution, copying, or other use of this message or its attachments is strictly prohibited. All personal messages express solely the sender's views and not those of Gehring Group. This message may not be copied or distributed without this disclaimer. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer sy stem into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Gehring Group or any loss or damage arising in any way from its use. If you received this message in error, please notify us immediately at (561) 626-6797. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Mon Apr 20 03:02:44 2009 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Sun, 19 Apr 2009 22:02:44 -0300 Subject: Doubt about email notifications In-Reply-To: References: <20090414102901.GG28777@defiant.freesoftware.org> Message-ID: <20090420010244.GG9115@defiant.freesoftware.org> Hi Marc. On Tuesday, 14 April 2009 07:11:28 -0500, Marc Powell wrote: > > Is there any variable where I can configure each how long are sent > > the email notifications for the services? At first I see that these > > are sent hourly. > > notification_interval -- http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service Perfect. > > On the other hand, I would like also to know if it is possible to > > define the maximum number of notifications that are sent. > > > > I read exist variables that allow to configure both things using > > escalations, although I do not have defined escalations. > yes, I believe an escalation would do for this. I haven't done this > but I expect you could set your first notification to the number of > the last notification you want to receive (i.e. 3 for the third > notification) and your last notification to some high number (99). > Create a contact with a notification period of 'none' and set it as > the contact for the escalation. It seems a good idea :-) I am going to try it and any doubt I will consult you again. Thanks to both for your replies. Regards, Daniel -- Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Mon Apr 20 03:26:03 2009 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Sun, 19 Apr 2009 22:26:03 -0300 Subject: Output from check_local_mrtgtraf Message-ID: <20090420012603.GH9115@defiant.freesoftware.org> Hi all! I am observing some differences between which I see with MRTG and the output from check_local_mrtgtraf. For example, if I manually execute the command, I obtain the following thing: # /usr/local/nagios/libexec/check_mrtgtraf -F \ /space/www/htdocs/mrtg.sysadminhaiku.com.ar/192.168.1.1_1.log -a AVG \ -w 1000000,1000000 -c 5000000,5000000 -e 10 Traffic OK - Avg. In = 410,0 B/s, Avg. Out = 797,0 B/s|in=410,000000B/s;1000000,000000;5000000,000000;0,000000 in=797,000000B/s;1000000,000000;5000000,000000;0,000000 The last values registered by MRTG that I see by the web interface are the following: `Daily' Graph (5 Minute Average) Max Average Current In 40.3 kb/s (0.0%) 3616.0 b/s (0.0%) 3272.0 b/s (0.0%) Out 1809.5 kb/s (1.8%) 44.6 kb/s (0.0%) 6376.0 b/s (0.0%) This is the service definition: define service{ use generic-service ; Inherit values from a template host_name Router#1 service_description Bandwidth Usage check_command check_local_mrtgtraf!/space/www/htdocs/mrtg.sysadminhaiku.com.ar/192.168.1.1_1.log!AVG!1000000,1000000!5000000,5000000!10 } I do not have left very clear to what that difference can be due or if I am losing myself in the interpretation of the data of Nagios plugin. Thanks in advance. Regards, Daniel -- Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nzamoeba at hotmail.com Mon Apr 20 03:27:57 2009 From: nzamoeba at hotmail.com (David Willson) Date: Mon, 20 Apr 2009 13:27:57 +1200 Subject: Customising colours Message-ID: At our lab we currently have the Nagios Service Overview page displayed on a large screen for all users to see, this way they can tell when a particular box is down. My boss is wondering if there is some way to adjust the colour scheme so that when something becomes 'Acknowledged' it displays as blue, instead of red. So far I've changed the values for items such as .statusHOSTDOWNACK background-color to #33FFFF in the status.css file, however it only shows that blue colour on certain windows, and not the Service Overview window which is our main one. Is what I'm trying to do possible? I only have a passing knowledge of css and html, so if it requires an extensive re-write it's probably not going to be practical. _________________________________________________________________ Find a way to cure that travel bug with MSN NZ Travel http://travel.msn.co.nz/ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nzamoeba at hotmail.com Mon Apr 20 03:47:38 2009 From: nzamoeba at hotmail.com (David Willson) Date: Mon, 20 Apr 2009 13:47:38 +1200 Subject: Customising colours In-Reply-To: References: Message-ID: whoops, just realised I got the name of the page wrong, it's the 'Hostgroup Overview' page that we have as our main one displayed. Also I'm running Nagios 3.0.6 From: nzamoeba at hotmail.com To: nagios-users at lists.sourceforge.net Date: Mon, 20 Apr 2009 13:27:57 +1200 Subject: [Nagios-users] Customising colours At our lab we currently have the Nagios Service Overview page displayed on a large screen for all users to see, this way they can tell when a particular box is down. My boss is wondering if there is some way to adjust the colour scheme so that when something becomes 'Acknowledged' it displays as blue, instead of red. So far I've changed the values for items such as .statusHOSTDOWNACK background-color to #33FFFF in the status.css file, however it only shows that blue colour on certain windows, and not the Service Overview window which is our main one. Is what I'm trying to do possible? I only have a passing knowledge of css and html, so if it requires an extensive re-write it's probably not going to be practical. MSN NZ Travel Find a way to cure that travel bug _________________________________________________________________ Earning enough? Find out with SEEK Salary Survey http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsalarysurvey%2Emsn%2Eseek%2Eco%2Enz%2F%3Ftracking%3Dsk%3Atl%3Asknzsal%3Amsnnz%3A0%3Ahottag%3Aearn%5Fenough&_t=757263783&_r=Seek_NZ_tagline&_m=EXT -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gaurav at subisu.net.np Mon Apr 20 06:43:18 2009 From: gaurav at subisu.net.np (Gaurav Ghimire) Date: Mon, 20 Apr 2009 10:28:18 +0545 Subject: check_ping gives host check timed out instead of packet loss. In-Reply-To: <765d77c80904190410q16adff91n8b5b4704faddfd31@mail.gmail.com> References: <49EAD606.5010407@subisu.net.np> <765d77c80904190410q16adff91n8b5b4704faddfd31@mail.gmail.com> Message-ID: <49EBFD66.1000905@subisu.net.np> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim Avery wrote: > 2009/4/19 Gaurav Ghimire : >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi all, >> >> I don't know if I am missing something here. But shouldn't the check_ping plugin give a 100% packet loss if the host is not reachable instead of >> returning 'Host check timed out'. Yes this could be if there had been some issues with the DNS services or the server's load. But all seem to >> be fine with my nagios installation. >> >> Any references would be appreciated. I feel like I am missing something here, just don't know what in exact. > > You are of course right, however if a host is genuinely down, this is > a fundamentally different state from a host which is up but connected > to an extremely slow and unreliable network. By using this distinctly > different description, the plugin attempts to show this, although you > and I both know that the process it uses to arrive at this assessment > is based on whatever arbitrary parameters we have chosen and is not > always going to be correct. But shouldn't there be a condition kept on the basis of the parameters we provided or add some more parameters that at least keeps admins from knowing for sure that there link or resources have some issues. Say, make the plugin return some output other than the 'Timed Out'/Warning/Critical....just to say that there is some abnormality in the link between the host and the client probed. Marc Powell wrote: > check_ping is just a wrapper for /bin/ping on your system. It's > typically going to just return whatever output that does. In this > case, I suspect that /bin/ping is just taking too long to return > results, i.e. you've specified too many packets for your timeout value > perhaps or devices between you and the destination host are slow to > return ICMP results, and check_ping or nagios is timing it out before > it's done. Well I have the ping command check with 5 packets and the warning and critical parameters are set very high. Mere 5 packets should not have been a problem I guess, moreover the link via which the packet traverses is solid good. > > You could try lowering the number of packets you send (1 or 2 are > typically enough for a host check) or, if you're using nagios-3, > increasing the plugin timeout and nagios' master service check timeout > (in nagios.cfg) to allow the plugin to wait longer for /bin/ping to > finish. > They are at their defaults i.e, service checks at 60 seconds and host checks at 30 seconds, taking into consideration the network's and the server's health...that should have been enough I guess. But I take your points into considerations, for 1 or 2 packets should be enough on a healthy network. > You could also try using check_icmp instead of /bin/ping. It doesn't > rely on /bin/ping and instead has it's own internal ICMP code. I will check with it as well. Thanks, I really appreciate your time for replying my query. I shall check with it again and shall update. - -- Regards, Gaurav Ghimire System Administrator System Department SuBiSu CableNet Baluwatar, Kathmandu Tel: 4429616/617 Ext:110 Disclaimer: This Email message along with any attachments is intended only for the addressee and may contain confidential and/or privileged information. If you have received this message in error, please notify sender immediately and delete this message from your system. If the reader is not the intended ecipient then any dissemination, distribution or copy of this communication is strictly prohibited. Reasonable precautions have been taken to ensure that this message is virus-free. However, Subisu Cablenet Pvt. Ltd. does not accept responsibility for any loss or damage arising from the use of this message or attachments. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknr/WIACgkQnfv7imVnL2vA1QCfWwH05LXH5+kaMRvP3VRcmquZ lKMAoMZ3frOUjf6p9mbYtiWDNrZmySR5 =7w4i -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ctemple at merethis.com Mon Apr 20 11:17:49 2009 From: ctemple at merethis.com (Cedric Temple) Date: Mon, 20 Apr 2009 11:17:49 +0200 Subject: Customising colours In-Reply-To: References: Message-ID: <960a54cc0904200217h3d1508bm93ab925da8f9995a@mail.gmail.com> 2009/4/20 David Willson > At our lab we currently have the Nagios Service Overview page displayed on > a large screen for all users to see, this way they can tell when a > particular box is down. > > My boss is wondering if there is some way to adjust the colour scheme so > that when something becomes 'Acknowledged' it displays as blue, instead of > red. > > So far I've changed the values for items such as .statusHOSTDOWNACK > background-color to #33FFFF in the status.css file, however it only shows > that blue colour on certain windows, and not the Service Overview window > which is our main one. > > Is what I'm trying to do possible? I only have a passing knowledge of css > and html, so if it requires an extensive re-write it's probably not going to > be practical. > Hi, May be you can try another theme for Nagios: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1723.html;d=1 http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2969.html;d=1 http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2737.html;d=1 Regards -- C?dric Temple | Chef de Projet ctemple at merethis.com T?l: +33 (0)1 49 69 97 12 Fax: +33 (0)1 78 12 00 28 MERETHIS est ?diteur du logiciel Centreon. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tothz68 at gmail.com Mon Apr 20 12:01:31 2009 From: tothz68 at gmail.com (Toth Zoltan) Date: Mon, 20 Apr 2009 12:01:31 +0200 Subject: mouse over it. Message-ID: <69e59dde0904200301t5d61bec0h89bbc3c3a8cc7a86@mail.gmail.com> Hi On nagios web site when I move my *mouse* over host , it displays the host IP address.. Can I change it? I would like see the host alias this pop-up window. Thanks! Zoltan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sri.lumpa at free.fr Mon Apr 20 13:02:41 2009 From: sri.lumpa at free.fr (MAD) Date: Mon, 20 Apr 2009 13:02:41 +0200 (CEST) Subject: mouse over it. In-Reply-To: <110632690.2919571240225248941.JavaMail.root@zimbra16-e3.priv.proxad.net> References: <110632690.2919571240225248941.JavaMail.root@zimbra16-e3.priv.proxad.net> Message-ID: <997726201.2919951240225361835.JavaMail.root@zimbra16-e3.priv.proxad.net> You will have to modify the 'status.c' file and compile it again. There must be a line with something like that : printf("", [...,] temp_host->address[, ...]); All you have to do is changing temp_host->address by temp_host->alias, save the file and then `make && make install`. Marc-Andr? ----- Mail Original ----- De: "Toth Zoltan" ?: nagios-users at lists.sourceforge.net Envoy?: Lundi 20 Avril 2009 12h01:31 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: [Nagios-users] mouse over it. Hi On nagios web site when I move my mouse over host , it displays the host IP address.. Can I change it? I would like see the host alias this pop-up window. Thanks! Zoltan ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From irvine.harris at gmail.com Mon Apr 20 13:38:07 2009 From: irvine.harris at gmail.com (Harry John) Date: Mon, 20 Apr 2009 15:38:07 +0400 Subject: concurrent users on a website Message-ID: Hi How do we check concurrent users in a website? Is this possibble in nagios friends? THanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Apr 20 13:59:47 2009 From: ae at op5.se (Andreas Ericsson) Date: Mon, 20 Apr 2009 13:59:47 +0200 Subject: concurrent users on a website In-Reply-To: References: Message-ID: <49EC63B3.8060805@op5.se> Harry John wrote: > Hi > How do we check concurrent users in a website? HTTP is a stateless protocol. There is no such thing as an exact count of concurrent users on a website. All sites that claim to track such thing do some sort of estimation. Usually based on how many users have been active within the last 5 minutes or some such. Depending on the software running on the site, this is determined in different ways. Usually it happens by running a query such as this against some sql database: select count(id) from users where last_active > $now - 300 where the 'last_active' column is always updated when a user clicks on anything on the site and $now is a variable representing the current timestamp as given in seconds since the unix epoch. > Is this possibble in nagios friends? Yes, but not with a standard plugin. See my response above and you should have a pretty decent idea of how to implement such a plugin yourself. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Mon Apr 20 14:24:12 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Mon, 20 Apr 2009 09:24:12 -0300 Subject: Audio Alert Message-ID: I've already setted the audio alert, but I got a doubt. May I set it only for one host? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Apr 20 14:40:43 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 20 Apr 2009 13:40:43 +0100 Subject: concurrent users on a website In-Reply-To: References: Message-ID: <765d77c80904200540y645436a0g4fd1e531735b60df@mail.gmail.com> 2009/4/20 Harry John : > Hi > How do we check concurrent users in a website? > Is this possibble in nagios friends? > THanks! If it's Microsoft IIS, you can query the performance counter for current connections using NSClient++. In my nsc.ini config, I have: web_curr_conn=inject CheckCounter "Counter:connections=\Web Service(_Total)\Current Connections" ShowAll MaxWarn=40 MaxCrit=100 So I can then query the counter from Nagios using a simple nrpe command like: $USER1$/check_nrpe -H $HOSTADDDRESS$ -c web_curr_conn Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Apr 20 15:11:25 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 20 Apr 2009 14:11:25 +0100 Subject: Audio Alert In-Reply-To: <765d77c80904200610q1e810c95hb6107b4ea535b9b9@mail.gmail.com> References: <765d77c80904200610q1e810c95hb6107b4ea535b9b9@mail.gmail.com> Message-ID: <765d77c80904200611w2285c12cic050c23dcac42905@mail.gmail.com> 2009/4/20 Eduardo Barreto : > I've already setted the audio alert, but I got a doubt. May I set it only > for one host? The simple answer to your question is 'no'. You could maybe have a look at a firefox addon called NagiosChecker http://code.google.com/p/nagioschecker/ instead. ?This allows you to filter which hosts you alert on based on a regular expression. ?There are also some task bar popup apps you might try on NagiosExchange http://nagiosexchange.org . Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Mon Apr 20 16:37:30 2009 From: lflacayo at cps.k12.il.us (Luis Fernando Lacayo) Date: Mon, 20 Apr 2009 09:37:30 -0500 Subject: Any one monitoring numbber of Connections of Cisco Access Points? In-Reply-To: <765d77c80904181131y161bb662j6fa2fc0ed043aff7@mail.gmail.com> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> <765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com> <13D6E07A3358E64EB01974BEF18F8BA66176E2@CO-XMB03.admin.cps.k12.il.us> <765d77c80904181131y161bb662j6fa2fc0ed043aff7@mail.gmail.com> Message-ID: <1240238250.6288.3.camel@UNIX-TEAM-LACAYO> I want to monitor the number of users on individual Cisco Access Points, is anyone doing this? thanks, Luis -- ______________________________________________________ Luis Fernando Lacayo Chicago Public Schools Senior Unix Administrator ITS/ UNIX Infrastructure Office: 773-553-3835 Cell: 773-203-4493 lflacayo at cps.k12.il.us ______________________________________________________ "In God we trust, the rest we monitor ..." -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kmechri at gmail.com Mon Apr 20 16:51:26 2009 From: kmechri at gmail.com (kaouther mechri) Date: Mon, 20 Apr 2009 16:51:26 +0200 Subject: NDOutil problem Message-ID: Dear all, I need t install ndoutil 1.4b7 for my nagios 3. I've Msql-devel-5.1.33 I installed ndoutils with the following command ./configure --disable-pgsql --enable-mysql --with-mysql-lib=/usr/lib/mysql --with mysql-include=/usr/include/mysql configure and make were ok. but when I want to run ndo2db I have the following error message /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg "Support for the specified database server is either not yet supported or was not found on your system" I tried to connect to the database with the user/pass specified in ndo2db.cfg and all things are ok Do you have an idea please kind regards kaouther -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lflacayo at cps.k12.il.us Mon Apr 20 16:26:49 2009 From: lflacayo at cps.k12.il.us (Luis Fernando Lacayo) Date: Mon, 20 Apr 2009 09:26:49 -0500 Subject: NRPE - Event handler. In-Reply-To: <765d77c80904181131y161bb662j6fa2fc0ed043aff7@mail.gmail.com> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com> <765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com> <13D6E07A3358E64EB01974BEF18F8BA66176E2@CO-XMB03.admin.cps.k12.il.us> <765d77c80904181131y161bb662j6fa2fc0ed043aff7@mail.gmail.com> Message-ID: <1240237609.6288.0.camel@UNIX-TEAM-LACAYO> Thank you sir.. that is exactly what I was looking for.. thank. Luis On Sat, 2009-04-18 at 19:31 +0100, Jim Avery wrote: > 2009/4/18 Lacayo, Luis F : > > Good Morning all... > > > > I have a question, that someone out there might be able to help me with. > > > > > > I want to setup an event handler, to restart a windows service if a > > service changes to an "UNKNOW" Status. I am not sure of how to set this > > up on the services.cfg side. > > > > Any help is greatly appreciated. > > > > Thanks, > > > > Luis > > Hopefully the documentation page explains it well enough - > http://nagios.sourceforge.net/docs/3_0/eventhandlers.html > > If you look at the example script there, I guess you pretty much need > to swap CRITICAL and UNKNOWN in the "case" statement to achieve what > you're after, and it shows what you need in your service definition > too. > > hth, > > Jim -- ______________________________________________________ Luis Fernando Lacayo Chicago Public Schools Senior Unix Administrator ITS/ UNIX Infrastructure Office: 773-553-3835 Cell: 773-203-4493 lflacayo at cps.k12.il.us ______________________________________________________ "In God we trust, the rest we monitor ..." -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kylet at panix.com Mon Apr 20 17:27:50 2009 From: kylet at panix.com (Kyle Tucker) Date: Mon, 20 Apr 2009 11:27:50 -0400 Subject: Untraceable service by-email notification Message-ID: <20090420152750.GC14762@panix.com> Hi all, I have defined a custom service notification command that I am using to send alerts to CA Spectrum. That part is working, but for every alert I send, I am also getting a corresponding service notification by email to the nagiosadmins contact group despite my service having an inherited contacts statement. I have spent hours trying to track this down and just can't resolve it. I am sure it's being inherited from somewhere, but I can't see it. Can anyone tell me why the notify-service-by-email command is being called? Thanks. - Kyle Here is the service. define service{ use spectrum-sbgw-service host_name bt-lin-datactr3 max_check_attempts 1 service_description check-sbgw-test check_command check_sbgw } Here is the service template and contact. define service{ name spectrum-sbgw-service ; Spectrum Southbound Gateway contacts spectrum-sbgw check_period 24x7 max_check_attempts 3 normal_check_interval 10 retry_check_interval 1 register 1 } define contact{ contact_name spectrum-sbgw service_notification_commands notify-service-by-spectrum service_notification_options w,u,c,r,f,s service_notification_period 24x7 host_notification_commands notify-host-by-email host_notification_options d,u,r,f,s host_notification_period 24x7 register 1 } The command. # 'notify-service-by-spectrum' command definition define command{ command_name notify-service-by-spectrum command_line /usr/bin/sudo -u spectrum /usr/local/scripts/spectrum-sbgw $HOSTNAME$ $HOSTADDRESS$ $SERVICEDESC$ $SERVICESTATE$ "$SERVICEOUTPUT$" } And here is the action logged. Mon Apr 20 10:52:31 2009 SERVICE ALERT: bt-lin-datactr3;check-sbgw-test;CRITICAL;HARD;1;CRIT: Test failed with CRIT Mon Apr 20 10:52:31 2009 SERVICE NOTIFICATION: nagiosadmin;bt-lin-datactr3;check-sbgw-test;CRITICAL;notify-service-by-email;CRIT: Test failed with CRIT Mon Apr 20 10:52:31 2009 SERVICE NOTIFICATION: spectrum-sbgw;bt-lin-datactr3;check-sbgw-test;CRITICAL;notify-service-by-spectrum;CRIT: Test failed with CRIT -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Apr 20 18:24:49 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 20 Apr 2009 17:24:49 +0100 Subject: NDOutil problem In-Reply-To: References: Message-ID: <765d77c80904200924p216fa97k95894657fa4564a6@mail.gmail.com> 2009/4/20 kaouther mechri : > Dear all, I need t install ndoutil 1.4b7 for my nagios 3. > > I've Msql-devel-5.1.33 > I installed ndoutils with the following command > > ./configure --disable-pgsql --enable-mysql --with-mysql-lib=/usr/lib/mysql > --with mysql-include=/usr/include/mysql > configure and make were ok. > > but when I want to run ndo2db I have the following error message > > /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg > > "Support for the specified database server is either not yet supported or > was not found on your system" > I tried to connect to the database with the user/pass specified in > ndo2db.cfg and all things are ok > > Do you have an idea please > kind regards > kaouther In your configuration file /usr/local/nagios/etc/ndo2db.cfg, you should have the following: # DATABASE SERVER TYPE # This option determines what type of DB server the daemon should # connect to. # Values: # mysql = MySQL # pgsql = PostgreSQL db_servertype=mysql I don't know if it helps you at all, but when I ran configure I didn't bother specifying any options. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jc at info-systems.de Mon Apr 20 18:48:58 2009 From: jc at info-systems.de (Jakob Curdes) Date: Mon, 20 Apr 2009 18:48:58 +0200 Subject: problem in installing Nagios with cygwin In-Reply-To: <4f13c3d20904200919y147737bfh15be4406f51d1374@mail.gmail.com> References: <4f13c3d20904200919y147737bfh15be4406f51d1374@mail.gmail.com> Message-ID: <49ECA77A.7080605@info-systems.de> Imene NASRI schrieb: > hello Sir, > > in fact i have just read your article in the nagios user forum and i'm > satisfied that you have succesfully installed nagios with cywin under > Windows, because i have some troubles with the installation with > cygwin i.e: > > > $ make all > gcc -g -O2 -DHAVE_CONFIG_H -o helloworld.exe helloworld.c -shared > /cygdrive/c/DOCUME~1/inasri/LOCALS~1/Temp/ccSw8Dfn.o: In function > `nebmodule_ini > t': > /cygdrive/c/Documents and > Settings/inasri/Desktop/Nagios/nagios-3.0.6/nagios-3.0 Hello Imene, please always use the list so that others can learn from you problem. I compiled nagios 3.00 on a cygwin CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2008-06-12 19:34. My configure line for nagios was like: $ ./configure --enable-cygwin --with-nagios-group=nagcmd --with-nagios-user=nagios However for compiling the user should not be important. What was you configure line and how did you call make? with which arguments? Regards, Jakob Curdes ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jc at info-systems.de Mon Apr 20 19:43:42 2009 From: jc at info-systems.de (Jakob Curdes) Date: Mon, 20 Apr 2009 19:43:42 +0200 Subject: problem in installing Nagios with cygwin In-Reply-To: <4f13c3d20904200958j24029055i5d6bc73f1eb031a2@mail.gmail.com> References: <4f13c3d20904200919y147737bfh15be4406f51d1374@mail.gmail.com> <49ECA77A.7080605@info-systems.de> <4f13c3d20904200958j24029055i5d6bc73f1eb031a2@mail.gmail.com> Message-ID: <49ECB44E.8040401@info-systems.de> Imene NASRI schrieb: > I used the Nagios-3.0.6 version and i haven't created a user nor a > group nagios in the machine. > my command lines are : ./configure > ./make all > a) you need to enable --enable-cygwin when running configure. b) You should not try to compile the modules. These probably won't anyway. So you better do make nagios; make cgis; make install-base; make install-modules c) You can find precompiled standard modules for windows via : http://www.psychoticwolf.net/blog/2007/07/nagios_plugins_for_windows.php There is also a hint on the page why you might get compiling problems in the module directory. I remember that I applied this patch (bottom of page, "edit libexec_PROGRAMS (line 46 or so)") No other modifications should be necessary. I have not checked if the --enable-cygwin switch still exists, but I think so. Regards, Jakob ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From AHKAPLAN at PARTNERS.ORG Mon Apr 20 19:56:56 2009 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 20 Apr 2009 13:56:56 -0400 Subject: Plugin to check if nfsd is running Message-ID: Hi there -- Is there a plugin available that will specifically check if the nfsd service is running? If not, what existing plugin would I use to accomplish this task? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 20 20:30:05 2009 From: marc at ena.com (Marc Powell) Date: Mon, 20 Apr 2009 13:30:05 -0500 Subject: Plugin to check if nfsd is running In-Reply-To: References: Message-ID: On Apr 20, 2009, at 12:56 PM, Kaplan, Andrew H. wrote: > Hi there -- > > Is there a plugin available that will specifically check if the nfsd > service is running? If not, what existing > plugin would I use to accomplish this task? Thanks. > check_procs? libexec]$ ./check_procs -C nfsd -c 1:10 PROCS OK: 8 processes with command name 'nfsd' -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lraymond at weatherflow.com Mon Apr 20 21:42:20 2009 From: lraymond at weatherflow.com (lance raymond) Date: Mon, 20 Apr 2009 15:42:20 -0400 Subject: check_snmp_storage plugin - 126 return code Message-ID: <49ECD01C.7060507@weatherflow.com> Not sure what's wrong, seems simple enough. I am using the following as a guide on this plugin (http://nagios.manubulon.com/index_commands.html#storage) From the command line on the nagios server I can get it to work; perl check_snmp_storage.pl -H x.x.x.x -C community -m / -w 90 -c 95 -r /: 67%used(99233MB/147706MB) (<90%) : OK I have the following 2 things setup.. in commands.cfg; define command{ command_name check_snmp_storage command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -m $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$ } And the server has the following; define service{ use local-service host_name cs0 service_description Root / partition check_command check_snmp_storage!/!90!95!-r } ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fernando.rocha at opservices.com.br Mon Apr 20 21:43:37 2009 From: fernando.rocha at opservices.com.br (Fernando Rocha) Date: Mon, 20 Apr 2009 16:43:37 -0300 (BRT) Subject: Untraceable service by-email notification In-Reply-To: <23366229.71241240256607865.JavaMail.root@mail.opservices.com.br> References: <23366229.71241240256607865.JavaMail.root@mail.opservices.com.br> Message-ID: <20202861.71261240256617418.JavaMail.root@mail.opservices.com.br> Hi Kyle, Could you please send your host definition? Probably you have the 'contact_groups' variable at the host definition, and it will be implicitly inherite. take a look at 'Implied Inheritance' from http://nagios.sourceforge.net/docs/3_0/objectinheritance.html []'s -- Fernando Rocha OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org ----- "Kyle Tucker" wrote: > Hi all, > > I have defined a custom service notification command that I am using > to > send alerts to CA Spectrum. That part is working, but for every alert > I > send, I am also getting a corresponding service notification by email > to > the nagiosadmins contact group despite my service having an inherited > > contacts statement. I have spent hours trying to track this down and > just can't resolve it. I am sure it's being inherited from somewhere, > but I can't see it. Can anyone tell me why the notify-service-by-email > > command is being called? Thanks. > > - Kyle > > Here is the service. > > define service{ > use spectrum-sbgw-service > host_name bt-lin-datactr3 > max_check_attempts 1 > service_description check-sbgw-test > check_command check_sbgw > } > > Here is the service template and contact. > > define service{ > name spectrum-sbgw-service ; Spectrum Southbound Gateway > contacts spectrum-sbgw > check_period 24x7 > max_check_attempts 3 > normal_check_interval 10 > retry_check_interval 1 > register 1 > } > > define contact{ > contact_name spectrum-sbgw > service_notification_commands notify-service-by-spectrum > service_notification_options w,u,c,r,f,s > service_notification_period 24x7 > host_notification_commands notify-host-by-email > host_notification_options d,u,r,f,s > host_notification_period 24x7 > register 1 > } > > The command. > # 'notify-service-by-spectrum' command definition > define command{ > command_name notify-service-by-spectrum > command_line /usr/bin/sudo -u spectrum > /usr/local/scripts/spectrum-sbgw $HOSTNAME$ $HOSTADDRESS$ > $SERVICEDESC$ $SERVICESTATE$ "$SERVICEOUTPUT$" > } > > And here is the action logged. > > Mon Apr 20 10:52:31 2009 SERVICE ALERT: > bt-lin-datactr3;check-sbgw-test;CRITICAL;HARD;1;CRIT: Test failed with > CRIT > Mon Apr 20 10:52:31 2009 SERVICE NOTIFICATION: > nagiosadmin;bt-lin-datactr3;check-sbgw-test;CRITICAL;notify-service-by-email;CRIT: > Test failed with CRIT > Mon Apr 20 10:52:31 2009 SERVICE NOTIFICATION: > spectrum-sbgw;bt-lin-datactr3;check-sbgw-test;CRITICAL;notify-service-by-spectrum;CRIT: > Test failed with CRIT > > -- > - Kyle > --------------------------------------------- > kylet at panix.com http://www.panix.com/~kylet > --------------------------------------------- > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GJFRATER at bechtel.com Mon Apr 20 21:43:35 2009 From: GJFRATER at bechtel.com (Frater, Greg J) Date: Mon, 20 Apr 2009 12:43:35 -0700 Subject: stopping and starting NDO daemon Message-ID: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> Hi All, We've just setup nagios 3 using NDO (to support Nagvis) and I realized that NDO does not come with an init script. I found one post to the list (http://article.gmane.org/gmane.network.nagios.user/52477/match=ndo+init ) from about a year ago, someone was asking for help incorporating the NDO daemon into the Nagios init script, but there were no responses. I'm wondering how others are handling the stopping and starting of the NDO daemon? Would it be better to incorporate it into the Nagios init script or should it have it's own, has somebody already done this that is willing to share with the list? Thanks, -greg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kylet at panix.com Mon Apr 20 21:52:07 2009 From: kylet at panix.com (Kyle Tucker) Date: Mon, 20 Apr 2009 15:52:07 -0400 Subject: Untraceable service by-email notification In-Reply-To: <20202861.71261240256617418.JavaMail.root@mail.opservices.com.br> References: <23366229.71241240256607865.JavaMail.root@mail.opservices.com.br> <20202861.71261240256617418.JavaMail.root@mail.opservices.com.br> Message-ID: <20090420195207.GA8631@panix.com> On Mon, Apr 20, 2009 at 04:43:37PM -0300, Fernando Rocha wrote: > Probably you have the 'contact_groups' variable at the host definition, and it will be implicitly inherite. > > take a look at 'Implied Inheritance' from http://nagios.sourceforge.net/docs/3_0/objectinheritance.html I just now read the implied inheritance and took a stab at putting a contact_group in my service template instead of a contact and voila, it worked as it should. I would think this implied inheritance should not occur for contact_group if there is a contact, since the rules elsewhere are that one or the other is needed, so apply the rule here as well. Thanks. - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Mon Apr 20 21:55:10 2009 From: jpratt at norwich.edu (James Pratt) Date: Mon, 20 Apr 2009 15:55:10 -0400 Subject: check_snmp_storage plugin - 126 return code In-Reply-To: <49ECD01C.7060507@weatherflow.com> References: <49ECD01C.7060507@weatherflow.com> Message-ID: <8147CCE3C4A8764DA9980125EE70E823BAF435@nuexchg.norwich.edu> > -----Original Message----- > From: lance raymond [mailto:lraymond at weatherflow.com] > Sent: Monday, April 20, 2009 3:42 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_snmp_storage plugin - 126 return code > > Not sure what's wrong, seems simple enough. I am using the following as > a guide on this plugin > (http://nagios.manubulon.com/index_commands.html#storage) > From the command line on the nagios server I can get it to work; > > perl check_snmp_storage.pl -H x.x.x.x -C community -m / -w 90 -c 95 -r > /: 67%used(99233MB/147706MB) (<90%) : OK > > > I have the following 2 things setup.. in commands.cfg; > define command{ > command_name check_snmp_storage > command_line $USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ -m $ARG1$ > -w $ARG2$ -c $ARG3$ $ARG4$ > } > > > And the server has the following; > define service{ > use local-service > host_name cs0 > service_description Root / partition > check_command check_snmp_storage!/!90!95!-r > } > > Just a shot in the dark, but you are missing the "-C community" in your command definition above in commands.cfg. Could that be your issue? Also, try running the same check as the nagios user via : su - nagios -c "command to test here" and see if you get the same result/126 return code... hth, jamie ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Mon Apr 20 21:59:03 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Mon, 20 Apr 2009 16:59:03 -0300 Subject: host status information not found Message-ID: I've inserted a new host, and I can get it's information, I got this message from it "*host status information not found*" how can I get rid of it. All other hosts are okay. Cheers Eduardo Barreto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian.masopust at siemens.com Mon Apr 20 22:04:02 2009 From: christian.masopust at siemens.com (Masopust, Christian) Date: Mon, 20 Apr 2009 22:04:02 +0200 Subject: stopping and starting NDO daemon In-Reply-To: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> References: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> Message-ID: <60721B67EAF0994EAFFB561767B70014039FECF4@nets13ha.ww300.siemens.net> Hello Greg, here it is, simply took one of RHEL's init-scripts and modified it: [root at atvies00nx libexec]# cat /etc/init.d/ndo2db #! /bin/sh # ndo2db init file # For RedHat and cousins: # chkconfig: 2345 98 02 # description: NDO daemon to write data to database # processname: ndo2db # be aware that ndo2db has to be started before nagios ! ### BEGIN INIT INFO # Provides: ndo2db # Required-Start: $local_fs $network $nagios # Required-Stop: $local_fs $network # Should-Start: ### END INIT INFO NDO2DB_BIN=/opt/nagios/bin/ndo2db NDO2DB_CONF=/opt/nagios/etc/ndo2db.cfg NDO2DB_OPTS="-c $NDO2DB_CONF" # Source function library . /etc/rc.d/init.d/functions RETVAL=0 prog=ndo2db pidfile=/var/lock/subsys/ndo2db start() { echo -n $"Starting $prog: " daemon $NDO2DB_BIN $NDO2DB_OPTS RETVAL=$? echo [ $RETVAL = 0 ] && touch $pidfile return $RETVAL } stop() { echo -n $"Shutting down $prog: " killproc $NDO2DB_BIN RETVAL=$? echo rm -f $pidfile return $RETVAL } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; try-restart) if [ -f $pidfile ]; then stop start fi ;; status) status $prog RETVAL=$? ;; *) echo $"Usage: $0 {start|stop|restart|try-restart|status}" RETVAL=3 esac exit $RETVAL christian -- "I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." - Unknown Unix Jedi ________________________________ From: Frater, Greg J [mailto:GJFRATER at bechtel.com] Sent: Monday, April 20, 2009 9:44 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] stopping and starting NDO daemon Hi All, We've just setup nagios 3 using NDO (to support Nagvis) and I realized that NDO does not come with an init script. I found one post to the list (http://article.gmane.org/gmane.network.nagios.user/52477/match=ndo+init ) from about a year ago, someone was asking for help incorporating the NDO daemon into the Nagios init script, but there were no responses. I'm wondering how others are handling the stopping and starting of the NDO daemon? Would it be better to incorporate it into the Nagios init script or should it have it's own, has somebody already done this that is willing to share with the list? Thanks, -greg -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Mon Apr 20 22:09:28 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Mon, 20 Apr 2009 17:09:28 -0300 Subject: SMS Message-ID: Hi all! My monitor is sending notification through e-mail but I would like to set it to sending also sms, how can I configurate it? Should I use an app like sms-client? Thanks in advance! Regards, Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GJFRATER at bechtel.com Mon Apr 20 22:15:34 2009 From: GJFRATER at bechtel.com (Frater, Greg J) Date: Mon, 20 Apr 2009 13:15:34 -0700 Subject: stopping and starting NDO daemon In-Reply-To: <60721B67EAF0994EAFFB561767B70014039FECF4@nets13ha.ww300.siemens.net> References: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> <60721B67EAF0994EAFFB561767B70014039FECF4@nets13ha.ww300.siemens.net> Message-ID: <872CB0AEB377C240A112DD7C10B2592904B2156A@wtps0171.amers.ibechtel.com> > Hello Greg, > here it is, simply took one of RHEL's init-scripts and modified it: > [root at atvies00nx libexec]# cat /etc/init.d/ndo2db > #! /bin/sh ... > echo $"Usage: $0 {start|stop|restart|try-restart|status}" > RETVAL=3 > esac > exit $RETVAL Thanks Christian, I'll give that a try. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nelson at pangeia.com.br Mon Apr 20 22:59:25 2009 From: nelson at pangeia.com.br (Nelson Murilo) Date: Mon, 20 Apr 2009 17:59:25 -0300 Subject: SMS In-Reply-To: References: Message-ID: <20090420205924.GA20790@pangeia.com.br> You could use mail/web to sms solutions available is some mobile network operator or integrate a cell phone with tools such gnokii or gammu. ./nelson -murilo On Mon, Apr 20, 2009 at 05:09:28PM -0300, Eduardo Barreto wrote: > My monitor is sending notification through e-mail but I would like to set it > to sending also sms, how can I configurate it? Should I use an app like > sms-client? > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 20 23:33:16 2009 From: marc at ena.com (Marc Powell) Date: Mon, 20 Apr 2009 16:33:16 -0500 Subject: SMS In-Reply-To: References: Message-ID: <8461E07E-CA43-4F8A-8CE2-6FD380FB7FA2@ena.com> On Apr 20, 2009, at 3:09 PM, Eduardo Barreto wrote: > Hi all! > > My monitor is sending notification through e-mail but I would like > to set it to sending also sms, how can I configurate it? Should I > use an app like sms-client? This is a common topic. There are a number of FAQ entries and lots of posts in the archives and google related to it (every month it feels like ;) ) is about sms-client specifically. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Apr 20 23:40:15 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 20 Apr 2009 22:40:15 +0100 Subject: SMS In-Reply-To: References: Message-ID: <765d77c80904201440m554b21a9had3b2ec15b9bdec4@mail.gmail.com> 2009/4/20 Eduardo Barreto : > Hi all! > > My monitor is sending notification through e-mail but I would like to set it > to sending also sms, how can I configurate it? Should I use an app like > sms-client? Yes, or if you are lazy like I am, you can send by email using an externally hosted email-sms service such as http://www.intellisms.co.uk/ hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Mon Apr 20 23:40:51 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Mon, 20 Apr 2009 14:40:51 -0700 (PDT) Subject: Setting up Host Groups in Nagios 2.x In-Reply-To: <872CB0AEB377C240A112DD7C10B2592904B2156A@wtps0171.amers.ibechtel.com> References: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> <60721B67EAF0994EAFFB561767B70014039FECF4@nets13ha.ww300.siemens.net> <872CB0AEB377C240A112DD7C10B2592904B2156A@wtps0171.amers.ibechtel.com> Message-ID: <327574.94096.qm@web111207.mail.gq1.yahoo.com> Hi all, I was wondering if someone in here could point me to the right direction on how to properly set-up Host Groups in Nagios 2.x. Please kindly advise. Much appreciated! DB -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Mon Apr 20 23:48:48 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Mon, 20 Apr 2009 14:48:48 -0700 Subject: Setting up Host Groups in Nagios 2.x In-Reply-To: <327574.94096.qm@web111207.mail.gq1.yahoo.com> References: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> <60721B67EAF0994EAFFB561767B70014039FECF4@nets13ha.ww300.siemens.net> <872CB0AEB377C240A112DD7C10B2592904B2156A@wtps0171.amers.ibechtel.com> <327574.94096.qm@web111207.mail.gq1.yahoo.com> Message-ID: <20090420214848.GA15246@bakgwai.americas.hpqcorp.net> On Mon, 20 Apr 2009, Dei Bertine wrote: > Hi all, > I was wondering if someone in here could point me to the right direction on how to properly set-up Host Groups in Nagios 2.x. > Please kindly advise. > Much appreciated! > DB http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 21 00:00:02 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 20 Apr 2009 23:00:02 +0100 Subject: Setting up Host Groups in Nagios 2.x In-Reply-To: <327574.94096.qm@web111207.mail.gq1.yahoo.com> References: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> <60721B67EAF0994EAFFB561767B70014039FECF4@nets13ha.ww300.siemens.net> <872CB0AEB377C240A112DD7C10B2592904B2156A@wtps0171.amers.ibechtel.com> <327574.94096.qm@web111207.mail.gq1.yahoo.com> Message-ID: <765d77c80904201500i29991029pcda0b93cbe24cdf3@mail.gmail.com> 2009/4/20 Dei Bertine : > Hi all, > I was wondering if someone in here could point me to the right direction on > how to properly set-up Host Groups in Nagios 2.x. > Please kindly advise. > Much appreciated! > DB I guess the best page to start looking is: http://nagios.sourceforge.net/docs/2_0/templatetricks.html hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dbounds at simplifymd.com Mon Apr 20 23:53:20 2009 From: dbounds at simplifymd.com (David Bounds) Date: Mon, 20 Apr 2009 17:53:20 -0400 Subject: Host checking Message-ID: Nevermind, easy as I suspected with a missing host check command. Thanks everyone. David Bounds dbounds at simplifymd.com -----Original Message----- From: David Bounds Sent: Monday, April 20, 2009 5:46 PM To: 'nagios-users at lists.sourceforge.net' Subject: Host checking All, I am certain this is a simple issue, but I was wondering if someone here could help. I have the apt package for nagios2 installed and none of the hosts are getting checked to see if they are still up. All checking is done through a local VPN connection and a sample of the host definitions is below. Any help is appreciated. define host{ host_name ama alias ama address ama hostgroups appliance notifications_enabled 1 event_handler_enabled 1 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r,f } David Bounds dbounds at simplifymd.com ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dbounds at simplifymd.com Mon Apr 20 23:45:45 2009 From: dbounds at simplifymd.com (David Bounds) Date: Mon, 20 Apr 2009 17:45:45 -0400 Subject: Host checking Message-ID: All, I am certain this is a simple issue, but I was wondering if someone here could help. I have the apt package for nagios2 installed and none of the hosts are getting checked to see if they are still up. All checking is done through a local VPN connection and a sample of the host definitions is below. Any help is appreciated. define host{ host_name ama alias ama address ama hostgroups appliance notifications_enabled 1 event_handler_enabled 1 max_check_attempts 5 check_period 24x7 contact_groups admins notification_interval 30 notification_period 24x7 notification_options d,u,r,f } David Bounds dbounds at simplifymd.com ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nzamoeba at hotmail.com Tue Apr 21 04:00:08 2009 From: nzamoeba at hotmail.com (David Willson) Date: Tue, 21 Apr 2009 14:00:08 +1200 Subject: Customising colours In-Reply-To: <960a54cc0904200217h3d1508bm93ab925da8f9995a@mail.gmail.com> References: <960a54cc0904200217h3d1508bm93ab925da8f9995a@mail.gmail.com> Message-ID: Date: Mon, 20 Apr 2009 11:17:49 +0200 Subject: Re: [Nagios-users] Customising colours From: ctemple at merethis.com To: nzamoeba at hotmail.com CC: nagios-users at lists.sourceforge.net 2009/4/20 David Willson At our lab we currently have the Nagios Service Overview page displayed on a large screen for all users to see, this way they can tell when a particular box is down. My boss is wondering if there is some way to adjust the colour scheme so that when something becomes 'Acknowledged' it displays as blue, instead of red. So far I've changed the values for items such as .statusHOSTDOWNACK background-color to #33FFFF in the status.css file, however it only shows that blue colour on certain windows, and not the Service Overview window which is our main one. Is what I'm trying to do possible? I only have a passing knowledge of css and html, so if it requires an extensive re-write it's probably not going to be practical. Hi, May be you can try another theme for Nagios: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1723.html;d=1 http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2969.html;d=1 http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2737.html;d=1 Regards -- C?dric Temple | Chef de Projet -- Unfortunately those theme's have the same problem, and my feeble attempts at editing them only solve half the problem. In the HostGroup Overview page, it still highlights the Down but Acknowledged host as red, when I edit the status.css file so that any line that references something as being acknowledged shows blue, it only shows that blue on particular pages. Interestingly, on the Host Detail page, where it lists every host in a large table, the hostname part of the line is still red, but the rest of the info (last check, duration, info etc) is highlighted in blue. And it's the hostname part of the display in the Hostgroup overview page that I'm trying to get blue. Would what I'm asking for require a total rewrite of how the acknowledgments are referenced in the web interface? _________________________________________________________________ Earning enough? Find out with SEEK Salary Survey http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsalarysurvey%2Emsn%2Eseek%2Eco%2Enz%2F%3Ftracking%3Dsk%3Atl%3Asknzsal%3Amsnnz%3A0%3Ahottag%3Aearn%5Fenough&_t=757263783&_r=Seek_NZ_tagline&_m=EXT -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From petermui at gmail.com Tue Apr 21 06:58:13 2009 From: petermui at gmail.com (Peter Mui) Date: Mon, 20 Apr 2009 21:58:13 -0700 Subject: Survey Closing: Nagios Conference at LISA '09 Message-ID: <9B9FD750-C635-44EB-A40D-DA093041081E@gmail.com> If you haven't already done so: please take this short survey on whether you'd attend a Nagios Conference in November co-located with the LISA (Large Installation System Administrators) Conference: http://www.surveymonkey.com/s.aspx?sm=G9_2f6HPGVHeRUuY9008Wv_2bA_3d_3d This is in the idea stage at the moment, and we'd like to gauge the community's interest before we get too far down the planning path. (As in Ethan's previous post: we're considering holding a Nagios event of some sort to be co-located with the USENIX LISA Conference November 1?6 in Baltimore, MD (see http://www.usenix.org/events/lisa09/). We're currently thinking of a one-day or two-day "mini conference" to be held the Sunday and/or Monday, November 1/2.) Questions? Comments? Email me offline at petermui (at) gmail.com Thanks! ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerald.Ortner at gespag.at Tue Apr 21 08:16:16 2009 From: Gerald.Ortner at gespag.at (Ortner, Gerald) Date: Tue, 21 Apr 2009 08:16:16 +0200 Subject: Any one monitoring numbber of Connections of CiscoAccess Points? In-Reply-To: <1240238250.6288.3.camel@UNIX-TEAM-LACAYO> References: <48603ddb0904170747u781334c9g331082cccab3b098@mail.gmail.com><765d77c80904170855m144114d2h64e6ce86b3ddabee@mail.gmail.com><13D6E07A3358E64EB01974BEF18F8BA66176E2@CO-XMB03.admin.cps.k12.il.us><765d77c80904181131y161bb662j6fa2fc0ed043aff7@mail.gmail.com> <1240238250.6288.3.camel@UNIX-TEAM-LACAYO> Message-ID: Von: Luis Fernando Lacayo [mailto:lflacayo at cps.k12.il.us] Gesendet: Montag, 20. April 2009 16:38 An: nagios-users Betreff: [Nagios-users] Any one monitoring numbber of Connections of CiscoAccess Points? * PGP Signed by an unknown key I want to monitor the number of users on individual Cisco Access Points,? is anyone doing this? thanks, Luis -- ______________________________________________________ Luis Fernando Lacayo Chicago Public Schools Senior Unix Administrator ITS/ UNIX Infrastructure Office: 773-553-3835 Cell: 773-203-4493 lflacayo at cps.k12.il.us ______________________________________________________ ?????????????? "In God we trust, the rest we monitor ..." * Unknown Key * 0x1F5C2FC9 ? You can use snmp .1.3.6.1.4.1.9.9.109.1.2.3.1.5.1.29 returns the number of connected clients cheers, Gerald OOe. Gesundheits- und Spitals-AG Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 p ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kmechri at gmail.com Tue Apr 21 08:46:01 2009 From: kmechri at gmail.com (kaouther mechri) Date: Tue, 21 Apr 2009 08:46:01 +0200 Subject: NDOutil problem In-Reply-To: <765d77c80904200924p216fa97k95894657fa4564a6@mail.gmail.com> References: <765d77c80904200924p216fa97k95894657fa4564a6@mail.gmail.com> Message-ID: I installed using these options ./configure --prefix=/usr/local/nagios/ --enable-mysql --disable-pgsql --with-ndo2db-user=nagios --with-ndo2db-group=nagios -with-mysql-lib=/usr/lib64/mysql --with-mysql-inc=/usr/include/mysql make make install the db_servertype=mysql is ok but I still have the problem Does anyone encountered the same problem ? thank you kaouther On Mon, Apr 20, 2009 at 6:24 PM, Jim Avery wrote: > 2009/4/20 kaouther mechri : > > Dear all, I need t install ndoutil 1.4b7 for my nagios 3. > > > > I've Msql-devel-5.1.33 > > I installed ndoutils with the following command > > > > ./configure --disable-pgsql --enable-mysql > --with-mysql-lib=/usr/lib/mysql > > --with mysql-include=/usr/include/mysql > > configure and make were ok. > > > > but when I want to run ndo2db I have the following error message > > > > /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg > > > > "Support for the specified database server is either not yet supported or > > was not found on your system" > > I tried to connect to the database with the user/pass specified in > > ndo2db.cfg and all things are ok > > > > Do you have an idea please > > kind regards > > kaouther > > > In your configuration file /usr/local/nagios/etc/ndo2db.cfg, you > should have the following: > > # DATABASE SERVER TYPE > # This option determines what type of DB server the daemon should > # connect to. > # Values: > # mysql = MySQL > # pgsql = PostgreSQL > > db_servertype=mysql > > I don't know if it helps you at all, but when I ran configure I didn't > bother specifying any options. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Tue Apr 21 12:56:07 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Tue, 21 Apr 2009 11:56:07 +0100 Subject: C++ Plugins Message-ID: Hi all, I'm trying to develop a plug-in for NSClient++ written in C++, but I'm unsure of how to return the status code and the check result string (e.g. 2 and "Service is Critical"). Are there any examples of C++ plugins online anywhere that I can use as a template? Cheers, Chris ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frank.bourdeau at dga.defense.gouv.fr Tue Apr 21 13:50:32 2009 From: frank.bourdeau at dga.defense.gouv.fr (frank.bourdeau at dga.defense.gouv.fr) Date: Tue, 21 Apr 2009 13:50:32 +0200 Subject: RE [spam?] stopping and starting NDO daemon In-Reply-To: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> References: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> Message-ID: Hi Greg, Here below is the script that we use at office Hope it can help you. #!/bin/sh # # ndo2db This script starts and stops the ndo2db daemon # # chkconfig: - 80 30 # processname: ndo2db # description: ndo2db is a daemon process which stores Nagios data in MySQL \ # Source function library. . /etc/rc.d/init.d/functions OPTIONS="-c /usr/local/nagios/etc/ndo2db.cfg" DAEMON=/usr/local/nagios/bin/ndo2db NAME="NDO2DB" [ -f $DAEMON ] || exit 0 PATH=$PATH:/usr/bin:/usr/local/bin # By default it's all good RETVAL=0 # See how we were called. case "$1" in start) # Start daemon. if [ -r /usr/local/nagios/var/ndo.sock ] then rm /usr/local/nagios/var/ndo.sock fi echo -n "Starting $NAME " daemon --user=nagios $NICELEVEL $DAEMON $OPTIONS RETVAL=$? echo ;; stop) # Stop daemons. echo -n "Shutting down $NAME: " killproc $DAEMON RETVAL=$? echo [ $RETVAL = 0 ] ;; restart) $0 stop sleep 3 $0 start ;; condrestart) ;; status) status $DAEMON RETVAL=$? ;; *) echo "Usage: $0 {start|stop|restart|status}" RETVAL=1 ;; esac exit $RETVAL Cheers ;) [ENVOYE PAR INTERNET] "Frater, Greg J" 20/04/2009 21:43 A cc Objet [spam?] [Nagios-users] stopping and starting NDO daemon Hi All, We've just setup nagios 3 using NDO (to support Nagvis) and I realized that NDO does not come with an init script. I found one post to the list (http://article.gmane.org/gmane.network.nagios.user/52477/match=ndo+init) from about a year ago, someone was asking for help incorporating the NDO daemon into the Nagios init script, but there were no responses. I'm wondering how others are handling the stopping and starting of the NDO daemon? Would it be better to incorporate it into the Nagios init script or should it have it's own, has somebody already done this that is willing to share with the list? Thanks, -greg ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 21 14:03:42 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 21 Apr 2009 13:03:42 +0100 Subject: Setting up Host Groups in Nagios 2.x In-Reply-To: <433753.77600.qm@web111213.mail.gq1.yahoo.com> References: <872CB0AEB377C240A112DD7C10B2592904B21569@wtps0171.amers.ibechtel.com> <60721B67EAF0994EAFFB561767B70014039FECF4@nets13ha.ww300.siemens.net> <872CB0AEB377C240A112DD7C10B2592904B2156A@wtps0171.amers.ibechtel.com> <327574.94096.qm@web111207.mail.gq1.yahoo.com> <765d77c80904201500i29991029pcda0b93cbe24cdf3@mail.gmail.com> <433753.77600.qm@web111213.mail.gq1.yahoo.com> Message-ID: <765d77c80904210503h37ad84dfi7df0f43921118396@mail.gmail.com> 2009/4/20 Dei Bertine : > Thank you Jim. > I was hoping to find a step by step direction on this other than the default > documentation posted. > I followed through but did not work which I'm unable to see the host group > details in the admin page. > I defined the host group under hostgroups path verified without errors: > > define hostgroup{ > ??????? hostgroup_name????????? inf-servers > ??????? alias???????????????? ? ? ? ? SERVERS > ??????? members???????????????? server1,server2,server3,server4,server5 > ??????? } > > Any tips on how to get started on organizing all of my servers into one > hostgroup file? > > Thanks again. Forgive me, I just read the doc I posted and realised it doesn't contain probably the most important information! The easiest (in my experience) way to put hosts in to host groups is by specifying the hostgroups in the host definition. For example, you create a file /usr/local/nagios/etc/objects/hostgroups.cfg which just contains the hostgroups and nothing else for example: define hostgroup{ hostgroup_name app-ftp alias Application = FTP Server } define hostgroup{ hostgroup_name app-web alias Application = Web Server } Then you can assign hosts to hostgroups in the host definition (which you might for example put in a file /usr/local/nagios/etc/objects/hosts.cfg). These will look something like this: define host{ use host-bronze,logo-windows_server,generic-host host_name server001 alias server001 web and ftp server address 192.168.1.2 hostgroups app-ftp,app-web parents switch002 } If/when you upgrade to Nagios3, you'll notice there are even more powerful tricks you can use for inheritance of objects from multiple templates. I hope this helps. I can heartily recommend you read the book "Nagios" by Wolfgang Barth. http://nostarch.com/nagios_2e.htm . It gives an excellent introduction to how Nagios works, how to set up the configuration files, how to monitor various kinds of nodes and server and some of the useful add-ons available for Nagios. The 2nd edition mainly covers Nagios version 3, so you might need to bear in mind that there are some differences or possibly consider purchasing the 1st edition (if it's still available) which covers Nagios version 2. Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 21 14:09:47 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 21 Apr 2009 13:09:47 +0100 Subject: C++ Plugins In-Reply-To: References: Message-ID: <765d77c80904210509o217a1f76g88d98567fe69ddd3@mail.gmail.com> 2009/4/21 Christopher McAtackney : > Hi all, > > I'm trying to develop a plug-in for NSClient++ written in C++, but I'm > unsure of how to return the status code and the check result string > (e.g. 2 and "Service is Critical"). > > Are there any examples of C++ plugins online anywhere that I can use > as a template? > > Cheers, > Chris Chris, if you do a search on http://nagiosexchange.org for "c++" you will find various plugins, utilities and addons written using C++. I guess most or at least some of them will include the source code. I don't program any version of C myself so can't check for sure which might be a good example for you. Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Simon.Kok at rewardstream.com Mon Apr 20 23:26:49 2009 From: Simon.Kok at rewardstream.com (Simon Kok) Date: Mon, 20 Apr 2009 14:26:49 -0700 Subject: Keep Service Check But Disable Host Check? Message-ID: <1C8B15C1D054524E806C1A7D2B79FAC4020D546D@earth.rewardstream.local> Hi there. I've got a check_http working but I'd like to disable the Host check for this particular URL since I can't ping it. Is there way to not make it display RED under the Hostgroup Grid? Making it appear grey like the other probes would be great. -- Simon. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 21 16:04:32 2009 From: marc at ena.com (Marc Powell) Date: Tue, 21 Apr 2009 09:04:32 -0500 Subject: Keep Service Check But Disable Host Check? In-Reply-To: <1C8B15C1D054524E806C1A7D2B79FAC4020D546D@earth.rewardstream.local> References: <1C8B15C1D054524E806C1A7D2B79FAC4020D546D@earth.rewardstream.local> Message-ID: <4A700D53-FEE6-4948-A501-ECDFE1541B97@ena.com> On Apr 20, 2009, at 4:26 PM, Simon Kok wrote: > Hi there. > > I?ve got a check_http working but I?d like to disable the Host check > for this particular URL since I can?t ping it. > > Is there way to not make it display RED under the Hostgroup Grid? > Making it appear grey like the other probes would be great Remove the host's 'check_command ...' line entirely and/or set the check_period to be 'none'. You could also change the check_command to something that does work when the host is up or even use check_dummy to always return an OK state. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Tue Apr 21 16:08:40 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Tue, 21 Apr 2009 15:08:40 +0100 Subject: C++ Plugins In-Reply-To: <765d77c80904210509o217a1f76g88d98567fe69ddd3@mail.gmail.com> References: <765d77c80904210509o217a1f76g88d98567fe69ddd3@mail.gmail.com> Message-ID: > Chris, > > if you do a search on http://nagiosexchange.org for "c++" you will > find various plugins, utilities and addons written using C++. ?I guess > most or at least some of them will include the source code. ?I don't > program any version of C myself so can't check for sure which might be > a good example for you. > > Cheers, > > Jim Thanks Jim, I found some examples there and was able to base my plugin off them. Cheers, Chris ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Tue Apr 21 17:41:27 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Tue, 21 Apr 2009 11:41:27 -0400 Subject: event handler Message-ID: <699b436a0904210841u437791f1g3aa3511a0b10c19b@mail.gmail.com> Hey Folks I am currently working on event handlers to restart services on Windows machines I have NC_Net installed on all client windows machines. I was looking at this plugin "Windows Failed Service restart batch file" at Nagios Exchange. File: win_service_restart.cmd Author: Vadims Zenins http://vadimszenins.blogspot.com Version: 1.03 Date: 16/12/2008 17:19 Windows Failed Service restart batch file for Nagios Event Handler Copy win_service_restart.cmd to \NSClient++\scripts\ folder. Nagios commands.cfg: define command{ command_name win_service_restart command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c win_service_restart -a "$SERVICEDESC$" $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ } Nagios template-services_common-win.cfg.cfg define service{ name generic-service-win-wuauserv service_description wuauserv display_name Automatic Updates event_handler win_service_restart event_handler_enabled 1 check_command check_nt!SERVICESTATE!-d SHOWALL -l $SERVICEDESC$ } NSCLIENT++ NSC.ini: [NRPE] allowed_hosts=192.168.1.1/32 ; your Nagios server IP allow_arguments=1 [External Script] allow_arguments=1 allow_nasty_meta_chars=1 [NRPE Handlers] command[win_service_restart]=scripts\win_service_restart.cmd "$ARG1$" $ARG2$ $ARG3$ $ARG4$ It uses check_nrpe at the commands.cfg file, but here we use check_nt . My question is, will this work if i change it to check_nt . Or is there any changes that has to be made. Can anyone please shed light on this . - Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunnywavez at in.com Tue Apr 21 17:50:59 2009 From: sunnywavez at in.com (Sundar V S) Date: Tue, 21 Apr 2009 21:20:59 +0530 Subject: =?utf-8?q?Help!_403_Forbidden_and_Internal_Server_?= =?utf-8?q?Error_during_Nagios_Web_Interface?= Message-ID: <1240329059.4bbb5420ed2dc9a8eaaedc7ae59de448@mail.in.com> Hi,After long fighting effort, i have successfully installed Nagios on Red Hat EL4. Now i can enter the Web interface: http://localhost/nagios but when i try to access http:/localhost/nagios/cgibin, it gives error" ForbiddenYou Don?t have permission to access /nagios/cgibin/ on this server.Apache/2.0.52 (Red Hat) Server at 10.180.117.171 Port 80And when i try to access theLeft Hand Menu in Nagios i get the error," Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.Apache/2.0.52 (Red Hat) Server at 10.180.117.171 Port 80Please do help to solve the issue, and i wud like have some infor On configuring the ScriptAlias and Alias for Nagios. Thanks and Regards,SundarDea r nagiosusers at lists.sourceforge.net ! Get Yourself a cool, short @in.com Email ID now! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Tue Apr 21 18:09:43 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Tue, 21 Apr 2009 17:09:43 +0100 Subject: Just installed Nagios - NRPE issue Message-ID: Dear All, Thank you for taking the time to read this. I've just install Nagios 3.0.6 on one of my collocated boxes. Quick question, do I need to configure NRPE on the main Nagios box as well? Or will the current running Nagios process gather the information locally? To be honest, I'd like to configured NRPE on one box, and then copy the configuration over to all the other servers. Is this the best way to go? --- Kind Regards, Mr Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Tue Apr 21 18:19:53 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Tue, 21 Apr 2009 17:19:53 +0100 Subject: Help! 403 Forbidden and Internal Server Error during Nagios Web Interface In-Reply-To: <1240329059.4bbb5420ed2dc9a8eaaedc7ae59de448@mail.in.com> References: <1240329059.4bbb5420ed2dc9a8eaaedc7ae59de448@mail.in.com> Message-ID: <200904211719.53927.assaf.flatto@ssp-intl.com> I would recommend you start here http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html On Tuesday 21 April 2009 16:50:59 Sundar V S wrote: > Hi,After long fighting effort, i have successfully installed Nagios on Red > Hat EL4. Now i can enter the Web interface: http://localhost/nagios but > when i try to access http:/localhost/nagios/cgibin, it gives error" > ForbiddenYou Don?t have permission to access /nagios/cgibin/ on this > server.Apache/2.0.52 (Red Hat) Server at 10.180.117.171 Port 80And when i > try to access theLeft Hand Menu in Nagios i get the error," Internal Server > Error The server encountered an internal error or misconfiguration and was > unable to complete your request.Please contact the server administrator, > root at localhost and inform them of the time the error occurred, and anything > you might have done that may have caused the error. More information about > this error may be available in the server error log.Apache/2.0.52 (Red Hat) > Server at 10.180.117.171 Port 80Please do help to solve the issue, and i > wud like have some infor On configuring the ScriptAlias and Alias for > Nagios. Thanks and Regards,SundarDea r nagiosusers at lists.sourceforge.net ! > Get Yourself a cool, short @in.com Email ID now! -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 21 18:38:16 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 21 Apr 2009 17:38:16 +0100 Subject: Just installed Nagios - NRPE issue In-Reply-To: References: Message-ID: <765d77c80904210938t454843fs9d9ef1be0c7226e1@mail.gmail.com> 2009/4/21 Gabriel - IP Guys : > Dear All, > > > > Thank you for taking the time to read this. I?ve just install Nagios 3.0.6 > on one of my collocated boxes. Quick question, do I need to configure NRPE > on the main Nagios box as well? Or will the current running Nagios process > gather the information locally? Normally you would just run the ordinary plugins locally on the main Nagios server. You could run nrpe on the local server too if you want to - it would certainly help you to make sure that all of your checks work in exactly the same way. It's not quite so efficient, but if you don't have too many local checks it's not going to worry you. > To be honest, I?d like to configured NRPE on one box, and then copy the > configuration over to all the other servers. Is this the best way to go? Yes, it's a good idea to have a standard configuration you can copy to all similar servers. I put my standard configs in an FTP directory on my Nagios server so I can just download and extract a tarball or two whenever I set up a new server. Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at medin.name Tue Apr 21 21:26:40 2009 From: michael at medin.name (Michael Medin) Date: Tue, 21 Apr 2009 21:26:40 +0200 Subject: C++ Plugins In-Reply-To: References: Message-ID: <49EE1DF0.6090309@medin.name> Hello, All the "built in" plugins are avalible as source so it should be pretty simple to figure out. The idea is anyways that you fill the buffer passed to the function from the "core". (this will BTW change in the next major release) Anyways... If you are using the "glue" (around the C api) I have written have a look at for instance this: http://nsclient.org/nscp/browser/branches/stable/modules/CheckExternalScripts/CheckExternalScripts.cpp If not then have a look inside the "glue file": http://nsclient.org/nscp/browser/branches/stable/include/NSCHelper.cpp But essential if you are not using the glue: NSCAPI::nagiosReturn wrapReturnString(char *buffer, unsigned int bufLen, std::wstring str, NSCAPI::nagiosReturn defaultReturnCode /* = NSCAPI::success */) { if (str.length() >= bufLen) return NSCAPI::returnInvalidBufferLen; strncpy(buffer, str.c_str(), bufLen); return defaultReturnCode; } extern NSCAPI::nagiosReturn NSHandleCommand(const TCHAR* IN_cmd, const unsigned int IN_argsLen, TCHAR **IN_args, TCHAR *OUT_retBufMessage, unsigned int IN_retBufMessageLen, TCHAR *OUT_retBufPerf, unsigned int IN_retBufPerfLen) { try { std::wstring message = _T("my message"); std::wstring perf = _T("my message"); NSCAPI::nagiosReturn ret = NSCAPI::returnOK; // Wrap strings ret = wrapReturnString(OUT_retBufMessage, IN_retBufMessageLen, message, ret); if (ret == NSCAPI::returnInvalidBufferLen) { //NSC_LOG_CRITICAL(_T("error in: wrapHandleCommand(...)")); return NSCAPI::returnIgnored; } ret = wrapReturnString(OUT_retBufPerf, IN_retBufPerfLen, perf, ret); if (ret == NSCAPI::returnInvalidBufferLen) { //NSC_LOG_CRITICAL(_T("error in: wrapHandleCommand(...)")); return NSCAPI::returnIgnored; } } catch (...) { //NSC_LOG_CRITICAL(_T("Unknown exception in: wrapHandleCommand(...)")); return NSCAPI::returnIgnored; } } In general I would recommend using the glue as it will be simpler to upgrade then... // Michael Medin Christopher McAtackney skrev: > Hi all, > > I'm trying to develop a plug-in for NSClient++ written in C++, but I'm > unsure of how to return the status code and the check result string > (e.g. 2 and "Service is Critical"). > > Are there any examples of C++ plugins online anywhere that I can use > as a template? > > Cheers, > Chris > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ricardodelgadoar at yahoo.com.ar Tue Apr 21 21:53:47 2009 From: ricardodelgadoar at yahoo.com.ar (Ricardo Delgado) Date: Tue, 21 Apr 2009 12:53:47 -0700 (PDT) Subject: check_http Message-ID: <500512.30148.qm@web33404.mail.mud.yahoo.com> Hi. I'm newbie using nagios when i check a web service, i receive ./check_http -H 192.65.45.78 -a rmduser:password HTTP WARNING: HTTP/1.1 401 Unauthorized my user is in the windows domain, if i try "mi_domain\rmduser:password", receive the same message. I'm using Debian Lenny and nagios 3.0.6. Thank's ----------------------------------- \|||||||/ ( @ @ ) ------oOOo-( )---oOOo-------- | Ricardo Delgado | | | |http://delgado.homelinux.net| | | | | | | | | ---------------0ooo--------- ooo0 ( ) ( ) ) / \ ( (_/ \_) Por Favor, no hagas Top Posting http://es.wikipedia.org/wiki/Top-posting Por Favor, sin formato html http://es.wikipedia.org/wiki/Netiquette Sin formatos propietarios. Yahoo! Cocina Recetas pr?cticas y comida saludable http://ar.mujer.yahoo.com/cocina/ ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nccomp at gmail.com Tue Apr 21 22:14:24 2009 From: nccomp at gmail.com (Andrew Davis) Date: Tue, 21 Apr 2009 16:14:24 -0400 Subject: Changing check_http.c Message-ID: <49EE2920.5060105@gmail.com> My checkcommands.cfg has an "check_http" entry that looks like this: # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ } My services.cfg has a correlating entry that looks like this: ## HTTP - alternate URL suffix define service { host_name server service_description HTTP check_command check_http!-p 9090 -u /proteus ~ action_url /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$ } When I run this at the command line, I see: /usr/local/nagios/libexec/check_http -I server -p 9090 -u /proteus HTTP OK - HTTP/1.1 301 Moved Permanently - 0.002 second response time |time=0.002480s;;;0.000000 size=577B;;;0 So far, so good, but what I really want to see is the URL in the output. Obviously, looking at the test, I can combine the server name, port, and URL suffix to figure out the URL. Unfortunately, while I'm good at shell scripting and perl, I'm not a C guy and the http test (check_http) is written in C. Anyone know what I would change in check_http.c to have the output show something like this: /usr/local/nagios/libexec/check_http -I server -p 9090 -u /proteus HTTP OK - HTTP/1.1 301 Moved Permanently *http://server:9090/proteus* - 0.002 second response time |time=0.002480s;;;0.000000 size=577B;;;0 Its one thing to be told that my website is down, but when I'm runnng multiple copies of Apache, Tomcat, and custom apps and hosting perhaps 20 different URL's and port combinations, it would be a LOT more convenient if Nagios showed me which URL was failing in the output of the test. -- A. Davis Email: nccomp at gmail.com "There is no limit to what a man can accomplish if he doesn't care who gets the credit." - Ronald Reagan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 21 22:20:46 2009 From: marc at ena.com (Marc Powell) Date: Tue, 21 Apr 2009 15:20:46 -0500 Subject: check_http In-Reply-To: <500512.30148.qm@web33404.mail.mud.yahoo.com> References: <500512.30148.qm@web33404.mail.mud.yahoo.com> Message-ID: <79901599-2781-44B9-9631-EC3660F6D351@ena.com> On Apr 21, 2009, at 2:53 PM, Ricardo Delgado wrote: > > Hi. > > I'm newbie using nagios when i check a web service, i receive > > ./check_http -H 192.65.45.78 -a rmduser:password > > HTTP WARNING: HTTP/1.1 401 Unauthorized > > my user is in the windows domain, if i try "mi_domain > \rmduser:password", receive the same message. check_http auth requires the server to be using .htaccess authentication. Is yours using that or NTLM? -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaiho8 at gmail.com Tue Apr 21 23:31:54 2009 From: jaiho8 at gmail.com (Jai Ram) Date: Tue, 21 Apr 2009 17:31:54 -0400 Subject: Any advice Message-ID: <9cfff3f00904211431r20a7ec96sde9b38a678f53861@mail.gmail.com> Hello, I did a mistake and run *crle -l /opt *on my nagios server. So I was unable to get the webpage. So i did *crle -l /usr/lib:/usr/local/libnow *I am able to see everything fine. But some of them in service status details for all hosts. It's giving me this below output. . and i found there was a file created in /var/ld/ root at nycmon:/var/ld ? 05:31 PM Tue Apr 21 ? !591 # more ld.config PP/usr/lib:/usr/local/lib Please help me ASAP in this as it's the production server ttwebdevl [image: View Extra Host Notes] Memory UNKNOWN 2009-04-21 15:40:10 0d 2h 2m 45s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory VxVM UNKNOWN 2009-04-21 15:07:27 0d 2h 12m 32s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory psrinfo UNKNOWN 2009-04-21 15:14:05 0d 2h 5m 54s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory ttweb2 [image: View Extra Host Notes] MailQueue UNKNOWN 2009-04-21 15:07:45 0d 2h 12m 14s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory Memory UNKNOWN 2009-04-21 15:47:33 0d 2h 6m 29s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory Swap UNKNOWN 2009-04-21 15:41:40 0d 2h 12m 26s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory SysLog UNKNOWN 2009-04-21 15:14:31 0d 2h 5m 28s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory ttweb1 [image: View Extra Host Notes] CPU UNKNOWN 2009-04-21 15:41:40 0d 2h 12m 26s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory Disk UNKNOWN 2009-04-21 15:48:27 0d 1h 52m 18s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory Procs UNKNOWN 2009-04-21 15:06:46 0d 2h 13m 13s 1/5 Remote command execution failed: ld.so.1: ssh: fatal: libsocket.so.1: open failed: No such file or directory Thanks Jai Ram. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 21 23:38:19 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 21 Apr 2009 22:38:19 +0100 Subject: Changing check_http.c In-Reply-To: <49EE2920.5060105@gmail.com> References: <49EE2920.5060105@gmail.com> Message-ID: <765d77c80904211438w1dfb2f14i8e6b16488f072a95@mail.gmail.com> 2009/4/21 Andrew Davis : > My checkcommands.cfg has an "check_http" entry that looks like this: > > # 'check_http' command definition > define command{ > ??????? command_name??? check_http > ??????? command_line??? $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ > ??????? } > > My services.cfg has a correlating entry that looks like this: > > ## HTTP - alternate URL suffix > define service { > ??????? host_name?????????????????????? server > ??????? service_description???????????? HTTP > ??????? check_command?????????????????? check_http!-p 9090 -u /proteus > ??? ??? ~ > ??????? action_url > /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$ > } > > When I run this at the command line, I see: > > /usr/local/nagios/libexec/check_http -I server -p 9090 -u /proteus > HTTP OK - HTTP/1.1 301 Moved Permanently - 0.002 second response time > |time=0.002480s;;;0.000000 size=577B;;;0 > > So far, so good, but what I really want to see is the URL in the output. > Obviously, looking at the test, I can combine the server name, port, and URL > suffix to figure out the URL. Unfortunately, while I'm good at shell > scripting and perl, I'm not a C guy and the http test (check_http) is > written in C. Anyone know what I would change in check_http.c to have the > output show something like this: > > /usr/local/nagios/libexec/check_http -I server -p 9090 -u /proteus > HTTP OK - HTTP/1.1 301 Moved Permanently http://server:9090/proteus - 0.002 > second response time |time=0.002480s;;;0.000000 size=577B;;;0 > > Its one thing to be told that my website is down, but when I'm runnng > multiple copies of Apache, Tomcat, and custom apps and hosting perhaps 20 > different URL's and port combinations, it would be a LOT more convenient if > Nagios showed me which URL was failing in the output of the test. I agree, but since the plugin doesn't do that, I sometimes put the full url in the "notes" directive in the service definition (or even notes_url) so I can get to them easily. You can modify your notification command to add whichever to your notification email too if you use the relevant macro. hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 21 23:51:05 2009 From: marc at ena.com (Marc Powell) Date: Tue, 21 Apr 2009 16:51:05 -0500 Subject: Any advice In-Reply-To: <9cfff3f00904211431r20a7ec96sde9b38a678f53861@mail.gmail.com> References: <9cfff3f00904211431r20a7ec96sde9b38a678f53861@mail.gmail.com> Message-ID: On Apr 21, 2009, at 4:31 PM, Jai Ram wrote: > Hello, > > I did a mistake and run crle -l /opt on my nagios server. So I was > unable to get the webpage. > > So i did crle -l /usr/lib:/usr/local/libnow I am able to see > everything fine. But some of them in service status details for all > hosts. It's giving me this below output. > > > . > > > and i found there was a file created in /var/ld/ > > root at nycmon:/var/ld ? 05:31 PM Tue Apr 21 ? > !591 # more > ld > .config > PP/ > usr/lib:/usr/local/lib > > Please help me ASAP in this as it's the production server I sympathize with your plight but do we get cheese with that? This is not an ASAP kind of support list, especially for problems not related to nagios (yes, more than nagios is certainly broken now on your system). But, to offer some advice, 'find' or 'locate' libsocket.so.1 on your system (solaris probably but who knows what version or architecture) and ensure that you've told crle about the path to it. A better solution would be to locate an identical system and ensure that you specify *all* the paths you need or to contact a support group for your OS. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From s.shipway at auckland.ac.nz Wed Apr 22 00:19:50 2009 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Wed, 22 Apr 2009 10:19:50 +1200 Subject: Changing check_http.c In-Reply-To: <765d77c80904211438w1dfb2f14i8e6b16488f072a95@mail.gmail.com> References: <49EE2920.5060105@gmail.com> <765d77c80904211438w1dfb2f14i8e6b16488f072a95@mail.gmail.com> Message-ID: <6B587E8C999646469B54486AF21958460C7DA0D997@UXCHANGE7-1.UoA.auckland.ac.nz> > From: Jim Avery [mailto:jim at jimavery.me.uk] > Sent: Wednesday, 22 April 2009 9:38 a.m. > 2009/4/21 Andrew Davis : > > So far, so good, but what I really want to see is the URL in the output. ... > I agree, but since the plugin doesn't do that, I sometimes put the > full url in the "notes" directive in the service definition (or even > notes_url) so I can get to them easily. This is what we do here as well (use the notes_url to give the tested URL). I don't like embedding HTML in the plugin output anyway as it makes it more awkward to use in emails and SMS. Steve ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nicku at nicku.org Wed Apr 22 02:29:29 2009 From: nicku at nicku.org (Nick Urbanik) Date: Wed, 22 Apr 2009 10:29:29 +1000 Subject: Viewing problems of one type Message-ID: <20090422002928.GC10653@nicku.org> Dear Folks, Thank you for a great monitoring system. We have nagios monitoring a large number of hosts (1646). We want to be able to display problems of one type: specifically, the service is 'Web Certificates'; I would like to restrict the status display to just these. Please can you suggest a way of doing this? We are using Version 1.2. -- Nick Urbanik http://nicku.org nicku at nicku.org GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24 ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sascha.Runschke at gfkl.com Wed Apr 22 10:43:07 2009 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Wed, 22 Apr 2009 10:43:07 +0200 Subject: Antwort: Re: NDOutil problem In-Reply-To: References: <765d77c80904200924p216fa97k95894657fa4564a6@mail.gmail.com> Message-ID: > I installed using these options > ./configure --prefix=/usr/local/nagios/ --enable-mysql --disable- > pgsql --with-ndo2db-user=nagios --with-ndo2db-group=nagios -with- > mysql-lib=/usr/lib64/ > mysql --with-mysql-inc=/usr/include/mysql > > make > > make install > > the > db_servertype=mysql is ok > > but I still have the problem > > Does anyone encountered the same problem ? Do you have the mysql-devel and mysqlclient-devel packages installed? What was the exact output of ./configure? Did you issue a "make distclean" before retrying to wipe out the configure cache? You have to be a bit more exact on your problem then just "it doesn't work" ;) S GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cloved at gmail.com Wed Apr 22 11:03:28 2009 From: cloved at gmail.com (Lei Chen) Date: Wed, 22 Apr 2009 17:03:28 +0800 Subject: Fwd: Files Missing While upgrading. In-Reply-To: <9cfff3f00904141148p29deb52clea2581e06110d729@mail.gmail.com> References: <9cfff3f00904131610u43b39eaaobcd9f59ca4d62488@mail.gmail.com> <9cfff3f00904141057k794c8e0fw4da0d82d4c1e460d@mail.gmail.com> <9cfff3f00904141148p29deb52clea2581e06110d729@mail.gmail.com> Message-ID: try to install pkgconfig. http://pkg-config.freedesktop.org/wiki/ 2009/4/15 Jai Ram : > > > ---------- Forwarded message ---------- > From: Jai Ram > Date: Tue, Apr 14, 2009 at 1:57 PM > Subject: Re: [Nagios-users] Files Missing While upgrading. > To: Marc Powell > > > Hello Marc, > > > Thanks for your help. > > As I have already Nagios3.0.6 is running except those three issues > statusmap,histogram and trends in webinterface, Do I need to reconfigure > with the below Process and run make all and make install or is there any way > to make GD libraries available to nagios so that I don't need to run make > all and make install again (or do I need to go again with the same process > as i did for upgrading nagios2.8 to Nagios3.0.6). > > We are monitoring more then 500+ servers.If I run upgrade process again on > Nagios3.0.6 with gd libraries available is my data going to be safe. Also > could you please let me know if I am correct with the below output so that i > can go ahead and do it. > > > # ./configure --prefix=/opt/nagios --bindir=/opt/nagios/bin > --sbindir=/opt/nagios/cgi-bin --datadir=/opt/nagios/share > sysconfdir=/opt/nagios/etc --localstatedir=/opt/nagios/var > --with-nagios-user=nagios --with-nagios-group=nagios > --with-command-group=nagioscmd --with-gd-lib=/usr/lib > --with-gd-inc=/usr/include > checking for a BSD-compatible install... /opt/sfw/bin/install -c > checking build system type... i386-pc-solaris2.10 > checking host system type... i386-pc-solaris2.10 > checking for gcc... gcc > checking for C compiler default output file name... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking whether make sets $(MAKE)... yes > checking for strip... /usr/ccs/bin/strip > checking how to run the C preprocessor... gcc -E > checking for egrep... egrep > checking for ANSI C header files... yes > checking whether time.h and sys/time.h may both be included... yes > checking for sys/wait.h that is POSIX.1 compatible... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking arpa/inet.h usability... yes > checking arpa/inet.h presence... yes > checking for arpa/inet.h... yes > checking ctype.h usability... yes > checking ctype.h presence... yes > checking for ctype.h... yes > checking dirent.h usability... yes > checking dirent.h presence... yes > checking for dirent.h... yes > checking errno.h usability... yes > checking errno.h presence... yes > checking for errno.h... yes > checking fcntl.h usability... yes > checking fcntl.h presence... yes > checking for fcntl.h... yes > checking getopt.h usability... yes > checking getopt.h presence... yes > checking for getopt.h... yes > checking grp.h usability... yes > checking grp.h presence... yes > checking for grp.h... yes > checking libgen.h usability... yes > checking libgen.h presence... yes > checking for libgen.h... yes > checking limits.h usability... yes > checking limits.h presence... yes > checking for limits.h... yes > checking math.h usability... yes > checking math.h presence... yes > checking for math.h... yes > checking netdb.h usability... yes > checking netdb.h presence... yes > checking for netdb.h... yes > checking netinet/in.h usability... yes > checking netinet/in.h presence... yes > checking for netinet/in.h... yes > checking pthread.h usability... yes > checking pthread.h presence... yes > checking for pthread.h... yes > checking pthreads.h usability... no > checking pthreads.h presence... no > checking for pthreads.h... no > checking pwd.h usability... yes > checking pwd.h presence... yes > checking for pwd.h... yes > checking regex.h usability... yes > checking regex.h presence... yes > checking for regex.h... yes > checking signal.h usability... yes > checking signal.h presence... yes > checking for signal.h... yes > checking socket.h usability... no > checking socket.h presence... no > checking for socket.h... no > checking stdarg.h usability... yes > checking stdarg.h presence... yes > checking for stdarg.h... yes > checking for string.h... (cached) yes > checking for strings.h... (cached) yes > checking sys/mman.h usability... yes > checking sys/mman.h presence... yes > checking for sys/mman.h... yes > checking for sys/types.h... (cached) yes > checking sys/time.h usability... yes > checking sys/time.h presence... yes > checking for sys/time.h... yes > checking sys/resource.h usability... yes > checking sys/resource.h presence... yes > checking for sys/resource.h... yes > checking for sys/wait.h... (cached) yes > checking sys/socket.h usability... yes > checking sys/socket.h presence... yes > checking for sys/socket.h... yes > checking for sys/stat.h... (cached) yes > checking sys/timeb.h usability... yes > checking sys/timeb.h presence... yes > checking for sys/timeb.h... yes > checking sys/un.h usability... yes > checking sys/un.h presence... yes > checking for sys/un.h... yes > checking sys/ipc.h usability... yes > checking sys/ipc.h presence... yes > checking for sys/ipc.h... yes > checking sys/msg.h usability... yes > checking sys/msg.h presence... yes > checking for sys/msg.h... yes > checking sys/poll.h usability... yes > checking sys/poll.h presence... yes > checking for sys/poll.h... yes > checking syslog.h usability... yes > checking syslog.h presence... yes > checking for syslog.h... yes > checking uio.h usability... no > checking uio.h presence... no > checking for uio.h... no > checking for unistd.h... (cached) yes > checking for an ANSI C-conforming const... yes > checking whether struct tm is in sys/time.h or time.h... time.h > checking for struct tm.tm_zone... no > checking for tzname... yes > checking for mode_t... yes > checking for pid_t... yes > checking for size_t... yes > checking return type of signal handlers... void > checking for uid_t in sys/types.h... yes > checking type of array argument to getgroups... gid_t > checking for va_copy... yes > checking for vsnprintf... yes > checking for snprintf... yes > checking for asprintf... no > checking for vasprintf... no > checking for C99 vsnprintf... yes > checking for initgroups... yes > checking for setenv... yes > checking for strdup... yes > checking for strstr... yes > checking for strtoul... yes > checking for unsetenv... yes > checking for type of socket size... size_t > checking for pthread_create in -lcma... no > checking for pthread_create in -lpthread... yes > checking for library containing nanosleep... -lrt > checking for mail... /usr/bin/mail > We'll use default routines (in xdata/xsddefault.*) for status data I/O... > We'll use default routines (in xdata/xcddefault.*) for comment data I/O... > We'll use default routines (in xdata/xrddefault.*) for retention data I/O... > We'll use template-based routines (in xdata/xodtemplate.*) for object data > I/O... > We'll use default routines (in xdata/xpddefault.*) for performance data > I/O... > We'll use default routines (in xdata/xdddefault.*) for scheduled downtime > data I/O... > checking for main in -liconv... yes > checking for gdImagePng in -lgd (order 1)... no > checking for gdImagePng in -lgd (order 2)... yes > GD library was found! > ./configure: line 6132: pkg-config: command not found > ./configure: line 6134: pkg-config: command not found > checking ltdl.h usability... no > checking ltdl.h presence... no > checking for ltdl.h... no > checking dlfcn.h usability... yes > checking dlfcn.h presence... yes > checking for dlfcn.h... yes > checking for dlopen in -ldl... yes > checking for extra flags needed to export symbols... none > > checking for linker flags for loadable modules... -G > checking for traceroute... /usr/sbin/traceroute > checking for type va_list... yes > checking for perl... /usr/bin/perl > configure: creating ./config.status > config.status: creating Makefile > config.status: creating subst > config.status: creating pkginfo > config.status: creating base/Makefile > config.status: creating common/Makefile > config.status: creating contrib/Makefile > config.status: creating cgi/Makefile > config.status: creating html/Makefile > config.status: creating module/Makefile > config.status: creating xdata/Makefile > config.status: creating daemon-init > config.status: creating html/index.html > config.status: creating html/side.html > config.status: creating include/config.h > config.status: include/config.h is unchanged > config.status: creating include/snprintf.h > config.status: include/snprintf.h is unchanged > config.status: creating include/cgiutils.h > config.status: include/cgiutils.h is unchanged > > Creating sample config files in sample-config/ ... > > > *** Configuration summary for nagios 3.0.6 12-01-2008 ***: > > General Options: > ------------------------- > Nagios executable: nagios > Nagios user/group: nagios,nagios > Command user/group: nagios,nagioscmd > Embedded Perl: no > Event Broker: yes > Install ${prefix}: /opt/nagios > Lock file: /opt/nagios/var/nagios.lock > Check result directory: /opt/nagios/var/spool/checkresults > Init directory: /etc/init.d > Apache conf.d directory: /etc/httpd/conf.d > Mail program: /usr/bin/mail > Host OS: solaris2.10 > > Web Interface Options: > ------------------------ > HTML URL: http://localhost/nagios/ > CGI URL: http://localhost/nagios/cgi-bin/ > Traceroute (used by WAP): /usr/sbin/traceroute > > > Review the options above for accuracy. If they look okay, > type 'make all' to compile the main program and CGIs. > > > Thanks In Advance > > Jai Ram. > > > On Mon, Apr 13, 2009 at 9:56 PM, Marc Powell wrote: >> >> On Apr 13, 2009, at 6:10 PM, Jai Ram wrote: >> >> > Hello, >> > >> > I have upgraded nagios from version 2.8 to 3.0.6 on Solaris-10. When >> > I was going through upgrade it has requested me for >> > statusmap.cgi,histogram.cgi and trends.cgi, was not found so I >> > copied it from version 2.8. >> > >> > ** Is this because the above three files belongs to Version 2.8, If >> > so how would i get those three files for Nagios-3.0.6. I looked in >> > to Nagios-3.0.6 and those three files are missing. So how do I >> > compile them for Nagios-3.0.6** >> >> It's because the GD libs (devel) are not installed or were not found >> in standard locations. There's a FAQ entry for it but it looks like >> the FAQ is broken right now. Examine the output of ./configure or >> config.log for information and links. >> >> if the GD devel libraries are installed, you may need to pass their >> location to ./configure with -- >> >> --with-gd-lib=DIR sets location of the gd library >> --with-gd-inc=DIR sets location of the gd include files >> >> -- >> Marc >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> High Quality Requirements in a Collaborative Environment. >> Download a free trial of Rational Requirements Composer Now! >> http://p.sf.net/sfu/www-ibm-com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From texner at eoipso.com Wed Apr 22 12:11:38 2009 From: texner at eoipso.com (Tobias Exner) Date: Wed, 22 Apr 2009 12:11:38 +0200 Subject: Xerox WC M24 monitoring In-Reply-To: <9D1AF04A3FBB7A49B1D98275BFDD4AF10131239865C5@gehring-ms01.gehringgroup.local> References: <49EB79A8.8040506@eoipso.com> <9D1AF04A3FBB7A49B1D98275BFDD4AF10131239865C5@gehring-ms01.gehringgroup.local> Message-ID: <49EEED5A.7020800@eoipso.com> Hi, just a little update from me. I found a good solution to monitoring my Xerox WC M24. It's little php-snmp plugin from a german company. And it's free for download. Here's the link: nagios-exchange http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2664.html;d=1 direct link http://www.ciphron.de/gfx/pool/check_printer printer.cfg: . . . define service{ use generic-service ; host_name xerox24 ; service_description gedruckte Seiten ; check_command check_printer!public!counter!1 ; normal_check_interval 10 ; retry_check_interval 1 ; } define service{ use generic-service ; host_name xerox24 ; service_description Toner Black ; check_command check_printer!public!ink!1 ; normal_check_interval 10 ; retry_check_interval 1 ; } . . . Cheers, Tobias Dan Thagard schrieb: > I've not worked with the M24, but I use the check_snmp_printer command with the Xerox DocuColor 250 and the Xerox EX700 printers using the 2.43.11.1.1.6.1.x OID range, e.g. "check_snmp_printer!10.0.0.100!public!CONSUM 2.43.11.1.1.6.1.8". > > I'm not sure that this is the best (read correct) way, but I can check the consumable status for these printers. If anyone has a better approach I'd love to hear it. > > Cheers, > Dan > > > Dan Thagard > Director, I.T. > Gehring Group > 11505 Fairchild Gardens Ave. > Suite 202 > Palm Beach Gardens, FL 33410 > P: 561.799.4810 > F: 561.626.6970 > C: 561.632.8833 > E: dan at gehringgroup.com > > > -----Original Message----- > From: Tobias Exner [mailto:texner at eoipso.com] > Sent: Sunday, April 19, 2009 3:21 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Xerox WC M24 monitoring > > Hi list, > > is there anybody who know how to monitor a Xerox WorkCenter M24? > > There are several plugins available for printers, but none of them seem > to be build for Xerox. > Of course I don't tried them all, because I hope there's someone who was > able to find a solution. > > > Thanks in advance... > > Tobias > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > Please be advised that coverage may not be bound or altered by email correspondence. This message originates from Gehring Group. This email message and all attachments may contain legally privileged and confidential information intended solely for the use of the addressee. If you are not the intended recipient, you should immediately stop reading this message and delete it from your system. Any unauthorized reading, distribution, copying, or other use of this message or its attachments is strictly prohibited. All personal messages express solely the sender's views and not those of Gehring Group. This message may not be copied or distributed without this disclaimer. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by Gehring Group or any loss or damage arising in any way from its use. If you received this message in error, please notify us immediately at (561) 626-6797. > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bild 1.png Type: image/png Size: 167375 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Wed Apr 22 13:53:13 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 22 Apr 2009 12:53:13 +0100 Subject: Viewing problems of one type In-Reply-To: <20090422002928.GC10653@nicku.org> References: <20090422002928.GC10653@nicku.org> Message-ID: <765d77c80904220453t7df10717pfec226739019fb35@mail.gmail.com> 2009/4/22 Nick Urbanik : > Dear Folks, > > Thank you for a great monitoring system. > > We have nagios monitoring a large number of hosts (1646). ?We > want to be able to display problems of one type: specifically, the > service is 'Web Certificates'; I would like to restrict the status > display to just these. > > Please can you suggest a way of doing this? > > We are using Version 1.2. In Nagios version 2 or 3 you can simply add the service definitions for these to a servicegroup then display the servicegroup status for just that group. I don't know if that was possible in version 1.2! Can I gently suggest it might be a good time for you to think about upgrading? Cheers, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 22 14:01:27 2009 From: marc at ena.com (Marc Powell) Date: Wed, 22 Apr 2009 07:01:27 -0500 Subject: Viewing problems of one type In-Reply-To: <20090422002928.GC10653@nicku.org> References: <20090422002928.GC10653@nicku.org> Message-ID: On Apr 21, 2009, at 7:29 PM, Nick Urbanik wrote: > Dear Folks, > > Thank you for a great monitoring system. > > We have nagios monitoring a large number of hosts (1646). We > want to be able to display problems of one type: specifically, the > service is 'Web Certificates'; I would like to restrict the status > display to just these. > > Please can you suggest a way of doing this? > > We are using Version 1.2. You are using a very very old version of nagios. The closest you could get with that version is creating a hostgroup of all hosts that have that service. Nagios-3 has servicegroups that are what you are looking for I believe -- http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#servicegroup -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Wed Apr 22 14:34:21 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Wed, 22 Apr 2009 13:34:21 +0100 Subject: Any firewall gotchas for NRPE? Message-ID: I've just finished configuring a Nagios instance, and I have also install NRPE locally on the same machine. I have configured NRPE and checked that it's working by running the following, # /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 NRPE v2.12 The result comes back as expected. Also, checking swap returns the following. # /usr/lib/nagios/plugins/check_swap -w 20% -c 10% SWAP OK - 100% free (1983 MB out of 1983 MB) |swap=1983MB;396;198;0;1983 So I know that NRPE itself is working, what I can't figure out is why Nagios not giving me the extra data, I just get the error msg CHECK_NRPE: Socket timeout after 10 seconds. Any advice appreciated. Just to clarify, Nagios and NRPE are running on the same box. --- Kind Regards, Mr Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Wed Apr 22 14:49:27 2009 From: martyn at chetnet.co.uk (Martyn) Date: Wed, 22 Apr 2009 13:49:27 +0100 Subject: Email to Voice Service Message-ID: Hi All I'm looking for a way to send alerts to mobiles as well as to email accounts, at the minute I use an external company to convert my Emails to SMS but unable to find anybody who can do the same for Voice alerts to mobiles. I looked at x-on in the UK but they are not able to convert the email that is sent across from Nagios to voice, I have asked if then can let me know the format to see if I can change Nagios side of things to suit. In the mean time does anybody know how can achieve voice alerts to mobiles at all, I have heard that Asterisk can do it but I think only to one number. Hope you can help Thanks Martyn -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Wed Apr 22 15:04:20 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Wed, 22 Apr 2009 10:04:20 -0300 Subject: host status information not found Message-ID: Hi All, I've inserted a new host, and I can get it's information, I got this message from Nagios Status Map "*host status information not found*" how can I get rid of it. All other hosts are okay. Thanks in advance Regards, Eduardo Barreto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Wed Apr 22 15:25:33 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Wed, 22 Apr 2009 14:25:33 +0100 Subject: Any firewall gotchas for NRPE? In-Reply-To: References: Message-ID: Some extra information, Nagios Version 3.0.6 NRPE Version 2.12 OS CentOS 5.2 From: Gabriel - IP Guys [mailto:Gabriel at impactteachers.com] Sent: 22 April 2009 13:34 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Any firewall gotchas for NRPE? I've just finished configuring a Nagios instance, and I have also install NRPE locally on the same machine. I have configured NRPE and checked that it's working by running the following, # /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 NRPE v2.12 The result comes back as expected. Also, checking swap returns the following. # /usr/lib/nagios/plugins/check_swap -w 20% -c 10% SWAP OK - 100% free (1983 MB out of 1983 MB) |swap=1983MB;396;198;0;1983 So I know that NRPE itself is working, what I can't figure out is why Nagios not giving me the extra data, I just get the error msg CHECK_NRPE: Socket timeout after 10 seconds. Any advice appreciated. Just to clarify, Nagios and NRPE are running on the same box. --- Kind Regards, Mr Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fernando.rocha at opservices.com.br Wed Apr 22 15:49:17 2009 From: fernando.rocha at opservices.com.br (Fernando Rocha) Date: Wed, 22 Apr 2009 10:49:17 -0300 (BRT) Subject: event handler In-Reply-To: <1424852.73231240408141112.JavaMail.root@mail.opservices.com.br> References: <1424852.73231240408141112.JavaMail.root@mail.opservices.com.br> Message-ID: <18714529.73251240408157942.JavaMail.root@mail.opservices.com.br> Hello Anirudh! If you change the check_nrpe to check_nt it will not work. This plugin uses nsclient++, that supports to run commands remotely over the nrpe. To add the event handlers you must change the the agent installed at hosts. To be easily, you can use the OpMon Agent, that is nsclient++ based, has built-in a similar plugin to control windows services and supports also yours check_nt commands. http://www.opservices.com.br/agentes opmonagent-2.8.2.0_autoinstall.exe So, just uninstall the current agent, install the OpMon Agent and use the check_nrpe to run the event handler. > define command{ > command_name win_service_restart > command_line $USER1$/ check_nrpe -H $HOSTADDRESS$ -p 5666 -c service_control -n -a > } You have also get installed the nrpe on your nagios host, that provides the check_nrpe. -- Fernando Rocha OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org ----- "Anirudh Srinivasan" wrote: > Hey Folks > I am currently working on event handlers to restart services on Windows machines > I have NC_Net installed on all client windows machines. I was looking at this plugin " Windows Failed Service restart batch file" at Nagios Exchange. > File: win_service_restart.cmd > Author: Vadims Zenins http://vadimszenins.blogspot.com > Version: 1.03 > Date: 16/12/2008 17:19 > Windows Failed Service restart batch file for Nagios Event Handler > > Copy win_service_restart.cmd to \NSClient++\scripts\ folder. > > Nagios commands.cfg: > define command{ > command_name win_service_restart > command_line $USER1$/ check_nrpe -H $HOSTADDRESS$ -p 5666 -c win_service_restart -a "$SERVICEDESC$" $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ > } > > Nagios template-services_common-win.cfg.cfg > define service{ > name generic-service-win-wuauserv > service_description wuauserv > display_name Automatic Updates > event_handler win_service_restart > event_handler_enabled 1 > check_command check_nt!SERVICESTATE!-d SHOWALL -l $SERVICEDESC$ > } > > NSCLIENT++ NSC.ini: > [NRPE] > allowed_hosts= 192.168.1.1/32 ; your Nagios server IP > allow_arguments=1 > [External Script] > allow_arguments=1 > allow_nasty_meta_chars=1 > [NRPE Handlers] > command[win_service_restart]=scripts\win_service_restart.cmd "$ARG1$" $ARG2$ $ARG3$ $ARG4$ > > It uses check_nrpe at the commands.cfg file, but here we use check_nt . > My question is, will this work if i change it to check_nt . Or is there any changes that has to be made. > Can anyone please shed light on this . > - > Anirudh Srinivasan > > > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Wed Apr 22 15:46:09 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Wed, 22 Apr 2009 09:46:09 -0400 Subject: check_snmp output Message-ID: <6db4a4200904220646i400d1e92n66c8bbb99ae75f84@mail.gmail.com> All, I want to show the result of check_snmp in a certain way. For example if I am doing a "nominal current" check on Liebert ups, the snmp query will return 506 as result. However this actauly means 50.6 amp. Is there any way to control the output on check_snmp plugin. I am aware of the "-u" option but I am not sure if I can use this to achieve the desired result I am looking for. Thanks -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fernando.rocha at opservices.com.br Wed Apr 22 15:57:03 2009 From: fernando.rocha at opservices.com.br (Fernando Rocha) Date: Wed, 22 Apr 2009 10:57:03 -0300 (BRT) Subject: Any firewall gotchas for NRPE? In-Reply-To: References: Message-ID: <25483512.73411240408623049.JavaMail.root@mail.opservices.com.br> Hi Gabriel, Could you send the command that you are using? []'s -- Fernando Rocha OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org ----- "Gabriel - IP Guys" wrote: > > I?ve just finished configuring a Nagios instance, and I have also install NRPE locally on the same machine. I have configured NRPE and checked that it?s working by running the following, # /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 NRPE v2.12 The result comes back as expected. Also, checking swap returns the following. # /usr/lib/nagios/plugins/check_swap -w 20% -c 10% SWAP OK - 100% free (1983 MB out of 1983 MB) |swap=1983MB;396;198;0;1983 So I know that NRPE itself is working, what I can?t figure out is why Nagios not giving me the extra data, I just get the error msg CHECK_NRPE: Socket timeout after 10 seconds. Any advice appreciated. Just to clarify, Nagios and NRPE are running on the same box. --- Kind Regards, Mr Gabriel > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 22 15:59:50 2009 From: marc at ena.com (Marc Powell) Date: Wed, 22 Apr 2009 08:59:50 -0500 Subject: Any firewall gotchas for NRPE? In-Reply-To: References: Message-ID: <4439D73F-67C9-44B4-ADBA-3714C16E9B84@ena.com> On Apr 22, 2009, at 8:25 AM, Gabriel - IP Guys wrote: > Some extra information, > > Nagios Version 3.0.6 > NRPE Version 2.12 > OS CentOS 5.2 > > From: Gabriel - IP Guys [mailto:Gabriel at impactteachers.com] > Sent: 22 April 2009 13:34 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Any firewall gotchas for NRPE? > > I?ve just finished configuring a Nagios instance, and I have also > install NRPE locally on the same machine. I have configured NRPE and > checked that it?s working by running the following, > > # /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 > NRPE v2.12 It's listening on localhost, but not necessarily working or working for other addresses on that machine. Why would you use NRPE for localhost checks anyway? Just playing around/testing? > > The result comes back as expected. Also, checking swap returns the > following. > > # /usr/lib/nagios/plugins/check_swap -w 20% -c 10% > SWAP OK - 100% free (1983 MB out of 1983 MB) |swap=1983MB; > 396;198;0;1983 > > So I know that NRPE itself is working, what I can?t figure out is > why Nagios not giving me the extra data, I just get the error msg The above test says nothing about NRPE working or not, of course. It also doesn't mean it will work as the user NRPE runs as. You should never test nagios plugins or tools as root. You'll get caught troubleshooting issues that are really permissions problems without any insight. > CHECK_NRPE: Socket timeout after 10 seconds. > > Any advice appreciated. Just to clarify, Nagios and NRPE are running > on the same box. Actual configuration information will help you get help. - How was NRPE installed - Is it running as a daemon or from (x)inetd - if (x)inetd, what is that configuration - what allowed_hosts do you have permitted? - What firewall restrictions do you have in place related to the IP/ port NRPE is configured to use. - *full* service definition for an example 'broken' service check (get it from objects.cache) - What did you see from your system logs when you put NRPE in debug mode? -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Wed Apr 22 16:07:37 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Wed, 22 Apr 2009 10:07:37 -0400 Subject: event handler In-Reply-To: <699b436a0904210841u437791f1g3aa3511a0b10c19b@mail.gmail.com> References: <699b436a0904210841u437791f1g3aa3511a0b10c19b@mail.gmail.com> Message-ID: <699b436a0904220707k39434e44n6eb67adf2f15804a@mail.gmail.com> Hi, Thanks for your reply . Thats was a useful sugestion. But is there any eventhandler for windows that supports NC_NET . I tried using winexe but had a hard time testing it any it never worked for me. Why i am saying this is because we have over 50 windows machines that has NC_NET , its going to be tough time replacing the client. Thanks in Adv Anirudh -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Wed Apr 22 16:08:50 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Wed, 22 Apr 2009 09:08:50 -0500 Subject: Any firewall gotchas for NRPE? In-Reply-To: <4439D73F-67C9-44B4-ADBA-3714C16E9B84@ena.com> References: <4439D73F-67C9-44B4-ADBA-3714C16E9B84@ena.com> Message-ID: It's always possible Selinux is causing some issues if you left it enabled... James Moseley Gabriel at impactteachers.com wrote: > Some extra information, > > Nagios Version 3.0.6 > NRPE Version 2.12 > OS CentOS 5.2 ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 22 16:08:44 2009 From: marc at ena.com (Marc Powell) Date: Wed, 22 Apr 2009 09:08:44 -0500 Subject: check_snmp output In-Reply-To: <6db4a4200904220646i400d1e92n66c8bbb99ae75f84@mail.gmail.com> References: <6db4a4200904220646i400d1e92n66c8bbb99ae75f84@mail.gmail.com> Message-ID: <93342BFA-BB15-48D8-AFF1-08085688B237@ena.com> On Apr 22, 2009, at 8:46 AM, shadih rahman wrote: > All, > I want to show the result of check_snmp in a certain way. For > example if I am doing a "nominal current" check on Liebert ups, the > snmp query will return 506 as result. However this actauly means > 50.6 amp. Is there any way to control the output on check_snmp > plugin. I am aware of the "-u" option but I am not sure if I can > use this to achieve the desired result I am looking for. Thanks There's no facility for munging the response data received via SNMP since it can be quite variable, ranging from numeric data to ip addresses to string data and many others. You can add a label (-l) (i.e. -l 'Amperage is' results in 'Amperage is OK- 506') and/or units (-u) (i.e. '-u amp' results in 'OK - 506 amp'). You could create a simple wrapper script that runs check_snmp, grabs it's output and return code, munges the output, and returns both back to nagios as the plugin would. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kenneho.ndu at gmail.com Wed Apr 22 16:21:35 2009 From: kenneho.ndu at gmail.com (Kenneth Holter) Date: Wed, 22 Apr 2009 16:21:35 +0200 Subject: Monitor Postfix with Nagios 3 Message-ID: Hi. I'm using Postfix on a few of our RHEL 5 64-bit servers, and would like to monitor that this process is running well. I'm using Nagios 3. What is the recommened way of monitoring Postfix? Regards, kenneho -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Wed Apr 22 16:27:48 2009 From: jpratt at norwich.edu (James Pratt) Date: Wed, 22 Apr 2009 10:27:48 -0400 Subject: Monitor Postfix with Nagios 3 In-Reply-To: References: Message-ID: <8147CCE3C4A8764DA9980125EE70E823BAFAA7@nuexchg.norwich.edu> It appears there are more than one: http://www.nagiosexchange.org/cgi-bin/search.cgi?query=postfix&Go=Go hth jamie > -----Original Message----- > From: Kenneth Holter [mailto:kenneho.ndu at gmail.com] > Sent: Wednesday, April 22, 2009 10:22 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitor Postfix with Nagios 3 > > Hi. > > > I'm using Postfix on a few of our RHEL 5 64-bit servers, and would like to > monitor that this process is running well. I'm using Nagios 3. > > What is the recommened way of monitoring Postfix? > > > Regards, > kenneho > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kenneho.ndu at gmail.com Wed Apr 22 16:57:07 2009 From: kenneho.ndu at gmail.com (Kenneth Holter) Date: Wed, 22 Apr 2009 16:57:07 +0200 Subject: Monitor Postfix with Nagios 3 In-Reply-To: <8147CCE3C4A8764DA9980125EE70E823BAFAA7@nuexchg.norwich.edu> References: <8147CCE3C4A8764DA9980125EE70E823BAFAA7@nuexchg.norwich.edu> Message-ID: Thanks for you reply. When I click the links I get this message "project_id is required!". What's that all about? I'm new to nagiosexchange... On 4/22/09, James Pratt wrote: > > It appears there are more than one: > > http://www.nagiosexchange.org/cgi-bin/search.cgi?query=postfix&Go=Go > > hth > jamie > > > -----Original Message----- > > From: Kenneth Holter [mailto:kenneho.ndu at gmail.com] > > Sent: Wednesday, April 22, 2009 10:22 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Monitor Postfix with Nagios 3 > > > > Hi. > > > > > > I'm using Postfix on a few of our RHEL 5 64-bit servers, and would > like to > > monitor that this process is running well. I'm using Nagios 3. > > > > What is the recommened way of monitoring Postfix? > > > > > > Regards, > > kenneho > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jaimeventura at ipp.pt Wed Apr 22 17:06:45 2009 From: jaimeventura at ipp.pt (Jaime Ventura) Date: Wed, 22 Apr 2009 16:06:45 +0100 Subject: two percentage values on Availability report... Message-ID: <49EF3285.2040004@ipp.pt> Hello When doing an availability report for multiple hosts, two percentage values are chown for each column ( Time Up, Time Down,Time Unreachable). Does any one knows their meaning? On long period availability report the two percentage values are different in some hosts. Thanks Jaime ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Wed Apr 22 17:17:00 2009 From: jpratt at norwich.edu (James Pratt) Date: Wed, 22 Apr 2009 11:17:00 -0400 Subject: Monitor Postfix with Nagios 3 In-Reply-To: References: <8147CCE3C4A8764DA9980125EE70E823BAFAA7@nuexchg.norwich.edu> Message-ID: <8147CCE3C4A8764DA9980125EE70E823BAFB0A@nuexchg.norwich.edu> Yes you are right things do not appear to work properly - I've cc'ed the webmaster, not sure who else runs/maintains the site, so pls fwd as necessary Thanks, jamie > -----Original Message----- > From: Kenneth Holter [mailto:kenneho.ndu at gmail.com] > Sent: Wednesday, April 22, 2009 10:57 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Monitor Postfix with Nagios 3 > > Thanks for you reply. > > When I click the links I get this message "project_id is required!". > What's that all about? I'm new to nagiosexchange... > > > On 4/22/09, James Pratt wrote: > > It appears there are more than one: > > http://www.nagiosexchange.org/cgi-bin/search.cgi?query=postfix&Go=Go > > hth > jamie > > > -----Original Message----- > > From: Kenneth Holter [mailto:kenneho.ndu at gmail.com] > > Sent: Wednesday, April 22, 2009 10:22 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Monitor Postfix with Nagios 3 > > > > Hi. > > > > > > I'm using Postfix on a few of our RHEL 5 64-bit servers, and would > like to > > monitor that this process is running well. I'm using Nagios 3. > > > > What is the recommened way of monitoring Postfix? > > > > > > Regards, > > kenneho > > > > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 22 17:34:52 2009 From: marc at ena.com (Marc Powell) Date: Wed, 22 Apr 2009 10:34:52 -0500 Subject: check_snmp output In-Reply-To: <6db4a4200904220818k2fc3fbeav68385e29db58aa1a@mail.gmail.com> References: <6db4a4200904220646i400d1e92n66c8bbb99ae75f84@mail.gmail.com> <93342BFA-BB15-48D8-AFF1-08085688B237@ena.com> <6db4a4200904220818k2fc3fbeav68385e29db58aa1a@mail.gmail.com> Message-ID: <91E45DDB-CDB5-4513-9AE2-0FB33CD7C943@ena.com> Please always respond on list -- On Apr 22, 2009, at 10:18 AM, shadih rahman wrote: > Marc, > Can you please give me some direction for the wrapper script. > Do you mean to capture the output and then do some type search and > replace on the string? Yes, exactly. You'll also need to capture the check_snmp exit code and have your wrapper exit with that same code. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jorg.schulz at telia.com Wed Apr 22 17:40:29 2009 From: jorg.schulz at telia.com (jorg) Date: Wed, 22 Apr 2009 17:40:29 +0200 Subject: Monitor Postfix with Nagios 3 In-Reply-To: References: <8147CCE3C4A8764DA9980125EE70E823BAFAA7@nuexchg.norwich.edu> Message-ID: <008e01c9c360$acd189e0$0d01a8c0@admpc0165> Why not go not directly to the maintainer? http://www.kilala.nl/Sysadmin/index.php?id=723 /j?rg Kenneth Holter [mailto:kenneho.ndu at gmail.com] Skickat: den 22 april 2009 16:57 Till: nagios-users at lists.sourceforge.net ?mne: Re: [Nagios-users] Monitor Postfix with Nagios 3 >Thanks for you reply. >When I click the links I get this message "project_id is required!". What's that all about? I'm new to nagiosexchange... >>> >It appears there are more than one: > http://www.nagiosexchange.org/cgi-bin/search.cgi?query=postfix&Go=Go >hth >jamie > -----Original Message----- > From: Kenneth Holter [mailto: kenneho.ndu at gmail.com] > Sent: Wednesday, April 22, 2009 10:22 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitor Postfix with Nagios 3 > > Hi. > > > I'm using Postfix on a few of our RHEL 5 64-bit servers, and would like to > monitor that this process is running well. I'm using Nagios 3. > > What is the recommened way of monitoring Postfix? > > > Regards, > kenneho > No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database: 270.12.1/2071 - Release Date: 04/21/09 16:48:00 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy-lists at networkmail.eu Wed Apr 22 18:41:33 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Wed, 22 Apr 2009 17:41:33 +0100 Subject: Any firewall gotchas for NRPE? In-Reply-To: References: Message-ID: <49EF48BD.30205@networkmail.eu> Hi Gabriel, > Some extra information, > > > > Nagios Version 3.0.6 > > NRPE Version 2.12 > > OS CentOS 5.2 > I recently set up a CentOS 5.3 box and afterwards noticed that the firewall was set to reject all non-local traffic (including SSH.) Try stopping the firewall service (/etc/init.d/iptables stop) and try running your NRPE commands again. Regards, Andy ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ricardodelgadoar at yahoo.com.ar Wed Apr 22 20:01:09 2009 From: ricardodelgadoar at yahoo.com.ar (Ricardo Delgado) Date: Wed, 22 Apr 2009 11:01:09 -0700 (PDT) Subject: check_http Message-ID: <740355.37398.qm@web33408.mail.mud.yahoo.com> > > my user is in the windows domain, if i try "mi_domain > > > \rmduser:password", receive the same message. > > check_http auth requires the server to be using > .htaccess > authentication. Is yours using that or NTLM? > > -- > Marc In pc's without autentication check_http works, but in pc's with IIS and security by nt "integrated windows authentication" does'nt work. ----------------------------------- \|||||||/ ( @ @ ) ------oOOo-( )---oOOo-------- | Ricardo Delgado | | | |http://delgado.homelinux.net| | | | | | | | | ---------------0ooo--------- ooo0 ( ) ( ) ) / \ ( (_/ \_) Por Favor, no hagas Top Posting http://es.wikipedia.org/wiki/Top-posting Por Favor, sin formato html http://es.wikipedia.org/wiki/Netiquette Sin formatos propietarios. Yahoo! Cocina Recetas pr?cticas y comida saludable http://ar.mujer.yahoo.com/cocina/ ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 22 20:46:59 2009 From: marc at ena.com (Marc Powell) Date: Wed, 22 Apr 2009 13:46:59 -0500 Subject: check_http In-Reply-To: <740355.37398.qm@web33408.mail.mud.yahoo.com> References: <740355.37398.qm@web33408.mail.mud.yahoo.com> Message-ID: <7C9531D2-91EB-4712-9570-B70E75623CFC@ena.com> On Apr 22, 2009, at 1:01 PM, Ricardo Delgado wrote: > > >>> my user is in the windows domain, if i try "mi_domain >> >>> \rmduser:password", receive the same message. >> >> check_http auth requires the server to be using >> .htaccess >> authentication. Is yours using that or NTLM? >> >> -- >> Marc > > > In pc's without autentication check_http works, but in pc's with IIS > and security by nt "integrated windows authentication" does'nt work. If that's a statement, it's correct. Again, check_http only knows how to speak basic or .htaccess authentication. It does not know how to speak 'integrated windows authentication' otherwise known as NTLM or any other kind of authentication schemes. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Wed Apr 22 21:36:53 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Wed, 22 Apr 2009 15:36:53 -0400 Subject: nagios upgrade Message-ID: <699b436a0904221236j70655656v25a9ef8609b74136@mail.gmail.com> Hi Folks, The previous guy installed nagios using nagios-2.9 RPM and right now i am handling the nagios .The following was the nagios directory structure: configuration file /etc/nagios nagios binary /usr/bin/nagios log files /var/log/nagios externel command directory /var/log/nagios/rw html files /usr/share/nagios cgi files /usr/lib/nagios/cgi plugins /usr/lib/nagios/plugins Now we are going to upgrade the nagios to 3.0.6 so my configure script should be as following right? ./configure --bindir=/usr/bin --sbindir=/usr/lib/nagios/cgi --libexecdir=/usr/lib/nagios/plugins --datadir=/usr/share/nagios --sysconfdir=/etc/nagios --localstatedir=/var/log/nagios --with-command-group=nagiocmd Is the above thing correct ?? . Please suggest guys. Any thing else to be added?? or is this correct. Thank you -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Wed Apr 22 22:49:11 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 22 Apr 2009 21:49:11 +0100 Subject: nagios upgrade In-Reply-To: <699b436a0904221236j70655656v25a9ef8609b74136@mail.gmail.com> References: <699b436a0904221236j70655656v25a9ef8609b74136@mail.gmail.com> Message-ID: <765d77c80904221349j98b3ce3i5dd747993548adcd@mail.gmail.com> 2009/4/22 Anirudh Srinivasan : > Hi Folks, > The previous guy installed nagios using nagios-2.9 RPM and right now i am > handling the nagios .The following was the nagios directory structure: > configuration file ? ? /etc/nagios > nagios binary ? ? ? ? /usr/bin/nagios > log files ? ? ? ? ? ? ? ? /var/log/nagios > externel command directory ? ? ? ? ? /var/log/nagios/rw > html files ? ? ? ? ? ? ? /usr/share/nagios > cgi files ? ? ? ? ? ? ? ? /usr/lib/nagios/cgi > plugins ? ? ? ? ? ? ? ? ?/usr/lib/nagios/plugins > Now we are going to upgrade the nagios to 3.0.6 > > so my configure script should be as following right? > ./configure --bindir=/usr/bin --sbindir=/usr/lib/nagios/cgi > --libexecdir=/usr/lib/nagios/plugins --datadir=/usr/share/nagios > --sysconfdir=/etc/nagios --localstatedir=/var/log/nagios > --with-command-group=nagiocmd > Is the above thing correct ?? . Please suggest guys. Any thing else to be > added?? or is this correct. It might be a little more work now, but my advice is do a standard Nagios 3 install (mostly it goes under /usr/local/nagios) then copy your Nagios 2 configs in to it. Running Nagios in the non-standard locations used in some rpms and other repositiories can make installing various add-ons for Nagios a real head-ache. You may need to be a bit careful about how the Nagios install updates anything which is likely to be common to both, for example the apache configs and /etc/init.d scripts. (take a good backup). When I recently upgraded from 2.6 to 3, I installed 3 on a new server altogether and migrated the monitoring over bit by bit. It took a while, but I wanted to make sure I undid all the mistakes I'd made when I was learning Nagios on 2.6 (yes I had installed from rpms too). hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joe.hartley at retailsolutions.com Wed Apr 22 23:02:23 2009 From: joe.hartley at retailsolutions.com (Joe Hartley) Date: Wed, 22 Apr 2009 14:02:23 -0700 Subject: check_http In-Reply-To: <740355.37398.qm@web33408.mail.mud.yahoo.com> References: <740355.37398.qm@web33408.mail.mud.yahoo.com> Message-ID: <580CB599E684764C84C5CCFA64A929B401D69344@EXVBE011-2.exch011.intermedia.net> You can use Nagios to test authentication against websites using NTLM (such as IIS-hosted sites) using WebInject. http://www.webinject.org/ -- Joe Hartley | Sr. Linux SysAdmin Retail Solutions, Inc. 40 Sharpe Drive Cranston, RI 02920 joe.hartley at retailsolutions.com +1 401.824.5040 (o) | +1 401.824.5002 (f) -----Original Message----- From: Ricardo Delgado [mailto:ricardodelgadoar at yahoo.com.ar] Sent: Wednesday, April 22, 2009 2:01 PM To: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_http > > my user is in the windows domain, if i try "mi_domain > > > \rmduser:password", receive the same message. > > check_http auth requires the server to be using > .htaccess > authentication. Is yours using that or NTLM? > > -- > Marc In pc's without autentication check_http works, but in pc's with IIS and security by nt "integrated windows authentication" does'nt work. ----------------------------------- \|||||||/ ( @ @ ) ------oOOo-( )---oOOo-------- | Ricardo Delgado | | | |http://delgado.homelinux.net| | | | | | | | | ---------------0ooo--------- ooo0 ( ) ( ) ) / \ ( (_/ \_) Por Favor, no hagas Top Posting http://es.wikipedia.org/wiki/Top-posting Por Favor, sin formato html http://es.wikipedia.org/wiki/Netiquette Sin formatos propietarios. Yahoo! Cocina Recetas pr?cticas y comida saludable http://ar.mujer.yahoo.com/cocina/ ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Wed Apr 22 23:29:42 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Wed, 22 Apr 2009 17:29:42 -0400 Subject: nagios upgrade In-Reply-To: <699b436a0904221236j70655656v25a9ef8609b74136@mail.gmail.com> References: <699b436a0904221236j70655656v25a9ef8609b74136@mail.gmail.com> Message-ID: <699b436a0904221429p5afaa15ep53f69c45a7471b35@mail.gmail.com> Hi i have tested this 3 time on my test server and it worked perfectly well for me, meaning first installed with RPM and nagios got stored in non-standard locations, then upgraded the nagios using the above ./configure script. I am just making it sure if anyone has done it in a similar way. Just a final confirmation . Thanks On Wed, Apr 22, 2009 at 3:36 PM, Anirudh Srinivasan wrote: > Hi Folks, > The previous guy installed nagios using nagios-2.9 RPM and right now i am > handling the nagios .The following was the nagios directory structure: > > configuration file /etc/nagios > nagios binary /usr/bin/nagios > log files /var/log/nagios > externel command directory /var/log/nagios/rw > html files /usr/share/nagios > cgi files /usr/lib/nagios/cgi > plugins /usr/lib/nagios/plugins > > Now we are going to upgrade the nagios to 3.0.6 > > so my configure script should be as following right? > > ./configure --bindir=/usr/bin --sbindir=/usr/lib/nagios/cgi > --libexecdir=/usr/lib/nagios/plugins --datadir=/usr/share/nagios > --sysconfdir=/etc/nagios --localstatedir=/var/log/nagios > --with-command-group=nagiocmd > > Is the above thing correct ?? . Please suggest guys. Any thing else to be > added?? or is this correct. > > Thank you > -- > Anirudh Srinivasan > > -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthew.Stier at us.fujitsu.com Thu Apr 23 05:19:19 2009 From: Matthew.Stier at us.fujitsu.com (Matthew Stier) Date: Wed, 22 Apr 2009 23:19:19 -0400 Subject: Looking for a plugin to check print spool queues on Windows 2003 server. Message-ID: <49EFDE37.8040807@us.fujitsu.com> I've adapted a Perl script to do a per-queue check of Solaris print server. I'd like to have the same functionality for my site's Windows 2003 print server. There seems to be a plethora of CPU and DISK plugins, but nothing as simple as checking the status of a printers queue size. (Or that the queue may be stuck. [Same job a the top of the stack after 'X' checks.]) At my site all Sun and Linux workstations print jobs are routed to a single Unix print server, and then to the network attached printers. Dittos for the Windows side. -------------- next part -------------- A non-text attachment was scrubbed... Name: Matthew_Stier.vcf Type: text/x-vcard Size: 323 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amateo at um.es Thu Apr 23 08:18:10 2009 From: amateo at um.es (Angel L. Mateo) Date: Thu, 23 Apr 2009 08:18:10 +0200 Subject: Monitor Postfix with Nagios 3 In-Reply-To: References: Message-ID: <1240467490.21970.3.camel@joshua> El mi?, 22-04-2009 a las 16:21 +0200, Kenneth Holter escribi?: > Hi. > > > I'm using Postfix on a few of our RHEL 5 64-bit servers, and would > like to monitor that this process is running well. I'm using Nagios > 3. > > What is the recommened way of monitoring Postfix? You can use check_smtp plugin to check that your mail server is up and running. It does not properly check that postfix is running, but if you have a right response in port 25, then postfix is running. -- Angel L. Mateo Mart?nez Secci?n de Telem?tica ?rea de Tecnolog?as de la Informaci?n _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Thu Apr 23 09:52:42 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Thu, 23 Apr 2009 08:52:42 +0100 Subject: Looking for a plugin to check print spool queues on Windows 2003 server. In-Reply-To: <49EFDE37.8040807@us.fujitsu.com> References: <49EFDE37.8040807@us.fujitsu.com> Message-ID: <765d77c80904230052q2286b0dbx23c2ba5695335284@mail.gmail.com> 2009/4/23 Matthew Stier : > > I've adapted a Perl script to do a per-queue check of Solaris print server. > I'd like to have the same functionality for my site's Windows 2003 print > server. > > There seems to be a plethora of CPU and DISK plugins, but nothing as simple > as checking the status of a printers queue size. (Or that the queue may be > stuck. [Same job a the top of the stack after 'X' checks.]) > > At my site all Sun and Linux workstations print jobs are routed to a single > Unix print server, and then to the network attached printers. ?Dittos for > the Windows side. There are various performance counters in Windows which you can query using NSClient++, nc_net or whatever. In my nsc.ini (NSClient++) config for example, I have: PrintQJobsSpooling=inject CheckCounter "Counter:jobs=\Print Queue(_Total)\Jobs Spooling" ShowAll MaxWarn=10 MaxCrit=25 PrintQJobs=inject CheckCounter "Counter:jobs=\Print Queue(_Total)\Jobs" ShowAll MaxWarn=250 MaxCrit=500 PrintQNotRdyErrs=inject CheckCounter "Counter:queues=\Print Queue(_Total)\Not Ready Errors" ShowAll MaxWarn=25 MaxCrit=50 Although looking at my graphs, I'm not convinced I've ever seen anything useful from the Print Queue(_Total)\Not Ready Errors counter. hth, Jim ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohandas.k at tcs.com Thu Apr 23 10:24:33 2009 From: mohandas.k at tcs.com (mohandas.k at tcs.com) Date: Thu, 23 Apr 2009 13:54:33 +0530 Subject: Host shows down due to ping block on firewall Message-ID: Hi All, I have started to do monitoring of some hosts which are behind the firewall and PING (ICMP) is block on firewall. so I have exculded ping service in localhosts.cfg file and as well as check-host-alive option also from host template but still Nagios web interface shows host as "DOWN" RED Color in host status web interface. I think this is happening due to PING block on firewall. However ssh and nrpe port are opened on firewall to do monitoring of host resources. other services are showing OK in green color associate to this host. Please let me know how can we enforce nagios to shows that HOST is UP in host status web interface. Mohandas Kudva K Tata Consultancy Services Cell:- +91 9619144048 Mailto: mohandas.k at tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marcin.salata at electrolux.com Thu Apr 23 10:11:37 2009 From: marcin.salata at electrolux.com (Marcin Salata) Date: Thu, 23 Apr 2009 10:11:37 +0200 Subject: scripts in python Message-ID: Hello I wrote script in Python. When I run that script with command: python my_script.py everything is ok. But I don't know how can I run this script in Nagios. Could you help me?? :) Best regards / Pozdrawiam Marcin Salata IT Specialist Electrolux Poland Sp. z o.o ul. K. Odnowiciela 28 58-100 Swidnica +48 74 6400 611 ======================================================================== This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. If you are not the intended recipient: (a) contact the sender and delete all copies, (b) do not read, print, retain, copy or disseminate this message or any part of it. Any such unauthorized use may be unlawful. If the message has been transmitted over public networks it may be corrupt as Internet communication is not secure. ======================================================================== ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jerome.Meyer at baldata.ch Thu Apr 23 10:48:13 2009 From: Jerome.Meyer at baldata.ch (Meyer Jerome) Date: Thu, 23 Apr 2009 10:48:13 +0200 Subject: check_dig Message-ID: <46EEEA5FAED9CA479556002BA9C27FD705BFA8BD@iw50.iwbnet.ch> Hi All This command seems ok at prompt : /usr/local/nagios/libexec/check_dig -H -l www.google.com DNS OK - 0.008 seconds response time (www.google.com. 454915 IN CNAME www.l.google.com.)|time=0.008459s;;;0.000000 But is different in Nagios : Current Status : CRITICAL Status Information : DNS CRITICAL - 0.008 seconds response time (No ANSWER SECTION found) I don't understand where is the problem? As someone any Idea?? Thanks j.m -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marouane.himdi at kereval.com Thu Apr 23 10:43:35 2009 From: marouane.himdi at kereval.com (Marouane HIMDI) Date: Thu, 23 Apr 2009 10:43:35 +0200 Subject: scripts in python In-Reply-To: References: Message-ID: Make your script executable whith (chmod +x your_script.py) And declare a nagios command like this: # 'check_blabla' command definition define command{ command_name check_blabla command_line path_to_python_bin $USER1$/your_script.py $ARG ... } (path_to_python_bin is optional since your script is executable) Best regards Dr Marouane HIMDI Ing?nieur R&D/R&D Engineer KEREVAL 4, rue H?l?ne Boucher Z.A. Bellevue 35235 Thorign? Fouillard Tel : +33 (0)2 23 20 36 64 http://www.kereval.com P Pensez ? l'environnement : n'imprimez ce message et ses pi?ces jointes que si n?cessaire ! -----Message d'origine----- De?: Marcin Salata [mailto:marcin.salata at electrolux.com] Envoy??: jeudi 23 avril 2009 10:12 ??: nagios-users Objet?: [Nagios-users] scripts in python Hello I wrote script in Python. When I run that script with command: python my_script.py everything is ok. But I don't know how can I run this script in Nagios. Could you help me?? :) Best regards / Pozdrawiam Marcin Salata IT Specialist Electrolux Poland Sp. z o.o ul. K. Odnowiciela 28 58-100 Swidnica +48 74 6400 611 ======================================================================== This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. If you are not the intended recipient: (a) contact the sender and delete all copies, (b) do not read, print, retain, copy or disseminate this message or any part of it. Any such unauthorized use may be unlawful. If the message has been transmitted over public networks it may be corrupt as Internet communication is not secure. ======================================================================== ---------------------------------------------------------------------------- -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Thu Apr 23 11:07:06 2009 From: martyn at chetnet.co.uk (Martyn) Date: Thu, 23 Apr 2009 10:07:06 +0100 Subject: only_from = 127.0.0.1 Message-ID: Can anybody tell me how I use domains names instead of IP address in the nrpe file, I have read somewhere that you can use tcp wrappers which I have tried. My nrpe file looks like this: # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE socket_type = stream port = 5666 wait = no user = nagios group = nagios server = /usr/local/nagios/bin/nrpe server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 127.0.0.1 } And my hosts.allow looks like # # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # nrpe: 17.0.0.1 monitor.domain.co.uk But I'm still getting Could not complete SSL handshake, is the above configuration correct or can I not use domain names instead of IP's Thanks Martyn -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Nick.Millen at connaught.plc.uk Thu Apr 23 10:50:08 2009 From: Nick.Millen at connaught.plc.uk (Nick Millen) Date: Thu, 23 Apr 2009 09:50:08 +0100 Subject: Multiple host service detail on one page Message-ID: <344EA4316A303841AF605084EDF294B8F0EB99@EXCHANGE02.connaughtplc.local> Hi All, I was wondering if anybody had anything place to see multiple hosts services on one page. For example I'm monitoring 3 individual exchange servers. I can add these to a hostgroup then check each individually : http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME&style=detail http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME2&style=detail http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME3&style=detail Is there any way to have 3 different host details such as the above but on one page ? So I can have a quick glance of exchange 1, 2 and 3 Thanks in advance, Nick Connaught plc is one of the UK's top 250 companies on the London Stock Exchange and the leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschneemann at suse.de Thu Apr 23 12:05:25 2009 From: cschneemann at suse.de (Christian Schneemann) Date: Thu, 23 Apr 2009 12:05:25 +0200 Subject: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: <200904231205.25368.cschneemann@suse.de> On Thursday April 23 2009 11:07:06 am Martyn wrote: > Can anybody tell me how I use domains names instead of IP address in the > nrpe file, I have read somewhere that you can use tcp wrappers which I have > tried. > > My nrpe file looks like this: > > # default: on > # description: NRPE (Nagios Remote Plugin Executor) > service nrpe > { > flags = REUSE > socket_type = stream > port = 5666 > wait = no > user = nagios > group = nagios > server = /usr/local/nagios/bin/nrpe > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > log_on_failure += USERID > disable = no > only_from = 127.0.0.1 > } > > > And my hosts.allow looks like > > # > # hosts.allow This file describes the names of the hosts which are > # allowed to use the local INET services, as decided > # by the '/usr/sbin/tcpd' server. > # > nrpe: 17.0.0.1 monitor.domain.co.uk > > But I'm still getting Could not complete SSL handshake, is the above > configuration correct or can I not use domain names instead of IP's You have to adjust the "olny_from" line, your hosts.allow allows 17.0.0.1 to connect to nrpe, but xinetd rejects the request, because you just allows connections from 127.0.0.1 (or is there the 2 missing in the hosts.allow line?) you can simply write the domain name to only_from. If you use the hosts.allow you could even exclude the only_from line from the xinetd configuration by setting 3 in front of the line. Greetings, Christian > > Thanks > > Martyn -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 23 12:11:34 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 23 Apr 2009 11:11:34 +0100 Subject: check_dig In-Reply-To: <46EEEA5FAED9CA479556002BA9C27FD705BFA8BD@iw50.iwbnet.ch> References: <46EEEA5FAED9CA479556002BA9C27FD705BFA8BD@iw50.iwbnet.ch> Message-ID: <200904231111.34985.assaf.flatto@ssp-intl.com> Can you provide more details ? Like are you running it locally , or on a remote machine ? What's your service and command definitions are ? On Thursday 23 April 2009 09:48:13 Meyer Jerome wrote: > Hi All > > > > This command seems ok at prompt : > > /usr/local/nagios/libexec/check_dig -H -l www.google.com > > DNS OK - 0.008 seconds response time (www.google.com. 454915 IN CNAME > www.l.google.com.)|time=0.008459s;;;0.000000 > > > > But is different in Nagios : > > Current Status : CRITICAL > > Status Information : DNS CRITICAL - 0.008 seconds response time (No > ANSWER SECTION found) > > > > I don't understand where is the problem? As someone any Idea?? > > > > Thanks > > j.m -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 23 12:22:24 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 23 Apr 2009 11:22:24 +0100 Subject: Host shows down due to ping block on firewall In-Reply-To: References: Message-ID: <200904231122.24833.assaf.flatto@ssp-intl.com> you can use the check_dummy http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2284.html;d=1 On Thursday 23 April 2009 09:24:33 mohandas.k at tcs.com wrote: > Hi All, > > I have started to do monitoring of some hosts which are behind the > firewall and PING (ICMP) is block on firewall. so I have exculded ping > service in localhosts.cfg file and as well as check-host-alive option also > from host template but still Nagios web interface shows host as "DOWN" RED > Color in host status web interface. > > I think this is happening due to PING block on firewall. > > However ssh and nrpe port are opened on firewall to do monitoring of host > resources. other services are showing OK in green color associate to this > host. > > Please let me know how can we enforce nagios to shows that HOST is UP in > host status web interface. > > > > Mohandas Kudva K > Tata Consultancy Services > Cell:- +91 9619144048 > Mailto: mohandas.k at tcs.com > Website: http://www.tcs.com > ____________________________________________ > Experience certainty. IT Services > Business Solutions > Outsourcing > ____________________________________________ > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Thu Apr 23 13:01:41 2009 From: martyn at chetnet.co.uk (Martyn) Date: Thu, 23 Apr 2009 12:01:41 +0100 Subject: only_from = 127.0.0.1 In-Reply-To: <200904231205.25368.cschneemann@suse.de> References: <200904231205.25368.cschneemann@suse.de> Message-ID: I'm not being ignorant but as I complete novice on none windows boxes, how do I put "setting 3" in front of the line Many thanks for your reply Martyn -----Original Message----- From: Christian Schneemann [mailto:cschneemann at suse.de] Sent: 23 April 2009 11:05 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] only_from = 127.0.0.1 On Thursday April 23 2009 11:07:06 am Martyn wrote: > Can anybody tell me how I use domains names instead of IP address in > the nrpe file, I have read somewhere that you can use tcp wrappers > which I have tried. > > My nrpe file looks like this: > > # default: on > # description: NRPE (Nagios Remote Plugin Executor) service nrpe { > flags = REUSE > socket_type = stream > port = 5666 > wait = no > user = nagios > group = nagios > server = /usr/local/nagios/bin/nrpe > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > log_on_failure += USERID > disable = no > only_from = 127.0.0.1 > } > > > And my hosts.allow looks like > > # > # hosts.allow This file describes the names of the hosts which are > # allowed to use the local INET services, as decided > # by the '/usr/sbin/tcpd' server. > # > nrpe: 17.0.0.1 monitor.domain.co.uk > > But I'm still getting Could not complete SSL handshake, is the above > configuration correct or can I not use domain names instead of IP's You have to adjust the "olny_from" line, your hosts.allow allows 17.0.0.1 to connect to nrpe, but xinetd rejects the request, because you just allows connections from 127.0.0.1 (or is there the 2 missing in the hosts.allow line?) you can simply write the domain name to only_from. If you use the hosts.allow you could even exclude the only_from line from the xinetd configuration by setting 3 in front of the line. Greetings, Christian > > Thanks > > Martyn -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ---------------------------------------------------------------------------- -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Thu Apr 23 13:05:43 2009 From: martyn at chetnet.co.uk (Martyn) Date: Thu, 23 Apr 2009 12:05:43 +0100 Subject: only_from = 127.0.0.1 In-Reply-To: <200904231205.25368.cschneemann@suse.de> References: <200904231205.25368.cschneemann@suse.de> Message-ID: I changed the line as suggested but I still get the SSL handshake issue, the "host.domain.co.uk" is made up on here but I have the real one in the live config, again thanks for your time # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE socket_type = stream port = 5666 wait = no user = nagios group = nagios server = /usr/local/nagios/bin/nrpe server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 127.0.0.1 192.168.3.247 host.domain.co.uk } -----Original Message----- From: Christian Schneemann [mailto:cschneemann at suse.de] Sent: 23 April 2009 11:05 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] only_from = 127.0.0.1 On Thursday April 23 2009 11:07:06 am Martyn wrote: > Can anybody tell me how I use domains names instead of IP address in > the nrpe file, I have read somewhere that you can use tcp wrappers > which I have tried. > > My nrpe file looks like this: > > # default: on > # description: NRPE (Nagios Remote Plugin Executor) service nrpe { > flags = REUSE > socket_type = stream > port = 5666 > wait = no > user = nagios > group = nagios > server = /usr/local/nagios/bin/nrpe > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > log_on_failure += USERID > disable = no > only_from = 127.0.0.1 > } > > > And my hosts.allow looks like > > # > # hosts.allow This file describes the names of the hosts which are > # allowed to use the local INET services, as decided > # by the '/usr/sbin/tcpd' server. > # > nrpe: 17.0.0.1 monitor.domain.co.uk > > But I'm still getting Could not complete SSL handshake, is the above > configuration correct or can I not use domain names instead of IP's You have to adjust the "olny_from" line, your hosts.allow allows 17.0.0.1 to connect to nrpe, but xinetd rejects the request, because you just allows connections from 127.0.0.1 (or is there the 2 missing in the hosts.allow line?) you can simply write the domain name to only_from. If you use the hosts.allow you could even exclude the only_from line from the xinetd configuration by setting 3 in front of the line. Greetings, Christian > > Thanks > > Martyn -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ---------------------------------------------------------------------------- -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschneemann at suse.de Thu Apr 23 13:05:55 2009 From: cschneemann at suse.de (Christian Schneemann) Date: Thu, 23 Apr 2009 13:05:55 +0200 Subject: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: <200904231305.55390.cschneemann@suse.de> On Thursday April 23 2009 01:01:41 pm Martyn wrote: > I'm not being ignorant but as I complete novice on none windows boxes, how > do I put "setting 3" in front of the line Sorry, it should be #, no 3 (dumb shift mistake). just comment the line out by putting the # in the front of the line: # only_from = 127.0.0.1 Sorry for that, Christian > > Many thanks for your reply > > Martyn > > -----Original Message----- > From: Christian Schneemann [mailto:cschneemann at suse.de] > Sent: 23 April 2009 11:05 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] only_from = 127.0.0.1 > > On Thursday April 23 2009 11:07:06 am Martyn wrote: > > Can anybody tell me how I use domains names instead of IP address in > > the nrpe file, I have read somewhere that you can use tcp wrappers > > which I have tried. > > > > My nrpe file looks like this: > > > > # default: on > > # description: NRPE (Nagios Remote Plugin Executor) service nrpe { > > flags = REUSE > > socket_type = stream > > port = 5666 > > wait = no > > user = nagios > > group = nagios > > server = /usr/local/nagios/bin/nrpe > > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > > log_on_failure += USERID > > disable = no > > only_from = 127.0.0.1 > > } > > > > > > And my hosts.allow looks like > > > > # > > # hosts.allow This file describes the names of the hosts which are > > # allowed to use the local INET services, as decided > > # by the '/usr/sbin/tcpd' server. > > # > > nrpe: 17.0.0.1 monitor.domain.co.uk > > > > But I'm still getting Could not complete SSL handshake, is the above > > configuration correct or can I not use domain names instead of IP's > > You have to adjust the "olny_from" line, your hosts.allow allows 17.0.0.1 > to connect to nrpe, but xinetd rejects the request, because you just allows > connections from 127.0.0.1 (or is there the 2 missing in the hosts.allow > line?) > > you can simply write the domain name to only_from. > > If you use the hosts.allow you could even exclude the only_from line from > the xinetd configuration by setting 3 in front of the line. > > Greetings, > Christian > > > Thanks > > > > Martyn > > -- > Christian Schneemann > > ------------------------------------- > SUSE LINUX Products GmbH, > Maxfeldstr. 5, D - 90409 N?rnberg > > Phone:??+49 (0)911 - 740 53 0 > e-mail:?cschneemann at suse.de > ------------------------------------- > SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) > > --------------------------------------------------------------------------- >- -- > Stay on top of everything new and different, both inside and around Java > (TM) technology - register by April 22, and save $200 on the JavaOne (SM) > conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Apr 23 13:12:52 2009 From: ae at op5.se (Andreas Ericsson) Date: Thu, 23 Apr 2009 13:12:52 +0200 Subject: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: <49F04D34.9070605@op5.se> Please don't top-post. The only valid reason to do it is to mention something entirely unrelated to the content email you're responding to (such as asking someone to stop top-posting ;-)) Martyn wrote: > I'm not being ignorant but as I complete novice on none windows boxes, how > do I put "setting 3" in front of the line > He meant you should escape the line by adding a hash-char (#) to the beginning of the line containing 'only_from = 127.0.0.1'. I expect his fingers slipped so the shift-key didn't get pressed properly. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Thu Apr 23 13:25:09 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Thu, 23 Apr 2009 12:25:09 +0100 Subject: Host shows down due to ping block on firewall In-Reply-To: References: Message-ID: <200904231225.10071.assaf.flatto@ssp-intl.com> Please reply to the list! Second - check dummy is a nagios plugin , that will enable you do display as if the host is up all the time regardless to ping or actual server status . Look at the standard nagios-plugins for that . On Thursday 23 April 2009 12:15:59 mohandas.k at tcs.com wrote: > Hi, > > I dont think you have understood my requirement. I am running Nagios tool > on Unix box. > > Mohandas Kudva K > ASE > Tata Consultancy Services > Cell:- +91 9619144048 > Mailto: mohandas.k at tcs.com > Website: http://www.tcs.com > ____________________________________________ > Experience certainty. IT Services > Business Solutions > Outsourcing > ____________________________________________ > > > > Assaf Flatto > 04/23/2009 03:52 PM > Please respond to > Assaf Flatto > > > To > nagios-users at lists.sourceforge.net > cc > > Subject > Re: [Nagios-users] Host shows down due to ping block on firewall > > > > > > > you can use the check_dummy > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2284.html;d=1 > > On Thursday 23 April 2009 09:24:33 mohandas.k at tcs.com wrote: > > Hi All, > > > > I have started to do monitoring of some hosts which are behind the > > firewall and PING (ICMP) is block on firewall. so I have exculded ping > > service in localhosts.cfg file and as well as check-host-alive option > > also > > > from host template but still Nagios web interface shows host as "DOWN" > > RED > > > Color in host status web interface. > > > > I think this is happening due to PING block on firewall. > > > > However ssh and nrpe port are opened on firewall to do monitoring of > > host > > > resources. other services are showing OK in green color associate to > > this > > > host. > > > > Please let me know how can we enforce nagios to shows that HOST is UP > > in > > > host status web interface. > > > > > > > > Mohandas Kudva K > > Tata Consultancy Services > > Cell:- +91 9619144048 > > Mailto: mohandas.k at tcs.com > > Website: http://www.tcs.com > > ____________________________________________ > > Experience certainty. IT Services > > Business Solutions > > Outsourcing > > ____________________________________________ > > =====-----=====-----===== > > Notice: The information contained in this e-mail > > message and/or attachments to it may contain > > confidential or privileged information. If you are > > not the intended recipient, any dissemination, use, > > review, distribution, printing or copying of the > > information contained in this e-mail message > > and/or attachments to it are strictly prohibited. If > > you have received this communication in error, > > please notify us by reply e-mail or telephone and > > immediately and permanently delete the message > > and any attachments. Thank you -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Thu Apr 23 13:35:26 2009 From: martyn at chetnet.co.uk (Martyn) Date: Thu, 23 Apr 2009 12:35:26 +0100 Subject: only_from = 127.0.0.1 In-Reply-To: <200904231305.55390.cschneemann@suse.de> References: <200904231305.55390.cschneemann@suse.de> Message-ID: That has now done the trick but I'm a little confused as to why this work under host.allow and not when used in my nrpe file, does anybody have the answer to that? Its on Centos 5.3, I'm going to try Fedora to see if that is the same Thanks for your help Martyn PS what his top posting, once I find out I will stop it -----Original Message----- From: Christian Schneemann [mailto:cschneemann at suse.de] Sent: 23 April 2009 12:06 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] only_from = 127.0.0.1 On Thursday April 23 2009 01:01:41 pm Martyn wrote: > I'm not being ignorant but as I complete novice on none windows boxes, > how do I put "setting 3" in front of the line Sorry, it should be #, no 3 (dumb shift mistake). just comment the line out by putting the # in the front of the line: # only_from = 127.0.0.1 Sorry for that, Christian > > Many thanks for your reply > > Martyn > > -----Original Message----- > From: Christian Schneemann [mailto:cschneemann at suse.de] > Sent: 23 April 2009 11:05 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] only_from = 127.0.0.1 > > On Thursday April 23 2009 11:07:06 am Martyn wrote: > > Can anybody tell me how I use domains names instead of IP address in > > the nrpe file, I have read somewhere that you can use tcp wrappers > > which I have tried. > > > > My nrpe file looks like this: > > > > # default: on > > # description: NRPE (Nagios Remote Plugin Executor) service nrpe { > > flags = REUSE > > socket_type = stream > > port = 5666 > > wait = no > > user = nagios > > group = nagios > > server = /usr/local/nagios/bin/nrpe > > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > > log_on_failure += USERID > > disable = no > > only_from = 127.0.0.1 > > } > > > > > > And my hosts.allow looks like > > > > # > > # hosts.allow This file describes the names of the hosts which are > > # allowed to use the local INET services, as decided > > # by the '/usr/sbin/tcpd' server. > > # > > nrpe: 17.0.0.1 monitor.domain.co.uk > > > > But I'm still getting Could not complete SSL handshake, is the above > > configuration correct or can I not use domain names instead of IP's > > You have to adjust the "olny_from" line, your hosts.allow allows > 17.0.0.1 to connect to nrpe, but xinetd rejects the request, because > you just allows connections from 127.0.0.1 (or is there the 2 missing > in the hosts.allow > line?) > > you can simply write the domain name to only_from. > > If you use the hosts.allow you could even exclude the only_from line > from the xinetd configuration by setting 3 in front of the line. > > Greetings, > Christian > > > Thanks > > > > Martyn > > -- > Christian Schneemann > > ------------------------------------- > SUSE LINUX Products GmbH, > Maxfeldstr. 5, D - 90409 N?rnberg > > Phone:??+49 (0)911 - 740 53 0 > e-mail:?cschneemann at suse.de > ------------------------------------- > SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) > > >----------------------------------------------------------------------- >---- >- -- > Stay on top of everything new and different, both inside and around >Java > (TM) technology - register by April 22, and save $200 on the JavaOne >(SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p >_______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone:??+49 (0)911 - 740 53 0 e-mail:?cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ---------------------------------------------------------------------------- -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 13:47:38 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 06:47:38 -0500 Subject: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: On Apr 23, 2009, at 6:35 AM, Martyn wrote: > That has now done the trick but I'm a little confused as to why this > work > under host.allow and not when used in my nrpe file, does anybody > have the > answer to that? NRPE's allowed_hosts only accepts ip addresses, not domain names. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschneemann at suse.de Thu Apr 23 13:42:53 2009 From: cschneemann at suse.de (Christian Schneemann) Date: Thu, 23 Apr 2009 13:42:53 +0200 Subject: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: <200904231342.53272.cschneemann@suse.de> On Thursday 23 April 2009 13:35:26 Martyn wrote: > That has now done the trick but I'm a little confused as to why this work > under host.allow and not when used in my nrpe file, does anybody have the > answer to that? As I've written in the first mail, hosts.allow is the first instance which looks if the IP is allowed to connect to this service, then xinetd looks at the only_from and compares the IPs. Your only_from contains just 127.0.0.1, thats localhost, nothing else as your server itself is allowed to connect to nrpe. This has nothing to do with nagios/nrpe, please read about networking, xinetd, and linux in generall if you are not familiar with it. Greetings > > Its on Centos 5.3, I'm going to try Fedora to see if that is the same > > Thanks for your help > > Martyn > > PS what his top posting, once I find out I will stop it > > -----Original Message----- > From: Christian Schneemann [mailto:cschneemann at suse.de] > Sent: 23 April 2009 12:06 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] only_from = 127.0.0.1 > > On Thursday April 23 2009 01:01:41 pm Martyn wrote: > > I'm not being ignorant but as I complete novice on none windows boxes, > > how do I put "setting 3" in front of the line > > Sorry, it should be #, no 3 (dumb shift mistake). > > just comment the line out by putting the # in the front of the line: > # only_from = 127.0.0.1 > > > Sorry for that, > Christian > > > Many thanks for your reply > > > > Martyn > > > > -----Original Message----- > > From: Christian Schneemann [mailto:cschneemann at suse.de] > > Sent: 23 April 2009 11:05 > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] only_from = 127.0.0.1 > > > > On Thursday April 23 2009 11:07:06 am Martyn wrote: > > > Can anybody tell me how I use domains names instead of IP address in > > > the nrpe file, I have read somewhere that you can use tcp wrappers > > > which I have tried. > > > > > > My nrpe file looks like this: > > > > > > # default: on > > > # description: NRPE (Nagios Remote Plugin Executor) service nrpe { > > > flags = REUSE > > > socket_type = stream > > > port = 5666 > > > wait = no > > > user = nagios > > > group = nagios > > > server = /usr/local/nagios/bin/nrpe > > > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > > > log_on_failure += USERID > > > disable = no > > > only_from = 127.0.0.1 > > > } > > > > > > > > > And my hosts.allow looks like > > > > > > # > > > # hosts.allow This file describes the names of the hosts which are > > > # allowed to use the local INET services, as decided > > > # by the '/usr/sbin/tcpd' server. > > > # > > > nrpe: 17.0.0.1 monitor.domain.co.uk > > > > > > But I'm still getting Could not complete SSL handshake, is the above > > > configuration correct or can I not use domain names instead of IP's > > > > You have to adjust the "olny_from" line, your hosts.allow allows > > 17.0.0.1 to connect to nrpe, but xinetd rejects the request, because > > you just allows connections from 127.0.0.1 (or is there the 2 missing > > in the hosts.allow > > line?) > > > > you can simply write the domain name to only_from. > > > > If you use the hosts.allow you could even exclude the only_from line > > from the xinetd configuration by setting 3 in front of the line. > > > > Greetings, > > Christian > > > > > Thanks > > > > > > Martyn > > > > -- > > Christian Schneemann > > > > ------------------------------------- > > SUSE LINUX Products GmbH, > > Maxfeldstr. 5, D - 90409 N?rnberg > > > > Phone:??+49 (0)911 - 740 53 0 > > e-mail:?cschneemann at suse.de > > ------------------------------------- > > SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) > > > > > >----------------------------------------------------------------------- > >---- > >- -- > > Stay on top of everything new and different, both inside and around > >Java > > (TM) technology - register by April 22, and save $200 on the JavaOne > >(SM) conference, June 2-5, 2009, San Francisco. > > 300 plus technical and hands-on sessions. Register today. > > Use priority code J9JMT32. http://p.sf.net/sfu/p > >_______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > ::: reporting > > > > any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null > > -- > Christian Schneemann > > ------------------------------------- > SUSE LINUX Products GmbH, > Maxfeldstr. 5, D - 90409 N?rnberg > > Phone:??+49 (0)911 - 740 53 0 > e-mail:?cschneemann at suse.de > ------------------------------------- > SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) > > --------------------------------------------------------------------------- >- -- > Stay on top of everything new and different, both inside and around Java > (TM) technology - register by April 22, and save $200 on the JavaOne (SM) > conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null -- ---------------------------------------- SUSE Linux Products GmbH Maxfeldstr. 5, D - 90409 N?rnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneemann at suse.de ---------------------------------------- SUSE Linux Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 13:50:47 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 06:50:47 -0500 Subject: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: <0AE76215-DE31-493C-BDF1-9F1B9D1B209D@ena.com> On Apr 23, 2009, at 6:35 AM, Martyn wrote: > PS what his top posting, once I find out I will stop it http://en.wikipedia.org/wiki/Posting_style, specifically http://en.wikipedia.org/wiki/Posting_style#Top-posting -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Thu Apr 23 14:04:36 2009 From: martyn at chetnet.co.uk (Martyn) Date: Thu, 23 Apr 2009 13:04:36 +0100 Subject: only_from = 127.0.0.1 In-Reply-To: <0AE76215-DE31-493C-BDF1-9F1B9D1B209D@ena.com> References: <0AE76215-DE31-493C-BDF1-9F1B9D1B209D@ena.com> Message-ID: On Apr 23, 2009, at 6:35 AM, Martyn wrote: > PS what his top posting, once I find out I will stop it http://en.wikipedia.org/wiki/Posting_style, specifically http://en.wikipedia.org/wiki/Posting_style#Top-posting -- Marc ---------------------------------------------------------------------------- -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Apologies, Outlooks default. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschneemann at suse.de Thu Apr 23 14:03:30 2009 From: cschneemann at suse.de (Christian Schneemann) Date: Thu, 23 Apr 2009 14:03:30 +0200 Subject: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: <200904231403.30170.cschneemann@suse.de> On Thursday 23 April 2009 13:47:38 Marc Powell wrote: > On Apr 23, 2009, at 6:35 AM, Martyn wrote: > > That has now done the trick but I'm a little confused as to why this > > work > > under host.allow and not when used in my nrpe file, does anybody > > have the > > answer to that? > > NRPE's allowed_hosts only accepts ip addresses, not domain names. That's not correct, domain names work here too. Christian > > -- > Marc > > > --------------------------------------------------------------------------- >--- Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- ---------------------------------------- SUSE Linux Products GmbH Maxfeldstr. 5, D - 90409 N?rnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneemann at suse.de ---------------------------------------- SUSE Linux Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kenneho.ndu at gmail.com Thu Apr 23 14:04:08 2009 From: kenneho.ndu at gmail.com (Kenneth Holter) Date: Thu, 23 Apr 2009 14:04:08 +0200 Subject: Monitor Postfix with Nagios 3 In-Reply-To: <1240467490.21970.3.camel@joshua> References: <1240467490.21970.3.camel@joshua> Message-ID: Thanks, this worked like a charm. :) On 4/23/09, Angel L. Mateo wrote: > > El mi?, 22-04-2009 a las 16:21 +0200, Kenneth Holter escribi?: > > Hi. > > > > > > I'm using Postfix on a few of our RHEL 5 64-bit servers, and would > > like to monitor that this process is running well. I'm using Nagios > > 3. > > > > What is the recommened way of monitoring Postfix? > > You can use check_smtp plugin to check that your mail server is up > and > running. It does not properly check that postfix is running, but if you > have a right response in port 25, then postfix is running. > > -- > Angel L. Mateo Mart?nez > Secci?n de Telem?tica > ?rea de Tecnolog?as de la Informaci?n _o) > y las Comunicaciones Aplicadas (ATICA) / \\ > http://www.um.es/atica _(___V > Tfo: 968367590 > Fax: 968398337 > > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jerome.Meyer at baldata.ch Thu Apr 23 14:06:21 2009 From: Jerome.Meyer at baldata.ch (Meyer Jerome) Date: Thu, 23 Apr 2009 14:06:21 +0200 Subject: check_dig In-Reply-To: <200904231111.34985.assaf.flatto@ssp-intl.com> References: <46EEEA5FAED9CA479556002BA9C27FD705BFA8BD@iw50.iwbnet.ch> <200904231111.34985.assaf.flatto@ssp-intl.com> Message-ID: <46EEEA5FAED9CA479556002BA9C27FD705BFA9C3@iw50.iwbnet.ch> Ok,this commands run for a remote linux machine! Here're config's files : # checkcommands.cfg # ================= define command{ command_name check_dig command_line $USER1$/check_dig -H $HOSTADDRESS$ -l $ARGS$ } # servicegroups.cfg # ================= define servicegroup{ servicegroup_name Dig alias dig members ns1, Dig } # ns1.cfg # ================= define host{ host_name ns1 address check_command check-host-alive max_check_attempts 3 check_period 24x7 contact_groups localadmins notification_interval 60 notification_period 24x7 notification_options d,u,r,f,s } # services.cfg # ================= define service{ service_description Dig host_name ns1 #hostgroup_name Linux-servers display_name DNS-Dig check_command check_dig!www.google.com max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r,f,s contact_groups localadmins } That's it...! > -----Urspr?ngliche Nachricht----- > Von: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] > Gesendet: Donnerstag, 23. April 2009 12:12 > An: nagios-users at lists.sourceforge.net > Betreff: Re: [Nagios-users] check_dig > > Can you provide more details ? > > Like are you running it locally , or on a remote machine ? > What's your service and command definitions are ? > > On Thursday 23 April 2009 09:48:13 Meyer Jerome wrote: > > Hi All > > > > > > > > This command seems ok at prompt : > > > > /usr/local/nagios/libexec/check_dig -H -l www.google.com > > > > DNS OK - 0.008 seconds response time (www.google.com. 454915 IN CNAME > > www.l.google.com.)|time=0.008459s;;;0.000000 > > > > > > > > But is different in Nagios : > > > > Current Status : CRITICAL > > > > Status Information : DNS CRITICAL - 0.008 seconds response time (No > > ANSWER SECTION found) > > > > > > > > I don't understand where is the problem? As someone any Idea?? > > > > > > > > Thanks > > > > j.m > > > > -- > Assaf Flatto > SSP Ops Team > Linux System Administrator > 169 Euston Road, London, NW1 2AE > > > > > > IMPORTANT . this email and the information in it may be confidential, legally > privileged and/or protected by law. It is intended solely for the use of the > person to whom it is addressed. If you are not the intended recipient, please > notify the sender immediately and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in any > medium. > Please also delete all copies of this email and any attachments from your > system. > > We cannot guarantee the security or confidentiality of email communications. > We > do not accept any liability for losses or damages that you may suffer as a > result of your receipt of this email including but not limited to computer > service or system failure, access delays or interruption, data non-delivery > or > mis-delivery, computer viruses or other harmful components. > > Copyright in this email and any attachments belong to Select Service Partner > UK > Limited. Should you communicate with anyone at Select Service Partner UK > Limited by > email, you consent to us monitoring and reading any such correspondence. > > Nothing in this email shall be taken or read as suggesting, proposing or > relating to any agreement concerted practice or other practice that could > infringe UK or EC competition legislation. > > Select Service Partner UK Limited is a company registered in England and > Wales > (company number 05687183) whose registered office is at 1 The Heights, > Brooklands, Weybridge. Surrey. KT13 0NY > > > > ----------------------------------------------------------------------------- > - > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 14:24:39 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 07:24:39 -0500 Subject: only_from = 127.0.0.1 In-Reply-To: <200904231403.30170.cschneemann@suse.de> References: <200904231403.30170.cschneemann@suse.de> Message-ID: On Apr 23, 2009, at 7:03 AM, Christian Schneemann wrote: >> NRPE's allowed_hosts only accepts ip addresses, not domain names. > That's not correct, domain names work here too. I stand corrected. I could swear I looked at the code for that just a few weeks ago but I'm wrong. -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Thu Apr 23 14:39:29 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 23 Apr 2009 07:39:29 -0500 Subject: Host shows down due to ping block on firewall In-Reply-To: References: Message-ID: You can also use check_ssh as your check_command argument in your hosts file. James Moseley wrote: Hi All, I have started to do monitoring of some hosts which are behind the firewall and PING (ICMP) is block on firewall. so I have exculded ping service in localhosts.cfg file and as well as check-host-alive option also from host template but still Nagios web interface shows host as "DOWN" RED Color in host status web interface. I think this is happening due to PING block on firewall. However ssh and nrpe port are opened on firewall to do monitoring of host resources. other services are showing OK in green color associate to this host. Please let me know how can we enforce nagios to shows that HOST is UP in host status web interface. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frank.bourdeau at dga.defense.gouv.fr Thu Apr 23 15:27:32 2009 From: frank.bourdeau at dga.defense.gouv.fr (frank.bourdeau at dga.defense.gouv.fr) Date: Thu, 23 Apr 2009 15:27:32 +0200 Subject: RE [spam?] Re: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: Hi, SSL is installed ? Try check_nrpe -n -H @ip to test without ssl Cheers [ENVOYE PAR INTERNET] "Martyn" 23/04/2009 13:05 A "'Christian Schneemann'" , cc Objet [spam?] Re: [Nagios-users] only_from = 127.0.0.1 I changed the line as suggested but I still get the SSL handshake issue, the "host.domain.co.uk" is made up on here but I have the real one in the live config, again thanks for your time # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE socket_type = stream port = 5666 wait = no user = nagios group = nagios server = /usr/local/nagios/bin/nrpe server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 127.0.0.1 192.168.3.247 host.domain.co.uk } -----Original Message----- From: Christian Schneemann [mailto:cschneemann at suse.de] Sent: 23 April 2009 11:05 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] only_from = 127.0.0.1 On Thursday April 23 2009 11:07:06 am Martyn wrote: > Can anybody tell me how I use domains names instead of IP address in > the nrpe file, I have read somewhere that you can use tcp wrappers > which I have tried. > > My nrpe file looks like this: > > # default: on > # description: NRPE (Nagios Remote Plugin Executor) service nrpe { > flags = REUSE > socket_type = stream > port = 5666 > wait = no > user = nagios > group = nagios > server = /usr/local/nagios/bin/nrpe > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > log_on_failure += USERID > disable = no > only_from = 127.0.0.1 > } > > > And my hosts.allow looks like > > # > # hosts.allow This file describes the names of the hosts which are > # allowed to use the local INET services, as decided > # by the '/usr/sbin/tcpd' server. > # > nrpe: 17.0.0.1 monitor.domain.co.uk > > But I'm still getting Could not complete SSL handshake, is the above > configuration correct or can I not use domain names instead of IP's You have to adjust the "olny_from" line, your hosts.allow allows 17.0.0.1 to connect to nrpe, but xinetd rejects the request, because you just allows connections from 127.0.0.1 (or is there the 2 missing in the hosts.allow line?) you can simply write the domain name to only_from. If you use the hosts.allow you could even exclude the only_from line from the xinetd configuration by setting 3 in front of the line. Greetings, Christian > > Thanks > > Martyn -- Christian Schneemann ------------------------------------- SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 N?rnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneemann at suse.de ------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG N?rnberg) ---------------------------------------------------------------------------- -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From craig at hooters-uk.com Thu Apr 23 15:28:47 2009 From: craig at hooters-uk.com (craig at hooters-uk.com) Date: Thu, 23 Apr 2009 14:28:47 +0100 Subject: NLG but first.. Message-ID: <456ad09d77564429903f7b720c452639.craig@hooters-uk.com> Hi group, I'm a new user here so first of all I would like to thank you for providing this group for us all to ask questions and hopefully down the line reply to them too, I would also like to say what a phernominal tool Nagios is, I can not beleive how powerful it is and its free to boot; amazing. OK on with my first question. i'm up and running in 15 minutes as suggested (no bull), I have host being monitored along with a number of servers too, my alerts are set up and its just sitting there happy as Larry, What I'm after doing is separating users out along with their Server, I want user A to be able to see Hosts A but not allow User B to ba able to see Hosts A. I have heard that Nagios Looking Glass is the way to go but as the site is down I can not gather any information from there, I beleive from various posts that it users filter but I'm not sure if these filters are what I need, does anybody know if NGL is the add-on I need and that the filters will work for me or is there a different solution out there that I could use. Thanks again for this group being here Craig ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Thu Apr 23 15:54:44 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Thu, 23 Apr 2009 14:54:44 +0100 Subject: Firewall Rules Message-ID: Dear all, I've got my Nagios server up and running, and for some reason, I cannot get the two servers, NagiosHQ, and RemoteServer, to talk to each other. Each of the boxes have very OTT firewalls, basically, everything is denied, except expected traffic. I was wondering, if someone can show me the minimum required firewall rules I should have on my server and also clients. Thank you --- Kind Regards, Mr Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 16:18:00 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 09:18:00 -0500 Subject: NLG but first.. In-Reply-To: <456ad09d77564429903f7b720c452639.craig@hooters-uk.com> References: <456ad09d77564429903f7b720c452639.craig@hooters-uk.com> Message-ID: <06FE062B-0B26-413E-85DE-AB7AD49DF094@ena.com> On Apr 23, 2009, at 8:28 AM, craig at hooters-uk.com wrote: > OK on with my first question. i'm up and running in 15 minutes as > suggested (no bull), I have > host being monitored along with a number of servers too, my alerts > are set up and its just sitting > there happy as Larry, What I'm after doing is separating users out > along with their Server, I want > user A to be able to see Hosts A but not allow User B to ba able to > see Hosts A. Nagios will do this itself if you configure Authorization/ Authentication for the CGI's. Users will only be able to see and act on hosts and services that they are contacts for. http://nagios.sourceforge.net/docs/3_0/cgiauth.html You can further restrict access by specifying whether a contact can submit commands to act on a host (reschedule checks, disable notifications and the like). http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#contact -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 16:19:08 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 09:19:08 -0500 Subject: NLG but first.. In-Reply-To: <456ad09d77564429903f7b720c452639.craig@hooters-uk.com> References: <456ad09d77564429903f7b720c452639.craig@hooters-uk.com> Message-ID: <84D09C6A-7E3C-4855-B1E6-EA46BBFBE2F9@ena.com> On Apr 23, 2009, at 8:28 AM, craig at hooters-uk.com wrote: > Hi group, I'm a new user here so first of all I would like to thank > you for providing this group > for us all to ask questions and hopefully down the line reply to > them too, I would also like to > say what a phernominal tool Nagios is, I can not beleive how > powerful it is and its free to boot; > amazing. Welcome. Sorry for not saying it previously. =) -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Thu Apr 23 16:21:24 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 23 Apr 2009 09:21:24 -0500 Subject: Firewall Rules In-Reply-To: References: Message-ID: It would seem obvious, but there are no minimum required firewall rules. You simply need to open a firewall hole for the remote server for every service you plan to monitor by the HQ machine. If you are monitoring the remote host via ICMP and SNMP, then you need to open up those two holes on the remote firewall. If you are using NRPE on the remote host, you'll need to open that as well, etc, etc. By default, most folks monitor their host-alive states using check_ping (ICMP), so at a minimum you'll need to open up ICMP on the remote to allow the HQ box to ping those hosts. This assumes that all outbound traffic is allowed from each host and that your HQ box is behind a firewall that performs stateful inspection (which is helpful for things like DNS, etc) James Moseley "Gabriel - IP Guys" wrote: Dear all, I?ve got my Nagios server up and running, and for some reason, I cannot get the two servers, NagiosHQ, and RemoteServer, to talk to each other. Each of the boxes have very OTT firewalls, basically, everything is denied, except expected traffic. I was wondering, if someone can show me the minimum required firewall rules I should have on my server and also clients. Thank you --- Kind Regards, Mr Gabriel ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 16:22:27 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 09:22:27 -0500 Subject: Firewall Rules In-Reply-To: References: Message-ID: On Apr 23, 2009, at 8:54 AM, Gabriel - IP Guys wrote: > Dear all, > > I?ve got my Nagios server up and running, and for some reason, I > cannot get the two servers, NagiosHQ, and RemoteServer, to talk to > each other. > > Each of the boxes have very OTT firewalls, basically, everything is > denied, except expected traffic. I was wondering, if someone can > show me the minimum required firewall rules I should have on my > server and also clients. Thank you A minimal rule would be 'permit ip any any'. Seriously, the answer to your question entirely depends on how you're trying to get the two servers to 'talk' to each other. Much more detail there will get you a better answer. We could guess all day but that would just be throwing away time... -- Marc ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From treibholz at sozial-inkompetent.de Thu Apr 23 16:56:06 2009 From: treibholz at sozial-inkompetent.de (Klaus Umbach) Date: Thu, 23 Apr 2009 16:56:06 +0200 Subject: Multiple host service detail on one page In-Reply-To: <344EA4316A303841AF605084EDF294B8F0EB99@EXCHANGE02.connaughtplc.local> References: <344EA4316A303841AF605084EDF294B8F0EB99@EXCHANGE02.connaughtplc.local> Message-ID: <20090423145606.GA5626@umbach-racing.de> On 23/04/09 09:50, Nick Millen wrote: > Hi All, > > I was wondering if anybody had anything place to see multiple hosts > services on one page. For example I'm monitoring 3 individual exchange > servers. I can add these to a hostgroup then check each individually : > > http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME&style=detail > > http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME2&style=detail > > http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME3&style=detail > > Is there any way to have 3 different host details such as the above but > on one page ? So I can have a quick glance of exchange 1, 2 and 3 yes, put them in a group : http://SERVER/nagios/cgi-bin/status.cgi?hostgroup=EXCHANGESERVERS&style=detail -- BOFH excuse #169: broadcast packets on wrong frequency ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From islandjewel at gmail.com Thu Apr 23 18:46:03 2009 From: islandjewel at gmail.com (Julie) Date: Thu, 23 Apr 2009 11:46:03 -0500 Subject: time won't change Message-ID: <9adfbf0904230946s1edf9b8cg9b447805197e04e6@mail.gmail.com> When I upgraded from 3.0.6 to 3.1 the timezone reset to EDT. No idea how. The server is correct. All the other apps report the correct CDT timezone. I even tried setting the timezone in the nagios file (although I WANT it in CDT< so why should I have to?) I am confused - why would the timezone jump? Where else should I be looking? It is not about what it displays - well it is - but the entire server is in central, so why isn't Nagios????? thanks J -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From craig at hooters-uk.com Thu Apr 23 19:18:29 2009 From: craig at hooters-uk.com (craig at hooters-uk.com) Date: Thu, 23 Apr 2009 18:18:29 +0100 Subject: NLG but first.. Message-ID: <15664849f31440bc9c3d6d2a3ef86a4d.craig@hooters-uk.com> ------- Original Message ------- >From : Marc Powell[mailto:marc at ena.com] Sent : 23/04/2009 15:19:08 To : nagios-users at lists.sourceforge.net Cc : Subject : RE: Re: [Nagios-users] NLG but first.. On Apr 23, 2009, at 8:28 AM, craig at hooters-uk.com wrote: > Hi group, I'm a new user here so first of all I would like to thank > you for providing this group > for us all to ask questions and hopefully down the line reply to > them too, I would also like to > say what a phernominal tool Nagios is, I can not beleive how > powerful it is and its free to boot; > amazing. Welcome. Sorry for not saying it previously. =) -- Marc -------- Thanks for the reply and for the welcome.. I like the look and feel of NLG 110, the more I look at it the more I like it, I have mailed Andy asking for help on the filters as their was no documentation with this verion, however with his site being down I don't hold out much hope of his return mail. Has anybody in this group got the filters working at all. Thanks Just wondering as I type this, how many subscribers are in this group? Craig ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Thu Apr 23 19:23:11 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 23 Apr 2009 10:23:11 -0700 Subject: Multiple host service detail on one page In-Reply-To: <20090423145606.GA5626@umbach-racing.de> References: <344EA4316A303841AF605084EDF294B8F0EB99@EXCHANGE02.connaughtplc.local> Message-ID: <49F0A3FF.9060003@kkeane.com> Klaus Umbach wrote: > On 23/04/09 09:50, Nick Millen wrote: > >> Hi All, >> >> I was wondering if anybody had anything place to see multiple hosts >> services on one page. For example I'm monitoring 3 individual exchange >> servers. I can add these to a hostgroup then check each individually : >> >> http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME&style=detail >> >> http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME2&style=detail >> >> http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME3&style=detail >> >> Is there any way to have 3 different host details such as the above but >> on one page ? So I can have a quick glance of exchange 1, 2 and 3 >> > > yes, put them in a group : > > http://SERVER/nagios/cgi-bin/status.cgi?hostgroup=EXCHANGESERVERS&style=detail > I don't know about Nick's needs, but I would be interested in something extremely similar. However, hostgroups wouldn't do it for me because I am not really interest in the host status, but rather would like to see just one status per host. For instance, to borrow Nick's example: HOSTNAME1, HOSTNAME2 and HOSTNAME3 may each have services MEMORY, CPU, EXCHANGEQUEUELENGTH. What I would be interested in is a page that shows only EXCHANGEQUEUELENGTH for all three hosts, omitting MEMORY and CPU. Is this possible? -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Thu Apr 23 19:53:41 2009 From: subscription at kkeane.com (Kevin Keane) Date: Thu, 23 Apr 2009 10:53:41 -0700 Subject: only_from = 127.0.0.1 In-Reply-To: References: Message-ID: <49F0AB25.4090503@kkeane.com> Top-posting means that you put what you have to say at the top of the reply the way I do it here. Bottom-posting means that you put your reply below the original message. Which of the two styles is preferred is largely a matter of personal taste, rather than right or wrong, actually*. Both have advantages, and some people tend to get very passionate about their particular style. I have seen moderators on both sides of the issue admonish members "don't top-post" or "don't bottom-post". In the original Internet culture, bottom-posting was preferred, and some people still like it better. Bottom posting makes most sense when you combine multiple thoughts in a single post, and want to be able to respond to each one individually. In my mind, most of the time top posting actually is better because the reply stands out more than the original question - which usually is what you want. The majority of mailing lists that I am on seems to have switched to primarily top-posting, though, and most of the big email programs make it quite difficult to do bottom-posting. When you hit Reply, the cursor is usually positioned at the top of the page, not at the bottom. My personal rule: if there already is a longer thread, stick with whatever style it has. The one thing you don't want to happen is having to look for the next reply because somebody switched style in the middle. If there is no pattern to follow (such as in this case), and I only want to respond to a post as a whole rather than individual points, I use top posting. * technically speaking, there is a still-valid RFC that specifies bottom-posting, but in practical terms it has been obsoleted by history. Martyn wrote: > PS what his top posting, once I find out I will stop it > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Thu Apr 23 20:07:11 2009 From: jpratt at norwich.edu (James Pratt) Date: Thu, 23 Apr 2009 14:07:11 -0400 Subject: Multiple host service detail on one page In-Reply-To: <49F0A3FF.9060003@kkeane.com> References: <20090423145606.GA5626@umbach-racing.de> <49F0A3FF.9060003@kkeane.com> Message-ID: <8147CCE3C4A8764DA9980125EE70E823BB0153@nuexchg.norwich.edu> > -----Original Message----- > From: Kevin Keane [mailto:subscription at kkeane.com] > Sent: Thursday, April 23, 2009 1:23 PM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Multiple host service detail on one page > > Klaus Umbach wrote: > > On 23/04/09 09:50, Nick Millen wrote: > > > >> Hi All, > >> > >> I was wondering if anybody had anything place to see multiple hosts > >> services on one page. For example I'm monitoring 3 individual exchange > >> servers. I can add these to a hostgroup then check each individually : > >> > >> http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME&style=detail > >> > >> http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME2&style=detail > >> > >> http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME3&style=detail > >> > >> Is there any way to have 3 different host details such as the above but > >> on one page ? So I can have a quick glance of exchange 1, 2 and 3 > >> > > > > yes, put them in a group : > > > > http://SERVER/nagios/cgi- > bin/status.cgi?hostgroup=EXCHANGESERVERS&style=detail > > > I don't know about Nick's needs, but I would be interested in something > extremely similar. However, hostgroups wouldn't do it for me because I > am not really interest in the host status, but rather would like to see > just one status per host. For instance, to borrow Nick's example: > > HOSTNAME1, HOSTNAME2 and HOSTNAME3 may each have services MEMORY, CPU, > EXCHANGEQUEUELENGTH. What I would be interested in is a page that shows > only EXCHANGEQUEUELENGTH for all three hosts, omitting MEMORY and CPU. > > Is this possible? > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think > About > > Office: 866-642-7116 > http://www.4nettech.com How about servicegroups? http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#servicegro up hth, jamie ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adam.mooz at gmail.com Thu Apr 23 20:27:16 2009 From: adam.mooz at gmail.com (Adam Mooz) Date: Thu, 23 Apr 2009 14:27:16 -0400 Subject: Permissions problem Message-ID: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> Hello List, I'm using Nagios and NRPE to monitor some system logs on a remote system via check_logfiles. Here's the setup: -user 'nagio's is part of the 'adm' group -/var/log/syslog is readable by the 'adm' group -manually executing check_logfiles as nagios (sudo -u nagios ./ check_logfiles ) works -executing remotely via NRPE fails -NRPE is being started via xinetd and running as 'nagios' changing syslog to be world readable fixes the problem, however it does just that; leaves the syslog file world readable. This behavior is being repeated for several other log files as well (mysql, apache) where despite nagios being part of the appropriate groups still not remotely readable. This is clearly a problem of something running as a different user. Ideas? ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Thu Apr 23 20:26:44 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Thu, 23 Apr 2009 14:26:44 -0400 Subject: Power monitoring for PDU Message-ID: <6db4a4200904231126ldb761c9rffa8c02738d3a025@mail.gmail.com> All, we are trying to monitor PDUs for a green data center. Can someone lists what should I be monitoring for PDUs. Thanks -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tomw at bnl.gov Thu Apr 23 20:28:42 2009 From: tomw at bnl.gov (Tom Wlodek) Date: Thu, 23 Apr 2009 14:28:42 -0400 Subject: scripts in python In-Reply-To: References: Message-ID: <1240511322.5013.256.camel@localhost.localdomain> Can you be more specific about what you are doing? First, you have to define a host. Then define a service which runs on this host. Then define command which is used to check if the host is up. Then define command which is used to test the service. Then restart nagios. Your statement "my script does not work in Nagios" is so general that it is impossible to tell what is wrong. Tom On Thu, 2009-04-23 at 10:11 +0200, Marcin Salata wrote: > Hello > > I wrote script in Python. When I run that script with command: python > my_script.py everything is ok. But I don't know how can I run this script > in Nagios. Could you help me?? :) > > Best regards / Pozdrawiam > > Marcin Salata > IT Specialist > > Electrolux Poland Sp. z o.o > ul. K. Odnowiciela 28 > 58-100 Swidnica > > +48 74 6400 611 > > ======================================================================== > > This email may contain material that is confidential, privileged and/or > attorney work product for the sole use of the intended recipient. If you > are not the intended recipient: > (a) contact the sender and delete all copies, > (b) do not read, print, retain, copy or disseminate this message or any > part of it. Any such unauthorized use may be unlawful. > > If the message has been transmitted over public networks it may be corrupt > as Internet communication is not secure. > > ======================================================================== > > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 20:40:13 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 13:40:13 -0500 Subject: only_from = 127.0.0.1 In-Reply-To: <49F0AB25.4090503@kkeane.com> References: <49F0AB25.4090503@kkeane.com> Message-ID: <88995976-37CE-4D1E-AD95-0C1DEC272A5B@ena.com> On Apr 23, 2009, at 12:53 PM, Kevin Keane wrote: > Top-posting means that you put what you have to say at the top of the > reply the way I do it here. Bottom-posting means that you put your > reply > below the original message. Don't forget about the best method, inline reply. > In the original Internet culture, bottom-posting was preferred, and > some Actually, no. inline replying was and still is preferred for technical mailling lists. I'd hazard to say that's true the technical users on this list as well. The day you subscribe to a list via digest mode, you'll fully understand why. ;) > In my mind, most of the time top posting actually is better because > the reply stands out more than the > original question - which usually is what you want. Not if you want to make multiple points without entirely restating what you're replying to. Try to make my responses sensible in a top or bottom posting context without doing that. > The majority of mailing lists that I am on seems to have switched to > primarily top-posting, fooey. heh > though, and most of the big email programs make > it quite difficult to do bottom-posting. When you hit Reply, the > cursor > is usually positioned at the top of the page, not at the bottom. Double fooey. It's laziness. Not configuring the client to do it or get as close as possible and not using the highlight-delete combo :P I used Outlook for years, arguably the initiator of the top-posting epidemic, and had no problems responding in text/plain and inline. > My personal rule: if there already is a longer thread, stick with > whatever style it has. That's great! If it's a top or bottom post, you're increasing the redundancy of what's stored/sent in everyone's mail client, in the archives and most terribly, in the digests. by the number of replies to that thread. Brilliant . My personal rule is to use the style of the person who appears to be most able to answer whatever question I have ;) That's almost always inline as hackers see top/bottom posting as a waste of space/bandwidth/time. > * technically speaking, there is a still-valid RFC that specifies > bottom-posting, but in practical terms it has been obsoleted by > history. That's arguable, but could approach the passion level of a discussion of religion. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Thu Apr 23 20:42:15 2009 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Thu, 23 Apr 2009 14:42:15 -0400 Subject: Multiple host service detail on one page In-Reply-To: <49F0A3FF.9060003@kkeane.com> References: <344EA4316A303841AF605084EDF294B8F0EB99@EXCHANGE02.connaughtplc.local> <49F0A3FF.9060003@kkeane.com> Message-ID: <49F0B687.3000301@collaborativefusion.com> Kevin Keane wrote: > I don't know about Nick's needs, but I would be interested in something > extremely similar. However, hostgroups wouldn't do it for me because I > am not really interest in the host status, but rather would like to see > just one status per host. For instance, to borrow Nick's example: > > HOSTNAME1, HOSTNAME2 and HOSTNAME3 may each have services MEMORY, CPU, > EXCHANGEQUEUELENGTH. What I would be interested in is a page that shows > only EXCHANGEQUEUELENGTH for all three hosts, omitting MEMORY and CPU. > > Is this possible? Yep. If you're OK not being able to kick off individual checks for memory or CPU, check_multi will combine multiple checks into a single check. As an example, you could make check_webserver kick off the check_http, check_ssh, and check_ping binaries and return a single exit code. However, if you want the individual checks to still be separate, check_cluster will display a status based on the current status of stand-alone checks. -- Sean McAfee System Engineer ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CSingh at lightspeedresearch.com Thu Apr 23 20:28:55 2009 From: CSingh at lightspeedresearch.com (CSingh at lightspeedresearch.com) Date: Thu, 23 Apr 2009 13:28:55 -0500 Subject: Notification Problems Message-ID: <8427C571F164AA4D97AD0C4BF2758F3CEF6D80@KTNAPXCH001C.kt.group.local> I am unable to get notifications to work at all on a recently setup nagios 3.0.6 on RHEL 5.3. I used nconf to generate the configs. Here are the relevant configuration entries and log file outputs. Any pointers would be greatly appreciated. Configs: -------- nagios.cfg enable_notifications=1 Contact and contactgroup definitions: ------------------------------------ define contact { contact_name csingh alias Charanbeer Singh host_notification_options d,u,r,f,n service_notification_options w,u,c,r,f,n email csingh at lightspeedresearch.com host_notification_period 24x7 service_notification_period 24x7 host_notification_commands notify-host-by-email service_notification_commands notify-service-by-email } define contactgroup { contactgroup_name unix_admins alias UNIX Administrators members csingh } Host Definition: --------------- define host { host_name logserver address 172.22.4.211 check_command check-host-alive max_check_attempts 3 notification_interval 15 notification_options d,u,r active_checks_enabled 1 passive_checks_enabled 0 notifications_enabled 1 check_period 24x7 notification_period 24x7 contact_groups unix_admins } Service Definition: ------------------ define service { service_description check_http_logserver check_command check_http! host_name logserver notification_period 24x7 check_period 24x7 contact_groups unix_admins event_handler_enabled 1 max_check_attempts 2 normal_check_interval 5 retry_check_interval 1 notification_interval 5 notification_options w,u,c,r active_checks_enabled 1 passive_checks_enabled 0 notifications_enabled 1 check_freshness 0 freshness_threshold 86400 } Logfiles: --------- nagios.log [1240508711] SERVICE ALERT: logserver;check_http_logserver;CRITICAL;SOFT;1;Connection refused [1240508771] SERVICE ALERT: logserver;check_http_logserver;CRITICAL;HARD;2;Connection refused nagios.debug [1240510869.071287] [032.0] [pid=28615] ** Service Notification Attempt ** Host: 'logserver', Service: 'check_http_logserver', Type: 0, Options: 0, Current S tate: 2, Last Notification: Wed Dec 31 19:00:00 1969 [1240510869.071331] [032.0] [pid=28615] Notification viability test passed. [1240510869.071345] [032.1] [pid=28615] Current notification number: 1 (incremented) [1240510869.071358] [032.1] [pid=28615] Service notification will NOT be escalated. [1240510869.071372] [032.1] [pid=28615] Adding normal contacts for service to notification list. [1240510869.071419] [032.0] [pid=28615] No contacts were notified. Next possible notification time: Wed Dec 31 19:00:00 1969 [1240510869.071432] [032.0] [pid=28615] 0 contacts were notified. Regards, Charanbeer This email is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email by mistake, please delete it from your system immediately and notify the sender. Email transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 20:58:21 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 13:58:21 -0500 Subject: Notification Problems In-Reply-To: <8427C571F164AA4D97AD0C4BF2758F3CEF6D80@KTNAPXCH001C.kt.group.local> References: <8427C571F164AA4D97AD0C4BF2758F3CEF6D80@KTNAPXCH001C.kt.group.local> Message-ID: <89263BE0-78B3-4330-A264-2196D7E5103D@ena.com> On Apr 23, 2009, at 1:28 PM, wrote: > > > I am unable to get notifications to work at all on a recently setup > nagios 3.0.6 on RHEL 5.3. I used nconf to generate the configs. > Here are the relevant configuration entries and log file outputs. > Any pointers would be greatly appreciated. > > > Configs: Configs look correct unless I missed something. Where did you pull them from? You might check objects.cache to make sure things are as you believe for the service definition and contact definition. You could also check the GUI for the service and program-wide settings to make sure notifications weren't disabled there dynamically. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Apr 23 21:01:19 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 23 Apr 2009 12:01:19 -0700 Subject: Permissions problem In-Reply-To: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> References: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> Message-ID: <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> On Thu, 23 Apr 2009, Adam Mooz wrote: > I'm using Nagios and NRPE to monitor some system logs on a remote > system via check_logfiles. > > Here's the setup: > -user 'nagio's is part of the 'adm' group > -/var/log/syslog is readable by the 'adm' group > -manually executing check_logfiles as nagios (sudo -u nagios ./ > check_logfiles ) works > -executing remotely via NRPE fails > -NRPE is being started via xinetd and running as 'nagios' > > changing syslog to be world readable fixes the problem, however it > does just that; leaves the syslog file world readable. This behavior > is being repeated for several other log files as well (mysql, apache) > where despite nagios being part of the appropriate groups still not > remotely readable. This is clearly a problem of something running as > a different user. > > Ideas? If I were a betting man I'd say that adm is not the nagios user's primary group, and/or you've specified a different group in your xinetd config. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adam.mooz at gmail.com Thu Apr 23 21:05:36 2009 From: adam.mooz at gmail.com (Adam Mooz) Date: Thu, 23 Apr 2009 15:05:36 -0400 Subject: Permissions problem In-Reply-To: <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> References: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> Message-ID: <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> No, it's not, but that doesn't matter. I can manually execute the plugin, but not via NRPE, so I think something isn't running as nagios. Top says NRPE is running as nagios though. What user does the NRPE run it's scripts as on the remote machine? On 23-Apr-09, at 3:01 PM, Patrick Morris wrote: > On Thu, 23 Apr 2009, Adam Mooz wrote: > >> I'm using Nagios and NRPE to monitor some system logs on a remote >> system via check_logfiles. >> >> Here's the setup: >> -user 'nagio's is part of the 'adm' group >> -/var/log/syslog is readable by the 'adm' group >> -manually executing check_logfiles as nagios (sudo -u nagios ./ >> check_logfiles ) works >> -executing remotely via NRPE fails >> -NRPE is being started via xinetd and running as 'nagios' >> >> changing syslog to be world readable fixes the problem, however it >> does just that; leaves the syslog file world readable. This behavior >> is being repeated for several other log files as well (mysql, apache) >> where despite nagios being part of the appropriate groups still not >> remotely readable. This is clearly a problem of something running as >> a different user. >> >> Ideas? > > If I were a betting man I'd say that adm is not the nagios user's > primary group, and/or you've specified a different group in your > xinetd > config. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy-lists at networkmail.eu Thu Apr 23 21:25:35 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Thu, 23 Apr 2009 20:25:35 +0100 Subject: NLG but first.. In-Reply-To: <15664849f31440bc9c3d6d2a3ef86a4d.craig@hooters-uk.com> References: <15664849f31440bc9c3d6d2a3ef86a4d.craig@hooters-uk.com> Message-ID: <49F0C0AF.60605@networkmail.eu> Hi Craig, > Thanks for the reply and for the welcome.. I like the look and feel of NLG 110, the more I look > at it the more I like it, I have mailed Andy asking for help on the filters as their was no > documentation with this verion, however with his site being down I don't hold out much hope of his > return mail. > I'm still around, I've been busy on some other projects so my personal website had taken a back seat unfortunately and when the database server died a few weeks ago I didn't see much point in reviving it. I keep meaning to put a page up to redirect people to Nagios Exchange for NLG until I get around to putting up a new version of the site. I don't recall having received any e-mails off you but they may not have been getting through before the database server went pop! Anyway feel free to e-mail me off-list (remove "-lists" from my mailing list e-mail address.) > Has anybody in this group got the filters working at all. > If you describe what you're looking to achieve with the NLG filters I'll guide you as best I can. I'd recommend reading the filters-howto.txt file in the root of the NLG distribution and examining the samples in the "server/sync-files/s3_filter.inc.php" and "server/sync-files/s3_filter_auth.inc.php" files. If you're looking to restrict users to certain hosts/services/filters, you'll also need to have enabled Apache authentication for both the NLG server and client. Look forward to hearing from you, Regards, Andy ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul.weaver at bbc.co.uk Thu Apr 23 21:31:56 2009 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Thu, 23 Apr 2009 20:31:56 +0100 Subject: Power monitoring for PDU In-Reply-To: <6db4a4200904231126ldb761c9rffa8c02738d3a025@mail.gmail.com> References: <6db4a4200904231126ldb761c9rffa8c02738d3a025@mail.gmail.com> Message-ID: I would imagine you'd want to monitor 1) the state of each output (loaded, unloaded, empty) 2) the current being drawn per output 3) the current being drawn overall 4) the general input voltage 5) the voltage of each output This relies on the PDU. If your PDU is network and SNMP enabled you will be able to get this informaiton. If it's not, you won't. -- The probability of someone watching you is proportional to the stupidity of your action. Paul Weaver Systems Development Engineer News Production Facilities, BBC News Work: 020 8225 8109 Mobile: 07736 481006 Room 1244, BBC Television Centre, Wood Lane, London, W12 7RJ ________________________________ From: shadih rahman [mailto:shadhin71 at gmail.com] Sent: 23 April 2009 19:27 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Power monitoring for PDU All, we are trying to monitor PDUs for a green data center. Can someone lists what should I be monitoring for PDUs. Thanks -- Cordially, Shadhin Rahman http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From CSingh at lightspeedresearch.com Thu Apr 23 21:35:15 2009 From: CSingh at lightspeedresearch.com (CSingh at lightspeedresearch.com) Date: Thu, 23 Apr 2009 14:35:15 -0500 Subject: Notification Problems In-Reply-To: <89263BE0-78B3-4330-A264-2196D7E5103D@ena.com> References: <8427C571F164AA4D97AD0C4BF2758F3CEF6D80@KTNAPXCH001C.kt.group.local> <89263BE0-78B3-4330-A264-2196D7E5103D@ena.com> Message-ID: <8427C571F164AA4D97AD0C4BF2758F3CEF6F92@KTNAPXCH001C.kt.group.local> -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Thursday, April 23, 2009 2:58 PM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] Notification Problems On Apr 23, 2009, at 1:28 PM, wrote: > > > I am unable to get notifications to work at all on a recently setup > nagios 3.0.6 on RHEL 5.3. I used nconf to generate the configs. > Here are the relevant configuration entries and log file outputs. > Any pointers would be greatly appreciated. > > > Configs: Configs look correct unless I missed something. Where did you pull them from? You might check objects.cache to make sure things are as you believe for the service definition and contact definition. You could also check the GUI for the service and program-wide settings to make sure notifications weren't disabled there dynamically. -- Marc Marc, thanks for pointing me to objects.cache. The problem was "n" in host_notification_options and service_notification_options inside contact definition. host_notification_options d,u,r,f,n service_notification_options w,u,c,r,f,n It seems to be the default option when configured with nconf. Notifications look good now. Regards, Charanbeer ------------------------------------------------------------------------ ------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null This email is intended only for the named person or entity to which it is addressed and contains valuable business information that is proprietary, privileged, confidential and/or otherwise protected from disclosure. Dissemination, distribution or copying of this email or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this email by mistake, please delete it from your system immediately and notify the sender. Email transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 23 21:50:02 2009 From: marc at ena.com (Marc Powell) Date: Thu, 23 Apr 2009 14:50:02 -0500 Subject: Notification Problems In-Reply-To: <8427C571F164AA4D97AD0C4BF2758F3CEF6F92@KTNAPXCH001C.kt.group.local> References: <8427C571F164AA4D97AD0C4BF2758F3CEF6D80@KTNAPXCH001C.kt.group.local> <89263BE0-78B3-4330-A264-2196D7E5103D@ena.com> <8427C571F164AA4D97AD0C4BF2758F3CEF6F92@KTNAPXCH001C.kt.group.local> Message-ID: <5F81913E-1BAD-45F4-BA25-03095AD757C2@ena.com> On Apr 23, 2009, at 2:35 PM, wrote: > Marc, thanks for pointing me to objects.cache. The problem was "n" in > host_notification_options and service_notification_options inside > contact definition. yup. d'oh, that's the one I always seem to overlook. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Apr 23 22:23:06 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 23 Apr 2009 13:23:06 -0700 Subject: Permissions problem In-Reply-To: <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> References: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> Message-ID: <20090423202306.GL19457@bakgwai.americas.hpqcorp.net> On Thu, 23 Apr 2009, Adam Mooz wrote: > No, it's not, but that doesn't matter. I can manually execute the > plugin, but not via NRPE, so I think something isn't running as > nagios. Top says NRPE is running as nagios though. What user does > the NRPE run it's scripts as on the remote machine? > > On 23-Apr-09, at 3:01 PM, Patrick Morris wrote: > > > On Thu, 23 Apr 2009, Adam Mooz wrote: > > > >> I'm using Nagios and NRPE to monitor some system logs on a remote > >> system via check_logfiles. > >> > >> Here's the setup: > >> -user 'nagio's is part of the 'adm' group > >> -/var/log/syslog is readable by the 'adm' group > >> -manually executing check_logfiles as nagios (sudo -u nagios ./ > >> check_logfiles ) works > >> -executing remotely via NRPE fails > >> -NRPE is being started via xinetd and running as 'nagios' > >> > >> changing syslog to be world readable fixes the problem, however it > >> does just that; leaves the syslog file world readable. This behavior > >> is being repeated for several other log files as well (mysql, apache) > >> where despite nagios being part of the appropriate groups still not > >> remotely readable. This is clearly a problem of something running as > >> a different user. > >> > >> Ideas? > > > > If I were a betting man I'd say that adm is not the nagios user's > > primary group, and/or you've specified a different group in your > > xinetd > > config. It most definitely does matter, as does the group (if any) you've specified it to run under in your xinetd config. How it runs when you do it manually and how it runs under xinetd are only very loosely related, and worlds apart as far as user and group rights go. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Apr 23 22:24:47 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 23 Apr 2009 13:24:47 -0700 Subject: Permissions problem In-Reply-To: <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> References: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> Message-ID: <20090423202447.GM19457@bakgwai.americas.hpqcorp.net> By the way, for further info see the xinetd man page, which (on my system, anyway) states: group determines the gid for the server process. The group name must exist in /etc/group. If a group is not specified, the group of user will be used (from /etc/passwd). This attribute is ineffective if the effective user ID of xinetd is not super-user. Note that it's only going to use the primary group. Other group rights are dropped. On Thu, 23 Apr 2009, Adam Mooz wrote: > No, it's not, but that doesn't matter. I can manually execute the > plugin, but not via NRPE, so I think something isn't running as > nagios. Top says NRPE is running as nagios though. What user does > the NRPE run it's scripts as on the remote machine? > > On 23-Apr-09, at 3:01 PM, Patrick Morris wrote: > > > On Thu, 23 Apr 2009, Adam Mooz wrote: > > > >> I'm using Nagios and NRPE to monitor some system logs on a remote > >> system via check_logfiles. > >> > >> Here's the setup: > >> -user 'nagio's is part of the 'adm' group > >> -/var/log/syslog is readable by the 'adm' group > >> -manually executing check_logfiles as nagios (sudo -u nagios ./ > >> check_logfiles ) works > >> -executing remotely via NRPE fails > >> -NRPE is being started via xinetd and running as 'nagios' > >> > >> changing syslog to be world readable fixes the problem, however it > >> does just that; leaves the syslog file world readable. This behavior > >> is being repeated for several other log files as well (mysql, apache) > >> where despite nagios being part of the appropriate groups still not > >> remotely readable. This is clearly a problem of something running as > >> a different user. > >> > >> Ideas? > > > > If I were a betting man I'd say that adm is not the nagios user's > > primary group, and/or you've specified a different group in your > > xinetd > > config. > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Thu Apr 23 23:34:25 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Thu, 23 Apr 2009 14:34:25 -0700 (PDT) Subject: Service Definition In-Reply-To: <88995976-37CE-4D1E-AD95-0C1DEC272A5B@ena.com> References: <49F0AB25.4090503@kkeane.com> <88995976-37CE-4D1E-AD95-0C1DEC272A5B@ena.com> Message-ID: <842845.32167.qm@web111208.mail.gq1.yahoo.com> Hi all, Hoping someone can give me guidance on this. I'm trying to set-up monitoring on our routers in which I already followed this doc: http://nagios.sourceforge.net/docs/3_0/monitoring-routers.html I'm doing snmp at this point and trying to define the service to my hosts then I get this error when verifying: Error: Service check command 'check_snmp' specified in service 'PING-NET' for host 'cisco-router' not defined anywhere! Here's a sample of my cfg: define service{ use local-service ; Inherit values from a template host_name cisco-router ; The name of the host the service is associated with service_description PING-NET ; The service description check_command check_snmp!-C public -o sysUpTime.0 ; The command used to monitor the service normal_check_interval 5 ; Check the service every 5 minutes under normal conditions retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined } Any ideas? Need expert advise please. Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Apr 23 23:44:07 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 23 Apr 2009 14:44:07 -0700 Subject: Service Definition In-Reply-To: <842845.32167.qm@web111208.mail.gq1.yahoo.com> References: <49F0AB25.4090503@kkeane.com> <88995976-37CE-4D1E-AD95-0C1DEC272A5B@ena.com> <842845.32167.qm@web111208.mail.gq1.yahoo.com> Message-ID: <20090423214407.GP19457@bakgwai.americas.hpqcorp.net> On Thu, 23 Apr 2009, Dei Bertine wrote: > Hi all, > Hoping someone can give me guidance on this. > I'm trying to set-up monitoring on our routers in which I already followed this doc: > http://nagios.sourceforge.net/docs/3_0/monitoring-routers.html > I'm doing snmp at this point and trying to define the service to my hosts then I get this error when verifying: > Error: Service check command 'check_snmp' specified in service 'PING-NET' for host 'cisco-router' not defined anywhere! > > Here's a sample of my cfg: > define service{ > use local-service ; Inherit values from a template > host_name cisco-router ; The name of the host the service is associated with > service_description PING-NET ; The service description > check_command check_snmp!-C public -o sysUpTime.0 ; The command used to monitor the service > normal_check_interval 5 ; Check the service every 5 minutes under normal conditions > retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined > } > > Any ideas? > Need expert advise please. > Thank you! Each check_command you use needs to also be defined in your configuration somewhere: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#command ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Fri Apr 24 02:39:35 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Thu, 23 Apr 2009 17:39:35 -0700 (PDT) Subject: SNMP Service Uknown In-Reply-To: <20090423202447.GM19457@bakgwai.americas.hpqcorp.net> References: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> <20090423202447.GM19457@bakgwai.americas.hpqcorp.net> Message-ID: <464653.55036.qm@web111203.mail.gq1.yahoo.com> Hi all, I got the first part set-up on monitoring my network equipment. Ran the verify and everything was OK. However when I go to the Nagios page, I see these logs in my network equipment: "SNMP problem - No data received from host " This is the notification email I got: Notification Type: PROBLEM Service: PING Host: CISCO Address: 172.168.2.1 State: UNKNOWN Date/Time: Thu Apr 23 21:29:00 EDT 2009 Additional Info: SNMP problem - No data received from host This is a sample of my cfg file: define service{ use local-service ; Inherit values from a template host_name cisco-router ; The name of the host the service is associated with service_description PING ; The service description check_command check_snmp!-C public -o sysUpTime.0 normal_check_interval 5 ; Check the service every 5 minutes under normal conditions retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined } Not sure on this but is there anything in the router/switch that need to enable? I'm sure it supports snmp. Please advise. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Fri Apr 24 02:47:28 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 23 Apr 2009 17:47:28 -0700 Subject: SNMP Service Uknown In-Reply-To: <464653.55036.qm@web111203.mail.gq1.yahoo.com> References: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> <20090423202447.GM19457@bakgwai.americas.hpqcorp.net> <464653.55036.qm@web111203.mail.gq1.yahoo.com> Message-ID: <20090424004728.GU19457@bakgwai.americas.hpqcorp.net> Hi Dei! On Fri, 24 Apr 2009, Dei Bertine wrote: > Hi all, > > I got the first part set-up on monitoring my network equipment. > Ran the verify and everything was OK. > However when I go to the Nagios page, I see these logs in my network equipment: > "SNMP problem - No data received from host " > > This is the notification email I got: > Notification Type: PROBLEM > Service: PING > Host: CISCO > Address: 172.168.2.1 > State: UNKNOWN > Date/Time: Thu Apr 23 21:29:00 EDT 2009 > Additional Info: > SNMP problem - No data received from host > > This is a sample of my cfg file: > define service{ > use local-service ; Inherit values from a template > host_name cisco-router ; The name of the host the service is associated with > service_description PING ; The service description > check_command check_snmp!-C public -o sysUpTime.0 > normal_check_interval 5 ; Check the service every 5 minutes under normal conditions > retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined > } > > Not sure on this but is there anything in the router/switch that need to enable? Yes, you'll probably need to configure your router to accept SNMP polls from your Nagios box. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From martyn at chetnet.co.uk Fri Apr 24 09:15:03 2009 From: martyn at chetnet.co.uk (Martyn) Date: Fri, 24 Apr 2009 08:15:03 +0100 Subject: SMS notification for warning and critical In-Reply-To: <200904171337.21383.assaf.flatto@ssp-intl.com> References: <200904171337.21383.assaf.flatto@ssp-intl.com> Message-ID: >-----Original Message----- >From: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] >Sent: 17 April 2009 13:37 >To: nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] SMS notification for warning and critical > > >you can do it with a modem and the smsclient software > >http://www.smsclient.org/ > >and you can read this for some more details : > >http://www.nagios.org/faqs/viewfaq.php?faq_id=279 > >Assaf >On Friday 17 April 2009 13:07:38 Mohr James wrote: > Hi All! > > > Is there a way to send an SMS when a Service gives a warning, then > acknowledged and then another SMS when it goes critical? Stalking > does not seem to do what I need. > > > > Regards, > > Jim Mohr > > Have you seen the Foxbox also http://www.nagios.org/products/notification/foxbox/ ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tore.lonoy at gmail.com Fri Apr 24 10:02:18 2009 From: tore.lonoy at gmail.com (=?ISO-8859-1?Q?Tore_L=F8n=F8y?=) Date: Fri, 24 Apr 2009 10:02:18 +0200 Subject: Speed up nagios GUI? Message-ID: Hello, I was wondering if anyone have used FastCGI on apache or similar, to speed up the nagios interface? I also looked into using mod_mem on apache to load nagios.object file in memory rather than disk, but since apache itself doesnt use this file it shouldn't give any speedbost. It would be nice to get a little more snappier interface but it isn't all that important but nice to know if anyone have had any luck with this. Regards, Tore -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stuart.Jones at health.wa.gov.au Fri Apr 24 09:49:34 2009 From: Stuart.Jones at health.wa.gov.au (Jones, Stuart) Date: Fri, 24 Apr 2009 15:49:34 +0800 Subject: Nagios - layered monitoring: Message-ID: I'm running Nagios 3.1 on Ubuntu 8.1 monitoring routers and switches. Has anyone come up with a methodology of limiting the alerts when say the primary router at a site fails impacting visibility to switches etc beyond the primary router? Thx Stuart -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dani at tydnet.org Fri Apr 24 10:45:52 2009 From: dani at tydnet.org (Daniel =?utf-8?q?L=C3=B3pez?=) Date: Fri, 24 Apr 2009 10:45:52 +0200 Subject: Nagios - layered monitoring: In-Reply-To: References: Message-ID: <200904241045.53116.dani@tydnet.org> On Friday 24 April 2009 09:49:34 Jones, Stuart wrote: > I'm running Nagios 3.1 on Ubuntu 8.1 monitoring routers and switches. > Has anyone come up with a methodology of limiting the alerts when say > the primary router at a site fails impacting visibility to switches etc > beyond the primary router? > > Thx Stuart You should use hosts and service dependencies. check the docs at nagios.org for more info. regards, dani ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at lamp.xs4all.nl Fri Apr 24 10:54:37 2009 From: nagios at lamp.xs4all.nl (Lennard Bakker) Date: Fri, 24 Apr 2009 10:54:37 +0200 Subject: Nagios - layered monitoring: In-Reply-To: References: Message-ID: <49F17E4D.9000304@lamp.xs4all.nl> Jones, Stuart wrote: > I'm running Nagios 3.1 on Ubuntu 8.1 monitoring routers and switches. > Has anyone come up with a methodology of limiting the alerts when say > the primary router at a site fails impacting visibility to switches etc > beyond the primary router? http://nagios.sourceforge.net/docs/3_0/networkreachability.html ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jimmyjose2980 at gmail.com Fri Apr 24 12:04:49 2009 From: jimmyjose2980 at gmail.com (Jimmyboy) Date: Fri, 24 Apr 2009 15:34:49 +0530 Subject: HTTP server authentication requirements for accessing this CGI. Message-ID: Hi All, I have installed Apache2.2.9 using the source file '* Apache2_2.2.9.orig.tar.gz*'. Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the Quickstart Guide. I am able to open http://localhost/nagios. However, certain entities on the left pane, such as '*Process Info*', '*Network Outages*', etc are not getting opened. They error out with the following message. "It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file." I followed http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. Configuration of *httpd.conf *says ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under nagios directory. Morever, I do not see the 'sites-available' & other directories named similarly under my */usr/local/apache2/conf*directory. Will that be a problem? But, still, I am at same stage. Anyone, any idea, how to go about? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Fri Apr 24 12:05:40 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Fri, 24 Apr 2009 11:05:40 +0100 Subject: C++ Plugins In-Reply-To: <49EE1DF0.6090309@medin.name> References: <49EE1DF0.6090309@medin.name> Message-ID: 2009/4/21 Michael Medin : > Hello, > > All the "built in" plugins are avalible as source so it should be pretty > simple to figure out. > The idea is anyways that you fill the buffer passed to the function from the > "core". > (this will BTW change in the next major release) Thanks for the explanation Michael - this should be very helpful. I'm curious though, what are the guidelines around writing a C++ program to be executed as an external script? I've written a simple program for checking if the driver name supplied as an arg is loaded in the system, but I'm not using any of the above "glue" to do so, I just make the checks and printf the output and return the result code. Is this sufficient? Here's the code; #include #include #include #include #include #define ARRAY_SIZE 1024 int main(int argc, char* argv[]) { LPVOID drivers[ARRAY_SIZE]; DWORD cbNeeded; int cDrivers, i; if(EnumDeviceDrivers(drivers, sizeof(drivers), &cbNeeded) && cbNeeded < sizeof(drivers)) { TCHAR szDriver[ARRAY_SIZE]; cDrivers = cbNeeded / sizeof(drivers[0]);; for (i=0; i < cDrivers; i++ ) { if(GetDeviceDriverBaseName(drivers[i], szDriver, sizeof(szDriver) / sizeof(szDriver[0]))) { if(argv[1] != NULL && _tcscmp ( szDriver, _T(argv[1])) == 0) { printf("Driver is loaded"); return 0; // OK } } } printf("Driver is not loaded!"); return 2; // CRITICAL } else { printf("EnumDeviceDrivers failed; array size needed is %d\n", cbNeeded / sizeof(LPVOID)); return 3; // UNKNOWN } } It's based off the code here; http://msdn.microsoft.com/en-us/library/ms682619(VS.85).aspx I just drop the compiled program into "ExternalScripts" and add this to nsc.ini; [External Scripts] check_driver = ExternalScripts\Check_Driver.exe Is this an appropriate way to carry-out this check? It works perfectly fine so far, but I'm just curious to see if this is a proper way of doing things? Cheers, Chris ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zarrelli at linux.it Fri Apr 24 11:51:23 2009 From: zarrelli at linux.it (zarrelli at linux.it) Date: Fri, 24 Apr 2009 11:51:23 +0200 (CEST) Subject: Nagios - layered monitoring: In-Reply-To: <200904241045.53116.dani@tydnet.org> References: <200904241045.53116.dani@tydnet.org> Message-ID: <53210.213.255.109.107.1240566683.squirrel@picard.linux.it> Hi, you also need to define the parent relationship, so that you will have host unreachable instead of host down: http://nagios.sourceforge.net/docs/3_0/networkreachability.html > On Friday 24 April 2009 09:49:34 Jones, Stuart wrote: >> I'm running Nagios 3.1 on Ubuntu 8.1 monitoring routers and switches. >> Has anyone come up with a methodology of limiting the alerts when say >> the primary router at a site fails impacting visibility to switches etc >> beyond the primary router? >> >> Thx Stuart > > You should use hosts and service dependencies. > > check the docs at nagios.org for more info. > > > regards, > > dani > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From grover1711 at gmail.com Fri Apr 24 12:41:05 2009 From: grover1711 at gmail.com (ankush grover) Date: Fri, 24 Apr 2009 16:11:05 +0530 Subject: HTTP server authentication requirements for accessing this CGI. In-Reply-To: References: Message-ID: <5f638b360904240341q160081a1g89e990bdb485001a@mail.gmail.com> Hi Jimmy, You need to enable authentication in cgi.cfg. use_authentication=1 authorized_for_all_host_commands=admin authorized_for_all_hosts=admin authorized_for_all_service_commands=admin authorized_for_all_services=admin authorized_for_configuration_information=admin authorized_for_system_commands=admin authorized_for_system_information=admin Something like this in nagios.conf file for apache (On my linux box that is centos 5.x it is /etc/httpd/conf.d/nagios.conf) # SSLRequireSSL Options ExecCGI AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user Alias /nagios "/usr/share/nagios" # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user Now use htpasswd command to generate htpasswd.users file with user admin. htpasswd -c /etc/nagios/htpasswd.users admin Regards Ankush On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy wrote: > Hi All, > > I have installed Apache2.2.9 using the source file > 'Apache2_2.2.9.orig.tar.gz'. > Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the Quickstart > Guide. I am able to open http://localhost/nagios. > > However, certain entities on the left pane, such as 'Process Info', 'Network > Outages', etc are not getting opened. They error out with the following > message. > > "It appears as though you do not have permission to view information for any > of the hosts you requested... If you believe this is an error, check the > HTTP server authentication requirements for accessing this CGI and check the > authorization options in your CGI configuration file." > > I followed http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. > Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/ > /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under > nagios directory. Morever, I do not see the 'sites-available' & > other?directories named similarly?under my /usr/local/apache2/conf > directory. Will that be?a problem? > > But, still, I am at same stage. Anyone, any idea, how to go about? > > Thanks, > Jim > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunnywavez at in.com Fri Apr 24 12:51:50 2009 From: sunnywavez at in.com (Sundar V S) Date: Fri, 24 Apr 2009 16:21:50 +0530 Subject: =?utf-8?q?Nagios_Web_Interface_not_Accessible_on_R?= =?utf-8?q?HEL_4_AS?= Message-ID: <1240570310.4fa91c19016cb1f807ea47b5a959d518@mail.in.com> Hi Friends, I am a newbie, installing Nagios 3.1.0 on RHEL 4 AS . I have completed the basic installation of Nagios, and now when i am trying to Access the url : http://localhost/nagios/ , and after giving the appropriate Username and Password, it is giving following error. ForbiddenYou don't have permission to access /nagios/ on this server.Apache/2.0.52 (Red Hat) Server at localhost Port 80 Below given is the extract from the error logs after accessing the Web Page,[Thu Apr 23 19:45:39 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /usr/local/nagios/share[Thu Apr 23 19:45:39 2009] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico Please help to resolve this issue, as i am not able to see the Nagios Web Interface page. Thanks and Regards,Sundar Dear nagiosusers at lists.sourceforge.net ! Get Yourself a cool, short @in.com Email ID now! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Fri Apr 24 09:10:19 2009 From: subscription at kkeane.com (Kevin Keane) Date: Fri, 24 Apr 2009 00:10:19 -0700 Subject: only_from = 127.0.0.1 In-Reply-To: <88995976-37CE-4D1E-AD95-0C1DEC272A5B@ena.com> References: Message-ID: <49F165DB.2060704@kkeane.com> Replies embedded below... Marc Powell wrote: > On Apr 23, 2009, at 12:53 PM, Kevin Keane wrote: > > >> Top-posting means that you put what you have to say at the top of the >> reply the way I do it here. Bottom-posting means that you put your >> reply >> below the original message. >> > > Don't forget about the best method, inline reply. > Yes, I should have said "inline reply" instead of "bottom posting" everywhere (and my description also wasn't quite accurate. Should have been "you put your reply below the point you are replying to"). True bottom posting is possibly the worst of all options, but I did mean the style that you, correctly, call "inline reply". Of course, if there is only one point you are responding to, inline replying and bottom posting are one and the same. >> In the original Internet culture, bottom-posting was preferred, and >> some >> > Actually, no. inline replying was and still is preferred for technical > mailling lists. I'd hazard to say that's true the technical users on > this list as well. I've been around Usenet ever since Compuserve (remember them?) started offering newsgroups, so I do remember the inline-replying culture quite well. And you may have a point. Many of the technical users of today (especially the experienced ones who tend to be the most prolific posters) are old-timers like myself, which would explain the preference among technical users. On the other hand, many people who started using the Net in this century, including even people with IT college degrees, have never seen inline replies, and don't even think to look below. > The day you subscribe to a list via digest mode, you'll fully understand why. ;) > LOL, don't get me started on digest mode! If I had my way, either Digest mode would be eliminated, or it would only be offered on lists that also have a good Web interface so you can properly respond to older posts as well as current ones (that's one of the reasons I much prefer Yahoo groups to Sourceforge mailing lists). >> In my mind, most of the time top posting actually is better because >> the reply stands out more than the original question - which usually is what you want. >> > > Not if you want to make multiple points without entirely restating > what you're replying to. Try to make my responses sensible in a top or > bottom posting context without doing that. > Agreed to some extent; in fact, I think I also listed that as an advantage of inline reply (which I erroneously called bottom posting). I'm saying "to an extent" because if you overdo it, you can also end up with a completely chopped up discussion. It gets particularly convoluted in political flame wars... I also usually add one other enhancement when I do use inline replying: I attach a note to the top "Replies embedded below" because many people I reply to, especially in private emails, aren't familiar with inline replying and otherwise wouldn't think to look below. In this case, of course, it's unnecessary; I just did it for illustration purposes. >> My personal rule: if there already is a longer thread, stick with >> whatever style it has. >> > That's great! If it's a top or bottom post, you're increasing the > redundancy of what's stored/sent in everyone's mail client, in the > archives and most terribly, in the digests. by the number of replies > to that thread. That's got nothing much to do with top- or bottom- or inline-replying. Cutting irrelevant old stuff out is a good thing no matter which style you are using, although some people go overboard and cut out everything at all (that's a fourth style of replying, and another universally bad one: no quoting at all), and then you don't know what they are replying to. >> * technically speaking, there is a still-valid RFC that specifies >> bottom-posting, but in practical terms it has been obsoleted by >> history. >> > > That's arguable, but could approach the passion level of a discussion > of religion. > Is it getting hot here or what? :-)) -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Apr 24 15:09:50 2009 From: marc at ena.com (Marc Powell) Date: Fri, 24 Apr 2009 08:09:50 -0500 Subject: only_from = 127.0.0.1 In-Reply-To: <49F165DB.2060704@kkeane.com> References: <49F165DB.2060704@kkeane.com> Message-ID: <91CC5648-636F-44DB-96AE-F167AEC6B7BB@ena.com> On Apr 24, 2009, at 2:10 AM, Kevin Keane wrote > I've been around Usenet ever since Compuserve (remember them?) started Indeed. To date myself, I used to run a BBS on my C=64 ;) That certainly doesn't make me the most experienced around but I've been through a good part of the Internet history. >> That's arguable, but could approach the passion level of a discussion >> of religion. >> > Is it getting hot here or what? :-)) heh, nah, but I think we're in close enough agreement to let it go . -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jerome.Meyer at baldata.ch Fri Apr 24 15:23:21 2009 From: Jerome.Meyer at baldata.ch (Meyer Jerome) Date: Fri, 24 Apr 2009 15:23:21 +0200 Subject: Nagios Web Interface not Accessible on RHEL 4 AS In-Reply-To: <1240570310.4fa91c19016cb1f807ea47b5a959d518@mail.in.com> References: <1240570310.4fa91c19016cb1f807ea47b5a959d518@mail.in.com> Message-ID: <46EEEA5FAED9CA479556002BA9C27FD705BFADA9@iw50.iwbnet.ch> Could you provide us more infos : like /etc/httpd/conf.d/nagios.conf, or /etc/httpd/conf/httpd.conf. It could be still have some problems!!!!! First ====== You doesn?t have the right access on your directory or files located at /usr/local/nagios/share Second ====== On RedHat the?s a security enhancement called SELinux and you must deactivate it or change it like : chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ chcon -R -t httpd_sys_content_t /usr/local/nagios/share READ CAREFULLY the full guide at http://nagios.sourceforge.net/docs/3_0/toc.html =============== THE VERSION 3.1.0 IS ON DEVELOPMENT (TEST), I ENCOURAGE YOU TO USE THE STABLE ONE 3.0.6 !!! That?s my point of view? Von: Sundar V S [mailto:sunnywavez at in.com] Gesendet: Freitag, 24. April 2009 12:52 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Nagios Web Interface not Accessible on RHEL 4 AS Hi Friends, I am a newbie, installing Nagios 3.1.0 on RHEL 4 AS . I have completed the basic installation of Nagios, and now when i am trying to Access the url : http://localhost/nagios/ , and after giving the appropriate Username and Password, it is giving following error. Forbidden You don't have permission to access /nagios/ on this server. Apache/2.0.52 (Red Hat) Server at localhost Port 80 Below given is the extract from the error logs after accessing the Web Page, [Thu Apr 23 19:45:39 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /usr/local/nagios/share [Thu Apr 23 19:45:39 2009] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico Please help to resolve this issue, as i am not able to see the Nagios Web Interface page. Thanks and Regards, Sundar Dear nagios-users at lists.sourceforge.net ! Get Yourself a cool, short @in.com Email ID now! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Fri Apr 24 15:28:46 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Fri, 24 Apr 2009 14:28:46 +0100 Subject: Nagios Web Interface not Accessible on RHEL 4 AS In-Reply-To: <1240570310.4fa91c19016cb1f807ea47b5a959d518@mail.in.com> References: <1240570310.4fa91c19016cb1f807ea47b5a959d518@mail.in.com> Message-ID: <200904241428.47307.assaf.flatto@ssp-intl.com> I would recommend you start here http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html On Friday 24 April 2009 11:51:50 Sundar V S wrote: > Hi Friends, I am a newbie, installing Nagios 3.1.0 on RHEL 4 AS . I have > completed the basic installation of Nagios, and now when i am trying to > Access the url : http://localhost/nagios/ , and after giving the > appropriate Username and Password, it is giving following error. > ForbiddenYou don't have permission to access /nagios/ on this > server.Apache/2.0.52 (Red Hat) Server at localhost Port 80 Below given is > the extract from the error logs after accessing the Web Page,[Thu Apr 23 > 19:45:39 2009] [error] [client 127.0.0.1] Directory index forbidden by > rule: /usr/local/nagios/share[Thu Apr 23 19:45:39 2009] [error] [client > 127.0.0.1] File does not exist: /var/www/html/favicon.ico Please help to > resolve this issue, as i am not able to see the Nagios Web Interface page. > Thanks and Regards,SundarDear nagiosusers at lists.sourceforge.net ! Get > Yourself a cool, short @in.com Email ID now! -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE Along with a few colleagues I am doing The Three Peaks Challenge again this year to raise money for The Railway Children. Please sponsor me by making a donation online, simply click on the link below and give via your switch/credit card. Thank you. http://www.justgiving.com/londonnorththreepeaks IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sunnywavez at in.com Fri Apr 24 15:57:26 2009 From: sunnywavez at in.com (Sundar V S) Date: Fri, 24 Apr 2009 19:27:26 +0530 Subject: =?utf-8?q?Nagios_Web_Interface_not_Accessible_on_R?= =?utf-8?q?HEL_4_AS?= In-Reply-To: <46EEEA5FAED9CA479556002BA9C27FD705BFADA9@iw50.iwbnet.ch> References: <46EEEA5FAED9CA479556002BA9C27FD705BFADA9@iw50.iwbnet.ch> Message-ID: <1240581446.faad95253aee7437871781018bdf3309@mail.in.com> Hi Meyer,Thanks for your Response, and for Nagios 3.1 can you tell how to uninstall it, as there is no option i am aware of.I did gave rites to my nagios location,chown R nagios.nagcmd /usr/local/nagios Also attached with the mail are my httpd.conf and nagios .conf file./etc/httpd/conf.d (here nagios.conf) is placed and /etc/httpd/conf (here httpd.conf) is placed Please do provide if any chnages are to be altered in the conf files. Do you require any more details on my configuration. Thanks and Regards,Sundar Original message From:Meyer Jerome< Jerome.Meyer at baldata.ch >Date: 24 Apr 09 18:53:21Subject: Re: [Nagiosusers] Nagios Web Interface not Accessible on RHEL 4 ASTo: Could you provide us more infos : like /etc/httpd/conf.d/nagios.conf, or /etc/httpd/conf/httpd.conf.It could be still ha ve some problems!!!!!First ====== You doesn???t have the right access on your directory or files located at /usr/local/nagios/shareSecond ====== On RedHat the???s a security enhanc ement called SELinux and you must deactivate it or change it like : chcon R t httpdsyscontentt /usr/local/nagios/sbin/ chcon R t httpdsyscontentt /usr/local/nagios/shareREAD CAREFULLY the full guide at http://nagios.sourceforge.net/docs/30/toc.html ===============THE VERSION 3.1.0 IS ON DEVELOPMENT (TEST), I ENCOURAGE YOU TO USE THE STABLE ONE 3.0.6 !!! That???s my point of view???Von: Sundar V S [mailto:sunnywavez at in.com] Gesendet: Freitag, 24. April 2009 12:52An: nagiosusers at lists.sourceforge.netBetreff: [Nagiosusers] Nagios Web Interface not Accessible on RHEL 4 ASHi Friends, I am a newbie, installing Nagios 3.1.0 on RHEL 4 AS . I have completed the basic installation of Nagios, and now when i am trying to Access the url : http://localhost/nagios/ , and after giving the approp riate Username and Password, it is giving following error. ForbiddenYou don't have permission to access /nagios/ on this server.Apache/2.0.52 (Red Hat) Server at localhost Port 80 Below give n is the extract from the error logs after accessing the Web Page,[Thu Apr 23 19:45:39 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /usr/local/nagios/share[Thu Apr 23 19:45:39 2009] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico Please help to resolve this issue, as i am not able to see the Nagios Web Interface page. Thanks and Regards,Sundar Dear nagiosusers at lists.sourceforge.net ! Get Yourself a cool, short @in.com Email ID now! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: httpd.conf URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nagios.conf URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From luis.sanchez.sanchez at gmail.com Fri Apr 24 15:41:17 2009 From: luis.sanchez.sanchez at gmail.com (Luis Sanchez) Date: Fri, 24 Apr 2009 15:41:17 +0200 Subject: NAGIOS NRPE issue Message-ID: Hi, I'm trying to run a script in a remote machine using root privileges (this is just a simple sample, just some output to a file). I run this command from the nagios server machine: /usr/lib/nagios/plugins/check_nrpe -H 192.168.168.33 -p 5666 -c service_restart and I get this error message: NRPE: Unable to read output I have added nagios user to the sudoers list (all the privileges to avoid permission problems). The NRPE daemon is started and listening in the correct port. The NRPE log in the monitorized machine is (no reference to the error): Apr 24 15:06:49 outrun nrpe[26716]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Apr 24 15:06:49 outrun nrpe[26717]: Starting up daemon Apr 24 15:06:49 outrun nrpe[26717]: Warning: Daemon is configured to accept command arguments from clients! Apr 24 15:06:49 outrun nrpe[26717]: Listening for connections on port 5666 Apr 24 15:06:49 outrun nrpe[26717]: Allowing connections from: 192.168.168.20,127.0.0.1 If I change the nrpe configuration and comment command_prefix option. It works. I'm using centos 5.2 in the monitorized machine and the monitoring machine. The NRPE version is 2.12 and nagios server version is 3.0.6 This is just a test to check how to execute commands being root. In fact the real aim is use event handlers to autoheal the monitorized machine by restarting a service if it gets down. Any idea on how to solve the problem? Thank you very much for your help BTW hereunder you can find more configuration data. MONITORIZED REMOTE MACHINE /etc/sudoers ----------------------------------------------------- nagios ALL=(ALL) NOPASSWD: ALL MONITORIZED REMOTE MACHINE NRPE CONFIGURATION ------------------------------------------------------------------- log_facility=daemon pid_file=/var/run/nrpe.pid server_port=5666 nrpe_user=nagios nrpe_group=nagios allowed_hosts=192.168.168.20,127.0.0.1 dont_blame_nrpe=1 command_prefix=/usr/bin/sudo debug=1 command_timeout=60 connection_timeout=300 command[service_restart]=/usr/lib/nagios/plugins/service_restart MONITORIZED REMOTE MACHINE SCRIPT IN /usr/lib/nagios/plugins/service_restart ------------------------------------------------------------------------ #!/bin/sh # # Event handler script for restarting the web server on the local machine # # Note: This script will only restart the web server if the service is # retried 3 times (in a "soft" state) or if the web service somehow # manages to fall into a "hard" error state. # whoami >> /tmp/asd.txt echo -n "hola" >> /tmp/asd.txt exit 0 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnaulist at andromeiberica.com Fri Apr 24 16:48:39 2009 From: arnaulist at andromeiberica.com (Arnau) Date: Fri, 24 Apr 2009 16:48:39 +0200 Subject: How configure Nagios to send periodic notifications? Message-ID: <49F1D147.4050305@andromeiberica.com> Hi all, Since few weeks ago we use Nagios as monitoring system and everytime there is a problem it notifies sending an email. We have a system that parses those emails and using a text to speech system it makes a phone call. To be sure that the alarm system is running we have periodic calls launched by emails programmed as cron tasks. I'm worried that some of the Nagios notifications could be lost or even it wouldn't sent any notification, so I'd like to launch to substitute those cron emails by Nagios "fake" notifications or something similar. Do you know if there is a way to force Nagios to send a notification periodically? Thank you very much ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Fri Apr 24 17:17:19 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Fri, 24 Apr 2009 16:17:19 +0100 Subject: How configure Nagios to send periodic notifications? In-Reply-To: <49F1D147.4050305@andromeiberica.com> References: <49F1D147.4050305@andromeiberica.com> Message-ID: <200904241617.19608.assaf.flatto@ssp-intl.com> hello You want to take a look at the external commands : http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135 Assaf On Friday 24 April 2009 15:48:39 Arnau wrote: > Hi all, > > Since few weeks ago we use Nagios as monitoring system and everytime > there is a problem it notifies sending an email. We have a system that > parses those emails and using a text to speech system it makes a phone > call. To be sure that the alarm system is running we have periodic calls > launched by emails programmed as cron tasks. I'm worried that some of > the Nagios notifications could be lost or even it wouldn't sent any > notification, so I'd like to launch to substitute those cron emails by > Nagios "fake" notifications or something similar. > > Do you know if there is a way to force Nagios to send a notification > periodically? > > Thank you very much > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE Along with a few colleagues I am doing The Three Peaks Challenge again this year to raise money for The Railway Children. Please sponsor me by making a donation online, simply click on the link below and give via your switch/credit card. Thank you. http://www.justgiving.com/londonnorththreepeaks IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Apr 24 17:24:50 2009 From: marc at ena.com (Marc Powell) Date: Fri, 24 Apr 2009 10:24:50 -0500 Subject: How configure Nagios to send periodic notifications? In-Reply-To: <49F1D147.4050305@andromeiberica.com> References: <49F1D147.4050305@andromeiberica.com> Message-ID: <9CBB24B3-44F0-4843-840A-9D99939DDE64@ena.com> On Apr 24, 2009, at 9:48 AM, Arnau wrote: > Do you know if there is a way to force Nagios to send a notification > periodically? I expect you're looking for the 'notification_interval' directive of service and host definitions. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kylet at panix.com Fri Apr 24 17:28:39 2009 From: kylet at panix.com (Kyle Tucker) Date: Fri, 24 Apr 2009 11:28:39 -0400 Subject: How configure Nagios to send periodic notifications? In-Reply-To: <49F1D147.4050305@andromeiberica.com> References: <49F1D147.4050305@andromeiberica.com> Message-ID: <20090424152839.GA23197@panix.com> On Fri, Apr 24, 2009 at 04:48:39PM +0200, Arnau wrote: > Do you know if there is a way to force Nagios to send a notification > periodically? I'd try here with an external command. http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135 -- - Kyle --------------------------------------------- kylet at panix.com http://www.panix.com/~kylet --------------------------------------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Fri Apr 24 17:46:37 2009 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Fri, 24 Apr 2009 11:46:37 -0400 Subject: How configure Nagios to send periodic notifications? In-Reply-To: <49F1D147.4050305@andromeiberica.com> References: <49F1D147.4050305@andromeiberica.com> Message-ID: <49F1DEDD.10800@collaborativefusion.com> Arnau wrote: > Hi all, > > Since few weeks ago we use Nagios as monitoring system and everytime > there is a problem it notifies sending an email. We have a system that > parses those emails and using a text to speech system it makes a phone > call. To be sure that the alarm system is running we have periodic calls > launched by emails programmed as cron tasks. I'm worried that some of > the Nagios notifications could be lost or even it wouldn't sent any > notification, so I'd like to launch to substitute those cron emails by > Nagios "fake" notifications or something similar. > > Do you know if there is a way to force Nagios to send a notification > periodically? Another way to do it would be to schedule it as a check with a 5 minute timeperiod , a 10 minute check_interval, and obsession. This would cause it to run once a day and alert on everytime, not just when the status changes. -- Sean McAfee System Engineer ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnaulist at andromeiberica.com Fri Apr 24 18:00:09 2009 From: arnaulist at andromeiberica.com (Arnau) Date: Fri, 24 Apr 2009 18:00:09 +0200 Subject: How configure Nagios to send periodic notifications? In-Reply-To: <200904241617.19608.assaf.flatto@ssp-intl.com> References: <49F1D147.4050305@andromeiberica.com> <200904241617.19608.assaf.flatto@ssp-intl.com> Message-ID: <49F1E209.20203@andromeiberica.com> Hi all, Thanks for all the replies Assaf Flatto wrote: > hello > > You want to take a look at the external commands : > > http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135 > I have copied&pasted the example that appear on that link. When I execute it I get the following error in my nagios log Warning: Unrecognized external command -> SEND_CUSTOM_SVC_NOTIFICATION;envirosensor;Water Level;3;Ethan;The NOC is currently flooding. Help! I'm using Nagios 2.6 over debian. Any idea? Thank you very much!! > Assaf > > On Friday 24 April 2009 15:48:39 Arnau wrote: > >> Hi all, >> >> Since few weeks ago we use Nagios as monitoring system and everytime >> there is a problem it notifies sending an email. We have a system that >> parses those emails and using a text to speech system it makes a phone >> call. To be sure that the alarm system is running we have periodic calls >> launched by emails programmed as cron tasks. I'm worried that some of >> the Nagios notifications could be lost or even it wouldn't sent any >> notification, so I'd like to launch to substitute those cron emails by >> Nagios "fake" notifications or something similar. >> >> Do you know if there is a way to force Nagios to send a notification >> periodically? >> >> Thank you very much >> >> >> Cheers!! -- Arnau ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Apr 24 18:41:52 2009 From: marc at ena.com (Marc Powell) Date: Fri, 24 Apr 2009 11:41:52 -0500 Subject: How configure Nagios to send periodic notifications? In-Reply-To: <49F1E209.20203@andromeiberica.com> References: <49F1D147.4050305@andromeiberica.com> <200904241617.19608.assaf.flatto@ssp-intl.com> <49F1E209.20203@andromeiberica.com> Message-ID: <8432E9F5-C9B3-47E5-92B5-628B8CA290EF@ena.com> On Apr 24, 2009, at 11:00 AM, Arnau wrote: > Assaf Flatto wrote: >> http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135 > Warning: Unrecognized external command -> > SEND_CUSTOM_SVC_NOTIFICATION;envirosensor;Water Level;3;Ethan;The > NOC is > currently flooding. Help! > > I'm using Nagios 2.6 over debian. Any idea? "Command Categories: Notifications Services Nagios Version(s): 3.x" <----------------------------' -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adam.mooz at gmail.com Fri Apr 24 18:58:15 2009 From: adam.mooz at gmail.com (Adam Mooz) Date: Fri, 24 Apr 2009 12:58:15 -0400 Subject: Permissions problem In-Reply-To: <20090423202447.GM19457@bakgwai.americas.hpqcorp.net> References: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> <20090423202447.GM19457@bakgwai.americas.hpqcorp.net> Message-ID: <65549038-951F-4A24-B987-755B46BF257D@gmail.com> I didn't know about the primary group bit, thanks! It's all working, apologies for the snarky-ness in the previous message. All is good now :) On 23-Apr-09, at 4:24 PM, Patrick Morris wrote: > By the way, for further info see the xinetd man page, which (on my > system, anyway) states: > > group > determines the gid for the server process. The group name must > exist > in /etc/group. If a group is not specified, the group of user will > be used (from /etc/passwd). This attribute is ineffective if the > effective user ID of xinetd is not super-user. > > Note that it's only going to use the primary group. Other group rights > are dropped. > > On Thu, 23 Apr 2009, Adam Mooz wrote: > >> No, it's not, but that doesn't matter. I can manually execute the >> plugin, but not via NRPE, so I think something isn't running as >> nagios. Top says NRPE is running as nagios though. What user does >> the NRPE run it's scripts as on the remote machine? >> >> On 23-Apr-09, at 3:01 PM, Patrick Morris wrote: >> >>> On Thu, 23 Apr 2009, Adam Mooz wrote: >>> >>>> I'm using Nagios and NRPE to monitor some system logs on a remote >>>> system via check_logfiles. >>>> >>>> Here's the setup: >>>> -user 'nagio's is part of the 'adm' group >>>> -/var/log/syslog is readable by the 'adm' group >>>> -manually executing check_logfiles as nagios (sudo -u nagios ./ >>>> check_logfiles ) works >>>> -executing remotely via NRPE fails >>>> -NRPE is being started via xinetd and running as 'nagios' >>>> >>>> changing syslog to be world readable fixes the problem, however it >>>> does just that; leaves the syslog file world readable. This >>>> behavior >>>> is being repeated for several other log files as well (mysql, >>>> apache) >>>> where despite nagios being part of the appropriate groups still not >>>> remotely readable. This is clearly a problem of something >>>> running as >>>> a different user. >>>> >>>> Ideas? >>> >>> If I were a betting man I'd say that adm is not the nagios user's >>> primary group, and/or you've specified a different group in your >>> xinetd >>> config. >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensign 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/ >> null ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jerome.Meyer at baldata.ch Fri Apr 24 19:31:07 2009 From: Jerome.Meyer at baldata.ch (Meyer Jerome) Date: Fri, 24 Apr 2009 19:31:07 +0200 Subject: Nagios Web Interface not Accessible on RHEL 4 AS In-Reply-To: <1240581446.faad95253aee7437871781018bdf3309@mail.in.com> References: <46EEEA5FAED9CA479556002BA9C27FD705BFADA9@iw50.iwbnet.ch> <1240581446.faad95253aee7437871781018bdf3309@mail.in.com> Message-ID: <46EEEA5FAED9CA479556002BA9C27FD705BFAE3A@iw50.iwbnet.ch> Hi Yours configs seems ok! Try ?make uninstall? Your directories and files must be accessed and read by nagios users! And again read the doc : http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html it?s really helpful! So, have a nice weekend jm Von: Sundar V S [mailto:sunnywavez at in.com] Gesendet: Freitag, 24. April 2009 15:57 An: Meyer Jerome Cc: Nagios-users Betreff: Re: [Nagios-users]Nagios Web Interface not Accessible on RHEL 4 AS Hi Meyer, Thanks for your Response, and for Nagios 3.1 can you tell how to uninstall it, as there is no option i am aware of. I did gave rites to my nagios location, chown -R nagios.nagcmd /usr/local/nagios Also attached with the mail are my httpd.conf and nagios .conf file. /etc/httpd/conf.d (here nagios.conf) is placed and /etc/httpd/conf (here httpd.conf) is placed Please do provide if any chnages are to be altered in the conf files. Do you require any more details on my configuration. Thanks and Regards, Sundar ---------- Original message ---------- From:Meyer Jerome< Jerome.Meyer at baldata.ch > Date: 24 Apr 09 18:53:21 Subject: Re: [Nagios-users] Nagios Web Interface not Accessible on RHEL 4 AS To: Could you provide us more infos : like /etc/httpd/conf.d/nagios.conf, or /etc/httpd/conf/httpd.conf. It could be still have some problems!!!!! First ====== You doesn???t have the right access on your directory or files located at /usr/local/nagios/share Second ====== On RedHat the???s a security enhancement called SELinux and you must deactivate it or change it like : chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ chcon -R -t httpd_sys_content_t /usr/local/nagios/share READ CAREFULLY the full guide at http://nagios.sourceforge.net/docs/3_0/toc.html =============== THE VERSION 3.1.0 IS ON DEVELOPMENT (TEST), I ENCOURAGE YOU TO USE THE STABLE ONE 3.0.6 !!! That???s my point of view??? Von: Sundar V S [mailto:sunnywavez at in.com] Gesendet: Freitag, 24. April 2009 12:52 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Nagios Web Interface not Accessible on RHEL 4 AS Hi Friends, I am a newbie, installing Nagios 3.1.0 on RHEL 4 AS . I have completed the basic installation of Nagios, and now when i am trying to Access the url : http://localhost/nagios/ , and after giving the appropriate Username and Password, it is giving following error. Forbidden You don't have permission to access /nagios/ on this server. Apache/2.0.52 (Red Hat) Server at localhost Port 80 Below given is the extract from the error logs after accessing the Web Page, [Thu Apr 23 19:45:39 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /usr/local/nagios/share [Thu Apr 23 19:45:39 2009] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico Please help to resolve this issue, as i am not able to see the Nagios Web Interface page. Thanks and Regards, Sundar Dear nagios-users at lists.sourceforge.net ! Get Yourself a cool, short @in.com Email ID now! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Fri Apr 24 20:32:20 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Fri, 24 Apr 2009 11:32:20 -0700 (PDT) Subject: SNMP Service Uknown In-Reply-To: <20090424004728.GU19457@bakgwai.americas.hpqcorp.net> References: <588B6AB4-5374-42C8-88D4-8BD7877E5194@gmail.com> <20090423190119.GK19457@bakgwai.americas.hpqcorp.net> <78F487A9-B675-4D25-A6AD-192D4CACE328@gmail.com> <20090423202447.GM19457@bakgwai.americas.hpqcorp.net> <464653.55036.qm@web111203.mail.gq1.yahoo.com> <20090424004728.GU19457@bakgwai.americas.hpqcorp.net> Message-ID: <430253.16030.qm@web111214.mail.gq1.yahoo.com> Thanks for your response. Would you happen to how on how would I enable it in the router? Cisco ASA for instance. Can someone please give me an idea? I'd appreciate it. ________________________________ From: Patrick Morris To: Dei Bertine Cc: "nagios-users at lists.sourceforge.net" Sent: Thursday, April 23, 2009 5:47:28 PM Subject: Re: [Nagios-users] SNMP Service Uknown Hi Dei! On Fri, 24 Apr 2009, Dei Bertine wrote: > Hi all, > > I got the first part set-up on monitoring my network equipment. > Ran the verify and everything was OK. > However when I go to the Nagios page, I see these logs in my network equipment: > "SNMP problem - No data received from host " > > This is the notification email I got: > Notification Type: PROBLEM > Service: PING > Host: CISCO > Address: 172.168.2.1 > State: UNKNOWN > Date/Time: Thu Apr 23 21:29:00 EDT 2009 > Additional Info: > SNMP problem - No data received from host > > This is a sample of my cfg file: > define service{ > use local-service ; Inherit values from a template > host_name cisco-router ; The name of the host the service is associated with > service_description PING ; The service description > check_command check_snmp!-C public -o sysUpTime.0 > normal_check_interval 5 ; Check the service every 5 minutes under normal conditions > retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined > } > > Not sure on this but is there anything in the router/switch that need to enable? Yes, you'll probably need to configure your router to accept SNMP polls from your Nagios box. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sergio.ariel at iris.uh.cu Fri Apr 24 21:51:10 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Fri, 24 Apr 2009 15:51:10 -0400 Subject: NRPE without xinetd Message-ID: <49F2182E.7070906@iris.uh.cu> I need to install NRPE in a server that do not have installed xinetd. I can't install xinetd neither. Please help me to configure NRPE installation in order to use it without xinetd. -- Sergio Ariel de la Campa Saiz Administrador Red UH ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Fri Apr 24 22:11:30 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Fri, 24 Apr 2009 15:11:30 -0500 Subject: NRPE without xinetd In-Reply-To: <49F2182E.7070906@iris.uh.cu> References: <49F2182E.7070906@iris.uh.cu> Message-ID: Just compile it or install via rpm repository, etc, and run it as a stand-alone daemon, eg: /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d James Moseley Sergio Ariel wrote: I need to install NRPE in a server that do not have installed xinetd. I can't install xinetd neither. Please help me to configure NRPE installation in order to use it without xinetd. -- Sergio Ariel de la Campa Saiz ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Apr 24 22:36:34 2009 From: marc at ena.com (Marc Powell) Date: Fri, 24 Apr 2009 15:36:34 -0500 Subject: NRPE without xinetd In-Reply-To: <49F2182E.7070906@iris.uh.cu> References: <49F2182E.7070906@iris.uh.cu> Message-ID: <71BE64E8-A0DC-43A7-B1EB-300835EFC3AA@ena.com> On Apr 24, 2009, at 2:51 PM, Sergio Ariel wrote: > I need to install NRPE in a server that do not have installed > xinetd. I > can't install xinetd neither. Please help me to configure NRPE > installation in order to use it without xinetd. move nrpe and nrpe.cfg somewhere appropriate on your system. edit nrpe.cfg - set/review all config variables. be sure to set server port, server address, user/group and allowed_hosts. Server port can likely be left at the default unless you have specific requirements. - start nrpe as a standalone daemon - /path/to/nrpe -d /path/to/ nrpe.cfg - .... - Profit! -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From list.man at bluejeantime.com Fri Apr 24 22:39:15 2009 From: list.man at bluejeantime.com (List Man) Date: Fri, 24 Apr 2009 16:39:15 -0400 Subject: NRPE without xinetd In-Reply-To: References: Message-ID: The debian init version in the source directory is pretty standard so you can change it to meet your needs as well. LM On 4/24/09 4:11 PM, "jmoseley at corp.xanadoo.com" wrote: > Just compile it or install via rpm repository, etc, and run it as a > stand-alone daemon, eg: > > /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d > > > James Moseley > > > > Sergio Ariel wrote: > > I need to install NRPE in a server that do not have installed xinetd. I > can't install xinetd neither. Please help me to configure NRPE > installation in order to use it without xinetd. > -- > Sergio Ariel de la Campa Saiz > > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 25 00:00:11 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 24 Apr 2009 23:00:11 +0100 Subject: Multiple host service detail on one page In-Reply-To: <344EA4316A303841AF605084EDF294B8F0EB99@EXCHANGE02.connaughtplc.local> References: <344EA4316A303841AF605084EDF294B8F0EB99@EXCHANGE02.connaughtplc.local> Message-ID: <765d77c80904241500n529f2c5eo2c0666d5a1bb216d@mail.gmail.com> 2009/4/23 Nick Millen : > Hi All, > > I was wondering if anybody had anything place to see multiple hosts services > on one page. For example I'm monitoring?3 individual exchange servers. I can > add these to a hostgroup then check each individually : > > http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME&style=detail > > http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME2&style=detail > > http://SERVER/nagios/cgi-bin/status.cgi?host=HOSTNAME3&style=detail > > Is there any way to have 3 different host details such as the above but on > one page ? So I can have a quick glance of exchange 1, 2 and 3 >From Nagios 3.0.6 onwards you can enter a wildcard to specify the hosts you want to view ( in your case HOSTNAME* will probably do it ). See http://www.nagios.org/development/history/nagios-3x.php hth, Jim ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Sat Apr 25 00:13:04 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Fri, 24 Apr 2009 23:13:04 +0100 Subject: Nagios - layered monitoring: In-Reply-To: References: Message-ID: <765d77c80904241513v12e5bde3k90d7cc55d3ce59b7@mail.gmail.com> 2009/4/24 Jones, Stuart : > I'm running Nagios 3.1 on Ubuntu 8.1 monitoring routers and switches. Has > anyone come up with a methodology of limiting the alerts when say the > primary router at a site fails impacting visibility to switches etc beyond > the primary router? So long as you specify the parent relationships in your host definitions it's all pretty much automatic. The thing to remember is that although Nagios is intelligent enough only to send a (usually email) notification for the primary router if a whole site is down, all of the affected hosts will still show as down (or unreachable) in the cgi. When you say "limiting alerts", I'm assuming you mean the notifications, not what appears on screen. If you want to pinpoint where the problem is when lots of hosts are down, I recommend you click on blocking outages in the tactical overview screen. hth, Jim ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Sat Apr 25 00:40:02 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Fri, 24 Apr 2009 18:40:02 -0400 Subject: missing pnp graphs Message-ID: <4881ECF1AB752843908A20CEE07A8EB11281B2@buf-ex01.cymfony.com> I have a test box to try pnp. For some reason, the graphs for performance data are showing with a red x. I only have the default localhost with the other default install files; made adjustments to enable perfdata (default mode). Under the perfdata folder there is a localhost folder with rrd and xml files for each service so I know that part is working; not sure what I'm missing. Screenshot attached. Config: CentOS 5.3 Apache 2.2.11 PHP 5.2.9-2 (compiled with zlib and gd) Nagios 3.1.0 PNP 0.4.13 Perl 5.8.8 RRD 1.3.7 Seth Simmons Systems Administrator TNS Cymfony 125 Walnut Street, Suite 205 Watertown, MA 02472 Phone: 617.673.6024 | Fax: 617.924.6167 www.cymfony.com | blog: www.influence2.com "harnessing influence 2.0" -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 70 bytes Desc: image001.gif URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pnp.png Type: image/png Size: 59008 bytes Desc: pnp.png URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Sat Apr 25 02:57:42 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Fri, 24 Apr 2009 17:57:42 -0700 (PDT) Subject: Change default Nagios user and Nagios group In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB11281B2@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB11281B2@buf-ex01.cymfony.com> Message-ID: <761823.20897.qm@web111212.mail.gq1.yahoo.com> Hi all, I'm trying to change the default user name "nagios" and the group "nagios" to user admmon and group admmon. After doing so, restarted apache and nagios - got this error from the admin page: Error: Could not read host and service status information! The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios. Some other things you should check in order to resolve this error include: Check the Nagios log file for messages relating to startup or status data errors. Always verify configuration options using the -v command-line option before starting or restarting Nagios! Make sure you've compiled the main program and the CGIs to use the same status data storage options (i.e. text file or database). If the main program is storing status data in a text file and the CGIs are trying to read status data from a database, you'll have problems.Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org. I made sure I changed all cfg's that read "nagios" as user and "nagios" as group to the new one admmon in all hosts and the nagios cfgs itself. Need expert advise please, I appreciate it! Thanks. DB -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pitchfork at ederdrom.de Sat Apr 25 08:39:25 2009 From: pitchfork at ederdrom.de (Joerg Linge) Date: Sat, 25 Apr 2009 08:39:25 +0200 Subject: missing pnp graphs In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB11281B2@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB11281B2@buf-ex01.cymfony.com> Message-ID: <49F2B01D.9040204@ederdrom.de> Seth Simmons schrieb: > > > I have a test box to try pnp. For some reason, the graphs for > performance data are showing with a red x. Hi Seth, please check path to rrdtool in etc/pnp/config.php $conf['rrdtool'] = "/usr/bin/rrdtool"; Joerg ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Sat Apr 25 13:21:57 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Sat, 25 Apr 2009 07:21:57 -0400 Subject: missing pnp graphs In-Reply-To: <49F2B01D.9040204@ederdrom.de> References: <4881ECF1AB752843908A20CEE07A8EB11281B2@buf-ex01.cymfony.com> <49F2B01D.9040204@ederdrom.de> Message-ID: <4881ECF1AB752843908A20CEE07A8EB11281B3@buf-ex01.cymfony.com> The path is correct; I specified it manually when I compiled it. [root at centos bin]# cat /usr/local/nagios/etc/pnp/config.php | grep rrdtool | grep -v "#" $conf['rrdtool'] = "/usr/local/rrdtool/bin/rrdtool"; [root at centos bin]# ls rrdcgi rrdtool rrdupdate [root at centos bin]# pwd /usr/local/rrdtool/bin -----Original Message----- From: Joerg Linge [mailto:pitchfork at ederdrom.de] Sent: Saturday, April 25, 2009 2:39 AM Cc: nagios Mailinglist Subject: Re: [Nagios-users] missing pnp graphs Seth Simmons schrieb: > > > I have a test box to try pnp. For some reason, the graphs for > performance data are showing with a red x. Hi Seth, please check path to rrdtool in etc/pnp/config.php $conf['rrdtool'] = "/usr/bin/rrdtool"; Joerg ------------------------------------------------------------------------ ------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rex at ish.com.au Mon Apr 27 05:22:18 2009 From: rex at ish.com.au (Rex Chan) Date: Mon, 27 Apr 2009 13:22:18 +1000 Subject: service event handler passing null macro values? Message-ID: <20090427132218.6d2626a9@avatar-laptop> Hi all, I've been playing trying to get service event handlers running following the sample script in the nagios manual but I'm running into a problem where the macros return null values. The event handler command is: define command { command_name restart_phptunnel command_line /usr/local/etc/periodic/restart_phptunne $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ I looked } In the logs: [1240797599] SERVICE EVENT HANDLER:delish;tunnel_splash_phpmydmin;(null);(null);(null);restart_phptunnel Is there a known issue with this or is there more I have to do get the macros working? This on a FreeBSD machine with Nagios 3.0.6 from ports. -- Rex Chan --------------------------> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerald.Ortner at gespag.at Mon Apr 27 07:05:12 2009 From: Gerald.Ortner at gespag.at (Ortner, Gerald) Date: Mon, 27 Apr 2009 07:05:12 +0200 Subject: WG: SNMP Service Uknown Message-ID: Hi! For Cisco switches use: snmp-server community yourSecret RO Von: Dei Bertine [mailto:deibertine at yahoo.com] Gesendet: Freitag, 24. April 2009 20:32 An: nagios-users at lists.sourceforge.net Betreff: Re: [Nagios-users] SNMP Service Uknown Thanks for your response. Would you happen to how on how would I enable it in the router? Cisco ASA for instance. Can someone please give me an idea? I'd appreciate it. ________________________________ From: Patrick Morris To: Dei Bertine Cc: "nagios-users at lists.sourceforge.net" Sent: Thursday, April 23, 2009 5:47:28 PM Subject: Re: [Nagios-users] SNMP Service Uknown Hi Dei! On Fri, 24 Apr 2009, Dei Bertine wrote: > Hi all, > > I got the first part set-up on monitoring my network equipment. > Ran the verify and everything was OK. > However when I go to the Nagios page, I see these logs in my network equipment: > "SNMP problem - No data received from host " > > This is the notification email I got: > Notification Type: PROBLEM > Service: PING > Host: CISCO > Address: 172.168.2.1 > State: UNKNOWN > Date/Time: Thu Apr 23 21:29:00 EDT 2009 > Additional Info: > SNMP problem - No data received from host > > This is a sample of my cfg file: > define service{ > use local-service ; Inherit values from a template > host_name cisco-router ; The name of the host the service is associated with > service_description PING ; The service description > check_command check_snmp!-C public -o sysUpTime.0 > normal_check_interval 5 ; Check the service every 5 minutes under normal conditions > retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined > } > > Not sure on this but is there anything in the router/switch that need to enable? Yes, you'll probably need to configure your router to accept SNMP polls from your Nagios box. OOe. Gesundheits- und Spitals-AG Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 p -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Mon Apr 27 04:24:37 2009 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Sun, 26 Apr 2009 23:24:37 -0300 Subject: Doubt about email notifications In-Reply-To: <20090420010244.GG9115@defiant.freesoftware.org> References: <20090414102901.GG28777@defiant.freesoftware.org> <20090420010244.GG9115@defiant.freesoftware.org> Message-ID: <20090427022437.GA3178@defiant.freesoftware.org> On Sunday, 19 April 2009 22:02:44 -0300, Daniel Bareiro wrote: > On Tuesday, 14 April 2009 07:11:28 -0500, > Marc Powell wrote: > > > On the other hand, I would like also to know if it is possible to > > > define the maximum number of notifications that are sent. > > > > > > I read exist variables that allow to configure both things using > > > escalations, although I do not have defined escalations. > > yes, I believe an escalation would do for this. I haven't done this > > but I expect you could set your first notification to the number of > > the last notification you want to receive (i.e. 3 for the third > > notification) and your last notification to some high number (99). > > Create a contact with a notification period of 'none' and set it as > > the contact for the escalation. > It seems a good idea :-) I am going to try it and any doubt I will > consult you again. With a little more of time, I was reading about escalations and, to where I could see, these are created by host and services. Unless there is a general form to define the escalations, I don't believe that it is practical considering that I have 291 services and 58 hosts. Regards, Daniel -- Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Sun Apr 26 16:58:28 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Sun, 26 Apr 2009 14:58:28 +0000 Subject: HTTP server authentication requirements for accessing this CGI. In-Reply-To: References: <5f638b360904240341q160081a1g89e990bdb485001a@mail.gmail.com> Message-ID: <6db4a4200904260758l12ed728yc2dd7c464147f2db@mail.gmail.com> Jimmy, Try the following and this should take care of it. Thanks ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi" Alias /nagios "/usr/share/nagios" # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user On Sun, Apr 26, 2009 at 10:52 AM, Jimmyboy wrote: > Hi Ankush, > > This is already done, but still the issue exists. > The only difference is the username nagiosadmin as in my case. > > Thanks, > Jim > > On Fri, Apr 24, 2009 at 4:11 PM, ankush grover wrote: > >> Hi Jimmy, >> >> You need to enable authentication in cgi.cfg. >> >> use_authentication=1 >> >> authorized_for_all_host_commands=admin >> authorized_for_all_hosts=admin >> authorized_for_all_service_commands=admin >> authorized_for_all_services=admin >> authorized_for_configuration_information=admin >> authorized_for_system_commands=admin >> authorized_for_system_information=admin >> >> >> Something like this in nagios.conf file for apache (On my linux box >> that is centos 5.x it is /etc/httpd/conf.d/nagios.conf) >> >> >> # SSLRequireSSL >> Options ExecCGI >> AllowOverride None >> Order allow,deny >> Allow from all >> # Order deny,allow >> # Deny from all >> # Allow from 127.0.0.1 >> AuthName "Nagios Access" >> AuthType Basic >> AuthUserFile /etc/nagios/htpasswd.users >> Require valid-user >> >> >> Alias /nagios "/usr/share/nagios" >> >> >> # SSLRequireSSL >> Options None >> AllowOverride None >> Order allow,deny >> Allow from all >> # Order deny,allow >> # Deny from all >> # Allow from 127.0.0.1 >> AuthName "Nagios Access" >> AuthType Basic >> AuthUserFile /etc/nagios/htpasswd.users >> Require valid-user >> >> >> >> Now use htpasswd command to generate htpasswd.users file with user admin. >> >> htpasswd -c /etc/nagios/htpasswd.users admin >> >> >> Regards >> >> Ankush >> >> >> On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy >> wrote: >> > Hi All, >> > >> > I have installed Apache2.2.9 using the source file >> > 'Apache2_2.2.9.orig.tar.gz'. >> > Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the >> Quickstart >> > Guide. I am able to open http://localhost/nagios. >> > >> > However, certain entities on the left pane, such as 'Process Info', >> 'Network >> > Outages', etc are not getting opened. They error out with the following >> > message. >> > >> > "It appears as though you do not have permission to view information for >> any >> > of the hosts you requested... If you believe this is an error, check the >> > HTTP server authentication requirements for accessing this CGI and check >> the >> > authorization options in your CGI configuration file." >> > >> > I followed >> http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. >> > Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/ >> > /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under >> > nagios directory. Morever, I do not see the 'sites-available' & >> > other directories named similarly under my /usr/local/apache2/conf >> > directory. Will that be a problem? >> > >> > But, still, I am at same stage. Anyone, any idea, how to go about? >> > >> > Thanks, >> > Jim >> > >> ------------------------------------------------------------------------------ >> > Crystal Reports - New Free Runtime and 30 Day Trial >> > Check out the new simplified licensign 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 at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > ::: Please include Nagios version, plugin version (-v) and OS when >> reporting >> > any issue. >> > ::: Messages without supporting info will risk being sent to /dev/null >> > >> > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From michael at medin.name Mon Apr 27 10:35:46 2009 From: michael at medin.name (Michael Medin) Date: Mon, 27 Apr 2009 10:35:46 +0200 Subject: C++ Plugins In-Reply-To: References: <49EE1DF0.6090309@medin.name> Message-ID: <49F56E62.7040801@medin.name> On 2009-04-24 12:05, Christopher McAtackney wrote: > 2009/4/21 Michael Medin : > >> Hello, >> >> All the "built in" plugins are avalible as source so it should be pretty >> simple to figure out. >> The idea is anyways that you fill the buffer passed to the function from the >> "core". >> (this will BTW change in the next major release) >> > > > Thanks for the explanation Michael - this should be very helpful. > Ahh... Sorry, when you mentioned C++ I assumed you were writing extensions. External scripts can be used "as normal programs" without any specific NSClient++ code at all. Then just follow the regular "writing extensions" guideline for nagios and you should be fine. The difference between external script and extensions are that extensions are running "inside" NSClient and thus can do "more" things but all in all it is not that much difference so there is no real benefit (apart from maybe the forking and such). // Michael Medin > I'm curious though, what are the guidelines around writing a C++ > program to be executed as an external script? I've written a simple > program for checking if the driver name supplied as an arg is loaded > in the system, but I'm not using any of the above "glue" to do so, I > just make the checks and printf the output and return the result code. > Is this sufficient? Here's the code; > > #include > #include > #include > #include > #include > > #define ARRAY_SIZE 1024 > > int main(int argc, char* argv[]) > { > LPVOID drivers[ARRAY_SIZE]; > DWORD cbNeeded; > int cDrivers, i; > > if(EnumDeviceDrivers(drivers, sizeof(drivers), &cbNeeded) && cbNeeded > < sizeof(drivers)) > { > TCHAR szDriver[ARRAY_SIZE]; > > cDrivers = cbNeeded / sizeof(drivers[0]);; > > for (i=0; i < cDrivers; i++ ) > { > if(GetDeviceDriverBaseName(drivers[i], szDriver, sizeof(szDriver) / > sizeof(szDriver[0]))) > { > if(argv[1] != NULL && _tcscmp ( szDriver, _T(argv[1])) == 0) > { > printf("Driver is loaded"); > return 0; // OK > } > } > } > > printf("Driver is not loaded!"); > return 2; // CRITICAL > } > else > { > printf("EnumDeviceDrivers failed; array size needed is %d\n", > cbNeeded / sizeof(LPVOID)); > return 3; // UNKNOWN > } > } > > > It's based off the code here; > http://msdn.microsoft.com/en-us/library/ms682619(VS.85).aspx > > I just drop the compiled program into "ExternalScripts" and add this to nsc.ini; > > [External Scripts] > check_driver = ExternalScripts\Check_Driver.exe > > Is this an appropriate way to carry-out this check? It works perfectly > fine so far, but I'm just curious to see if this is a proper way of > doing things? > > Cheers, > Chris > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohandas.k at tcs.com Mon Apr 27 09:07:17 2009 From: mohandas.k at tcs.com (mohandas.k at tcs.com) Date: Mon, 27 Apr 2009 12:37:17 +0530 Subject: Host shows down due to ping block on firewall In-Reply-To: References: Message-ID: Hi James, Thanks it is working after changing as check_ssh. Rgds, Mohandas Kudva K ____________________________________________ jmoseley at corp.xanadoo.com 04/23/2009 06:09 PM To mohandas.k at tcs.com cc nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] Host shows down due to ping block on firewall You can also use check_ssh as your check_command argument in your hosts file. James Moseley wrote: Hi All, I have started to do monitoring of some hosts which are behind the firewall and PING (ICMP) is block on firewall. so I have exculded ping service in localhosts.cfg file and as well as check-host-alive option also from host template but still Nagios web interface shows host as "DOWN" RED Color in host status web interface. I think this is happening due to PING block on firewall. However ssh and nrpe port are opened on firewall to do monitoring of host resources. other services are showing OK in green color associate to this host. Please let me know how can we enforce nagios to shows that HOST is UP in host status web interface. ForwardSourceID:NT00000F5E =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From luis.sanchez.sanchez at gmail.com Mon Apr 27 09:04:34 2009 From: luis.sanchez.sanchez at gmail.com (Luis Sanchez) Date: Mon, 27 Apr 2009 09:04:34 +0200 Subject: NAGIOS NRPE issue In-Reply-To: References: Message-ID: Finally I managed to run the script with NRPE using root privilegies. The script didn't work. I tried with one of the NRPE samples adding sudo to the command definition: command[check_users]=sudo /usr/lib/nagios/plugins/check_users -w 5 -c 10 I commented the command_prefix option and I commented require_tty in the sudoers file #Defaults requiretty I think this last option is needed If you're passing parameters to the script. Thanks, 2009/4/24 Luis Sanchez > Hi, > > I'm trying to run a script in a remote machine using root privileges (this > is just a simple sample, just some output to a file). > > > I run this command from the nagios server machine: > > /usr/lib/nagios/plugins/check_nrpe -H 192.168.168.33 -p 5666 -c > service_restart > > > and I get this error message: > > NRPE: Unable to read output > > > I have added nagios user to the sudoers list (all the privileges to avoid > permission problems). The NRPE daemon is started and listening in the > correct port. > > The NRPE log in the monitorized machine is (no reference to the error): > > Apr 24 15:06:49 outrun nrpe[26716]: INFO: SSL/TLS initialized. All network > traffic will be encrypted. > Apr 24 15:06:49 outrun nrpe[26717]: Starting up daemon > Apr 24 15:06:49 outrun nrpe[26717]: Warning: Daemon is configured to accept > command arguments from clients! > Apr 24 15:06:49 outrun nrpe[26717]: Listening for connections on port 5666 > Apr 24 15:06:49 outrun nrpe[26717]: Allowing connections from: > 192.168.168.20,127.0.0.1 > > > If I change the nrpe configuration and comment command_prefix option. It > works. > > > I'm using centos 5.2 in the monitorized machine and the monitoring machine. > The NRPE version is 2.12 and nagios server version is 3.0.6 > > > This is just a test to check how to execute commands being root. In fact > the real aim is use event handlers to autoheal the monitorized machine by > restarting a service if it gets down. > > Any idea on how to solve the problem? > Thank you very much for your help > > BTW hereunder you can find more configuration data. > > > MONITORIZED REMOTE MACHINE /etc/sudoers > ----------------------------------------------------- > > nagios ALL=(ALL) NOPASSWD: ALL > > > > MONITORIZED REMOTE MACHINE NRPE CONFIGURATION > ------------------------------------------------------------------- > log_facility=daemon > pid_file=/var/run/nrpe.pid > server_port=5666 > nrpe_user=nagios > nrpe_group=nagios > allowed_hosts=192.168.168.20,127.0.0.1 > > dont_blame_nrpe=1 > command_prefix=/usr/bin/sudo > debug=1 > command_timeout=60 > connection_timeout=300 > command[service_restart]=/usr/lib/nagios/plugins/service_restart > > > MONITORIZED REMOTE MACHINE SCRIPT IN > /usr/lib/nagios/plugins/service_restart > ------------------------------------------------------------------------ > #!/bin/sh > # > # Event handler script for restarting the web server on the local machine > # > # Note: This script will only restart the web server if the service is > # retried 3 times (in a "soft" state) or if the web service somehow > # manages to fall into a "hard" error state. > # > > whoami >> /tmp/asd.txt > echo -n "hola" >> /tmp/asd.txt > exit 0 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jimmyjose2980 at gmail.com Sun Apr 26 12:52:15 2009 From: jimmyjose2980 at gmail.com (Jimmyboy) Date: Sun, 26 Apr 2009 16:22:15 +0530 Subject: HTTP server authentication requirements for accessing this CGI. In-Reply-To: <5f638b360904240341q160081a1g89e990bdb485001a@mail.gmail.com> References: <5f638b360904240341q160081a1g89e990bdb485001a@mail.gmail.com> Message-ID: Hi Ankush, This is already done, but still the issue exists. The only difference is the username nagiosadmin as in my case. Thanks, Jim On Fri, Apr 24, 2009 at 4:11 PM, ankush grover wrote: > Hi Jimmy, > > You need to enable authentication in cgi.cfg. > > use_authentication=1 > > authorized_for_all_host_commands=admin > authorized_for_all_hosts=admin > authorized_for_all_service_commands=admin > authorized_for_all_services=admin > authorized_for_configuration_information=admin > authorized_for_system_commands=admin > authorized_for_system_information=admin > > > Something like this in nagios.conf file for apache (On my linux box > that is centos 5.x it is /etc/httpd/conf.d/nagios.conf) > > > # SSLRequireSSL > Options ExecCGI > AllowOverride None > Order allow,deny > Allow from all > # Order deny,allow > # Deny from all > # Allow from 127.0.0.1 > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /etc/nagios/htpasswd.users > Require valid-user > > > Alias /nagios "/usr/share/nagios" > > > # SSLRequireSSL > Options None > AllowOverride None > Order allow,deny > Allow from all > # Order deny,allow > # Deny from all > # Allow from 127.0.0.1 > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /etc/nagios/htpasswd.users > Require valid-user > > > > Now use htpasswd command to generate htpasswd.users file with user admin. > > htpasswd -c /etc/nagios/htpasswd.users admin > > > Regards > > Ankush > > > On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy wrote: > > Hi All, > > > > I have installed Apache2.2.9 using the source file > > 'Apache2_2.2.9.orig.tar.gz'. > > Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the Quickstart > > Guide. I am able to open http://localhost/nagios. > > > > However, certain entities on the left pane, such as 'Process Info', > 'Network > > Outages', etc are not getting opened. They error out with the following > > message. > > > > "It appears as though you do not have permission to view information for > any > > of the hosts you requested... If you believe this is an error, check the > > HTTP server authentication requirements for accessing this CGI and check > the > > authorization options in your CGI configuration file." > > > > I followed > http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. > > Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/ > > /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under > > nagios directory. Morever, I do not see the 'sites-available' & > > other directories named similarly under my /usr/local/apache2/conf > > directory. Will that be a problem? > > > > But, still, I am at same stage. Anyone, any idea, how to go about? > > > > Thanks, > > Jim > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensign 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 at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jimmyjose2980 at gmail.com Mon Apr 27 10:17:35 2009 From: jimmyjose2980 at gmail.com (Jimmyboy) Date: Mon, 27 Apr 2009 13:47:35 +0530 Subject: HTTP server authentication requirements for accessing this CGI. In-Reply-To: <6db4a4200904260758l12ed728yc2dd7c464147f2db@mail.gmail.com> References: <5f638b360904240341q160081a1g89e990bdb485001a@mail.gmail.com> <6db4a4200904260758l12ed728yc2dd7c464147f2db@mail.gmail.com> Message-ID: Hi Shahid & Ankush, Thanks for your replies. But, I guess, these directives are not meant for Nagios on Ubuntu (if one follows the Quickstart Guide). For Ubuntu, the path is "/usr/local/nagios/share". Moreover, I do not have a 'nagios' directory under "/usr/lib/". *New observation*: If the cgi.cfg file is edited to enable 'default_user=nagiosadmin', then I can access the Process Info screen, etc. However, I if try stopping or restarting the nagios service from within the Process Info screen, it errors out stating this: =-=-=-= Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. An error occured while attempting to commit your command for processing. *Return from whence you came* =-=-=-= So, I think it has to do something with authentication. Thanks, Jim =-=-=-=-=-=-= On Sun, Apr 26, 2009 at 8:28 PM, shadih rahman wrote: > Jimmy, > Try the following and this should take care of it. Thanks > > > ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi" > > > Alias /nagios "/usr/share/nagios" > > > # SSLRequireSSL > Options None > AllowOverride None > Order allow,deny > Allow from all > # Order deny,allow > # Deny from all > # Allow from 127.0.0.1 > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /etc/nagios/htpasswd.users > Require valid-user > > > > > On Sun, Apr 26, 2009 at 10:52 AM, Jimmyboy wrote: > >> Hi Ankush, >> >> This is already done, but still the issue exists. >> The only difference is the username nagiosadmin as in my case. >> >> Thanks, >> Jim >> >> On Fri, Apr 24, 2009 at 4:11 PM, ankush grover wrote: >> >>> Hi Jimmy, >>> >>> You need to enable authentication in cgi.cfg. >>> >>> use_authentication=1 >>> >>> authorized_for_all_host_commands=admin >>> authorized_for_all_hosts=admin >>> authorized_for_all_service_commands=admin >>> authorized_for_all_services=admin >>> authorized_for_configuration_information=admin >>> authorized_for_system_commands=admin >>> authorized_for_system_information=admin >>> >>> >>> Something like this in nagios.conf file for apache (On my linux box >>> that is centos 5.x it is /etc/httpd/conf.d/nagios.conf) >>> >>> >>> # SSLRequireSSL >>> Options ExecCGI >>> AllowOverride None >>> Order allow,deny >>> Allow from all >>> # Order deny,allow >>> # Deny from all >>> # Allow from 127.0.0.1 >>> AuthName "Nagios Access" >>> AuthType Basic >>> AuthUserFile /etc/nagios/htpasswd.users >>> Require valid-user >>> >>> >>> Alias /nagios "/usr/share/nagios" >>> >>> >>> # SSLRequireSSL >>> Options None >>> AllowOverride None >>> Order allow,deny >>> Allow from all >>> # Order deny,allow >>> # Deny from all >>> # Allow from 127.0.0.1 >>> AuthName "Nagios Access" >>> AuthType Basic >>> AuthUserFile /etc/nagios/htpasswd.users >>> Require valid-user >>> >>> >>> >>> Now use htpasswd command to generate htpasswd.users file with user admin. >>> >>> htpasswd -c /etc/nagios/htpasswd.users admin >>> >>> >>> Regards >>> >>> Ankush >>> >>> >>> On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy >>> wrote: >>> > Hi All, >>> > >>> > I have installed Apache2.2.9 using the source file >>> > 'Apache2_2.2.9.orig.tar.gz'. >>> > Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the >>> Quickstart >>> > Guide. I am able to open http://localhost/nagios. >>> > >>> > However, certain entities on the left pane, such as 'Process Info', >>> 'Network >>> > Outages', etc are not getting opened. They error out with the following >>> > message. >>> > >>> > "It appears as though you do not have permission to view information >>> for any >>> > of the hosts you requested... If you believe this is an error, check >>> the >>> > HTTP server authentication requirements for accessing this CGI and >>> check the >>> > authorization options in your CGI configuration file." >>> > >>> > I followed >>> http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. >>> > Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/ >>> > /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under >>> > nagios directory. Morever, I do not see the 'sites-available' & >>> > other directories named similarly under my /usr/local/apache2/conf >>> > directory. Will that be a problem? >>> > >>> > But, still, I am at same stage. Anyone, any idea, how to go about? >>> > >>> > Thanks, >>> > Jim >>> > >>> ------------------------------------------------------------------------------ >>> > Crystal Reports - New Free Runtime and 30 Day Trial >>> > Check out the new simplified licensign 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 at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/nagios-users >>> > ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting >>> > any issue. >>> > ::: Messages without supporting info will risk being sent to /dev/null >>> > >>> >> >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensign 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > -- > Cordially, > Shadhin Rahman > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gerald.Ortner at gespag.at Mon Apr 27 10:52:38 2009 From: Gerald.Ortner at gespag.at (Ortner, Gerald) Date: Mon, 27 Apr 2009 10:52:38 +0200 Subject: Nagios Web interface show hosts/services status to specific/contacts user only, not all hosts/services In-Reply-To: References: Message-ID: Von: mohandas.k at tcs.com [mailto:mohandas.k at tcs.com] Gesendet: Montag, 27. April 2009 09:27 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Nagios Web interface show hosts/services status to specific/contacts user only, not all hosts/services Hi All, I have created two contacts/contacts groups and associated these two groups in host template so notification will go to concern team only for referenced servers. I want to know how can we give nagios web interface access/permission to specific contacts/groups so that they can see their referenced servers only not all ? Let me elaborate requirement -: "A" user who is owner of ABC server can see status of ABC host only in nagios web interface not all monitored hosts. if I am not wrong we will have to make changes in cgi.cfg, but not sure what need to change. =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you Hi, Which nagios version do you use? For 2.6 for view access you have to edit authorized_for_all_services authorized_for_all_hosts in your cgi.cfg # GLOBAL HOST/SERVICE VIEW ACCESS # These two options are comma-delimited lists of all usernames that # can view information for all hosts and services that are being # monitored. By default, users can only view information # for hosts or services that they are contacts for (unless you # you choose to not use authorization). You may use an asterisk (*) # to authorize any user who has authenticated to the web server. for command access(e.g. disable active check,...) edit authorized_for_all_service_commands authorized_for_all_host_commands # GLOBAL HOST/SERVICE COMMAND ACCESS # These two options are comma-delimited lists of all usernames that # can issue host or service related commands via the command # CGI (cmd.cgi) for all hosts and services that are being monitored. # By default, users can only issue commands for hosts or services # that they are contacts for (unless you you choose to not use # authorization). You may use an asterisk (*) to authorize any # user who has authenticated to the web server. OOe. Gesundheits- und Spitals-AG Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 p -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Mon Apr 27 11:08:18 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Mon, 27 Apr 2009 10:08:18 +0100 Subject: Protocol Message-ID: Hi everyone, I was just wondering; what protocol (TCP, UDP?) does Nagios use to communicate with remote hosts when using the check_nrpe plugin? Or just generally? Cheers, Chris ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Mon Apr 27 11:21:07 2009 From: subscription at kkeane.com (Kevin Keane) Date: Mon, 27 Apr 2009 02:21:07 -0700 Subject: Protocol In-Reply-To: References: Message-ID: <49F57903.5020100@kkeane.com> TCP. UDP would be too unreliable for this type of application, and there also is too much data going over the line to make UDP a viable option. Christopher McAtackney wrote: > Hi everyone, > > I was just wondering; what protocol (TCP, UDP?) does Nagios use to > communicate with remote hosts when using the check_nrpe plugin? Or > just generally? > > Cheers, > Chris > -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frank.altpeter at gmail.com Mon Apr 27 12:05:39 2009 From: frank.altpeter at gmail.com (Frank Altpeter) Date: Mon, 27 Apr 2009 12:05:39 +0200 Subject: hint on service dependency configuration Message-ID: Hi list, I need a little input on a configuration problem. I've got a list of hosts, which are running NRPE to check local services. So, if the nrpe daemon on one of these hosts stops working, I get alarms for every configured nrpe-check. Now I thought that the service dependency would be the configuration of my choice to suppress multiple alarms. But I'm a bit confused how to configure this correctly. I'm checking the nrpe service itself on these hosts, and want to suppress alarms for the other nrpe-based services if the nrpe check fails. Is there a way to configure this in an optimized way, without having one servicedependency block for each host and each nrpe check ? As far as I understand servicedependency config, there can be multiple hosts as dependent, but only one dependent service with one depending host and service, which would be a pain to configure with 130 hosts :) I would imagine doing something like that (for example): # Suppress notifications for nrpe-based services if nrpe check itself fails define servicedependency { host_name * service_description NRPE dependent_host_name $self dependent_service_description DISKS,SWAP,USERS execution_failure_criteria w,u,c,p notification_failure_criteria o,w,u,c,p } Does anyone have an idea how to create something like that? Le deagh dh?raghd, Frank Altpeter There is no way to happiness. Happiness is the way. -- Buddha ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nzamoeba at hotmail.com Mon Apr 27 13:02:12 2009 From: nzamoeba at hotmail.com (David Willson) Date: Mon, 27 Apr 2009 23:02:12 +1200 Subject: Customising colours In-Reply-To: References: <960a54cc0904200217h3d1508bm93ab925da8f9995a@mail.gmail.com> Message-ID: Date: Mon, 20 Apr 2009 11:17:49 +0200 Subject: Re: [Nagios-users] Customising colours From: ctemple at merethis.com To: nzamoeba at hotmail.com CC: nagios-users at lists.sourceforge.net 2009/4/20 David Willson At our lab we currently have the Nagios Service Overview page displayed on a large screen for all users to see, this way they can tell when a particular box is down. My boss is wondering if there is some way to adjust the colour scheme so that when something becomes 'Acknowledged' it displays as blue, instead of red. So far I've changed the values for items such as .statusHOSTDOWNACK background-color to #33FFFF in the status.css file, however it only shows that blue colour on certain windows, and not the Service Overview window which is our main one. Is what I'm trying to do possible? I only have a passing knowledge of css and html, so if it requires an extensive re-write it's probably not going to be practical. Hi, May be you can try another theme for Nagios: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1723.html;d=1 http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2969.html;d=1 http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2737.html;d=1 Regards -- C?dric Temple | Chef de Projet -- Unfortunately those theme's have the same problem, and my feeble attempts at editing them only solve half the problem. In the HostGroup Overview page, it still highlights the Down but Acknowledged host as red, when I edit the status.css file so that any line that references something as being acknowledged shows blue, it only shows that blue on particular pages. Interestingly, on the Host Detail page, where it lists every host in a large table, the hostname part of the line is still red, but the rest of the info (last check, duration, info etc) is highlighted in blue. And it's the hostname part of the display in the Hostgroup overview page that I'm trying to get blue. Would what I'm asking for require a total rewrite of how the acknowledgments are referenced in the web interface? From: nzamoeba at hotmail.com To: nagios-users at lists.sourceforge.net Date: Tue, 21 Apr 2009 14:00:08 +1200 Subject: Re: [Nagios-users] Customising colours Just following up on this, is what I'm asking for possible, or would it require what would amount to a total rewrite of nagios itself? _________________________________________________________________ Earning enough? Find out with SEEK Salary Survey http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsalarysurvey%2Emsn%2Eseek%2Eco%2Enz%2F%3Ftracking%3Dsk%3Atl%3Asknzsal%3Amsnnz%3A0%3Ahottag%3Aearn%5Fenough&_t=757263783&_r=Seek_NZ_tagline&_m=EXT -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From craig at hooters-uk.com Mon Apr 27 13:29:52 2009 From: craig at hooters-uk.com (craig at hooters-uk.com) Date: Mon, 27 Apr 2009 12:29:52 +0100 Subject: Voice Alerts Message-ID: <6e97f9ca34884092a0db732a763c711a.craig@hooters-uk.com> Hi Group, Has anybody successfully got voice alerts working on Nagios whether it be through a hosted company or other. I have my mail alerts working fine, they escalate to SMS and if the fault is still there I would like it to call up-to 3 different mobiles and play an alert through another escalation step, I'm not bothered if its a pre recorded message or one that is converted and synthesised. If need be I can use our Asterisk box to make the outgoing calls, but at the minute I can not find any solution via Google, maybe I'm searching for the wrong phrase. Once I have this working then I have a complete system up and running that my bosses are happy with. Thanks and looking forward to you replies. Craig ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Mon Apr 27 14:19:57 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Mon, 27 Apr 2009 13:19:57 +0100 Subject: Voice Alerts In-Reply-To: <6e97f9ca34884092a0db732a763c711a.craig@hooters-uk.com> References: <6e97f9ca34884092a0db732a763c711a.craig@hooters-uk.com> Message-ID: <200904271319.57925.assaf.flatto@ssp-intl.com> I had a setup of phone calls via asterisk for alerts and it worked fine, i would suggest you try this : http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2234.html;d=1 On Monday 27 April 2009 12:29:52 craig at hooters-uk.com wrote: > Hi Group, Has anybody successfully got voice alerts working on Nagios > whether it be through a hosted company or other. > > I have my mail alerts working fine, they escalate to SMS and if the fault > is still there I would like it to call up-to 3 different mobiles and play > an alert through another escalation step, I'm not bothered if its a pre > recorded message or one that is converted and synthesised. > > If need be I can use our Asterisk box to make the outgoing calls, but at > the minute I can not find any solution via Google, maybe I'm searching for > the wrong phrase. > > Once I have this working then I have a complete system up and running that > my bosses are happy with. > > Thanks and looking forward to you replies. > > Craig > > > --------------------------------------------------------------------------- >--- Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Assaf Flatto SSP Ops Team Linux System Administrator 169 Euston Road, London, NW1 2AE Along with a few colleagues I am doing The Three Peaks Challenge again this year to raise money for The Railway Children. Please sponsor me by making a donation online, simply click on the link below and give via your switch/credit card. Thank you. http://www.justgiving.com/londonnorththreepeaks IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 27 14:09:57 2009 From: marc at ena.com (Marc Powell) Date: Mon, 27 Apr 2009 07:09:57 -0500 Subject: Nagios Web interface show hosts/services status to specific/contacts user only, not all hosts/services In-Reply-To: References: Message-ID: <1F5DA154-87D8-40DC-8E5A-AF250CBEAD64@ena.com> On Apr 27, 2009, at 3:52 AM, Ortner, Gerald wrote: >> Von: mohandas.k at tcs.com [mailto:mohandas.k at tcs.com] >> Gesendet: Montag, 27. April 2009 09:27 >> An: nagios-users at lists.sourceforge.net >> Betreff: [Nagios-users] Nagios Web interface show hosts/services >> status to specific/contacts user only, not all hosts/services >> >> >> Hi All, >> >> I have created two contacts/contacts groups and associated these >> two groups in host template so notification will go to concern team >> only for referenced servers. >> >> I want to know how can we give nagios web interface access/ >> permission to specific contacts/groups so that they can see their >> referenced servers only not all ? > >> > for view access you have to edit > authorized_for_all_services > authorized_for_all_hosts > > in your cgi.cfg {more cgi.cfg refrences removed) > Nothing in cgi.cfg *restricts* what can be seen. The parameters here only grant full access to particular types of objects. The OP needs to look at the docs for enabling authorization for the CGI's. That will allow him/her to restrict based on contact settings. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohandas.k at tcs.com Mon Apr 27 14:24:35 2009 From: mohandas.k at tcs.com (mohandas.k at tcs.com) Date: Mon, 27 Apr 2009 17:54:35 +0530 Subject: Nagios Web interface show hosts/services status to specific/contacts user only, not all hosts/services In-Reply-To: <1F5DA154-87D8-40DC-8E5A-AF250CBEAD64@ena.com> References: <1F5DA154-87D8-40DC-8E5A-AF250CBEAD64@ena.com> Message-ID: Hi Marc, You are right. we can not restrict to look all hosts/services in Nagios web interface by modifying cgi.cfg file. can you please share any related document or link where I can check for this requirement ? Marc Powell 04/27/2009 05:39 PM To Nagios Users cc Subject Re: [Nagios-users] Nagios Web interface show hosts/services status to specific/contacts user only, not all hosts/services On Apr 27, 2009, at 3:52 AM, Ortner, Gerald wrote: >> Von: mohandas.k at tcs.com [mailto:mohandas.k at tcs.com] >> Gesendet: Montag, 27. April 2009 09:27 >> An: nagios-users at lists.sourceforge.net >> Betreff: [Nagios-users] Nagios Web interface show hosts/services >> status to specific/contacts user only, not all hosts/services >> >> >> Hi All, >> >> I have created two contacts/contacts groups and associated these >> two groups in host template so notification will go to concern team >> only for referenced servers. >> >> I want to know how can we give nagios web interface access/ >> permission to specific contacts/groups so that they can see their >> referenced servers only not all ? > >> > for view access you have to edit > authorized_for_all_services > authorized_for_all_hosts > > in your cgi.cfg {more cgi.cfg refrences removed) > Nothing in cgi.cfg *restricts* what can be seen. The parameters here only grant full access to particular types of objects. The OP needs to look at the docs for enabling authorization for the CGI's. That will allow him/her to restrict based on contact settings. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00002406 =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From assaf.flatto at ssp-intl.com Mon Apr 27 14:27:03 2009 From: assaf.flatto at ssp-intl.com (Assaf Flatto) Date: Mon, 27 Apr 2009 13:27:03 +0100 Subject: hint on service dependency configuration In-Reply-To: References: Message-ID: <200904271327.03200.assaf.flatto@ssp-intl.com> On Monday 27 April 2009 11:05:39 Frank Altpeter wrote: > Hi list, > > I need a little input on a configuration problem. I've got a list of > hosts, which are running NRPE to check local services. So, if the nrpe > daemon on one of these hosts stops working, I get alarms for every > configured nrpe-check. Now I thought that the service dependency would > be the configuration of my choice to suppress multiple alarms. But I'm > a bit confused how to configure this correctly. > I'm checking the nrpe service itself on these hosts, and want to > suppress alarms for the other nrpe-based services if the nrpe check > fails. Is there a way to configure this in an optimized way, without > having one servicedependency block for each host and each nrpe check ? > As far as I understand servicedependency config, there can be multiple > hosts as dependent, but only one dependent service with one depending > host and service, which would be a pain to configure with 130 hosts :) > > I would imagine doing something like that (for example): > > # Suppress notifications for nrpe-based services if nrpe check itself fails > define servicedependency { > host_name * > service_description NRPE > dependent_host_name $self > dependent_service_description DISKS,SWAP,USERS > execution_failure_criteria w,u,c,p > notification_failure_criteria o,w,u,c,p > } What you want is like what you put in the example above but you want to change it to define servicedependency { host_name * service_description NRPE dependent_host_name * dependent_service_description DISKS,SWAP,USERS execution_failure_criteria w,u,c,p notification_failure_criteria o,w,u,c,p } also you may want to change the notification criteria to a more suitable like c,w,u ( that means in the case of the NRPE being critical , unknown, or warning , you will not get a n alert) . you can also do it with hostgroups define servicedependency { hostgroups_name group1,group2 service_description NRPE dependent_hostgroups_name group1,group2 dependent_service_description DISKS,SWAP,USERS execution_failure_criteria w,u,c notification_failure_criteria o,w,u,c } Assaf IMPORTANT . this email and the information in it may be confidential, legally privileged and/or protected by law. It is intended solely for the use of the person to whom it is addressed. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Please also delete all copies of this email and any attachments from your system. We cannot guarantee the security or confidentiality of email communications. We do not accept any liability for losses or damages that you may suffer as a result of your receipt of this email including but not limited to computer service or system failure, access delays or interruption, data non-delivery or mis-delivery, computer viruses or other harmful components. Copyright in this email and any attachments belong to Select Service Partner UK Limited. Should you communicate with anyone at Select Service Partner UK Limited by email, you consent to us monitoring and reading any such correspondence. Nothing in this email shall be taken or read as suggesting, proposing or relating to any agreement concerted practice or other practice that could infringe UK or EC competition legislation. Select Service Partner UK Limited is a company registered in England and Wales (company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mohandas.k at tcs.com Mon Apr 27 14:43:25 2009 From: mohandas.k at tcs.com (mohandas.k at tcs.com) Date: Mon, 27 Apr 2009 18:13:25 +0530 Subject: Nagios Web interface show hosts/services status to specific/contacts user only, not all hosts/services In-Reply-To: References: <1F5DA154-87D8-40DC-8E5A-AF250CBEAD64@ena.com> Message-ID: Hi All, It's working now....actually I have wrongly mentioned group name in conatcts.cfg file, same I have rectified and now defined contact is able to view his/her associated/referenced host/services only not all host/resources. Thanks.......:) Mohandas K/TVM/TCS 04/27/2009 05:54 PM To Marc Powell cc Nagios Users Subject Re: [Nagios-users] Nagios Web interface show hosts/services status to specific/contacts user only, not all hosts/services Hi Marc, You are right. we can not restrict to look all hosts/services in Nagios web interface by modifying cgi.cfg file. can you please share any related document or link where I can check for this requirement ? Marc Powell 04/27/2009 05:39 PM To Nagios Users cc Subject Re: [Nagios-users] Nagios Web interface show hosts/services status to specific/contacts user only, not all hosts/services On Apr 27, 2009, at 3:52 AM, Ortner, Gerald wrote: >> Von: mohandas.k at tcs.com [mailto:mohandas.k at tcs.com] >> Gesendet: Montag, 27. April 2009 09:27 >> An: nagios-users at lists.sourceforge.net >> Betreff: [Nagios-users] Nagios Web interface show hosts/services >> status to specific/contacts user only, not all hosts/services >> >> >> Hi All, >> >> I have created two contacts/contacts groups and associated these >> two groups in host template so notification will go to concern team >> only for referenced servers. >> >> I want to know how can we give nagios web interface access/ >> permission to specific contacts/groups so that they can see their >> referenced servers only not all ? > >> > for view access you have to edit > authorized_for_all_services > authorized_for_all_hosts > > in your cgi.cfg {more cgi.cfg refrences removed) > Nothing in cgi.cfg *restricts* what can be seen. The parameters here only grant full access to particular types of objects. The OP needs to look at the docs for enabling authorization for the CGI's. That will allow him/her to restrict based on contact settings. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT00002406 ForwardSourceID:NT00002412 =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From texner at eoipso.com Mon Apr 27 14:44:41 2009 From: texner at eoipso.com (Tobias Exner) Date: Mon, 27 Apr 2009 14:44:41 +0200 Subject: monitoring temp - cheap and simple Message-ID: <49F5A8B9.6040205@eoipso.com> Hi list, I'm very new to nagios and I hope someone may give me an advice. I'm searching for a cheap solution to monitoring the temperatur of a room using an ip-sensor. Of course, it should be usable with existing plugin of nagios. Cheap is good enough 'cause it's just to educate myself. Cheers, Tobias ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ojan at gfi.fr Mon Apr 27 14:41:30 2009 From: ojan at gfi.fr (Olivier JAN) Date: Mon, 27 Apr 2009 14:41:30 +0200 Subject: monitoring temp - cheap and simple In-Reply-To: <49F5A8B9.6040205@eoipso.com> References: <49F5A8B9.6040205@eoipso.com> Message-ID: <20090427144130.rornk21r8k0gggwc@intra.expertise-online.net> Hi list, pcmeasure.com are the most affordable sensors i've found and they have a open source driver. Olivier http://www.nagios-fr.org Tobias Exner a ?crit : > Hi list, > > I'm very new to nagios and I hope someone may give me an advice. > > I'm searching for a cheap solution to monitoring the temperatur of a > room using an ip-sensor. > Of course, it should be usable with existing plugin of nagios. > > Cheap is good enough 'cause it's just to educate myself. > > > Cheers, > > Tobias > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From vismara at email.it Mon Apr 27 15:28:22 2009 From: vismara at email.it (vismara at email.it) Date: Mon, 27 Apr 2009 15:28:22 +0200 Subject: Binding Nagios to a single domain Message-ID: <23e0c35a30101060d0891b0eebe8cf14@88.149.180.111> Hello, I have installed Nagios on a machine which has more than one domain; all is working fine, but I reach Nagios login form from all domains hosted in the machine. I'd like to set Nagios in the way that it will be accessible only via one specified domain (for example testingtools.mydomain.com/nagios) and absolutely not from others; it is possibile? If yes, how I can make this? Another question: it is possible to switch Nagios first page (immediately after the login) to a specified one (for example the tactical view)? Thank you in advance! Best regards! -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it: http://www.email.it/f Sponsor: Biocosmo.net - Vuoi guadagni extra promuovendo prodotti ecologici per uso privato e per aziende? Noi vogliamo trasformare questa crisi mondiale in una opportunit? per tutti. Diventa ECO-ista! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=8974&d=20090427 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sergio.ariel at iris.uh.cu Mon Apr 27 15:47:31 2009 From: sergio.ariel at iris.uh.cu (Sergio Ariel) Date: Mon, 27 Apr 2009 09:47:31 -0400 Subject: NRPE without xinetd In-Reply-To: <71BE64E8-A0DC-43A7-B1EB-300835EFC3AA@ena.com> References: <49F2182E.7070906@iris.uh.cu> <71BE64E8-A0DC-43A7-B1EB-300835EFC3AA@ena.com> Message-ID: <49F5B773.4070609@iris.uh.cu> Thanks a lot, I gonna try it right now. Sergio Ariel de la Campa Saiz Administrador Red UH Marc Powell wrote: > On Apr 24, 2009, at 2:51 PM, Sergio Ariel wrote: > >> I need to install NRPE in a server that do not have installed >> xinetd. I >> can't install xinetd neither. Please help me to configure NRPE >> installation in order to use it without xinetd. > > move nrpe and nrpe.cfg somewhere appropriate on your system. > edit nrpe.cfg > - set/review all config variables. > be sure to set server port, server address, user/group and > allowed_hosts. Server port can likely be left at the default unless > you have specific requirements. > - start nrpe as a standalone daemon - /path/to/nrpe -d /path/to/ > nrpe.cfg > - .... > - Profit! > > -- > Marc > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From roy at karlsbakk.net Mon Apr 27 16:03:01 2009 From: roy at karlsbakk.net (Roy Sigurd Karlsbakk) Date: Mon, 27 Apr 2009 16:03:01 +0200 Subject: What are the reasons to use NRPE? Message-ID: Hi all I just wonder what the reasons are to use NRPE in favour of checks over ssh with ssh keys. To me, NRPE seems just one more piece of software that may potentioally be broken and more hassle with firewalls. Why do people still use it when ssh checks are just as simple and (in my opinion) far more secure? Best regards roy -- Roy Sigurd Karlsbakk (+47) 97542685 / 98013356 roy at karlsbakk.net -- I all pedagogikk er det essensielt at pensum presenteres intelligibelt. Det er et element?rt imperativ for alle pedagoger ? unng? eksessiv anvendelse av idiomer med fremmed opprinnelse. I de fleste tilfeller eksisterer adekvate og relevante synonymer p? norsk. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sascha.Runschke at gfkl.com Mon Apr 27 16:10:50 2009 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Mon, 27 Apr 2009 16:10:50 +0200 Subject: Antwort: Binding Nagios to a single domain In-Reply-To: <23e0c35a30101060d0891b0eebe8cf14@88.149.180.111> References: <23e0c35a30101060d0891b0eebe8cf14@88.149.180.111> Message-ID: vismara at email.it schrieb am 27.04.2009 15:28:22: > I have installed Nagios on a machine which has more than one domain; all is > working fine, but I reach Nagios login form from all domains hosted in the > machine. > > I'd like to set Nagios in the way that it will be accessible only via one > specified domain (for example testingtools.mydomain.com/nagios) and > absolutely not from others; it is possibile? > If yes, how I can make this? Configure your webserver accordingly. It's hard to guess how you set it up to serve multiple domains, but the mechanisms apply when you want to configure the access to nagios. Most likely you have a /etc/httpd/conf.d/nagios.conf which defines scripts and aliases. Those are apache-wide defined and not bound to a special virtualhost. Move the definitions of nagios.conf inside the virtualhost definition of your choice and nagios will only be served there. > Another question: it is possible to switch Nagios first page (immediately > after the login) to a specified one (for example the tactical view)? Yes, use the source luke and edit the index.html. Regards Sascha GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Sascha.Runschke at gfkl.com Mon Apr 27 16:15:03 2009 From: Sascha.Runschke at gfkl.com (Sascha.Runschke at gfkl.com) Date: Mon, 27 Apr 2009 16:15:03 +0200 Subject: Antwort: What are the reasons to use NRPE? In-Reply-To: References: Message-ID: Roy Sigurd Karlsbakk schrieb am 27.04.2009 16:03:01: > I just wonder what the reasons are to use NRPE in favour of checks > over ssh with ssh keys. To me, NRPE seems just one more piece of > software that may potentioally be broken and more hassle with > firewalls. Why do people still use it when ssh checks are just as > simple and (in my opinion) far more secure? Because ssh has way more overhead especially because of the way how the ssl connection is handled. Therefor a check_by_ssh check takes longer then a check_nrpe check. This _is_ significant if you are running 2k checks per minute like me and some other people. Lots of check_by_ssh checks slow down the machine by a big degree and check latency will skyrocket. Regards Sascha GFKL Financial Services AG Vorstand: Dr. Peter J?nsch (Vors.), J?rgen Baltes, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frank.altpeter at gmail.com Mon Apr 27 16:20:19 2009 From: frank.altpeter at gmail.com (Frank Altpeter) Date: Mon, 27 Apr 2009 16:20:19 +0200 Subject: hint on service dependency configuration In-Reply-To: <200904271327.03200.assaf.flatto@ssp-intl.com> References: <200904271327.03200.assaf.flatto@ssp-intl.com> Message-ID: Hi, 2009/4/27 Assaf Flatto : > What you want is like what you put in the example above but you want to change it to > > ?define servicedependency { > ? ? ? ? host_name ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?* > ? ? ? ?service_description ? ? ? ? ? ? ? ? ? ? NRPE > ? ? ? ?dependent_host_name ? ? ? ? ? ? * > ? ? ? ?dependent_service_description ? DISKS,SWAP,USERS > ? ? ? ?execution_failure_criteria ? ? ?w,u,c,p > ? ? ? ?notification_failure_criteria ? o,w,u,c,p > ?} Hmmm, you're right, this is indeed working. Didn't think so, because my first tests failed, but after all, it looks like there were some other configuration mistakes in it. However, given the above example, wouldn't that mean, that - if I define two hosts named web01 and web02 for example - that if the nrpe check on web01 fails, it would also suppress DISKS notifications of web02 ? I'm not sure how this is handled internally by nagios to prevent such scenarios ... and I think it wouldn't be good if a full disk on one of the servers wouldn't generate notifications if another host's nrpe daemon check is suppressing this. -- Le deagh dh?raghd, Frank Altpeter There is no way to happiness. Happiness is the way. -- Buddha ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Apr 27 16:23:32 2009 From: marc at ena.com (Marc Powell) Date: Mon, 27 Apr 2009 09:23:32 -0500 Subject: Binding Nagios to a single domain In-Reply-To: <23e0c35a30101060d0891b0eebe8cf14@88.149.180.111> References: <23e0c35a30101060d0891b0eebe8cf14@88.149.180.111> Message-ID: <0656F53F-4C87-4861-A45D-EE9BC7D06AA2@ena.com> On Apr 27, 2009, at 8:28 AM, vismara at email.it wrote: > Hello, > > I have installed Nagios on a machine which has more than one domain; > all is > working fine, but I reach Nagios login form from all domains hosted > in the > machine. > > I'd like to set Nagios in the way that it will be accessible only > via one > specified domain (for example testingtools.mydomain.com/nagios) and > absolutely not from others; it is possibile? > If yes, how I can make this? If you're using Apache, create all the domains/sites as name based virtualhosts. http://httpd.apache.org/docs/2.0/vhosts/name-based.html. If you're using some other web server software, consult it's documentation to see if it has similar capability (it should). > Another question: it is possible to switch Nagios first page > (immediately > after the login) to a specified one (for example the tactical view)? Yes. Obtain the URL for the page you want displayed (by right clicking on the link to it and 'copy link location' for example). Edit share/ index.php (or is it html/index.php these days?), look for 'main.php' and change it to the URL you want displayed instead. -- Marc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tinzauro at ha-solutions.net Mon Apr 27 16:02:37 2009 From: tinzauro at ha-solutions.net (Terry L. Inzauro) Date: Mon, 27 Apr 2009 09:02:37 -0500 Subject: Binding Nagios to a single domain In-Reply-To: <23e0c35a30101060d0891b0eebe8cf14@88.149.180.111> References: <23e0c35a30101060d0891b0eebe8cf14@88.149.180.111> Message-ID: <49F5BAFD.3040804@ha-solutions.net> vismara at email.it wrote: > Hello, > > I have installed Nagios on a machine which has more than one domain; all is > working fine, but I reach Nagios login form from all domains hosted in the > machine. > > I'd like to set Nagios in the way that it will be accessible only via one > specified domain (for example testingtools.mydomain.com/nagios) and > absolutely not from others; it is possibile? > If yes, how I can make this? > > Another question: it is possible to switch Nagios first page (immediately > after the login) to a specified one (for example the tactical view)? > > Thank you in advance! > > Best regards! > > Assuming you are using Apache 2.x (and i understand you question correctly): Looks like you have Nagios setup under the "_defaut_" vhost and you need it setup as a separate Apache virtual host with its own authentication setup. See http://httpd.apache.org/docs/2.0/vhosts/ for information on how to accomplish this. Dedicate the Nagios installation to a specific virtual host with its own auth and you should be off to the races. As far as the default view is concerned, I am stumped. You should be able to use Apache mod_rewrite to accomplish if Nagios doesn't do it natively. hope this helps. regards, _Terry ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Mon Apr 27 16:36:03 2009 From: jpratt at norwich.edu (James Pratt) Date: Mon, 27 Apr 2009 10:36:03 -0400 Subject: What are the reasons to use NRPE? In-Reply-To: References: Message-ID: <8147CCE3C4A8764DA9980125EE70E823BE5663@nuexchg.norwich.edu> > -----Original Message----- > From: Roy Sigurd Karlsbakk [mailto:roy at karlsbakk.net] > Sent: Monday, April 27, 2009 10:03 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] What are the reasons to use NRPE? > > Hi all > > I just wonder what the reasons are to use NRPE in favour of checks > over ssh with ssh keys. To me, NRPE seems just one more piece of > software that may potentioally be broken and more hassle with > firewalls. Why do people still use it when ssh checks are just as > simple and (in my opinion) far more secure? > > Best regards > > roy > -- > Roy Sigurd Karlsbakk > (+47) 97542685 / 98013356 > roy at karlsbakk.net > -- Hi there are many many, different reasons one may wish to utilize nrpe over ssh - many sites do not even run ssh, or if they do, may not allow privileges needed, or may not even allow Public key auth in their configs. It really depends on the site. Thanks, Jamie ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jimmyjose2980 at gmail.com Mon Apr 27 16:55:22 2009 From: jimmyjose2980 at gmail.com (Jimmyboy) Date: Mon, 27 Apr 2009 20:25:22 +0530 Subject: HTTP server authentication requirements for accessing this CGI. In-Reply-To: <6db4a4200904260758l12ed728yc2dd7c464147f2db@mail.gmail.com> References: <5f638b360904240341q160081a1g89e990bdb485001a@mail.gmail.com> <6db4a4200904260758l12ed728yc2dd7c464147f2db@mail.gmail.com> Message-ID: Hi Shahid, I have only installed Apache & Nagios, but have not configured Nagios with the hosts & service and their respective groups, except for the * contacts.cfg* file. Just to confirm, can this pose authentication issues? Thanks, Jim =-=-=-=-= On Sun, Apr 26, 2009 at 8:28 PM, shadih rahman wrote: > Jimmy, > Try the following and this should take care of it. Thanks > > > ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi" > > > Alias /nagios "/usr/share/nagios" > > > # SSLRequireSSL > Options None > AllowOverride None > Order allow,deny > Allow from all > # Order deny,allow > # Deny from all > # Allow from 127.0.0.1 > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /etc/nagios/htpasswd.users > Require valid-user > > > > > On Sun, Apr 26, 2009 at 10:52 AM, Jimmyboy wrote: > >> Hi Ankush, >> >> This is already done, but still the issue exists. >> The only difference is the username nagiosadmin as in my case. >> >> Thanks, >> Jim >> >> On Fri, Apr 24, 2009 at 4:11 PM, ankush grover wrote: >> >>> Hi Jimmy, >>> >>> You need to enable authentication in cgi.cfg. >>> >>> use_authentication=1 >>> >>> authorized_for_all_host_commands=admin >>> authorized_for_all_hosts=admin >>> authorized_for_all_service_commands=admin >>> authorized_for_all_services=admin >>> authorized_for_configuration_information=admin >>> authorized_for_system_commands=admin >>> authorized_for_system_information=admin >>> >>> >>> Something like this in nagios.conf file for apache (On my linux box >>> that is centos 5.x it is /etc/httpd/conf.d/nagios.conf) >>> >>> >>> # SSLRequireSSL >>> Options ExecCGI >>> AllowOverride None >>> Order allow,deny >>> Allow from all >>> # Order deny,allow >>> # Deny from all >>> # Allow from 127.0.0.1 >>> AuthName "Nagios Access" >>> AuthType Basic >>> AuthUserFile /etc/nagios/htpasswd.users >>> Require valid-user >>> >>> >>> Alias /nagios "/usr/share/nagios" >>> >>> >>> # SSLRequireSSL >>> Options None >>> AllowOverride None >>> Order allow,deny >>> Allow from all >>> # Order deny,allow >>> # Deny from all >>> # Allow from 127.0.0.1 >>> AuthName "Nagios Access" >>> AuthType Basic >>> AuthUserFile /etc/nagios/htpasswd.users >>> Require valid-user >>> >>> >>> >>> Now use htpasswd command to generate htpasswd.users file with user admin. >>> >>> htpasswd -c /etc/nagios/htpasswd.users admin >>> >>> >>> Regards >>> >>> Ankush >>> >>> >>> On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy >>> wrote: >>> > Hi All, >>> > >>> > I have installed Apache2.2.9 using the source file >>> > 'Apache2_2.2.9.orig.tar.gz'. >>> > Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the >>> Quickstart >>> > Guide. I am able to open http://localhost/nagios. >>> > >>> > However, certain entities on the left pane, such as 'Process Info', >>> 'Network >>> > Outages', etc are not getting opened. They error out with the following >>> > message. >>> > >>> > "It appears as though you do not have permission to view information >>> for any >>> > of the hosts you requested... If you believe this is an error, check >>> the >>> > HTTP server authentication requirements for accessing this CGI and >>> check the >>> > authorization options in your CGI configuration file." >>> > >>> > I followed >>> http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. >>> > Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/ >>> > /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under >>> > nagios directory. Morever, I do not see the 'sites-available' & >>> > other directories named similarly under my /usr/local/apache2/conf >>> > directory. Will that be a problem? >>> > >>> > But, still, I am at same stage. Anyone, any idea, how to go about? >>> > >>> > Thanks, >>> > Jim >>> > >>> ------------------------------------------------------------------------------ >>> > Crystal Reports - New Free Runtime and 30 Day Trial >>> > Check out the new simplified licensign 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 at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/nagios-users >>> > ::: Please include Nagios version, plugin version (-v) and OS when >>> reporting >>> > any issue. >>> > ::: Messages without supporting info will risk being sent to /dev/null >>> > >>> >> >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensign 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > -- > Cordially, > Shadhin Rahman > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Mon Apr 27 18:12:19 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Mon, 27 Apr 2009 17:12:19 +0100 Subject: monitoring temp - cheap and simple In-Reply-To: <49F5A8B9.6040205@eoipso.com> References: <49F5A8B9.6040205@eoipso.com> Message-ID: <765d77c80904270912m63dd5bg50790540d3909b83@mail.gmail.com> 2009/4/27 Tobias Exner : > Hi list, > > I'm very new to nagios and I hope someone may give me an advice. > > I'm searching for a cheap solution to monitoring the temperatur of a > room using an ip-sensor. > Of course, it should be usable with existing plugin of nagios. > > Cheap is good enough 'cause it's just to educate myself. > > > Cheers, > > Tobias If it's just to educate yourself, you could do a lot worse than have a go at linking to a hobbyist weather station for example from http://www.lacrossetechnology.com/ . If you get one with a PC interface using the WD2300 chip set, you can use Open2300 ( http://www.lavrsen.dk/twiki/bin/view/Open2300/UserGuide ) to interrogate the station from your linux system. There are various other open-source projects to interface with other weather stations, for example from Oregon Scientific. A weather station makes a good project because you need to think about how you will handle the various different kinds of data. Cheers, Jim ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Mon Apr 27 22:15:03 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Mon, 27 Apr 2009 17:15:03 -0300 Subject: Checking Bacula Server Message-ID: Hi all, Does anybody know how to check a Bacula Server? I've installed check-bacula but it's not working fine. Anybody to give me a clue? Thanks in advance Eduardo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From shadhin71 at gmail.com Mon Apr 27 23:02:34 2009 From: shadhin71 at gmail.com (shadih rahman) Date: Mon, 27 Apr 2009 17:02:34 -0400 Subject: ups oids that might help Message-ID: <6db4a4200904271402p70238880yed0bc69aead3d7b4@mail.gmail.com> I had to spend a lot of time looking for oids on liebert and on apc upses. I just wanted to share it with the group. *Liebert oids * Description OID Definition MIB SOURCE BupsBatteryVoltage 1.3.6.1.2.1.33.1.2.5 The magnitude of the present battery voltage. RFC1628_UPS_MIB.MIB upsInputNumLines 1.3.6.1.2.1.33.1.3.2 The number of input lines utilized in this device. RFC1628_UPS_MIB.MIB upsInputVoltage 1.3.6.1.2.1.33.1.3.3.1.3 The magnitude of the present input voltage. RFC1628_UPS_MIB.MIB upsInputFrequency 1.3.6.1.2.1.33.1.3.3.1.2 The present input frequency. RFC1628_UPS_MIB.MIB upsOutputNumLines 1.3.6.1.2.1.33.1.4.3 The number of output lines utilized in this device RFC1628_UPS_MIB.MIB upsOutputFrequency 1.3.6.1.2.1.33.1.4.2 The present output frequency. RFC1628_UPS_MIB.MIB upsOutputVoltage 1.3.6.1.2.1.33.1.4.4.1.2 The present output voltage. RFC1628_UPS_MIB.MIB upsOutputCurrent 1.3.6.1.2.1.33.1.4.4.1.3 The present output current. RFC1628_UPS_MIB.MIB upsBypassNumLines 1.3.6.1.2.1.33.1.5.2 The number of bypass lines utilized in this device RFC1628_UPS_MIB.MIB upsBypassFrequency 1.3.6.1.2.1.33.1.5.1 The present bypass frequency. RFC1628_UPS_MIB.MIB upsBypassVoltage 1.3.6.1.2.1.33.1.5.3.1.2 The present bypass voltage. RFC1628_UPS_MIB.MIB lgpPwrBatteryVoltage 1.3.6.1.4.1.476.1.42.3.5.2.4.1.4.1 The present battery voltage. LIEBERT_GP_POWER.MIB lgpPwrBatteryNominalVoltage 1.3.6.1.4.1.476.1.42.3.5.2.4.1.6.1 The present battery voltage. LIEBERT_GP_POWER.MIB lgpPwrBatteryCapacity 1.3.6.1.4.1.476.1.42.3.5.1.19 The present percentage of battery capacity. LIEBERT_GP_POWER.MIB lgpPwrMeasurementPointVAPercent 1.3.6.1.4.1.476.1.42.3.5.2.2.1.11 The percentage of the rated apparent AC power of the power LIEBERT_GP_POWER.MIB source indicated by 'lgpPwrMeasurementPointId' in the corresponding row in the lgpPwrMeasurementPointTable. lgpPwrMeasurementPointNomCurrent 1.3.6.1.4.1.476.1.42.3.5.2.2.1.14 The nominal or configured/expected current of the power LIEBERT_GP_POWER.MIB point indicated by 'lgpPwrMeasurementPointId' in the corresponding row in the lgpPwrMeasurementPointTable. lgpPwrMeasurementPointNomVA 1.3.6.1.4.1.476.1.42.3.5.2.2.1.16 The nominal or configured/expected apparent AC power for LIEBERT_GP_POWER.MIB the power source indicated by 'lgpPwrMeasurementPointId' in the corresponding row in the lgpPwrMeasurementPointTable. lgpPwrMeasurementPointNomPowerFactor 1.3.6.1.4.1.476.1.42.3.5.2.2.1.15 The nominal or configured/expected power factor of the power LIEBERT_GP_POWER.MIB point indicated by 'lgpPwrMeasurementPointId' in the corresponding row in the lgpPwrMeasurementPointTable. lgpPwrLineMeasurementCurrent 1.3.6.1.4.1.476.1.42.3.5.2.3.1.6 Output Current L1 LIEBERT_GP_POWER.MIB maximum input voltage 1.3.6.1.4.1.476.1.42.3.5.2.3.1.16.1.1 maximum input voltage recorded since LIEBERT_GP_POWER.MIB 'lgpPwrStatisticsReset' was executed. minumum input voltage 1.3.6.1.4.1.476.1.42.3.5.2.3.1.17.1.1 minimum input voltage recorded since LIEBERT_GP_POWER.MIB 'lgpPwrStatisticsReset' was executed. maximum output voltage 1.3.6.1.4.1.476.1.42.3.5.2.3.1.16.3.1 maximum output voltage recorded since LIEBERT_GP_POWER.MIB 'lgpPwrStatisticsReset' was executed. minumum output voltage 1.3.6.1.4.1.476.1.42.3.5.2.3.1.17.3.1 minimum output voltage recorded since LIEBERT_GP_POWER.MIB 'lgpPwrStatisticsReset' was executed. Output Real Load in W 1.3.6.1.4.1.476.1.42.3.5.2.2.1.8.3 output real Load in Wattage LIEBERT_GP_POWER.MIB Output Apparant Load in VA 1.3.6.1.4.1.476.1.42.3.5.2.2.1.7.3 output real Load in volt-ampere LIEBERT_GP_POWER.MIB Ambient Temperature in centigrade 1.3.6.1.4.1.476.1.42.3.4.1.3.3.1.3.1 Ambient temperature in degree centigrade LIEBERT_GP_POWER.MIB * APC well known OIDs * Description OID Definition MIB SOURCE upsAdvBatteryCapacity 1.3.6.1.4.1.318.1.1.1.2.2.1 The remaining battery capacity expressed in percent POWERNET-MIB of full capacity. upsAdvBatteryTemperature 1.3.6.1.4.1.318.1.1.1.2.2.2 The current internal UPS temperature expressed in Celsius. POWERNET-MIB upsAdvInputLineVoltage 1.3.6.1.4.1.318.1.1.1.3.2.1 The current utility line voltage in VAC. POWERNET-MIB upsAdvInputMaxLineVoltage 1.3.6.1.4.1.318.1.1.1.3.2.2 The maximum utility line voltage in VAC over the POWERNET-MIB previous 1 minute period. upsAdvInputMinLineVoltage 1.3.6.1.4.1.318.1.1.1.3.2.3 The minimum utility line voltage in VAC over the previous POWERNET-MIB 1 minute period. upsAdvInputFrequency 1.3.6.1.4.1.318.1.1.1.3.2.4 The current input frequency to the UPS system in Hz. POWERNET-MIB upsAdvOutputVoltage 1.3.6.1.4.1.318.1.1.1.4.2.1 The output voltage of the UPS system in VAC. POWERNET-MIB upsAdvOutputFrequency 1.3.6.1.4.1.318.1.1.1.4.2.2 The current output frequency of the UPS system in Hz. POWERNET-MIB upsAdvOutputLoad 1.3.6.1.4.1.318.1.1.1.4.2.3 The current UPS load expressed in percent of rated capacity. POWERNET-MIB -- Cordially, Shadhin Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From faugusto.ti at gmail.com Mon Apr 27 23:11:58 2009 From: faugusto.ti at gmail.com (Fernando - IT) Date: Mon, 27 Apr 2009 18:11:58 -0300 Subject: User x Hostgroup Message-ID: Hi All, Anyone knows how I can create a user for each hostgroup? I need to create users with view right only, but each user can see only one hostgroup. I need do that for delegate some hostgroups. For example: Hostgroup_A can be seen only by user HAViewer. Hostgroup_B can be seen only by user HBViewer. Thanks ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From scarolan at gmail.com Mon Apr 27 23:11:41 2009 From: scarolan at gmail.com (Sean Carolan) Date: Mon, 27 Apr 2009 16:11:41 -0500 Subject: What are the reasons to use NRPE? In-Reply-To: References: Message-ID: <277020fc0904271411k7c280c81k12b962cc99b53272@mail.gmail.com> > I just wonder what the reasons are to use NRPE in favour of checks > over ssh with ssh keys. To me, NRPE seems just one more piece of > software that may potentioally be broken and more hassle with > firewalls. Why do people still use it when ssh checks are just as > simple and (in my opinion) far more secure? I may be in the minority here but I also prefer using ssh with keys for our remote nagios checks. We have a medium sized network, around 220 hosts and about 1550 active checks. The reports of performance degradation are greatly exaggerated, IMHO. Our average check time is less than one second which is more than fast enough for our needs. By using ssh we avoided having to install NRPE on several different versions of Red Hat, and as you mentioned ssh is much more secure especially if you do it right (eg, password protected key, perhaps with keychain for loading into ssh-agent after you boot the server up). ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign 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 at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rijilv at riji.lv Mon Apr 27 23:52:01 2009 From: rijilv at riji.lv (RijilV) Date: Mon, 27 Apr 2009 14:52:01 -0700 Subject: What are the reasons to use NRPE? In-Reply-To: <277020fc0904271411k7c280c81k12b962cc99b53272@mail.gmail.com> References: <277020fc0904271411k7c280c81k12b962cc99b53272@mail.gmail.com> Message-ID: <5068c6420904271452t3abf9447j8882df5f2149db81@mail.gmail.com> 2009/4/27 Sean Carolan : >> I just wonder what the reasons are to use NRPE in favour of checks >> over ssh with ssh keys. To me, NRPE seems just one more piece of >> software that may potentioally be broken and more hassle with >> firewalls. Why do people still use it when ssh checks are just as >> simple and (in my opinion) far more secure? > > I may be in the minority here but I also prefer using ssh with keys > for our remote nagios checks. ?We have a medium sized network, around > 220 hosts and about 1550 active checks. ?The reports of performance > degradation are greatly exaggerated, IMHO. ?Our average check time is > less than one second which is more than fast enough for our needs. ?By > using ssh we avoided having to install NRPE on several different > versions of Red Hat, and as you mentioned ssh is much more secure > especially if you do it right (eg, password protected key, perhaps > with keychain for loading into ssh-agent after you boot the server > up). > I agree with using SSH. If you search back through recent lists there was some talk of using ssh connection master which will make SSH greatly faster than NRPE. As for security...not so much. Both (can) use the same encryption algorithms. What really differs is SSH uses asymmetric encryption to setup the shared keys whereas with NRPE you give it the shared key (hence NRPE being faster, for the most part). A shared key VS a certificate.... I'm not feeling a real win with either side. In one case I need to grab a config file, in the other I need to grab a ssh-key file... The default to setup NRPE with explicit commands vs just allowing a user to run arbitrary over SSH, NRPE comes out ahead here. But its not really any harder to setup SSH so each key corresponds to a particular check. And you can setup NRPE to allow you to execute any command, which defeats the initial security you gain by limiting which commands it can run. As for having passwords on your keys and loading up a ssh-agent...pffft. If I can read your private key, I can read your ssh-agent socket and the unencrypted SSH key stored in RAM from said ssh-agent process. The latter might actually be easier if we want to go down the road of silly security (think firewire and DMA) since the agent process is always going to be in RAM... .r' ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbroughton at truecos.com Tue Apr 28 00:25:23 2009 From: jbroughton at truecos.com (Jayson Broughton) Date: Mon, 27 Apr 2009 16:25:23 -0600 Subject: Checking Bacula Server In-Reply-To: References: Message-ID: <012001c9c787$0e78f410$2b6adc30$@com> Eduardo, Bacula has a wiki that show's you how to setup active and passive checks via nagios. Go to the below link and check out 'General Howtos' http://wiki.bacula.org/doku.php?id=howtos ~Jayson From: Eduardo Barreto [mailto:lecb79 at gmail.com] Sent: Monday, April 27, 2009 2:15 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Checking Bacula Server Hi all, Does anybody know how to check a Bacula Server? I've installed check-bacula but it's not working fine. Anybody to give me a clue? Thanks in advance Eduardo The information in this electronic mail message and any attached files is confidential and may be legally privileged. If you are not the intended recipient, delete this message and contact the sender immediately. Access to this message by anyone other than its intended recipient is unauthorized. You must not use or disseminate this information as it is proprietary property of the True companies. Communications on or through the True companies' computer systems may be monitored or recorded to secure effective system operation and for other lawful purposes. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From al at its-lehmann.de Tue Apr 28 00:42:02 2009 From: al at its-lehmann.de (Arno Lehmann) Date: Tue, 28 Apr 2009 00:42:02 +0200 Subject: Checking Bacula Server In-Reply-To: References: Message-ID: <49F634BA.7030504@its-lehmann.de> Hi, 27.04.2009 22:15, Eduardo Barreto wrote: > Hi all, > > Does anybody know how to check a Bacula Server? I've installed > check-bacula but it's not working fine. Some more information is needed here... - how did you install check_bacula? - which version of Bacula? - what does a call of check_bacula from the console report? Also, I believe it's more likely to get in touch with the author of check_bacula on the bacula-users mailing list. Arno > Anybody to give me a clue? > > > Thanks in advance > > > Eduardo > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabr?ck www.its-lehmann.de ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From daniel-listas at gmx.net Tue Apr 28 04:58:27 2009 From: daniel-listas at gmx.net (Daniel Bareiro) Date: Mon, 27 Apr 2009 23:58:27 -0300 Subject: Doubt about email notifications In-Reply-To: <20090427022437.GA3178@defiant.freesoftware.org> References: <20090414102901.GG28777@defiant.freesoftware.org> <20090420010244.GG9115@defiant.freesoftware.org> <20090427022437.GA3178@defiant.freesoftware.org> Message-ID: <20090428025827.GC3178@defiant.freesoftware.org> On Sunday, 26 April 2009 23:24:37 -0300, Daniel Bareiro wrote: > On Sunday, 19 April 2009 22:02:44 -0300, > Daniel Bareiro wrote: > > > On Tuesday, 14 April 2009 07:11:28 -0500, > > Marc Powell wrote: > > > > > On the other hand, I would like also to know if it is possible to > > > > define the maximum number of notifications that are sent. > > > > > > > > I read exist variables that allow to configure both things using > > > > escalations, although I do not have defined escalations. > > > yes, I believe an escalation would do for this. I haven't done this > > > but I expect you could set your first notification to the number of > > > the last notification you want to receive (i.e. 3 for the third > > > notification) and your last notification to some high number (99). > > > Create a contact with a notification period of 'none' and set it as > > > the contact for the escalation. > > It seems a good idea :-) I am going to try it and any doubt I will > > consult you again. > With a little more of time, I was reading about escalations and, to > where I could see, these are created by host and services. Unless there > is a general form to define the escalations, I don't believe that it is > practical considering that I have 291 services and 58 hosts. Apparently wilcards for the names of services can be used [1] although I am not sure if also it is possible to be done for the hostnames. Will wildcards (or .*) be valid with Nagios 3.0.6? These are the definitions that I was thinking to use: define hostescalation{ host_name * first_notification 1 last_notification 3 escalation_period none notification_interval 60 contact_groups admins } define hostescalation{ host_name * first_notification 4 last_notification 0 escalation_period none notification_interval 60 contact_groups admins } define serviceescalation{ hostgroup_name linux-servers,solaris-servers,windows-servers service_description * first_notification 1 last_notification 3 notification_interval 60 contact_groups admins } define serviceescalation{ hostgroup_name linux-servers,solaris-servers,windows-servers service_description * first_notification 4 last_notification 0 escalation_period none notification_interval 60 contact_groups admins } Regards, Daniel [1] http://www.linuxquestions.org/questions/linux-server-73/advanced-notifications-with-nagios-690896/ -- Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Tue Apr 28 07:36:12 2009 From: subscription at kkeane.com (Kevin Keane) Date: Mon, 27 Apr 2009 22:36:12 -0700 Subject: What are the reasons to use NRPE? In-Reply-To: <5068c6420904271452t3abf9447j8882df5f2149db81@mail.gmail.com> References: Message-ID: <49F695CC.2020800@kkeane.com> RijilV wrote: > 2009/4/27 Sean Carolan : > >>> I just wonder what the reasons are to use NRPE in favour of checks >>> over ssh with ssh keys. To me, NRPE seems just one more piece of >>> software that may potentioally be broken and more hassle with >>> firewalls. Why do people still use it when ssh checks are just as >>> simple and (in my opinion) far more secure? >>> >> I may be in the minority here but I also prefer using ssh with keys >> for our remote nagios checks. We have a medium sized network, around >> 220 hosts and about 1550 active checks. The reports of performance >> degradation are greatly exaggerated, IMHO. Our average check time is >> less than one second which is more than fast enough for our needs. By >> using ssh we avoided having to install NRPE on several different >> versions of Red Hat, and as you mentioned ssh is much more secure >> especially if you do it right (eg, password protected key, perhaps >> with keychain for loading into ssh-agent after you boot the server >> up). >> >> > > > I agree with using SSH. If you search back through recent lists there > was some talk of using ssh connection master which will make SSH > greatly faster than NRPE. > That can be a great approach, but it also requires that you have a single endpoint to the SSH connection, or just a few of them. The idea is that you keep the actual SSH connection established indefinitely, and reuse it. If you need separate SSH connections to each host, you still get some benefit, but it is much reduced. > As for security...not so much. Both (can) use the same encryption > algorithms. What really differs is SSH uses asymmetric encryption to > setup the shared keys whereas with NRPE you give it the shared key > (hence NRPE being faster, for the most part). A shared key VS a > certificate.... I'm not feeling a real win with either side. In one > case I need to grab a config file, in the other I need to grab a > ssh-key file... > Isn't the whole point of the ssh-key file that you only need to grab the public key? You could even publish it on a public Web site without compromising your security. With a shared key, a hacker that gets a hold of either end of the connection has compromised the connection, and you wouldn't even know it. If all the clients use the same shared key, a hacker would even compromise the whole network. With a public ssh key, the connection remains secure even when the SSH server is compromised (with NRPE, the SSH server is of course the monitored host). Only when the private key is stolen (which should never be on the SSH server, only on the client - which in this case is the single central Nagios server) do you have a compromise. The second security benefit of SSH is that every time you connect, it uses a different shared key for the actual connection. With a shared-key file, you would be using the same shared key for months. In a pinch, with SSH, you could even use the same private/public key pair for all monitored clients and still only moderately compromise security. With a shared-key file, if you use the same shared key for all clients, a hacker who compromises any of the machines in the network has full control over everything. Not what you'd want to see. > The default to setup NRPE with explicit commands vs just allowing a > user to run arbitrary over SSH, NRPE comes out ahead here. SSH also has the capability to restrict what commands you can execute; you can specify it in the authorized_keys file on the client. In fact, I sometimes establish a (semi-)permanent tunnel by forwarding some ports via SSH, and prohibit executing any commands on the remote end. Here is a line from the authorized-key that I use to lock down on one of my servers to only allow forwarding a few ports (in this case, for mysql and LDAP), and not execute any commands at all. > from=" IP>",no-X11-forwarding,no-pty,permitopen="localhost:3306",permitopen="localhost:389",command="/bin/true" > ssh-rsa But its not really any harder to setup SSH so each key corresponds to a particular check. The problem with that is both performance and maintenance. In Sean's example, you have 220 hosts and 1550 active checks. That means managing either 220 key pairs (or if you aren't too concerned, you can get away with a single key pair), or 1550 key pairs if you use one for each check. You also defeat the master-connection approach suggested earlier. > And you can setup NRPE to allow you to execute any > command, which defeats the initial security you gain by limiting which > commands it can run. > > As for having passwords on your keys and loading up a > ssh-agent...pffft. Agreed on that. Just leave the private keys without a passphrase and store them in a well-protected location. The agent would defeat the whole point of having a passphrase on the key anyway, AND, as you point out, make it available through a well-documented interface in RAM. And it makes rebooting the server problematic to boot, since somebody has to type in all the passphrases. With 220 private keys, that's a lot of work (and you DON'T want to use the same passphrase for each key. That would defeat most of the benefits). Incidentally, it is also not trivial (and a very bad idea) to make an ssh-agent work with a daemon. For security reasons, the agent only allows you to store keys for the current logon session. Finally, I'm not sure how well the ssh-agent would do in terms of performance with hundreds or thousands of keys loaded. -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Tue Apr 28 07:39:53 2009 From: subscription at kkeane.com (Kevin Keane) Date: Mon, 27 Apr 2009 22:39:53 -0700 Subject: Checking Bacula Server In-Reply-To: References: Message-ID: <49F696A9.2090409@kkeane.com> http://wiki.bacula.org/doku.php?id=howtos There are two HOWTOs there. I wrote the one for the passive checks. Somebody else wrote the one using active checks, which I believe actually queries the database. Eduardo Barreto wrote: > Hi all, > > Does anybody know how to check a Bacula Server? I've installed > check-bacula but it's not working fine. > Anybody to give me a clue? > > > Thanks in advance > > > Eduardo -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Tue Apr 28 08:32:38 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Tue, 28 Apr 2009 12:02:38 +0530 Subject: Monitor file size through nagios Message-ID: <25251aec0904272332h6147a3f9sea5369cc7ec395bf@mail.gmail.com> Hi, I am aware of monitoring disk space using nagios (disk partitions --> check_disk). Now, I have a situation that I would like to monitor size of an individual file through nagios. Ex, /var/log/custom-snmpd.log -- > this file will grow very fast and i would like to monitor if the size of this file crosses 1.5 G Is there anyway we can do this? Thanks -- Shankar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Apr 28 09:33:29 2009 From: ae at op5.se (Andreas Ericsson) Date: Tue, 28 Apr 2009 09:33:29 +0200 Subject: Monitor file size through nagios In-Reply-To: <25251aec0904272332h6147a3f9sea5369cc7ec395bf@mail.gmail.com> References: <25251aec0904272332h6147a3f9sea5369cc7ec395bf@mail.gmail.com> Message-ID: <49F6B149.7080808@op5.se> asam30 at gmail.com wrote: > Hi, > > I am aware of monitoring disk space using nagios (disk partitions --> > check_disk). Now, I have a situation that I would like to monitor size of an > individual file through nagios. Ex, > > /var/log/custom-snmpd.log -- > this file will grow very fast and i would > like to monitor if the size of this file crosses 1.5 G > > Is there anyway we can do this? > int main(int argc, char **argv) { int i; for (i = 1; i < argc; i++) { struct stat st; const char *path = argv[i]; if (stat(path, &st) < 0) die("Failed to stat %s: %s", path, strerror(errno)); if (st.st_size > 1500 * 1024 * 1024) critical("Filesize (%d) > %d", st.st_size, 1500 * 1024 * 1024); } ok("No file is larger than %d", 1500 * 1024 * 1024); } Writing the various helpers is left as an exercise to the reader. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Register now for Nordic Meet on Nagios, June 3-4 in Stockholm http://nordicmeetonnagios.op5.org/ 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. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 28 09:54:15 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 28 Apr 2009 08:54:15 +0100 Subject: User x Hostgroup In-Reply-To: References: Message-ID: <765d77c80904280054i90191cdk1d08bb24b8ab63fd@mail.gmail.com> 2009/4/27 Fernando - IT : > ? Hi All, > > ?Anyone knows how I can create a user for each hostgroup? > > ?I need to create users with view right only, but each user can see > only one hostgroup. I need do that for delegate some hostgroups. > > For example: > > Hostgroup_A can be seen only by user HAViewer. > > Hostgroup_B can be seen only by user HBViewer. > > Thanks You can create a host template definition which specifies the hostgroup and contact for example: define host { name HAViewer contact_groups +HAViewer hostgroups +HAViewer register 0 } Then in the host definition for each host in this group, put, for example: use HAViewer,generic-template or if you want a host to be a member of more than one group, that's fine you can put: use HAViewer,HBViewer,generic-template You will of course need the contact and contactgroup definitions and a hostgroup definition. The hostgroup definition can contain the bare minimum information, for example: define hostgroup{ hostgroup_name HAViewer alias HAViewer - group of hosts which can only be viewed by the HAViewer contact group } You'll need also to make sure the contacts having a limited view are not specified in "authorized_for_all_services" or "authorized_for_all_hosts" in your cgi.cfg file. hth, Jim ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sp at tdchosting.dk Tue Apr 28 10:12:19 2009 From: sp at tdchosting.dk (Steffen Poulsen) Date: Tue, 28 Apr 2009 10:12:19 +0200 Subject: Monitor file size through nagios In-Reply-To: <25251aec0904272332h6147a3f9sea5369cc7ec395bf@mail.gmail.com> References: <25251aec0904272332h6147a3f9sea5369cc7ec395bf@mail.gmail.com> Message-ID: <995380CA30455549A6B8C57CE5A47AE512794EF3A4@TDCHEXBE01.int.tdch.dk> There are a few plugins doing this at NagiosExchange, i.e. the Perl version is one example: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2205.html;d=1 Steffen From: asam30 at gmail.com [mailto:asam30 at gmail.com] Sent: 28. april 2009 08:33 To: Nagios Users Mailinglist Subject: [Nagios-users] Monitor file size through nagios Hi, I am aware of monitoring disk space using nagios (disk partitions --> check_disk). Now, I have a situation that I would like to monitor size of an individual file through nagios. Ex, /var/log/custom-snmpd.log -- > this file will grow very fast and i would like to monitor if the size of this file crosses 1.5 G Is there anyway we can do this? Thanks -- Shankar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From asam30 at gmail.com Tue Apr 28 11:25:16 2009 From: asam30 at gmail.com (asam30 at gmail.com) Date: Tue, 28 Apr 2009 14:55:16 +0530 Subject: Monitor file size through nagios In-Reply-To: <995380CA30455549A6B8C57CE5A47AE512794EF3A4@TDCHEXBE01.int.tdch.dk> References: <25251aec0904272332h6147a3f9sea5369cc7ec395bf@mail.gmail.com> <995380CA30455549A6B8C57CE5A47AE512794EF3A4@TDCHEXBE01.int.tdch.dk> Message-ID: <25251aec0904280225l3218f6e7jb5ef08ef0fa67d81@mail.gmail.com> Thank you steffen and andreas.. certainly, that link will help me thanks -shankar On Tue, Apr 28, 2009 at 1:42 PM, Steffen Poulsen wrote: > There are a few plugins doing this at NagiosExchange, i.e. the Perl > version is one example: > > > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2205.html;d=1 > > > > Steffen > > > > *From:* asam30 at gmail.com [mailto:asam30 at gmail.com] > *Sent:* 28. april 2009 08:33 > *To:* Nagios Users Mailinglist > *Subject:* [Nagios-users] Monitor file size through nagios > > > > Hi, > > I am aware of monitoring disk space using nagios (disk partitions --> > check_disk). Now, I have a situation that I would like to monitor size of an > individual file through nagios. Ex, > > /var/log/custom-snmpd.log -- > this file will grow very fast and i would > like to monitor if the size of this file crosses 1.5 G > > Is there anyway we can do this? > > Thanks > -- > Shankar > -- Shankar Asam -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Tue Apr 28 11:39:09 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Tue, 28 Apr 2009 10:39:09 +0100 Subject: Protocol In-Reply-To: <49F57903.5020100@kkeane.com> References: <49F57903.5020100@kkeane.com> Message-ID: Thanks Kevin 2009/4/27 Kevin Keane : > TCP. UDP would be too unreliable for this type of application, and there > also is too much data going over the line to make UDP a viable option. > > Christopher McAtackney wrote: >> Hi everyone, >> >> I was just wondering; what protocol (TCP, UDP?) does Nagios use to >> communicate with remote hosts when using the check_nrpe plugin? Or >> just generally? >> >> Cheers, >> Chris >> > > -- > Kevin Keane > Owner > The NetTech > Find the Uncommon: Expert Solutions for a Network You Never Have to Think About > > Office: 866-642-7116 > http://www.4nettech.com > > This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Gabriel at impactteachers.com Tue Apr 28 11:58:26 2009 From: Gabriel at impactteachers.com (Gabriel - IP Guys) Date: Tue, 28 Apr 2009 10:58:26 +0100 Subject: NRPE/Firewall issues: Assistance required. Message-ID: Dear All, I've managed to install my Nagios server (monitor), and it seems that all is well with it. The box to be monitored(client) has NRPE running on it. On monitor, I run $ CHECK_NRPE -H *client ip* I get the CHECK_NRPE: Socket timeout after 10 seconds error message On client I've run the command $ iptables -A INPUT -p tcp -dport 5666 -j ACCEPT This should allow all traffic directed to port 5666 to be accepted, which in turn should kick NRPE into life and have it return NRPE v2.12 I can't tell what I'm doing wrong here - as I'm sure I've done the right thing. Any advice on getting client talking to monitor via NRPE, things I should think about that could scupper the process would be appreciated. --- Kind Regards, Mr Gabriel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gavin.williams at card.co.uk Tue Apr 28 12:16:22 2009 From: gavin.williams at card.co.uk (Gavin Williams) Date: Tue, 28 Apr 2009 05:16:22 -0500 Subject: Check Service at a specific time... Message-ID: <39E8DC21C2AFC6499180B85A615400050440CCF2@34093-C3-EVS3.exchange.rackspace.com> HI there, I've got a requirement to run a service check at a specific time of day. This is to check a backup log and ensure they have run correctly... This check needs to be run at this time each and every day... I've had a look at all the Nagios Configuration settings, and I can't for the life of me work out how to do this? Is it currently possible? If so, how do I set it up? If not, is it on the roadmap? Comments welcome. Cheers Gavin ________________________________ Gavin Williams - Support Engineer Applied Card Technologies Ltd www.card.co.uk t: +44 1249 751239 f: +44 1249 751201 e: Gavin.Williams at card.co.uk Langley Gate Kington Langley Chippenham Wiltshire SN15 5SE United Kingdom Registered in England : 04476799 ________________________________ The information contained in or attached to this email is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it. It may contain information which is confidential and/or covered by legal professional or other privilege (or other rules or laws with similar effect in jurisdictions outside Northern Ireland, England and Wales). The views expressed in this email are not necessarily the views of Applied Card Technologies Ltd. The company, its directors, officers or employees make no representation or accept any liability for its accuracy or completeness unless expressly stated to the contrary. ________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 6559 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smcafee at collaborativefusion.com Tue Apr 28 13:57:45 2009 From: smcafee at collaborativefusion.com (Sean McAfee) Date: Tue, 28 Apr 2009 07:57:45 -0400 Subject: Check Service at a specific time... In-Reply-To: <39E8DC21C2AFC6499180B85A615400050440CCF2@34093-C3-EVS3.exchange.rackspace.com> References: <39E8DC21C2AFC6499180B85A615400050440CCF2@34093-C3-EVS3.exchange.rackspace.com> Message-ID: <49F6EF39.7090906@collaborativefusion.com> Gavin Williams wrote: > HI there, > > > > I?ve got a requirement to run a service check at a specific time of day. > This is to check a backup log and ensure they have run correctly? > > This check needs to be run at this time each and every day? I accomplish the same thing with a combination of a severely restricted time period: define timeperiod{ timeperiod_name oncedaily alias For Running Checks Daily monday 08:40-09:00 tuesday 08:40-09:00 wednesday 08:40-09:00 thursday 08:40-09:00 friday 08:40-09:00 saturday 08:40-09:00 sunday 08:40-09:00 } The checks that use this have a normal_check_interval of 30 minutes. This results in them being scheduled for a single run at 8:40A every day. -- Sean McAfee System Engineer ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Tue Apr 28 14:08:39 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Tue, 28 Apr 2009 13:08:39 +0100 Subject: Check Service at a specific time... In-Reply-To: <39E8DC21C2AFC6499180B85A615400050440CCF2@34093-C3-EVS3.exchange.rackspace.com> References: <39E8DC21C2AFC6499180B85A615400050440CCF2@34093-C3-EVS3.exchange.rackspace.com> Message-ID: <765d77c80904280508o77bd9b74od196a814ac532965@mail.gmail.com> 2009/4/28 Gavin Williams : > HI there, > > > > I?ve got a requirement to run a service check at a specific time of day. > This is to check a backup log and ensure they have run correctly? > > This check needs to be run at this time each and every day? > > > > I?ve had a look at all the Nagios Configuration settings, and I can?t for > the life of me work out how to do this? > > > > Is it currently possible? If so, how do I set it up? If not, is it on the > roadmap? You can run the check on the monitored server either in cron (Unix/Linux) or in the scheduler (Windows) and push the check result back to Nagios using nsca. Typically, I would edit the backup script itself if that's possible and have it push it's status back to Nagios using NSCA rather than scraping a log file for it. See: http://nagios.sourceforge.net/docs/3_0/passivechecks.html Cheers, Jim ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gavin.williams at card.co.uk Tue Apr 28 14:31:05 2009 From: gavin.williams at card.co.uk (Gavin Williams) Date: Tue, 28 Apr 2009 07:31:05 -0500 Subject: Check Service at a specific time... In-Reply-To: <49F6EF39.7090906@collaborativefusion.com> References: <39E8DC21C2AFC6499180B85A615400050440CCF2@34093-C3-EVS3.exchange.rackspace.com> <49F6EF39.7090906@collaborativefusion.com> Message-ID: <39E8DC21C2AFC6499180B85A615400050440CD4A@34093-C3-EVS3.exchange.rackspace.com> Sean, Cheers for the recommendation. I got a similar response on the Centreon support forum... I've implemented a check on this basis, so will see what it comes back with :) Cheers Gavin -----Original Message----- From: Sean McAfee [mailto:smcafee at collaborativefusion.com] Sent: 28 April 2009 12:58 To: Gavin Williams Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Check Service at a specific time... Gavin Williams wrote: > HI there, > > > > I've got a requirement to run a service check at a specific time of day. > This is to check a backup log and ensure they have run correctly... > > This check needs to be run at this time each and every day... I accomplish the same thing with a combination of a severely restricted time period: define timeperiod{ timeperiod_name oncedaily alias For Running Checks Daily monday 08:40-09:00 tuesday 08:40-09:00 wednesday 08:40-09:00 thursday 08:40-09:00 friday 08:40-09:00 saturday 08:40-09:00 sunday 08:40-09:00 } The checks that use this have a normal_check_interval of 30 minutes. This results in them being scheduled for a single run at 8:40A every day. -- Sean McAfee System Engineer ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pervila at cs.helsinki.fi Tue Apr 28 15:04:59 2009 From: pervila at cs.helsinki.fi (=?ISO-8859-1?Q?=22Mikko_A=2ET=2E_Pervil=E4=22?=) Date: Tue, 28 Apr 2009 16:04:59 +0300 Subject: Automatic discovery through Nmap with Nmap3Nagios Message-ID: <49F6FEFB.7050901@cs.helsinki.fi> Greetings to all, I'm doing research in the reliability of diverse networked systems. In order to collect data, I've been automatically discovering and following services in medium- to large-sized network environments. The Nagios' FAQ entry that advices against automatic discovery is well known, but my argument is that in less than ideal circumstances, services may become lost to system administrators. Thus, there seems to be some need for automatical discovery. Initially I've extended the Nmap2Nagios-ng tool to allow services to be set up differently depending on the protocol and port they listen to. Later on I just rewrote the Nmap3Nagios (N3N) tool from scratch. N3N's major benefit is its extendability, i.e., it is aimed to catch even the less common situations. N3N provides a user-space tool that can be run by the admin against his own Nmap results file. In contrast to Lilac's automatical discovery, the results file may be provided by other means than allowing the http daemon to run Nmap (security restrictions may prevent this). N3N is written in Ruby and requires the LibXml Ruby parser. The program logic is implemented as a module and free for use by tools other than the one provided. N3N is released under GPLv3. Naturally, for N3N to become more polished I need some input from other users. Therefore, you are all welcome to play with the tool and send feature requests and bug reports either as replies or directly to me. I hope that most of the tool's options are self-explanatory; the included README file contains some in-depth discussion on what's going on inside the code. http://www.cs.helsinki.fi/u/pervila/Nmap3Nagios/ Best regards, - Pervil? ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jerome.Meyer at baldata.ch Tue Apr 28 16:01:38 2009 From: Jerome.Meyer at baldata.ch (Meyer Jerome) Date: Tue, 28 Apr 2009 16:01:38 +0200 Subject: check_dig In-Reply-To: <46EEEA5FAED9CA479556002BA9C27FD705BFA9C3@iw50.iwbnet.ch> References: <46EEEA5FAED9CA479556002BA9C27FD705BFA8BD@iw50.iwbnet.ch><200904231111.34985.assaf.flatto@ssp-intl.com> <46EEEA5FAED9CA479556002BA9C27FD705BFA9C3@iw50.iwbnet.ch> Message-ID: <46EEEA5FAED9CA479556002BA9C27FD705BFB497@iw50.iwbnet.ch> Finally, I found that problem... So, I've added two arguments ARG1, ARG2 in define_command and the following in check_command check_dig!www.google.com!"+tcp" The result: DNS OK - 0.009 seconds response time (www.google.com. 74305 IN CNAME www.l.google.com.)|time=0.008783s;;;0.000000 regards, jerome > -----Urspr?ngliche Nachricht----- > Von: Meyer Jerome [mailto:Jerome.Meyer at baldata.ch] > Gesendet: Donnerstag, 23. April 2009 14:06 > An: Nagios-users at lists.sourceforge.net > Betreff: Re: [Nagios-users] check_dig > > Ok,this commands run for a remote linux machine! > Here're config's files : > > # checkcommands.cfg > # ================= > define command{ > command_name check_dig > command_line $USER1$/check_dig -H $HOSTADDRESS$ -l $ARGS$ > } > > # servicegroups.cfg > # ================= > define servicegroup{ > servicegroup_name Dig > alias dig > members ns1, Dig > } > > # ns1.cfg > # ================= > define host{ > host_name ns1 > address > check_command check-host-alive > max_check_attempts 3 > check_period 24x7 > contact_groups localadmins > notification_interval 60 > notification_period 24x7 > notification_options d,u,r,f,s > } > > # services.cfg > # ================= > define service{ > service_description Dig > host_name ns1 > #hostgroup_name Linux-servers > display_name DNS-Dig > check_command check_dig!www.google.com > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > check_period 24x7 > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r,f,s > contact_groups localadmins > } > > That's it...! > > > -----Urspr?ngliche Nachricht----- > > Von: Assaf Flatto [mailto:assaf.flatto at ssp-intl.com] > > Gesendet: Donnerstag, 23. April 2009 12:12 > > An: nagios-users at lists.sourceforge.net > > Betreff: Re: [Nagios-users] check_dig > > > > Can you provide more details ? > > > > Like are you running it locally , or on a remote machine ? > > What's your service and command definitions are ? > > > > On Thursday 23 April 2009 09:48:13 Meyer Jerome wrote: > > > Hi All > > > > > > > > > > > > This command seems ok at prompt : > > > > > > /usr/local/nagios/libexec/check_dig -H -l www.google.com > > > > > > DNS OK - 0.008 seconds response time (www.google.com. 454915 IN CNAME > > > www.l.google.com.)|time=0.008459s;;;0.000000 > > > > > > > > > > > > But is different in Nagios : > > > > > > Current Status : CRITICAL > > > > > > Status Information : DNS CRITICAL - 0.008 seconds response time (No > > > ANSWER SECTION found) > > > > > > > > > > > > I don't understand where is the problem? As someone any Idea?? > > > > > > > > > > > > Thanks > > > > > > j.m > > > > > > > > -- > > Assaf Flatto > > SSP Ops Team > > Linux System Administrator > > 169 Euston Road, London, NW1 2AE > > > > > > > > > > > > IMPORTANT . this email and the information in it may be confidential, > legally > > privileged and/or protected by law. It is intended solely for the use of > the > > person to whom it is addressed. If you are not the intended recipient, > please > > notify the sender immediately and do not disclose the contents to any other > > person, use it for any purpose, or store or copy the information in any > > medium. > > Please also delete all copies of this email and any attachments from your > > system. > > > > We cannot guarantee the security or confidentiality of email > communications. > > We > > do not accept any liability for losses or damages that you may suffer as a > > result of your receipt of this email including but not limited to computer > > service or system failure, access delays or interruption, data non-delivery > > or > > mis-delivery, computer viruses or other harmful components. > > > > Copyright in this email and any attachments belong to Select Service > Partner > > UK > > Limited. Should you communicate with anyone at Select Service Partner UK > > Limited by > > email, you consent to us monitoring and reading any such correspondence. > > > > Nothing in this email shall be taken or read as suggesting, proposing or > > relating to any agreement concerted practice or other practice that could > > infringe UK or EC competition legislation. > > > > Select Service Partner UK Limited is a company registered in England and > > Wales > > (company number 05687183) whose registered office is at 1 The Heights, > > Brooklands, Weybridge. Surrey. KT13 0NY > > > > > > > > --------------------------------------------------------------------------- > -- > > - > > Stay on top of everything new and different, both inside and > > around Java (TM) technology - register by April 22, and save > > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > > 300 plus technical and hands-on sessions. Register today. > > Use priority code J9JMT32. http://p.sf.net/sfu/p > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > ----------------------------------------------------------------------------- > - > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rperezm at uci.cu Tue Apr 28 17:54:00 2009 From: rperezm at uci.cu (Reynier Perez Mira) Date: Tue, 28 Apr 2009 11:54:00 -0400 Subject: NConf problems? Message-ID: <4D18382A12A9B64190E1AD825FB591F30264D5FC@ucixw2.uci.cu> Hi every: I'm trying to generate Nagios configuration using NConf Web Interface. After add all the services, hosts, groups, commands and so on I try to generate the config files but I get this error: Generating config: [INFO] Starting generate_config script [INFO] Ended generate_config script Error accessing or executing Nagios binary '/var/www/nconf/bin/nagios' Running tests: Default_collector: Error generating config Deployment not possible due to errors in configuration. Can any help me with that? Cheers and thanks in advance Ing. Reynier P?rez Mira Direcci?n T?cnica IP ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy-lists at networkmail.eu Tue Apr 28 18:50:44 2009 From: andy-lists at networkmail.eu (Andy Shellam) Date: Tue, 28 Apr 2009 17:50:44 +0100 Subject: Checking Bacula Server In-Reply-To: References: Message-ID: <49F733E4.4000405@networkmail.eu> Hi Eduardo, I simply monitor the TCP ports Bacula used (server and client) and the process counts of the bacula-fd, -sd and -dir processes. It's fairly basic but it does the job. Andy Eduardo Barreto wrote: > Hi all, > > Does anybody know how to check a Bacula Server? I've installed > check-bacula but it's not working fine. > Anybody to give me a clue? > > > Thanks in advance > > > Eduardo > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign 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 at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Tue Apr 28 18:53:47 2009 From: jon at netdork.net (Jon Angliss) Date: Tue, 28 Apr 2009 11:53:47 -0500 Subject: NRPE/Firewall issues: Assistance required. References: Message-ID: On Tue, 28 Apr 2009 10:58:26 +0100, "Gabriel - IP Guys" wrote: >I've managed to install my Nagios server (monitor), and it seems that >all is well with it. The box to be monitored(client) has NRPE running on >it. On monitor, I run >$ CHECK_NRPE -H *client ip* >I get the CHECK_NRPE: Socket timeout after 10 seconds error message >On client I've run the command >$ iptables -A INPUT -p tcp -dport 5666 -j ACCEPT >This should allow all traffic directed to port 5666 to be accepted, >which in turn should kick NRPE into life and have it return This will append the rule to the end of the INPUT chain. If you have another rule that forwards incoming requests to a different chain for processing, or you have a deny statement above it, this rule may never be hit. You might want to validate the rules: iptables -L INPUT >NRPE v2.12 >I can't tell what I'm doing wrong here - as I'm sure I've done the right >thing. Any advice on getting client talking to monitor via NRPE, things >I should think about that could scupper the process would be >appreciated. You've ensured the service is actually running? Tried doing a test locally? telnet localhost 5666 Are you running nrpe via (x)inetd or daemon? If running via (x)inetd, did you remember to enable the service, tell it to listen on all ports, and restart the service? -- Jonathan Angliss ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian.masopust at siemens.com Tue Apr 28 19:38:09 2009 From: christian.masopust at siemens.com (Masopust, Christian) Date: Tue, 28 Apr 2009 19:38:09 +0200 Subject: Checking Bacula Server In-Reply-To: <49F733E4.4000405@networkmail.eu> References: <49F733E4.4000405@networkmail.eu> Message-ID: <60721B67EAF0994EAFFB561767B7001403AA40FB@nets13ha.ww300.siemens.net> > Eduardo Barreto wrote: > > Hi all, > > > > Does anybody know how to check a Bacula Server? I've installed > > check-bacula but it's not working fine. > > Anybody to give me a clue? > > > > > > Thanks in advance > > > > > > Eduardo > > Hi Eduardo, what are your problems when using check_bacula (I assume you are using the C-program in bacula-x.x.x/examples/nagios/nagios_plugin_check_bacula.tgz) ? Christian ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From palleje at gmail.com Tue Apr 28 19:52:59 2009 From: palleje at gmail.com (Palle L Jensen) Date: Tue, 28 Apr 2009 13:52:59 -0400 Subject: Monitoring a HP-UX system Message-ID: Hey List, I was wondering if anyone would know if it is possible to monitor a few things on a HP-UX system without installing anything on the server? We are unable to install anything, plugins, apps etc on the server, it's a production server. Below is a description of the general requirements. The general requirements: - Cannot install anything on the system - it's a validated production system. - It runs a SSH server daemon that we'd like to monitor. - What I'd like to see is some way to have it connect to the specified port, read the banner and then just abort the connection. The purpose of this is that perhaps the Nagios system could read the banner response it gets, and if it is not what it's expected, or fails to receive a banner/login prompt, send an alert. I know that monitoring the ping is workable, but how about anything else, see above. Any help is much appreciated. Thanks, PJ Nagios box running: openSUSE 10.3 / Nagios v3.0.1. / Nagios Webinterface 3.0.1. / Nagios Nuvola 1.0.3. / Nagios Plugins 1.4.11. / Nagios Plugins Extra 1.4.11. / Nagios Grapher 1.6.1-rc5. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Tue Apr 28 20:11:18 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Tue, 28 Apr 2009 15:11:18 -0300 Subject: Checking Bacula Server In-Reply-To: <60721B67EAF0994EAFFB561767B7001403AA40FB@nets13ha.ww300.siemens.net> References: <49F733E4.4000405@networkmail.eu> <60721B67EAF0994EAFFB561767B7001403AA40FB@nets13ha.ww300.siemens.net> Message-ID: I've setted the check_bacula for one of the host (bacula), and nagios is showing "null" for status information and status is critical. on (/usr/local/nagios/etc/objects/commands.cfg): define command{ command_name check_bacula command_line $USER1$/check_bacula -H $HOSTADDRESS -d $ARG1$ -M $ARG2$ -K $ARG3$ } What do I have to do to get it working? On Tue, Apr 28, 2009 at 2:38 PM, Masopust, Christian < christian.masopust at siemens.com> wrote: > > > Eduardo Barreto wrote: > > > Hi all, > > > > > > Does anybody know how to check a Bacula Server? I've installed > > > check-bacula but it's not working fine. > > > Anybody to give me a clue? > > > > > > > > > Thanks in advance > > > > > > > > > Eduardo > > > > > Hi Eduardo, > > what are your problems when using check_bacula (I assume you are using > the C-program in > bacula-x.x.x/examples/nagios/nagios_plugin_check_bacula.tgz) ? > > Christian > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kyleodonnell at gmail.com Tue Apr 28 20:41:05 2009 From: kyleodonnell at gmail.com (Kyle O'Donnell) Date: Tue, 28 Apr 2009 14:41:05 -0400 Subject: Monitoring a HP-UX system In-Reply-To: References: Message-ID: <2274b9c30904281141g59b64b2dne4af8f8553846fe1@mail.gmail.com> check_ssh check_tcp/udp can read and eval output how about snmp? On 4/28/09, Palle L Jensen wrote: > Hey List, > > > > I was wondering if anyone would know if it is possible to monitor a few > things on a HP-UX system without installing anything on the server? We are > unable to install anything, plugins, apps etc on the server, it's a > production server. Below is a description of the general requirements. > > > > The general requirements: > > - Cannot install anything on the system - it's a validated production > system. > > - It runs a SSH server daemon that we'd like to monitor. > > - What I'd like to see is some way to have it connect to the specified port, > read the banner and then just abort the connection. The purpose of this is > that perhaps the Nagios system could read the banner response it gets, and > if it is not what it's expected, or fails to receive a banner/login prompt, > send an alert. > > > > I know that monitoring the ping is workable, but how about anything else, > see above. Any help is much appreciated. > > > > Thanks, > > PJ > > > > Nagios box running: openSUSE 10.3 / Nagios v3.0.1. / Nagios Webinterface > 3.0.1. / Nagios Nuvola 1.0.3. / Nagios Plugins 1.4.11. / Nagios Plugins > Extra 1.4.11. / Nagios Grapher 1.6.1-rc5. > > > > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Apr 28 20:49:31 2009 From: marc at ena.com (Marc Powell) Date: Tue, 28 Apr 2009 13:49:31 -0500 Subject: Monitoring a HP-UX system In-Reply-To: References: Message-ID: <81F14C6B-C494-4CBA-AA87-D0C39FB03C1A@ena.com> On Apr 28, 2009, at 12:52 PM, Palle L Jensen wrote: > Hey List, > > I was wondering if anyone would know if it is possible to monitor a > few things on a HP-UX system without installing anything on the > server? We are unable to install anything, plugins, apps etc on the > server, it?s a production server. Below is a description of the > general requirements. > > The general requirements: > - Cannot install anything on the system - it's a validated > production system. > - It runs a SSH server daemon that we'd like to monitor. > - What I'd like to see is some way to have it connect to the > specified port, read the banner and then just abort the connection. > The purpose of this is that perhaps the Nagios system could read the > banner response it gets, and if it is not what it's expected, or > fails to receive a banner/login prompt, send an alert. check_ssh does exactly this. > I know that monitoring the ping is workable, but how about anything > else, see above. Any help is much appreciated. There are plugins to check just about every kind of externally exposed service, both in the standard plugins and on nagiosexchange.org. This is perhaps the most straightforward kind of monitoring that can be done outside of check_ping, and isn't really any different. Just identify the external services exposed (ssh, http, etc), and use the plugins designed to check them. SNMP, if enabled on the system, can be used to check things that wouldn't normally be exposed externally, but I don't know if your company considers an snmp daemon to be something 'installed'. -- Marc ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edgar.Matzinger at valid.nl Tue Apr 28 20:58:16 2009 From: Edgar.Matzinger at valid.nl (Edgar Matzinger) Date: Tue, 28 Apr 2009 20:58:16 +0200 Subject: Monitoring a HP-UX system References: <2274b9c30904281141g59b64b2dne4af8f8553846fe1@mail.gmail.com> Message-ID: Hi Kyle, > check_ssh > check_tcp/udp can read and eval output very good! I didn't think of that... :-(. HTH, cu l8r, Edgar. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Paradijslaan 36 \ /| /\| : : 5611 KN Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ... ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Edgar.Matzinger at valid.nl Tue Apr 28 20:56:08 2009 From: Edgar.Matzinger at valid.nl (Edgar Matzinger) Date: Tue, 28 Apr 2009 20:56:08 +0200 Subject: Monitoring a HP-UX system References: Message-ID: Hi Palle, I gather that SNMP is not installed and/or not running? > The general requirements: > - Cannot install anything on the system - it's a validated production > system. OK, no problem. > - It runs a SSH server daemon that we'd like to monitor. To monitor the disk usage, run "ssh df -kP" (assuming passwordless login is set up), and process the output on the nagios server itself. Similar, for other commands. > - What I'd like to see is some way to have it connect to the specified > port, read the banner and then just abort the connection. The purpose > of this is that perhaps the Nagios system could read the banner response > it gets, and if it is not what it's expected, or fails to receive a > banner/login prompt, send an alert. You want to have the opposite of what check_http.pl (http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1531.html;d=1 ) provides... If you're up to speed with perl, you could use the telnet module to check some TCP ports and check for their ouput. HTH, cu l8r, Edgar. -- |\ /| : : Addr: Valid Eindhoven B.V. / | \/ | : Edgar R. Matzinger : t.a.v. E.R. Matzinger / | | : : Paradijslaan 36 \ /| /\| : : 5611 KN Eindhoven \/ / \ : Valid Eindhoven BV : \ /\ / : : \/ |\/ : : | : : Disclaimer: Any comments, opinions made are mine, etc ... ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From palleje at gmail.com Tue Apr 28 21:06:00 2009 From: palleje at gmail.com (Palle L Jensen) Date: Tue, 28 Apr 2009 15:06:00 -0400 Subject: Monitoring a HP-UX system In-Reply-To: <81F14C6B-C494-4CBA-AA87-D0C39FB03C1A@ena.com> References: <81F14C6B-C494-4CBA-AA87-D0C39FB03C1A@ena.com> Message-ID: <10703ACCC5784427870DA8D6627DF3C8@na.dsmain.com> Unfortunately, SNMP is disabled and can not be enabled. I will look at the check_ssh plugin. Thanks > -----Original Message----- > From: Marc Powell [mailto:marc at ena.com] > Sent: Tuesday, April 28, 2009 2:50 PM > To: nagios-users Mailinglist > Subject: Re: [Nagios-users] Monitoring a HP-UX system > > > On Apr 28, 2009, at 12:52 PM, Palle L Jensen wrote: > > > Hey List, > > > > I was wondering if anyone would know if it is possible to monitor a > > few things on a HP-UX system without installing anything on the > > server? We are unable to install anything, plugins, apps etc on the > > server, it's a production server. Below is a description of the > > general requirements. > > > > The general requirements: > > - Cannot install anything on the system - it's a validated > > production system. > > - It runs a SSH server daemon that we'd like to monitor. > > - What I'd like to see is some way to have it connect to the > > specified port, read the banner and then just abort the connection. > > The purpose of this is that perhaps the Nagios system could read the > > banner response it gets, and if it is not what it's expected, or > > fails to receive a banner/login prompt, send an alert. > > check_ssh does exactly this. > > > I know that monitoring the ping is workable, but how about anything > > else, see above. Any help is much appreciated. > > There are plugins to check just about every kind of externally exposed > service, both in the standard plugins and on nagiosexchange.org. This > is perhaps the most straightforward kind of monitoring that can be > done outside of check_ping, and isn't really any different. Just > identify the external services exposed (ssh, http, etc), and use the > plugins designed to check them. > > SNMP, if enabled on the system, can be used to check things that > wouldn't normally be exposed externally, but I don't know if your > company considers an snmp daemon to be something 'installed'. > > -- > Marc > > > -------------------------------------------------------------------------- > ---- > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian.masopust at siemens.com Tue Apr 28 22:09:06 2009 From: christian.masopust at siemens.com (Masopust, Christian) Date: Tue, 28 Apr 2009 22:09:06 +0200 Subject: Checking Bacula Server In-Reply-To: References: <49F733E4.4000405@networkmail.eu> <60721B67EAF0994EAFFB561767B7001403AA40FB@nets13ha.ww300.siemens.net> Message-ID: <60721B67EAF0994EAFFB561767B7001403AA410F@nets13ha.ww300.siemens.net> Hello Eduardo, your command-line is wrong: [root at atvies00nx etc]# ../libexec/check_bacula -h Copyright (C) 2005 Christian Masopust Written by Christian Masopust (2005) Version: 2.2.6 (10 November 2007) i686-pc-linux-gnu redhat Enterprise release Usage: check_bacula [-d debug_level] -H host -D daemon -M name -P port -H hostname where daemon runs -D which daemon to check: dir|sd|fd -M name of monitor (as in bacula-*.conf) -K password for access to daemon -P port where daemon listens -dnn set debug level to nn -? print this message. so, for example, checking director you need: /check_bacula -H $HOSTADDRESS$ -D dir -M -K $USER2$ -P 9101 for sd: check_bacula -H $HOSTADDRESS$ -D sd -M -K $USER2$ -P 9103 christian -- "I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside." - Unknown Unix Jedi ________________________________ From: Eduardo Barreto [mailto:lecb79 at gmail.com] Sent: Tuesday, April 28, 2009 8:11 PM To: Masopust, Christian Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Checking Bacula Server I've setted the check_bacula for one of the host (bacula), and nagios is showing "null" for status information and status is critical. on (/usr/local/nagios/etc/objects/commands.cfg): define command{ command_name check_bacula command_line $USER1$/check_bacula -H $HOSTADDRESS -d $ARG1$ -M $ARG2$ -K $ARG3$ } What do I have to do to get it working? On Tue, Apr 28, 2009 at 2:38 PM, Masopust, Christian wrote: > Eduardo Barreto wrote: > > Hi all, > > > > Does anybody know how to check a Bacula Server? I've installed > > check-bacula but it's not working fine. > > Anybody to give me a clue? > > > > > > Thanks in advance > > > > > > Eduardo > > Hi Eduardo, what are your problems when using check_bacula (I assume you are using the C-program in bacula-x.x.x/examples/nagios/nagios_plugin_check_bacula.tgz) ? Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From leosilva at tse.gov.br Tue Apr 28 22:26:49 2009 From: leosilva at tse.gov.br (Leandro de Oliveira) Date: Tue, 28 Apr 2009 17:26:49 -0300 Subject: Monitoring a HP-UX system References: <81F14C6B-C494-4CBA-AA87-D0C39FB03C1A@ena.com> <10703ACCC5784427870DA8D6627DF3C8@na.dsmain.com> Message-ID: <80A4D3E55F7D4447ABB277FC20523D1C@tse.gov.br> Hi You can check_by_ssh and execute a shell script on server side to get the informations you want. ----- Original Message ----- From: "Palle L Jensen" To: "'Marc Powell'" ; "'nagios-users Mailinglist'" Sent: Tuesday, April 28, 2009 4:06 PM Subject: Re: [Nagios-users] Monitoring a HP-UX system > Unfortunately, SNMP is disabled and can not be enabled. > I will look at the check_ssh plugin. > > Thanks > > >> -----Original Message----- >> From: Marc Powell [mailto:marc at ena.com] >> Sent: Tuesday, April 28, 2009 2:50 PM >> To: nagios-users Mailinglist >> Subject: Re: [Nagios-users] Monitoring a HP-UX system >> >> >> On Apr 28, 2009, at 12:52 PM, Palle L Jensen wrote: >> >> > Hey List, >> > >> > I was wondering if anyone would know if it is possible to monitor a >> > few things on a HP-UX system without installing anything on the >> > server? We are unable to install anything, plugins, apps etc on the >> > server, it's a production server. Below is a description of the >> > general requirements. >> > >> > The general requirements: >> > - Cannot install anything on the system - it's a validated >> > production system. >> > - It runs a SSH server daemon that we'd like to monitor. >> > - What I'd like to see is some way to have it connect to the >> > specified port, read the banner and then just abort the connection. >> > The purpose of this is that perhaps the Nagios system could read the >> > banner response it gets, and if it is not what it's expected, or >> > fails to receive a banner/login prompt, send an alert. >> >> check_ssh does exactly this. >> >> > I know that monitoring the ping is workable, but how about anything >> > else, see above. Any help is much appreciated. >> >> There are plugins to check just about every kind of externally exposed >> service, both in the standard plugins and on nagiosexchange.org. This >> is perhaps the most straightforward kind of monitoring that can be >> done outside of check_ping, and isn't really any different. Just >> identify the external services exposed (ssh, http, etc), and use the >> plugins designed to check them. >> >> SNMP, if enabled on the system, can be used to check things that >> wouldn't normally be exposed externally, but I don't know if your >> company considers an snmp daemon to be something 'installed'. >> >> -- >> Marc >> >> >> -------------------------------------------------------------------------- >> ---- >> Register Now & Save for Velocity, the Web Performance & Operations >> Conference from O'Reilly Media. Velocity features a full day of >> expert-led, hands-on workshops and two days of sessions from industry >> leaders in dedicated Performance & Operations tracks. Use code vel09scf >> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lraymond at weatherflow.com Tue Apr 28 23:04:13 2009 From: lraymond at weatherflow.com (lance raymond) Date: Tue, 28 Apr 2009 17:04:13 -0400 Subject: nagios to graph ethernet traffic.. can it ? Message-ID: <49F76F4D.5000802@weatherflow.com> ok, I now have (thanks to the group) my server up and currently just watching one box... many more to be added. We also run cacti for ethernet traffic, etc. and wondering can this be done as well. I am looking on the nagios exchange site and don't see anything that can take that type of data, then graph it. If it is possible, what requirements do I need (and should I have already). I still need to install nagios graph and thought I would just start with my 1st simple machine, then add some ethernet traffic in/out to him and once he is checking everything I can simply add other hosts... Thanks as always.. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deibertine at yahoo.com Wed Apr 29 00:37:25 2009 From: deibertine at yahoo.com (Dei Bertine) Date: Tue, 28 Apr 2009 15:37:25 -0700 (PDT) Subject: Host/Service Script Question In-Reply-To: <49F76F4D.5000802@weatherflow.com> References: <49F76F4D.5000802@weatherflow.com> Message-ID: <665021.36746.qm@web111205.mail.gq1.yahoo.com> Hi guys, I was wondering if there's a way to incorporate all hosts into one host name instead of creating individual defines? I'm trying to add all of our servers into Nagios but there's huge amount of them. Need faster way to add all of them into one script. Here's what I'm trying to avoid: define host{ use generic-host host_name sunbl.001.csaa.net alias UNIX-SERVER1 address 172.168.1.35 } define host{ use generic-host host_name sunbl.002.csaa.net alias UNIX-SERVER2 address 172.168.1.36 } .....and so on to hundreds of define host.... Here's what I'm trying to "hopefully" accomplish" if possible: define host{ use all-host host_name allunixhosts alias ALL-UNIX address ALLIP } ...done all hosts... And also have them in one "all host" services.cfg script. define service{ use all-service host_name ALLHOSTSERVICE service_description SSH check_command check_ssh } define service{ use all-service host_name ALLHOSTSERVICE service_description PING check_command check_ping } Please advise. Thank you! DB -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at frozenatom.com Tue Apr 28 23:48:04 2009 From: matt at frozenatom.com (Matt Nelson) Date: Tue, 28 Apr 2009 15:48:04 -0600 Subject: Using HOSTALIAS in services.cfg Message-ID: <148f6bb30904281448k3172554agfa208852926ecb3b@mail.gmail.com> I am trying to use HOSTALIAS in one of my service definitions. Is this possible? I looked at: http://nagios.sourceforge.net/docs/3_0/macrolist.html and it looks like it is. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jpratt at norwich.edu Wed Apr 29 02:09:25 2009 From: jpratt at norwich.edu (James Pratt) Date: Tue, 28 Apr 2009 20:09:25 -0400 Subject: nagios to graph ethernet traffic.. can it ? In-Reply-To: <49F76F4D.5000802@weatherflow.com> References: <49F76F4D.5000802@weatherflow.com> Message-ID: <8147CCE3C4A8764DA9980125EE70E823C1C23D@nuexchg.norwich.edu> Hi Lance, I could be wrong, but I think most use either nagiosgraph or pnp4nagios http://www.pnp4nagios.org/pnp/start for graphing w/rrdtool... (I'm getting there someday, cacti works for now, let us know how it goes though!) Cheers! jamie > -----Original Message----- > From: lance raymond [mailto:lraymond at weatherflow.com] > Sent: Tuesday, April 28, 2009 5:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios to graph ethernet traffic.. can it ? > > > ok, I now have (thanks to the group) my server up and currently just > watching one box... many more to be added. We also run cacti for > ethernet traffic, etc. and wondering can this be done as well. > > I am looking on the nagios exchange site and don't see anything that can > take that type of data, then graph it. > > If it is possible, what requirements do I need (and should I have > already). I still need to install nagios graph and thought I would just > start with my 1st simple machine, then add some ethernet traffic in/out > to him and once he is checking everything I can simply add other hosts... > > Thanks as always.. > > > ------------------------------------------------------------------------ -- > ---- > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Wed Apr 29 05:41:43 2009 From: jon at netdork.net (Jon Angliss) Date: Tue, 28 Apr 2009 22:41:43 -0500 Subject: Host/Service Script Question References: <49F76F4D.5000802@weatherflow.com> <665021.36746.qm@web111205.mail.gq1.yahoo.com> Message-ID: <4iifv4h85akhbagvnk806bv77soevasmte@4ax.com> On Tue, 28 Apr 2009 15:37:25 -0700 (PDT), Dei Bertine wrote: >Hi guys, > >I was wondering if there's a way to incorporate all hosts into one host name instead of creating individual defines? >I'm trying to add all of our servers into Nagios but there's huge amount of them. >Need faster way to add all of them into one script. >Here's what I'm trying to avoid: >define host{ > use generic-host > host_name sunbl.001.csaa.net > alias UNIX-SERVER1 > address 172.168.1.35 > } >define host{ > use generic-host > host_name sunbl.002.csaa.net > alias UNIX-SERVER2 > address 172.168.1.36 > } > >.....and so on to hundreds of define host.... > >Here's what I'm trying to "hopefully" accomplish" if possible: >define host{ > use all-host > host_name allunixhosts > alias ALL-UNIX > address ALLIP > } > >...done all hosts... Do you have the expectation of Nagios guessing your IP schema, and host names? There is a way of using nmap, and a script to build a basis for you. >And also have them in one "all host" services.cfg script. >define service{ > use all-service > host_name ALLHOSTSERVICE > service_description SSH > check_command check_ssh > } > >define service{ > use all-service > host_name ALLHOSTSERVICE > service_description PING > check_command check_ping > } Services can be applied to hostgroups. For example: define hostgroup { hostgroup_name myunixhostgroup } define host { register 0 name unix_host hostgroups myunixhostgroup [..] } define host { use unix_host host_name unix01 address 172.16.0.2 } define service { service_descript PING check_command check_ping hostgroup_name myunixhostgroup } This reduces the definition of the host down to 3 lines, you're using a template for all your linux hosts, and the service is applied to the entire group. Hope that gives you a head start. -- Jonathan Angliss ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Wed Apr 29 05:43:14 2009 From: jon at netdork.net (Jon Angliss) Date: Tue, 28 Apr 2009 22:43:14 -0500 Subject: Using HOSTALIAS in services.cfg References: <148f6bb30904281448k3172554agfa208852926ecb3b@mail.gmail.com> Message-ID: <95jfv4pbu2shevutvfnh9ooddmkii0g821@4ax.com> On Tue, 28 Apr 2009 15:48:04 -0600, Matt Nelson wrote: >I am trying to use HOSTALIAS in one of my service definitions. Is this >possible? I looked at: > >http://nagios.sourceforge.net/docs/3_0/macrolist.html > >and it looks like it is. How about telling us the behaviour you're getting, what you expect, and the sample configuration to show us how you're doing it so we might be able to help? -- Jonathan Angliss ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atstake at gmail.com Wed Apr 29 06:58:01 2009 From: atstake at gmail.com (Chris) Date: Wed, 29 Apr 2009 14:58:01 +1000 Subject: parse log files Message-ID: <8adc88580904282158j691f1006gf2de07c718b144f0@mail.gmail.com> I have a log server where all servers log in its individual files. Logs are rotated once a month. Is there any way get Nagios to read the *.crit lines from the log files and alert for each individual server? Thanks. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From subscription at kkeane.com Wed Apr 29 08:30:55 2009 From: subscription at kkeane.com (Kevin Keane) Date: Tue, 28 Apr 2009 23:30:55 -0700 Subject: Host/Service Script Question In-Reply-To: <665021.36746.qm@web111205.mail.gq1.yahoo.com> References: <49F76F4D.5000802@weatherflow.com> Message-ID: <49F7F41F.3020900@kkeane.com> Dei Bertine wrote: > Hi guys, > > I was wondering if there's a way to incorporate all hosts into one > host name instead of creating individual defines? > I'm trying to add all of our servers into Nagios but there's huge > amount of them. > Need faster way to add all of them into one script. > Here's what I'm trying to avoid: > define host{ > use generic-host > host_name sunbl.001.csaa.net > alias UNIX-SERVER1 > address 172.168.1.35 > } > define host{ > use generic-host > host_name sunbl.002.csaa.net > alias UNIX-SERVER2 > address 172.168.1.36 > } > > ....and so on to hundreds of define host.... Create a host template to minimize the information you need for each host. note: generic-host actually is a template, so this is already done. If you have additional configuration settings specific to your situation but shared by all your hosts, it may make sense to derive your own template from generic-host, and then use that template in each host. > Here's what I'm trying to "hopefully" accomplish" if possible: > define host{ > use all-host > host_name allunixhosts > alias ALL-UNIX > address ALLIP > } You can't quite do that because there is no way to figure out which IP goes with which host name. But you could write a short bash script that automatically generates all the host definitions. echo "Start of script-generated config file" >my.cfg. for i in 001 002 do echo "define host {" >> my.cfg echo " use my-hosttemplate" >>my.cfg echo " host_name host_$i" >>my.cfg echo " alias host sunbl.$i.csaa.net" >>my.cfg echo " address sunbl.$i.csaa.net" >> my.cfg echo "}" >>my.cfg done > ..done all hosts... > > And also have them in one "all host" services.cfg script. > define service{ > use all-service > host_name ALLHOSTSERVICE > service_description SSH > check_command check_ssh > } You can do that using host groups. -- Kevin Keane Owner The NetTech Find the Uncommon: Expert Solutions for a Network You Never Have to Think About Office: 866-642-7116 http://www.4nettech.com This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Jason.Ellmers at firstgroup.com Wed Apr 29 10:22:48 2009 From: Jason.Ellmers at firstgroup.com (Jason Ellmers) Date: Wed, 29 Apr 2009 09:22:48 +0100 Subject: CN=Jason Ellmers/OU=FirstInfo/O=FirstGroup is out of the office. Message-ID: I will be Out of the Office Start Date: 29/04/2009. End Date: 30/04/2009. Thank you for your mail. I am currently away from the office on Anual Leave, returning on 3rd November If you need a fault escalating please call the service desk on 0038696 (0870 241 5500) with the case reference and ask for Brian Horton who has overall responsibility for the Service Desk ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Wed Apr 29 10:54:43 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Wed, 29 Apr 2009 09:54:43 +0100 Subject: parse log files In-Reply-To: References: <8adc88580904282158j691f1006gf2de07c718b144f0@mail.gmail.com> Message-ID: 2009/4/29 Chris : > I have a log server where all servers log in its individual files. > Logs are rotated once a month. Is there any way get Nagios to read the > *.crit lines from the log files and alert for each individual server? > > Thanks. I haven't tried it out myself, but it sounds like this plugin is what you're looking for; http://www.consol.com/opensource/nagios/check-logfiles ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.omahony at curamsoftware.com Wed Apr 29 14:19:21 2009 From: brian.omahony at curamsoftware.com (Brian O'Mahony) Date: Wed, 29 Apr 2009 13:19:21 +0100 Subject: Reporting from Nagios In-Reply-To: References: <8adc88580904282158j691f1006gf2de07c718b144f0@mail.gmail.com> Message-ID: <86E8DA9E18BC2344BD0218BF23C88DF3010AF8520757@MAIL06.curamsoftware.com> I have just installed Nagios 3.0.6 and have it working monitoring a Windows and a Linux host. I will add more hosts to it, once I have finished evaluating. However Im a bit boggled with all the options, and not sure exactly which way to procede with what I wanty to do, so thought id ask a few questions about the reporting aspect. 1. Is there a way to have a host/service monitored 24x7 but only send one mail when it goes unknown/critical, and another when its ok again? The reason for this is if I keep getting multiple mails every little while, I will just filter them off and not bother with them which will defeat the purpose. Either on a per service or per host basis is fine for me (or even a hostgrou[ basis). 2. Is there a way for example if all hosts in a group stop responding to send a single mail, rather than one for all hosts? I intend to put the hosts in groups based on which rack they are in, and would rather not get 30+ mails if the power to the rack goes. That's about all I can think of right now, but the documentation has me a little confused. Thanks in advance B The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 29 14:39:25 2009 From: marc at ena.com (Marc Powell) Date: Wed, 29 Apr 2009 07:39:25 -0500 Subject: Reporting from Nagios In-Reply-To: <86E8DA9E18BC2344BD0218BF23C88DF3010AF8520757@MAIL06.curamsoftware.com> References: <8adc88580904282158j691f1006gf2de07c718b144f0@mail.gmail.com> <86E8DA9E18BC2344BD0218BF23C88DF3010AF8520757@MAIL06.curamsoftware.com> Message-ID: <456D215C-E7D7-4C79-BDAF-BA6DA8EBB9BF@ena.com> On Apr 29, 2009, at 7:19 AM, Brian O'Mahony wrote: > 1. Is there a way to have a host/service monitored 24x7 but only > send one mail when it goes unknown/critical, and another when its ok > again? Yes, notification_interval 0. Description here - http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service > 2. Is there a way for example if all hosts in a group stop > responding to send a single mail, rather than one for all hosts? Not really, unless you use some external notification aggregator or designate one of them, or another affected host/device you are monitoring, as a parent to all the others. http://nagios.sourceforge.net/docs/3_0/networkreachability.html HTH, -- Marc ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frisvolj at lafayette.edu Wed Apr 29 15:22:19 2009 From: frisvolj at lafayette.edu (Jason Frisvold) Date: Wed, 29 Apr 2009 09:22:19 -0400 Subject: How does negate work? Message-ID: <49F8548B.8020702@lafayette.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I realize it sounds like a dumb question, but either I'm doing something wrong, or my copy of negate is broken... Shouldn't these return different results? [root at dev objects]$ /usr/local/nagios/libexec/check_snmp -H 10.0.0.1 -C public -o .1.3.6.1.4.1.318.1.1.1.4.1.1.0 -r 3$ SNMP CRITICAL - *4* | iso.3.6.1.4.1.318.1.1.1.4.1.1.0=4 [root at dev objects]$ ../../libexec/negate /usr/local/nagios/libexec/check_snmp -H 10.0.0.1 -C public -o .1.3.6.1.4.1.318.1.1.1.4.1.1.0 -r 3$ SNMP CRITICAL - *4* | iso.3.6.1.4.1.318.1.1.1.4.1.1.0=4 If I understand correctly, the first command should return an OK if, and only if, the value returned by the SNMP query is equal to 3. Adding a negate to that means I should get an OK if the return is anything except 3. What am I missing here? - -- - --------------------------- Jason Frisvold Network Engineer frisvolj at lafayette.edu - --------------------------- "What I cannot create, I do not understand" - Richard Feynman -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkn4VIsACgkQO80o6DJ8Uvk5IACgholXco5z+s+Nh6M5w4Om3dG6 Z/8AniD6iitCm7r0qAvj6XuZfClA0FOB =jf11 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frisvolj at lafayette.edu Wed Apr 29 15:26:52 2009 From: frisvolj at lafayette.edu (Jason Frisvold) Date: Wed, 29 Apr 2009 09:26:52 -0400 Subject: How does negate work? In-Reply-To: <49F8548B.8020702@lafayette.edu> References: <49F8548B.8020702@lafayette.edu> Message-ID: <49F8559C.50102@lafayette.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jason Frisvold wrote: > What am I missing here? In a typical case of clicking send just before "getting it" .... I figured it out. It doesn't change the wording you get, it's the exit value.. Duh.. Ok, I get it. [root at dev objects]$ /usr/local/nagios/libexec/check_snmp -H 10.0.0.1 -C public -o .1.3.6.1.4.1.318.1.1.1.4.1.1.0 -s 3 ; echo $? SNMP CRITICAL - *2* | iso.3.6.1.4.1.318.1.1.1.4.1.1.0=2 2 [root at dev objects]$ /usr/local/nagios/libexec/negate /usr/local/nagios/libexec/check_snmp -H 10.0.0.1 -C public -o .1.3.6.1.4.1.318.1.1.1.4.1.1.0 -s 3 ; echo $? SNMP CRITICAL - *2* | iso.3.6.1.4.1.318.1.1.1.4.1.1.0=2 0 - -- - --------------------------- Jason Frisvold Network Engineer frisvolj at lafayette.edu - --------------------------- "What I cannot create, I do not understand" - Richard Feynman -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkn4VZwACgkQO80o6DJ8UvkHAQCeOlbj6Bx8vTW3/XUuAqPWgCJb iH4An1fMclNeNgMcYsSnQPAhewdflYht =67K9 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matt at frozenatom.com Wed Apr 29 15:53:06 2009 From: matt at frozenatom.com (Matt Nelson) Date: Wed, 29 Apr 2009 07:53:06 -0600 Subject: Using HOSTALIAS in services.cfg In-Reply-To: <95jfv4pbu2shevutvfnh9ooddmkii0g821@4ax.com> References: <148f6bb30904281448k3172554agfa208852926ecb3b@mail.gmail.com> <95jfv4pbu2shevutvfnh9ooddmkii0g821@4ax.com> Message-ID: <148f6bb30904290653p180de00s2043d3b32e7cecdc@mail.gmail.com> On Tue, Apr 28, 2009 at 9:43 PM, Jon Angliss wrote: > On Tue, 28 Apr 2009 15:48:04 -0600, Matt Nelson > wrote: > > >I am trying to use HOSTALIAS in one of my service definitions. Is this > >possible? I looked at: > > > >http://nagios.sourceforge.net/docs/3_0/macrolist.html > > > >and it looks like it is. > > How about telling us the behaviour you're getting, what you expect, > and the sample configuration to show us how you're doing it so we > might be able to help? > > -- > Jonathan Angliss > > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > Sorry I was being lazy when I posted this. Here is some info to go by: *host.cfg* define host { use default host_name jmsFarmManagedServer3.dev alias Server3 address weblogic03.dev } *service.cfg (This way works fine)* define service{ use critical-service host_name jmsFarmManagedServer3.dev service_description JMSDestinationRuntime-ConsumersCurrentCount check_command check_jmx!5555!1!1!'com.bea:ServerRuntime=jmsFarmManagedServer3,Name=EDIJMSModule\!jmsFarmJMSServer3 at EDIIncomingQueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount' --jmxrmi 'weblogic.management.mbeanservers.runtime' notifications_enabled 0 } *service.cfg (This way does not work)* define service{ use critical-service host_name jmsFarmManaged$HOSTALIAS$.dev service_description JMSDestinationRuntime-ConsumersCurrentCount check_command check_jmx!5555!1!1!'com.bea:ServerRuntime=jmsFarmManaged'$HOSTALIAS$',Name=EDIJMSModule\!jmsFarmJMS'$HOSTALIAS$'@EDIIncomingQueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount' --jmxrmi 'weblogic.management.mbeanservers.runtime' notifications_enabled 0 } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Apr 29 15:54:16 2009 From: marc at ena.com (Marc Powell) Date: Wed, 29 Apr 2009 08:54:16 -0500 Subject: Reporting from Nagios In-Reply-To: <456D215C-E7D7-4C79-BDAF-BA6DA8EBB9BF@ena.com> References: <8adc88580904282158j691f1006gf2de07c718b144f0@mail.gmail.com> <86E8DA9E18BC2344BD0218BF23C88DF3010AF8520757@MAIL06.curamsoftware.com> <456D215C-E7D7-4C79-BDAF-BA6DA8EBB9BF@ena.com> Message-ID: <53C89F44-40EB-4E41-A585-424006C59052@ena.com> On Apr 29, 2009, at 7:39 AM, Marc Powell wrote: >> 2. Is there a way for example if all hosts in a group stop >> responding to send a single mail, rather than one for all hosts? > > Not really, unless you use some external notification aggregator or > designate one of them, or another affected host/device you are > monitoring, as a parent to all the others. http://nagios.sourceforge.net/docs/3_0/networkreachability.html To expand on this, check_cluster might be a good choice for a host check for a 'virtual' parent for the devices... http://nagios.manubulon.com/traduction/docs14en/clusters.html -- Marc ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From palleje at gmail.com Wed Apr 29 15:36:14 2009 From: palleje at gmail.com (Palle L Jensen) Date: Wed, 29 Apr 2009 09:36:14 -0400 Subject: Monitoring a HP-UX system In-Reply-To: <10703ACCC5784427870DA8D6627DF3C8@na.dsmain.com> References: <81F14C6B-C494-4CBA-AA87-D0C39FB03C1A@ena.com> <10703ACCC5784427870DA8D6627DF3C8@na.dsmain.com> Message-ID: <288EE620B54644EABC3D058EB1EB7276@na.dsmain.com> Thanks everyone, the check_ssh plugin worked great! Thanks, PJ > -----Original Message----- > From: Palle L Jensen [mailto:palleje at gmail.com] > Sent: Tuesday, April 28, 2009 3:06 PM > To: 'Marc Powell'; 'nagios-users Mailinglist' > Subject: Re: [Nagios-users] Monitoring a HP-UX system > > Unfortunately, SNMP is disabled and can not be enabled. > I will look at the check_ssh plugin. > > Thanks > > > > -----Original Message----- > > From: Marc Powell [mailto:marc at ena.com] > > Sent: Tuesday, April 28, 2009 2:50 PM > > To: nagios-users Mailinglist > > Subject: Re: [Nagios-users] Monitoring a HP-UX system > > > > > > On Apr 28, 2009, at 12:52 PM, Palle L Jensen wrote: > > > > > Hey List, > > > > > > I was wondering if anyone would know if it is possible to monitor a > > > few things on a HP-UX system without installing anything on the > > > server? We are unable to install anything, plugins, apps etc on the > > > server, it's a production server. Below is a description of the > > > general requirements. > > > > > > The general requirements: > > > - Cannot install anything on the system - it's a validated > > > production system. > > > - It runs a SSH server daemon that we'd like to monitor. > > > - What I'd like to see is some way to have it connect to the > > > specified port, read the banner and then just abort the connection. > > > The purpose of this is that perhaps the Nagios system could read the > > > banner response it gets, and if it is not what it's expected, or > > > fails to receive a banner/login prompt, send an alert. > > > > check_ssh does exactly this. > > > > > I know that monitoring the ping is workable, but how about anything > > > else, see above. Any help is much appreciated. > > > > There are plugins to check just about every kind of externally exposed > > service, both in the standard plugins and on nagiosexchange.org. This > > is perhaps the most straightforward kind of monitoring that can be > > done outside of check_ping, and isn't really any different. Just > > identify the external services exposed (ssh, http, etc), and use the > > plugins designed to check them. > > > > SNMP, if enabled on the system, can be used to check things that > > wouldn't normally be exposed externally, but I don't know if your > > company considers an snmp daemon to be something 'installed'. > > > > -- > > Marc ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marco.tirado at gmail.com Wed Apr 29 16:06:02 2009 From: marco.tirado at gmail.com (Marco Tirado) Date: Wed, 29 Apr 2009 16:06:02 +0200 Subject: nagios-nagvis animated icon sets Message-ID: Hello users: We currently use nagios and nagvis for the visualization of the state of our monitoring system. Nagvis is an excellent tool and allows us to have many different customized views. However the default iconsets in nagvis for showing host/service status in nagvis are difficult to spot in large installations. It would be great if we could use animated .gif, in other words, an icon that blinks or moves whenever a server has a problem instead of a static icon. Has anybody done this ?? Any hints ?? //Marco -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From paul.weaver at bbc.co.uk Wed Apr 29 16:40:42 2009 From: paul.weaver at bbc.co.uk (Paul Weaver) Date: Wed, 29 Apr 2009 15:40:42 +0100 Subject: nagios to graph ethernet traffic.. can it ? References: <49F76F4D.5000802@weatherflow.com> <8147CCE3C4A8764DA9980125EE70E823C1C23D@nuexchg.norwich.edu> Message-ID: We use nagiosgrapher with the following config (The plugin output includes the phrase "transfered nnn bits/s") Which produces some graphs. define ngraph{ #Tweak service name to fit naming conventions in dev/live environment service_name Cisco Traffic graph_log_regex (\d+) bits/s in graph_value InBitsS graph_units Bits/s graph_legend In Bits/s hide yes } define ngraph{ service_name Cisco Traffic type CDEF graph_units Bits/s graph_value NegInBitsS graph_legend In Bits/s graph_calc InBitsS,-1,* rrd_plottype AREA rrd_color 00ffff page Bits/s hide no } define ngraph{ service_name Cisco Traffic service_name Cisco Traffic graph_log_regex (\d+) bits/s out graph_value OutBitsS graph_units Bits/s graph_legend Out Bits/s rrd_plottype AREA rrd_color 0000ff page Bits/s -----Original Message----- From: James Pratt [mailto:jpratt at norwich.edu] Sent: Wed 4/29/2009 1:09 AM To: lance raymond; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nagios to graph ethernet traffic.. can it ? Hi Lance, I could be wrong, but I think most use either nagiosgraph or pnp4nagios http://www.pnp4nagios.org/pnp/start for graphing w/rrdtool... (I'm getting there someday, cacti works for now, let us know how it goes though!) Cheers! jamie > -----Original Message----- > From: lance raymond [mailto:lraymond at weatherflow.com] > Sent: Tuesday, April 28, 2009 5:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios to graph ethernet traffic.. can it ? > > > ok, I now have (thanks to the group) my server up and currently just > watching one box... many more to be added. We also run cacti for > ethernet traffic, etc. and wondering can this be done as well. > > I am looking on the nagios exchange site and don't see anything that can > take that type of data, then graph it. > > If it is possible, what requirements do I need (and should I have > already). I still need to install nagios graph and thought I would just > start with my 1st simple machine, then add some ethernet traffic in/out > to him and once he is checking everything I can simply add other hosts... > > Thanks as always.. > > > ------------------------------------------------------------------------ -- > ---- > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > http://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From craig at hooters-uk.com Wed Apr 29 17:24:33 2009 From: craig at hooters-uk.com (craig at hooters-uk.com) Date: Wed, 29 Apr 2009 16:24:33 +0100 Subject: Private Addreses Message-ID: <67879fce7d0e4f43995d876dfa9e8cd0.craig@hooters-uk.com> Hi all, just a query this time on how I would achieve the following. We have an site that needs monitoring which has a broadband connection with a single IP address and 4 servers sitting behind it, 1 running Web, 1 running Mail and 1 running FTP, the other is a file and print server all Centos boxes. The firewall has port forwarding for each of the Servers that have web, mail and ftp but the file server is on a private IP address. I know I can monitor the web, mail and FTP because of the port forwarding but how do I go about monitoring the services that I normally check with the nrpe command, do I need to put in a Nagios server on site, let that do all the checking and then send the results on? Any guidance would be great, if you can point me to a site/book or other information that I could look at that would be great, the problem I have at the minute is looking for the correct phrase to put into Google to get the right results. Thanks Craig ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Wed Apr 29 18:14:01 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 29 Apr 2009 17:14:01 +0100 Subject: nagios-nagvis animated icon sets In-Reply-To: References: Message-ID: <765d77c80904290914v38a40579u73ed6115e864ffbe@mail.gmail.com> 2009/4/29 Marco Tirado : > Hello users: > > We currently use nagios and nagvis for the visualization of the state of our > monitoring system. Nagvis is an excellent tool and allows us to have many > different customized views. > > However the default iconsets in nagvis for showing host/service status in > nagvis are difficult to spot in large installations. It would be great if we > could use animated .gif, in other words, an icon that blinks or moves > whenever a server has a problem instead of a static icon. > > Has anybody done this ?? > > Any hints ?? I haven't tried it myself. According to the changelog, from NagVis 1.4rc1 "Background image can now be in jpg, gif or png format (SF.net 1901540)". I'm not sure if this means the iconset can be .gif too or not. I would guess not, but you could easily try it just in case. See: http://docs.nagvis.org/1.4/en_US/changelog.html for the changelog and http://docs.nagvis.org/1.3/en_US/extending/iconsets.html for the documentation page on adding custom iconsets. Cheers, Jim ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Wed Apr 29 18:20:55 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 29 Apr 2009 17:20:55 +0100 Subject: Private Addreses In-Reply-To: <67879fce7d0e4f43995d876dfa9e8cd0.craig@hooters-uk.com> References: <67879fce7d0e4f43995d876dfa9e8cd0.craig@hooters-uk.com> Message-ID: <765d77c80904290920j106bf0ddof5d557fa92752827@mail.gmail.com> 2009/4/29 craig at hooters-uk.com : > Hi all, just a query this time on how I would achieve the following. > > We have an site that needs monitoring which has a broadband connection with a single IP address > and 4 servers sitting behind it, 1 running Web, 1 running Mail and 1 running FTP, the other is a > file and print server all Centos boxes. > > The firewall has port forwarding for each of the Servers that have web, mail and ftp but the file > server is on a private IP address. > > I know I can monitor the web, mail and FTP because of the port forwarding but how do I go about > monitoring the services that I normally check with the nrpe command, do I need to put in a Nagios > server on site, let that do all the checking and then send the results on? > > Any guidance would be great, if you can point me to a site/book or other information that I could > look at that would be great, the problem I have at the minute is looking for the correct phrase to > put into Google to get the right results. > > Thanks > > Craig So long as these servers can connect to your Nagios server, you could configure the checks in cron on the remote servers and have them send results back to Nagios using nsca. See http://nagios.sourceforge.net/docs/3_0/passivechecks.html and http://nagios.sourceforge.net/docs/3_0/addons.html#nsca You could install Nagios on one of those servers to do the job for you, but you'd still use nsca to make the connection back to your main Nagios server. If you're after a book, I can highly recommend "Nagios" by Wolfgang Barth. It's available in print or .pdf form (or both) from the publisher No Starch Press: http://nostarch.com/nagios_2e.htm hth, Jim ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srianirudh at gmail.com Wed Apr 29 19:49:47 2009 From: srianirudh at gmail.com (Anirudh Srinivasan) Date: Wed, 29 Apr 2009 13:49:47 -0400 Subject: check_by_ssh plugin Message-ID: <699b436a0904291049x463fafd7ya1a4b78b2fe369f1@mail.gmail.com> to monitor the remote linux machine i use check_by_ssh plugins . I loged in as nagios user and did key-gen and exchanged the plublic key so that nagios can do a password less login and get the datas like memory, cpu load etc.... But for some reason i dont see anything in the web interface except for (permission denied message). Later i tried doing the same as a root from the nagios server and it started showing up on the web interface. I want to achieve this with nagios user. Any help would be highly appreciated. -- Anirudh Srinivasan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Wed Apr 29 20:38:02 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Wed, 29 Apr 2009 15:38:02 -0300 Subject: Audio Alert Message-ID: Hi All, Try to use sms notification through Nagios, I've installed sms_client, but ain't got a clue on how to set it. What do I have to do to get notifications via sms? Cheers Eduardo Barreto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jim at jimavery.me.uk Wed Apr 29 21:55:49 2009 From: jim at jimavery.me.uk (Jim Avery) Date: Wed, 29 Apr 2009 20:55:49 +0100 Subject: Audio Alert In-Reply-To: References: Message-ID: <765d77c80904291255m67362bb7p2efb30fc69cb2d5b@mail.gmail.com> 2009/4/29 Eduardo Barreto : > Hi All, > > Try to use sms notification through Nagios, I've installed sms_client, but > ain't got a clue on how to set it. What do I have to do to get notifications > via sms? Are you able to send a message using sms_client from the command-line? If not you need to get that working first. sms_client is not part of Nagios, so you will need to look for documentation, FAQ lists and so on on their web site http://www.smsclient.org/ Once you are happy that you can send an sms message from the command line, you can start thinking about how to use it for Nagios notifications. Configure new command definitions in Nagios which uses sms_client and configure your contact definition to use the new command definitions instead of notify_service_by_email or notify_host_by_email. See http://nagios.sourceforge.net/docs/3_0/notifications.html for more information. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mark.frost1 at pepsi.com Wed Apr 29 21:40:49 2009 From: mark.frost1 at pepsi.com (Frost, Mark {PBG}) Date: Wed, 29 Apr 2009 15:40:49 -0400 Subject: question about host/service notification_period Message-ID: I'm running Nagios 3.06. If I have a host definition as follows: define host { host_name FOO address FOO ... notification_period period_1 # let's say it's everyday but Monday } and then define service { host_name FOO service_desciption BAR ... notification_period period_2 # let's say it's everyday but Tuesday } If service "BAR" fails on Tuesday, it's clear that it would trigger a notification. If service "BAR" fails on a Monday, would it still send an alert? That is, does the host's notification_period matter at all for the service sending a notification? I thought I'd understood that if the host was in a period of scheduled downtime that that would effectively block the service notification, but I thought that while very similar, scheduled downtime wasn't the same as a limited notification_period. I'm trying to setup recurring downtime windows using notification_periods which works traditionally. However, it's somewhat more of a pain if I have to track down each host's services (there's a lot of overlap) and specify the same notification_period for each service. It's much easier to just indicate that for the host (only). Thanks Mark ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rdmurray at bitdance.com Thu Apr 30 00:03:46 2009 From: rdmurray at bitdance.com (R. David Murray) Date: Wed, 29 Apr 2009 22:03:46 +0000 (UTC) Subject: check_proc -a works directly but fails through nrpe Message-ID: This is weird. If I do this: >sudo -u nagios /usr/local/libexec/nagios/check_procs -a "-L /var/sipenv-10.1.2.1/log/b2bua.log" -C python -c 1:1 PROCS OK: 1 process with args '-L /var/sipenv-10.1.2.1/log/b2bua.log', command name 'python' everything is fine, but if I do it remotely: >./check_nrpe -H 65.175.131.174 -c check_foo PROCS CRITICAL: 0 processes with args '-L /var/sipenv-10.1.2.1/log/b2bua.log', command name 'python' it can't find the process. It looks as though the string that check_cpu is looking at is truncated when and only when it is run under nrpe. Anyone have any clues, especially thoughts on a workaround? Here is various version info: >uname -a FreeBSD xxxxx 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #4: Thu Nov 20 15:52:07 EST 2008 >./check_procs --version check_procs v1991 (nagios-plugins 1.4.12) >/usr/local/sbin/nrpe2 --version nrpe2: unrecognized option `--version' NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2007 Ethan Galstad (nagios at nagios.org) Version: 2.7 Last Modified: 02-19-2007 The remote host is Red Hat EL4, but I doubt that makes a difference, especially since the same thing happens if I run check_nrpe2 on the FreeBSD machine to 127.0.0.1. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Thu Apr 30 02:28:10 2009 From: jon at netdork.net (Jon Angliss) Date: Wed, 29 Apr 2009 19:28:10 -0500 Subject: Using HOSTALIAS in services.cfg References: <148f6bb30904281448k3172554agfa208852926ecb3b@mail.gmail.com> <95jfv4pbu2shevutvfnh9ooddmkii0g821@4ax.com> <148f6bb30904290653p180de00s2043d3b32e7cecdc@mail.gmail.com> Message-ID: On Wed, 29 Apr 2009 07:53:06 -0600, Matt Nelson wrote: >> >I am trying to use HOSTALIAS in one of my service definitions. Is this >> >possible? I looked at: >> >http://nagios.sourceforge.net/docs/3_0/macrolist.html >> >and it looks like it is. >> How about telling us the behaviour you're getting, what you expect, >> and the sample configuration to show us how you're doing it so we >> might be able to help? >> -- >> Jonathan Angliss >> >Sorry I was being lazy when I posted this. Here is some info to go by: > >*host.cfg* > >define host { > use default > host_name jmsFarmManagedServer3.dev > alias Server3 > address weblogic03.dev > } > >*service.cfg (This way works fine)* > > >define service{ > use critical-service > host_name jmsFarmManagedServer3.dev > service_description JMSDestinationRuntime-ConsumersCurrentCount > check_command >check_jmx!5555!1!1!'com.bea:ServerRuntime=jmsFarmManagedServer3,Name=EDIJMSModule\!jmsFarmJMSServer3 at EDIIncomingQueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount' >--jmxrmi 'weblogic.management.mbeanservers.runtime' > notifications_enabled 0 >} > > >*service.cfg (This way does not work)* > >define service{ > use critical-service > host_name jmsFarmManaged$HOSTALIAS$.dev > service_description JMSDestinationRuntime-ConsumersCurrentCount > check_command >check_jmx!5555!1!1!'com.bea:ServerRuntime=jmsFarmManaged'$HOSTALIAS$',Name=EDIJMSModule\!jmsFarmJMS'$HOSTALIAS$'@EDIIncomingQueue,Type=JMSDestinationRuntime,JMSServerRuntime=jmsFarmJMSServer3'!'ConsumersCurrentCount' >--jmxrmi 'weblogic.management.mbeanservers.runtime' > notifications_enabled 0 >} Have you tried increasing the debugging to see what's actually being passed? Looking at your definition, you have '$HOSTALIAS$' (note the single quote), yet that doesn't exist on the working example. Was this a typo? Also, you need'll need to provide the command definition so we can see how the args are being passed. -- Jonathan Angliss ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jon at netdork.net Thu Apr 30 02:31:27 2009 From: jon at netdork.net (Jon Angliss) Date: Wed, 29 Apr 2009 19:31:27 -0500 Subject: check_proc -a works directly but fails through nrpe References: Message-ID: <57shv453flg0u1a0ngjit2b9q7eoqaejsv@4ax.com> On Wed, 29 Apr 2009 22:03:46 +0000 (UTC), "R. David Murray" wrote: >This is weird. If I do this: > > >sudo -u nagios /usr/local/libexec/nagios/check_procs -a "-L /var/sipenv-10.1.2.1/log/b2bua.log" -C python -c 1:1 > PROCS OK: 1 process with args '-L /var/sipenv-10.1.2.1/log/b2bua.log', command name 'python' > >everything is fine, but if I do it remotely: > > >./check_nrpe -H 65.175.131.174 -c check_foo > PROCS CRITICAL: 0 processes with args '-L /var/sipenv-10.1.2.1/log/b2bua.log', command name 'python' > >it can't find the process. It looks as though the string that check_cpu >is looking at is truncated when and only when it is run under nrpe. > >Anyone have any clues, especially thoughts on a workaround? What's your definition for check_foo from the nrpe? You mentioned check_procs in the first statement, check_foo in the command call, and check_cpu in the explanation of truncation... which is right? ;) -- Jonathan Angliss ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cloved at gmail.com Thu Apr 30 11:24:42 2009 From: cloved at gmail.com (Lei Chen) Date: Thu, 30 Apr 2009 17:24:42 +0800 Subject: concurrent users on a website In-Reply-To: <765d77c80904200540y645436a0g4fd1e531735b60df@mail.gmail.com> References: <765d77c80904200540y645436a0g4fd1e531735b60df@mail.gmail.com> Message-ID: 2009/4/20 Jim Avery : > 2009/4/20 Harry John : >> Hi >> How do we check concurrent users in a website? >> Is this possibble in nagios friends? >> THanks! > If it's a apache server, U can get some info from mod_status/mod_info module. > If it's Microsoft IIS, you can query the performance counter for > current connections using NSClient++. In my nsc.ini config, I have: > > web_curr_conn=inject CheckCounter "Counter:connections=\Web > Service(_Total)\Current Connections" ShowAll MaxWarn=40 MaxCrit=100 > > So I can then query the counter from Nagios using a simple nrpe command like: > > $USER1$/check_nrpe -H $HOSTADDDRESS$ -c web_curr_conn > > > Cheers, > > Jim > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Thanks, Chenlei & ??++ MSN Messenger: chnl at 163.com ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rdmurray at bitdance.com Thu Apr 30 12:12:40 2009 From: rdmurray at bitdance.com (R. David Murray) Date: Thu, 30 Apr 2009 10:12:40 +0000 (UTC) Subject: check_proc -a works directly but fails through nrpe References: <57shv453flg0u1a0ngjit2b9q7eoqaejsv@4ax.com> Message-ID: Jon Angliss wrote: > On Wed, 29 Apr 2009 22:03:46 +0000 (UTC), "R. David Murray" > wrote: > > >This is weird. If I do this: > > > > >sudo -u nagios /usr/local/libexec/nagios/check_procs -a "-L /var/sipenv-10.1.2.1/log/b2bua.log" -C python -c 1:1 > > PROCS OK: 1 process with args '-L /var/sipenv-10.1.2.1/log/b2bua.log', command name 'python' > > > >everything is fine, but if I do it remotely: > > > > >./check_nrpe -H 65.175.131.174 -c check_foo > > PROCS CRITICAL: 0 processes with args '-L /var/sipenv-10.1.2.1/log/b2bua.log', command name 'python' > > > >it can't find the process. It looks as though the string that check_cpu > >is looking at is truncated when and only when it is run under nrpe. > > > >Anyone have any clues, especially thoughts on a workaround? > > What's your definition for check_foo from the nrpe? You mentioned > check_procs in the first statement, check_foo in the command call, and > check_cpu in the explanation of truncation... which is right? ;) The nrpe.cfg definition of check_foo is: command[check_foo]=/usr/local/libexec/nagios/check_procs -a "-L /var/sipenv-10.1.2.1/log/b2bua.log" -C python -c 1:1 The mention of check_cpu should be replaced with check_procs, sorry for the typo. -- R. David Murray http://www.bitdance.com ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arnaulist at andromeiberica.com Thu Apr 30 13:57:53 2009 From: arnaulist at andromeiberica.com (Arnau) Date: Thu, 30 Apr 2009 13:57:53 +0200 Subject: How configure Nagios to send periodic notifications? In-Reply-To: <200904241617.19608.assaf.flatto@ssp-intl.com> References: <49F1D147.4050305@andromeiberica.com> <200904241617.19608.assaf.flatto@ssp-intl.com> Message-ID: <49F99241.2030302@andromeiberica.com> Hi all, Assaf Flatto wrote: > hello > > You want to take a look at the external commands : > > http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=135 > I have upgraded from nagios2 to nagios3 and now when I execute the shell script that fires the external command it runs fine. The problem is that nagios doesn't fire a mail. I have done the following. I have created a shell script that it should be executed via a cron task and everytime it should send an email fired by the service. ------------------------------ #!/bin/sh # This is a sample shell script showing how you can submit the SEND_CUSTOM_SVC_NOTIFICATION command # to Nagios. Adjust variables to fit your environment as necessary. now=`date +%s` commandfile='/var/lib/nagios3/rw/nagios.cmd' /usr/bin/printf "[%lu] SEND_CUSTOM_SVC_NOTIFICATION;192.168.10.26;MAILPARSER_TEST;2;test;Testing if everything is OK\n" $now > $commandfile -------------------------------------- And I have defined the following service -------------------------------------- define service { service_description MAILPARSER_TEST check_command return-critical normal_check_interval 2 use generic-service notification_interval 0 } -------------------------------------- And never sends a mail as it normally does with all the other services I have. Any idea? Cheers!! > Assaf > > On Friday 24 April 2009 15:48:39 Arnau wrote: > >> Hi all, >> >> Since few weeks ago we use Nagios as monitoring system and everytime >> there is a problem it notifies sending an email. We have a system that >> parses those emails and using a text to speech system it makes a phone >> call. To be sure that the alarm system is running we have periodic calls >> launched by emails programmed as cron tasks. I'm worried that some of >> the Nagios notifications could be lost or even it wouldn't sent any >> notification, so I'd like to launch to substitute those cron emails by >> Nagios "fake" notifications or something similar. >> >> Do you know if there is a way to force Nagios to send a notification >> periodically? >> >> Thank you very much >> >> --------------------------------------------------------------------------- >> --- Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensign 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 at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> ::: Please include Nagios version, plugin version (-v) and OS when >> ::: reporting any issue. Messages without supporting info will risk being >> ::: sent to /dev/null >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lecb79 at gmail.com Thu Apr 30 17:00:44 2009 From: lecb79 at gmail.com (Eduardo Barreto) Date: Thu, 30 Apr 2009 12:00:44 -0300 Subject: Host Check Message-ID: Hi All, Are there anyway to show the host without checking it? Why is it? This is because I got a L2 Switch that lost the management ip and keeps showing me that the host is down, but it isnt. Thanks in advance, Eduardo Barreto -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristoir at gmail.com Thu Apr 30 17:44:05 2009 From: cristoir at gmail.com (Christopher McAtackney) Date: Thu, 30 Apr 2009 16:44:05 +0100 Subject: Centreon In-Reply-To: <49DF5D04020000480008D21D@stgeorge.com.au> References: <49DF5D04020000480008D21D@stgeorge.com.au> Message-ID: Hi Simon, It looks like I'll have to take you up on your offer of help :-) Centreon seems to be working perfectly, except that graphs are not displaying. I see the following errors in nagiosPerfTrace.log; Can't locate /etc/centreon/conf.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/centreon/bin/nagiosPerfTrace line 188 mkdir: cannot create directory '/var/lib/centreon/nagios-perf/': permission denied chown: cannot access '/var/lib/centreon/nagios-perf/': No such file or directory chmod: cannot access '/var/lib/centreon/nagios-perf/': No such file or directory mkdir: cannot create directory '/var/lib/centreon/nagios-perf/perfmon-1': permission denied chown: cannot access '/var/lib/centreon/nagios-perf/perfmon-1': No such file or directory chmod: cannot access '/var/lib/centreon/nagios-perf/perfmon-1': No such file or directory Do you have any idea what might be causing these errors? I manually created these directories and granted permission to nagios on them, but still am not seeing any results. Hopefully you've come across something like this before. Cheers, Chris 2009/4/10 Simon Finch : > Chris, > > Centreon is a very powerful addition to Nagios, so good that I have managed to replace a large enterprise deployment of IBM Tivoli monitoring with Nagios, but only by using Centreon, Nagios by itself wouldn't have stood a chance. > > I started using it from version 2.0 beta 4 and the doco was terrible or non existent. I am currently using version 2.1 and the doco is still non existent, but the wiki / forum support more than makes up for it. If you compiled Nagios, nrpe, ndo and got it all working then you could easily get Centreon working. > > I work in IT for a moderately large bank in Australia who has recently been taken over by a larger bank. The new IT top dog is an American who used to run IT for a huge US aircraft manufacturer, he was impressed by what he saw in our NOC / war room. It was Nagios3 front ended by Centreon with management eye candy provided by NagVis, so I truly believe it when I say it's worth the effort because I am in the middle of doing it. > > If you want more details the feel free to ask as I found a number of traps in the beginning, eg, I don't recommend Redhat RHEL5 for the main server that runs Centreon, I switched to Ubuntu 8.04 , but I still use Redhat RHEL4 & 5 for the remote satellite Nagios servers. > > Rgds, > Simon > > Simon Finch > ESM Team Leader > St George Bank > > ********************************************************************** > ***** ? IMPORTANT INFORMATION ? ?***** > This document should be read only by those persons to whom it is > addressed and its content is not intended for use by any other > persons. ?If you have received this message in error, please notify > us immediately. ?Please also destroy and delete the message from > your computer. ?Any unauthorised form of reproduction of this message > is strictly prohibited. > > St George Bank Limited AFSL 240997, Advance Asset Management Limited > AFSL 240902, ?St George Life Limited AFSL 240900, ASGARD Capital Management Limited > AFSL 240695 and Securitor Financial Group Limited AFSL 240687 is not liable for > the proper and complete transmission of the information contained in > this communication, nor for any delay in its receipt. > ********************************************************************** > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 30 18:08:43 2009 From: marc at ena.com (Marc Powell) Date: Thu, 30 Apr 2009 11:08:43 -0500 Subject: Host Check In-Reply-To: References: Message-ID: On Apr 30, 2009, at 10:00 AM, Eduardo Barreto wrote: > Hi All, > > Are there anyway to show the host without checking it? Why is it? > This is because I got a L2 Switch that lost the management ip and > keeps showing me that the host is down, but it isnt. In the host definition, do not specify the check_command directive at all (or use check_dummy) and set the initial state directive; set the check_period to none. -- Marc ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From liberaled at gmail.com Thu Apr 30 18:12:30 2009 From: liberaled at gmail.com (Ed Donahue) Date: Thu, 30 Apr 2009 12:12:30 -0400 Subject: [nagios] Trigger alert via email Message-ID: <66f2b5ed0904300912v6e7d6573y8c7e1b30d8371604@mail.gmail.com> Is it possible to trigger an alert by sending an email to nagios (passive check)? I'm guessing it isn't a straight forward as that, just wonder if it is doable, and any links to examples would be cool too. Thanks in advance Ed ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From banyan at rootong.com Thu Apr 30 18:33:13 2009 From: banyan at rootong.com (Banyan He) Date: Fri, 01 May 2009 00:33:13 +0800 Subject: Host Check In-Reply-To: References: Message-ID: Hi Marc, I'd like to recommend you check the log out firstly. It's the right way to troubleshoot this. Grab a sample for you below, define host{ use generic-host host_name xxx.yyy.com alias xxxyyycom address xxx.xxx.xxx.xxx check_command check-host-alive ;should be defined in commands max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,r contact_groups apacadmins parents xxx1.xxx.com } Regards, -- Banyan He Network & Security Information System banyan at rootong.com On 5/1/09 12:08 AM, "Marc Powell" wrote: > > On Apr 30, 2009, at 10:00 AM, Eduardo Barreto wrote: > >> Hi All, >> >> Are there anyway to show the host without checking it? Why is it? >> This is because I got a L2 Switch that lost the management ip and >> keeps showing me that the host is down, but it isnt. > > In the host definition, do not specify the check_command directive at > all (or use check_dummy) and set the initial state directive; set the > check_period to none. > > -- > Marc > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlist at bogusville.us Thu Apr 30 20:00:38 2009 From: mlist at bogusville.us (Bo Gusman) Date: Thu, 30 Apr 2009 11:00:38 -0700 Subject: experience with check_sasraid_megaraid for Dell PERC 4? Message-ID: <49F9E746.6000008@bogusville.us> Hi all. We've got two dell servers with PERC4 controllers running CentOS that nagios is monitoring quite nicely with the exception of the raid arrays. Is there anyone that has experience with check_sasraid_megaraid as found here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 Advice, an overview, or a recipe would be very helpful! Thanks! Bo ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssimmons at cymfony.com Thu Apr 30 20:41:49 2009 From: ssimmons at cymfony.com (Seth Simmons) Date: Thu, 30 Apr 2009 14:41:49 -0400 Subject: experience with check_sasraid_megaraid for Dell PERC4? In-Reply-To: <49F9E746.6000008@bogusville.us> References: <49F9E746.6000008@bogusville.us> Message-ID: <4881ECF1AB752843908A20CEE07A8EB1128285@buf-ex01.cymfony.com> I haven't used that specifically, but I do use check_openmanage on all my dell boxes (perc 3/4/5/6) It works nicely and checks all hardware components, including physical/logical drive status. It will generate alerts if a physical drive fails and the volume becomes degraded; along with any related errors in the esm log, if you use this to monitor that also. http://folk.uio.no/trondham/software/check_openmanage.html -----Original Message----- From: Bo Gusman [mailto:mlist at bogusville.us] Sent: Thursday, April 30, 2009 2:01 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] experience with check_sasraid_megaraid for Dell PERC4? Hi all. We've got two dell servers with PERC4 controllers running CentOS that nagios is monitoring quite nicely with the exception of the raid arrays. Is there anyone that has experience with check_sasraid_megaraid as found here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 Advice, an overview, or a recipe would be very helpful! Thanks! Bo ------------------------------------------------------------------------ ------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Thu Apr 30 20:49:25 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 30 Apr 2009 13:49:25 -0500 Subject: experience with check_sasraid_megaraid for Dell PERC 4? In-Reply-To: <49F9E746.6000008@bogusville.us> References: <49F9E746.6000008@bogusville.us> Message-ID: I use that plugin on a number of Dell servers. First, you've got to make sure the RAID controller is either a MegaRAID or AACRAID controller. More than likely, it's the former. The plugin itself is self explanatory - look at the help output. What you need is to download the Perc SNMP agent from Dell. Ultimately, you'll install the following RPM: percsnmp-4.09-1.i386.rpm which will install the percsnmpd daemon... All you need to do at that point is apply the following line to your /etc/snmp/snmpd.conf file: # Dell MegaRAID data will be exported on port 161 by the main snmpd pass .1.3.6.1.4.1.3582 /usr/sbin/percmain Then fire up the percsnmpd daemon and restart snmpd. James Moseley Bo Gusman To Nagios-users at lists.sourceforge.net 04/30/2009 01:00 cc PM Subject [Nagios-users] experience with check_sasraid_megaraid for Dell PERC 4? Hi all. We've got two dell servers with PERC4 controllers running CentOS that nagios is monitoring quite nicely with the exception of the raid arrays. Is there anyone that has experience with check_sasraid_megaraid as found here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 Advice, an overview, or a recipe would be very helpful! Thanks! Bo ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Bo Gusman wrote: Hi all. We've got two dell servers with PERC4 controllers running CentOS that nagios is monitoring quite nicely with the exception of the raid arrays. Is there anyone that has experience with check_sasraid_megaraid as found here: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 Advice, an overview, or a recipe would be very helpful! ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlist at bogusville.us Thu Apr 30 21:05:02 2009 From: mlist at bogusville.us (Bo Gusman) Date: Thu, 30 Apr 2009 12:05:02 -0700 Subject: experience with check_sasraid_megaraid for Dell PERC4? In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1128285@buf-ex01.cymfony.com> References: <49F9E746.6000008@bogusville.us> <4881ECF1AB752843908A20CEE07A8EB1128285@buf-ex01.cymfony.com> Message-ID: <49F9F65E.5010308@bogusville.us> Thanks for your quick reply, Seth. I did look at this but it seems that it requires OpenManage to be installed on the monitored server. Is that right? That gives me some concern over performance - I've heard (but have no experience with) that OM is something of a resource hog - java based? Our servers are VM hosts for a variety of other things and I'm reluctant to add yet more load for the simple need to check that status of the RAID arrays. I appreciate your insight. Bo Seth Simmons wrote: > I haven't used that specifically, but I do use check_openmanage on all > my dell boxes (perc 3/4/5/6) > It works nicely and checks all hardware components, including > physical/logical drive status. > It will generate alerts if a physical drive fails and the volume becomes > degraded; along with any related errors in the esm log, if you use this > to monitor that also. > > http://folk.uio.no/trondham/software/check_openmanage.html > > > > -----Original Message----- > From: Bo Gusman [mailto:mlist at bogusville.us] > Sent: Thursday, April 30, 2009 2:01 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] experience with check_sasraid_megaraid for Dell > PERC4? > > Hi all. > > We've got two dell servers with PERC4 controllers running CentOS that > nagios is monitoring quite nicely with the exception of the raid arrays. > > Is there anyone that has experience with check_sasraid_megaraid as found > > here: > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 > > Advice, an overview, or a recipe would be very helpful! > > Thanks! > > Bo > > > ------------------------------------------------------------------------ > ------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmoseley at corp.xanadoo.com Thu Apr 30 21:09:17 2009 From: jmoseley at corp.xanadoo.com (jmoseley at corp.xanadoo.com) Date: Thu, 30 Apr 2009 14:09:17 -0500 Subject: experience with check_sasraid_megaraid for Dell PERC4? In-Reply-To: <4881ECF1AB752843908A20CEE07A8EB1128285@buf-ex01.cymfony.com> References: <4881ECF1AB752843908A20CEE07A8EB1128285@buf-ex01.cymfony.com> Message-ID: This plugin requires that Dell OpenManage be running on the remote servers. Does Dell make a RHEL version of OpenManage? James Moseley "Seth Simmons" wrote: I haven't used that specifically, but I do use check_openmanage on all my dell boxes (perc 3/4/5/6) It works nicely and checks all hardware components, including physical/logical drive status. It will generate alerts if a physical drive fails and the volume becomes degraded; along with any related errors in the esm log, if you use this to monitor that also. http://folk.uio.no/trondham/software/check_openmanage.html ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dyioulos at firstbhph.com Thu Apr 30 21:46:07 2009 From: dyioulos at firstbhph.com (Dimitri Yioulos) Date: Thu, 30 Apr 2009 15:46:07 -0400 Subject: experience with check_sasraid_megaraid for Dell PERC4? In-Reply-To: References: Message-ID: <49F9FFFF.5000401@firstbhph.com> Yes. See: linux.dell.com/wiki/index.php/Repository/hardware Dimitri jmoseley at corp.xanadoo.com wrote: > This plugin requires that Dell OpenManage be running on the remote servers. > Does Dell make a RHEL version of OpenManage? > > > James Moseley > > > > > "Seth Simmons" wrote: > > I haven't used that specifically, but I do use check_openmanage on all > my dell boxes (perc 3/4/5/6) > It works nicely and checks all hardware components, including > physical/logical drive status. > It will generate alerts if a physical drive fails and the volume becomes > degraded; along with any related errors in the esm log, if you use this > to monitor that also. > > http://folk.uio.no/trondham/software/check_openmanage.html > > > > > > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frisvolj at lafayette.edu Thu Apr 30 22:28:51 2009 From: frisvolj at lafayette.edu (Jason Frisvold) Date: Thu, 30 Apr 2009 16:28:51 -0400 Subject: SNMP Checking - Alert if a single value is detected Message-ID: <49FA0A03.1040407@lafayette.edu> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I'm currently monitoring an APC UPS via SNMP. The return value from the query can mean a number of different things, but I'm only interested in one. However, the check_snmp plugin seems to work the opposite way I need. check_snmp will alert if a given value is not seen, rather than alerting if a given value *is* seen.. I know I can use the negate plugin to fix this, but this causes misleading information to be left in the "status information" field. Is there a way to overcome this? - -- - --------------------------- Jason Frisvold Network Engineer frisvolj at lafayette.edu - --------------------------- "What I cannot create, I do not understand" - Richard Feynman -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkn6CgMACgkQO80o6DJ8UvnfVwCcChMFfRGHPHf1aRjU566I9ax8 Z6AAoJJrsjRBGkCGjNtnS3ZkYYCPx1sW =OCa9 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Apr 30 22:32:11 2009 From: marc at ena.com (Marc Powell) Date: Thu, 30 Apr 2009 15:32:11 -0500 Subject: [nagios] Trigger alert via email In-Reply-To: <66f2b5ed0904300912v6e7d6573y8c7e1b30d8371604@mail.gmail.com> References: <66f2b5ed0904300912v6e7d6573y8c7e1b30d8371604@mail.gmail.com> Message-ID: On Apr 30, 2009, at 11:12 AM, Ed Donahue wrote: > Is it possible to trigger an alert by sending an email to nagios > (passive check)? Possible? Yes. > I'm guessing it isn't a straight forward as that, just wonder if it > is doable, > and any links to examples would be cool too. I'm not aware of anyone actually doing it but I would approach it from one of these methods -- - use procmail/maildrop to pipe the incoming message through a script that parses the body format you've chosen and submits an appropriate PROCESS_SERVICE_CHECK_RESULT external command. http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=114 . I expect this could be a pretty straightforward perl script. - write a script that parses the mailspool or checks the POP/IMAP account and submits an appropriate PROCESS_SERVICE_CHECK_RESULT external command. Of the two, the first seems easiest/best... -- Marc ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.morris at hp.com Thu Apr 30 23:14:05 2009 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 30 Apr 2009 14:14:05 -0700 Subject: SNMP Checking - Alert if a single value is detected In-Reply-To: <49FA0A03.1040407@lafayette.edu> References: <49FA0A03.1040407@lafayette.edu> Message-ID: <20090430211405.GJ19457@bakgwai.americas.hpqcorp.net> On Thu, 30 Apr 2009, Jason Frisvold wrote: > I'm currently monitoring an APC UPS via SNMP. The return value from > the query can mean a number of different things, but I'm only interested > in one. However, the check_snmp plugin seems to work the opposite way I > need. check_snmp will alert if a given value is not seen, rather than > alerting if a given value *is* seen.. > > I know I can use the negate plugin to fix this, but this causes > misleading information to be left in the "status information" field. > > Is there a way to overcome this? Wrapper scripts are pretty handy for stuff like this, but there's not enough detail in the problem description to be much more specific than that. ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mlist at bogusville.us Thu Apr 30 23:44:23 2009 From: mlist at bogusville.us (Bo Gusman) Date: Thu, 30 Apr 2009 14:44:23 -0700 Subject: experience with check_sasraid_megaraid for Dell PERC 4? In-Reply-To: References: Message-ID: <49FA1BB7.4060502@bogusville.us> Thanks for your reply, James. Your recipe for installation was perfect. I did encounter two problems, 1 of which I solved (though I don't understand why I needed to do it.) Initially running check_sasraid_megaraid from the command line on the Nagios box to get the help output complained "Can't find utils.pm in @INC" Comparing that script against many others in the nagios/libexec directory showed that many others used utils.pm (which was also in the nagios/libexec dir), and they found it just fine. I eventually added "use lib /usr/local/groundwork/nagios/libexec" to the script and that solved that particular problem. I'm not sure why this was necessary, given that all of the scripts (that I checked, in any case), including check_sasraid_megaraid were identical in usage of utils.pm. The second is that when running ./check_sasraid_megaraid.pl -H bullwinkle -T megaraid --debug it fails: alert: CRITICAL snmp error: Requested table is empty or does not exist Megaraid UNKNOWN - could not retrieve snmp table .1.3.6.1.4.1.3582.1.1.2.1.3 Initially I had opened ports 161 TCP so I thought that might be the problem, but changing them to UDP only changes the speed with which I get the failure (the timeout was operative before). I've checked that both percsnmpd and snmpd are running and snmpd.conf has the appropriate entry. Do you have other hints that may help me? Thanks again. Bo jmoseley at corp.xanadoo.com wrote: > I use that plugin on a number of Dell servers. First, you've got to make > sure the RAID controller is either a MegaRAID or AACRAID controller. More > than likely, it's the former. > > The plugin itself is self explanatory - look at the help output. What you > need is to download the Perc SNMP agent from Dell. Ultimately, you'll > install the following RPM: > > percsnmp-4.09-1.i386.rpm > > which will install the percsnmpd daemon... > > All you need to do at that point is apply the following line to your > /etc/snmp/snmpd.conf file: > > # Dell MegaRAID data will be exported on port 161 by the main snmpd > pass .1.3.6.1.4.1.3582 /usr/sbin/percmain > > Then fire up the percsnmpd daemon and restart snmpd. > > > James Moseley > > > > > > Bo Gusman > .us> To > Nagios-users at lists.sourceforge.net > 04/30/2009 01:00 cc > PM > Subject > [Nagios-users] experience with > check_sasraid_megaraid for Dell > PERC 4? > > > > > > > > > > > Hi all. > > We've got two dell servers with PERC4 controllers running CentOS that > nagios is monitoring quite nicely with the exception of the raid arrays. > > Is there anyone that has experience with check_sasraid_megaraid as found > here: > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 > > Advice, an overview, or a recipe would be very helpful! > > Thanks! > > Bo > > > ------------------------------------------------------------------------------ > > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > Bo Gusman wrote: > > Hi all. > > We've got two dell servers with PERC4 controllers running CentOS that > nagios is monitoring quite nicely with the exception of the raid arrays. > > Is there anyone that has experience with check_sasraid_megaraid as found > here: > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1474.html;d=1 > > Advice, an overview, or a recipe would be very helpful! > ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null