From matt.pounsett at cira.ca Sun Feb 1 00:46:08 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Sat, 31 Jan 2004 18:46:08 -0500 (EST) Subject: Host Check Question In-Reply-To: <401C2F5C.90305@POGGS.CO.UK> References: <401C2F5C.90305@POGGS.CO.UK> Message-ID: On Sat, 31 Jan 2004, Peter Hicks wrote: > There are some situations where checking a host is up or not might be > useful, e.g. when monitoring an infrastructure device's up/down status. I think in the case where you have no services defined at all, the host check is used. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Sun Feb 1 08:22:50 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Sun, 01 Feb 2004 01:22:50 -0600 Subject: check_log not working properly Message-ID: <20040201072250.36099.qmail@restricted.dyndns.org> Hi people, Any other alternatives to check_log? Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sven.sternberger at desy.de Sun Feb 1 12:46:26 2004 From: sven.sternberger at desy.de (Sven Sternberger) Date: Sun, 01 Feb 2004 12:46:26 +0100 Subject: Broken HTML in Tactical Monitoring Overview with Mozilla Message-ID: <401CE712.6040400@desy.de> Hello! i'm a litte bit amazed that the page "Tactical Monitoring Overview" is broken in Mozilla. Has anybody analyzed the issue. The under the column "Critical Service" is also the display for "Warning Service", this looks like a wrong colspan. The evil IE has no problems with the page. bye! ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthewwilson at dsl.pipex.com Sun Feb 1 16:22:38 2004 From: matthewwilson at dsl.pipex.com (Matthew Wilson) Date: Sun, 01 Feb 2004 15:22:38 +0000 Subject: serviceextinfo notes_url not appearing In-Reply-To: <1075565463.1912.4.camel@localhost.localdomain> References: <1075565463.1912.4.camel@localhost.localdomain> Message-ID: <1075648925.1910.68.camel@localhost.localdomain> Figured it out - I had forgotten to change the entry in cgi.cfg to use NagMIN-generated config files for extinfo. Maybe it might be an idea to add this to documentation? cheers Matthew. On Sat, 2004-01-31 at 16:11, Matthew Wilson wrote: > > Host1 is fine. Host2 has no notes_url link and no icon displayed. I > can't figure out why. They both have the same service PING inherited > from the same template. > > Any suggestions much appreciated > > Matthew Wilson > DC-Sat.net > > > > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sven.sternberger at desy.de Sun Feb 1 16:56:21 2004 From: sven.sternberger at desy.de (Sven Sternberger) Date: Sun, 01 Feb 2004 16:56:21 +0100 Subject: Broken HTML in Tactical Monitoring Overview with Mozilla In-Reply-To: <401D06F2.8040505@POGGS.CO.UK> References: <401CE712.6040400@desy.de> <401D06F2.8040505@POGGS.CO.UK> Message-ID: <401D21A5.3050001@desy.de> Hi! here is a small pic were you can see the problem http://www.desy.de/~sternber/screenshot.png and the source of the frame is here http://www.desy.de/~sternber/tac.cgi.html hope somebody has an idea :-) bye! Peter Hicks wrote: > Sven Sternberger wrote: > >> i'm a litte bit amazed that the page "Tactical Monitoring Overview" >> is broken in Mozilla. Has anybody >> analyzed the issue. The under the column "Critical Service" is also >> the display for "Warning Service", this >> looks like a wrong colspan. The evil IE has no problems with the page. > > > Any chance you could take a screenshot? The Tactical Monitoring page > works fine on Mozilla 1.6 here. > > > Peter. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rob at capband.net Sun Feb 1 20:09:18 2004 From: rob at capband.net (Rob Nelson) Date: Sun, 01 Feb 2004 14:09:18 -0500 Subject: Overall timing Message-ID: <6.0.1.1.0.20040201140333.01dc2c48@mail.capband.net> Hello all, I know this has been discussed here before, and there's stuff on the web page documentation about it, I just can't find it. Probably need a pointer in the right direction is all. I'd like to know what the overall time is to complete, or perhaps, to start, all the service checks, assuming a working state for all services. I recall reading that if the timing checks are all left to "s" or smart, the complete rounds would end in 5 minutes. I'd like to try and up this to 15 minutes. I've looked at all the interleave options and don't seem to be finding it there. What option am I looking for? Thanks, Rob Nelson Network Administrator, Capitol Broadband C: 919-369-1874 rob at capband.net ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Sun Feb 1 21:16:05 2004 From: pla at softflare.com (Paul L. Allen) Date: Sun, 01 Feb 2004 20:16:05 +0000 Subject: Broken HTML in Tactical Monitoring Overview with Mozilla In-Reply-To: <401CE712.6040400@desy.de> References: <401CE712.6040400@desy.de> Message-ID: <20040201201605.10456.qmail@minnow.softflare.net> Sven Sternberger writes: > i'm a litte bit amazed that the page "Tactical Monitoring Overview" is > broken in Mozilla. Konqueror too. > Has anybody analyzed the issue. The under the column "Critical Service" > is also the display for "Warning Service", I don't see any columns with headings, what I see is that the width of the critical services is about 75% of the allocated width. > this looks like a wrong colspan. Why not view the source to see if your guess is correct? I looked at the source just now and that does not appear to be the problem. There are five columns of width 125 pixels in a table of width 641 pixels. They should be of equal sizes. Usually, when Mozilla and Konqueror screw up like this, it is because there is some invalid HTML before the thing that screws up and they get confused. I'd try to figure out what the problem is but I started on the wine early tonight. I'd have tried to figure out what the problem was before now, but 99.99999999% of our clients use IE (where it's OK) and I personally never found the Tactical page to be particularly appealing (I use Mozilla, where it's broken, but since I never look at it I don't care). > The evil IE has no problems with the page. Which is another sign of broken HTML earlier in the page. You could try running it through the W3C validator... -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Sun Feb 1 21:26:38 2004 From: pla at softflare.com (Paul L. Allen) Date: Sun, 01 Feb 2004 20:26:38 +0000 Subject: check_log not working properly In-Reply-To: <20040201072250.36099.qmail@restricted.dyndns.org> References: <20040201072250.36099.qmail@restricted.dyndns.org> Message-ID: <20040201202638.12011.qmail@minnow.softflare.net> Neil writes: > Hi people, > > Any other alternatives to check_log? Check_log2. I looked at both many months ago and concluded that check_log2 was slightly less bad than check_log but that I wouldn't want to run either of them on a production system with large logs. I can see several different ways of fixing it if you have only one monitoring host (so no redundant checking) but no easy way of handling redundant monitoring that isn't a major resource hog and is simple to code. The best I can think of right now is a daemon that effectively tails the log (intelligently, so it spots log rotation), records the last n seconds of entries and responds to queries on a unix socket from a companion plugin. Although that is not too complicated in itself, adding protection against the daemon dying (for whatever reason) or detecting that it has died (simplified a little only if you keep all your servers synched to the correct time with NTP) starts to complicate things. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Sun Feb 1 21:39:10 2004 From: pla at softflare.com (Paul L. Allen) Date: Sun, 01 Feb 2004 20:39:10 +0000 Subject: does anyone have an example of using check_snmp? In-Reply-To: <20040131124507.GA28796@teddy.fas.com> References: <20040131124507.GA28796@teddy.fas.com> Message-ID: <20040201203910.14547.qmail@minnow.softflare.net> stan writes: > It appears that the plugin I need to use for this is check_snmp, Is this > correct? That's one way of doing it. If the remote hosts are directly reachable by a unique IP address then you can use check_by_ssh. If they're behind a firewall then you can use NRPE or NCSA running on the firewall (or other accessible machine). You could also make use of a VPN. Caveat implementor... -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From stanb at panix.com Sun Feb 1 22:00:45 2004 From: stanb at panix.com (stan) Date: Sun, 1 Feb 2004 16:00:45 -0500 Subject: does anyone have an example of using check_snmp? In-Reply-To: <20040201203910.14547.qmail@minnow.softflare.net> References: <20040131124507.GA28796@teddy.fas.com> <20040201203910.14547.qmail@minnow.softflare.net> Message-ID: <20040201210045.GA27190@teddy.fas.com> On Sun, Feb 01, 2004 at 08:39:10PM +0000, Paul L. Allen wrote: > stan writes: > > >It appears that the plugin I need to use for this is check_snmp, Is this > >correct? > > That's one way of doing it. If the remote hosts are directly reachable > by a unique IP address then you can use check_by_ssh. If they're behind > a firewall then you can use NRPE or NCSA running on the firewall (or > other accessible machine). You could also make use of a VPN. Caveat > implementor... > Yhey are directly rechable, and I will be using snmp on them to provide data for cricket. So I think it makes sense to use check_snmp. So, once again, can anyone point me to an example of how to use thsi tool? -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Sun Feb 1 22:52:15 2004 From: pla at softflare.com (Paul L. Allen) Date: Sun, 01 Feb 2004 21:52:15 +0000 Subject: does anyone have an example of using check_snmp? In-Reply-To: <20040201210045.GA27190@teddy.fas.com> References: <20040131124507.GA28796@teddy.fas.com> <20040201203910.14547.qmail@minnow.softflare.net> <20040201210045.GA27190@teddy.fas.com> Message-ID: <20040201215215.23191.qmail@minnow.softflare.net> stan writes: > Yhey are directly rechable, and I will be using snmp on them to provide > data for cricket. So I think it makes sense to use check_snmp. If you have enabled SNMP on them then it is probably sensible. For some values of sensible. > So, once again, can anyone point me to an example of how to use thsi > tool? First thing to try is check_snmp -h. Second thing to try is googling for check_snmp. Third thing to try is using one of the other plugins... It might appear sensible to use check_snmp, but if you cannot find anything that lets you figure out how to use it then maybe one of the other plugins is a better option. Every time I have ever looked at SNMP, the words "camel", "committee" and the phrase "that smells like festering camel poo" have always come to mind. YMMV. Note that I am probably completely wrong on that since John Postel was deeply involved in SNMP MIBs, and he forgot more about the Internet than I could hope to learn in several lifetimes. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at unixisgod.com Sun Feb 1 23:46:43 2004 From: jeff at unixisgod.com (Jeff Rodriguez) Date: Sun, 01 Feb 2004 15:46:43 -0700 Subject: check_log not working properly In-Reply-To: <20040201072250.36099.qmail@restricted.dyndns.org> References: <20040201072250.36099.qmail@restricted.dyndns.org> Message-ID: <401D81D3.1040801@unixisgod.com> Neil wrote: > Hi people, > Any other alternatives to check_log? > Thanks. > Neil > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null Well, if you're using it for syslog, you might want to check out using syslog-ng and dumping your logs into a database. That'd also be useful for checking the logs of multiple systems. After that making a simple perl script to query the database is cake. Then again it's only usefl if you're using it for syslog. Jeff ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Mon Feb 2 00:39:53 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Sun, 01 Feb 2004 17:39:53 -0600 Subject: check_log not working properly In-Reply-To: <401D81D3.1040801@unixisgod.com> References: <20040201072250.36099.qmail@restricted.dyndns.org> <401D81D3.1040801@unixisgod.com> Message-ID: <20040201233953.3963.qmail@restricted.dyndns.org> Jeff Rodriguez writes: > > Well, if you're using it for syslog, you might want to check out using > syslog-ng and dumping your logs into a database. That'd also be useful for > checking the logs of multiple systems. After that making a simple perl > script to query the database is cake. Then again it's only usefl if you're > using it for syslog. > > Jeff > I actually installed evtsys and snare so I can dump Event Log of NT to a unix box. I got both working to send messages to my FreeBSD syslog. But of course, I was just testing w/c one is better. It seems to me that monitoring logs is a little bit a pain in the neck. If I would go for "dumping logs" into a database, are there any available check script for this? Thanks for the idea. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff at unixisgod.com Mon Feb 2 01:36:03 2004 From: jeff at unixisgod.com (Jeff Rodriguez) Date: Sun, 01 Feb 2004 17:36:03 -0700 Subject: check_log not working properly In-Reply-To: <20040201233953.3963.qmail@restricted.dyndns.org> References: <20040201072250.36099.qmail@restricted.dyndns.org> <401D81D3.1040801@unixisgod.com> <20040201233953.3963.qmail@restricted.dyndns.org> Message-ID: <401D9B73.90208@unixisgod.com> Neil wrote: > Jeff Rodriguez writes: > >> >> Well, if you're using it for syslog, you might want to check out >> using syslog-ng and dumping your logs into a database. That'd also be >> useful for checking the logs of multiple systems. After that making a >> simple perl script to query the database is cake. Then again it's >> only usefl if you're using it for syslog. >> Jeff > > > I actually installed evtsys and snare so I can dump Event Log of NT to > a unix box. I got both working to send messages to my FreeBSD syslog. > But of course, I was just testing w/c one is better. > It seems to me that monitoring logs is a little bit a pain in the > neck. If I would go for "dumping logs" into a database, are there any > available check script for this? > Thanks for the idea. > Neil I haven't written it /yet/. We're using NTSyslog to do the same thing, I've written the script do dump data from a syslog-ng FIFO into mysql. Here's my MySQL Table with Indexes: mysql> describe logs; +----------+---------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------+---------------------+------+-----+---------+----------------+ | id | bigint(20) unsigned | | PRI | NULL | auto_increment | | facility | varchar(20) | YES | MUL | NULL | | | priority | varchar(20) | YES | MUL | NULL | | | date | bigint(20) unsigned | YES | MUL | NULL | | | host | varchar(16) | YES | MUL | NULL | | | program | varchar(255) | YES | MUL | NULL | | | message | text | YES | MUL | NULL | | +----------+---------------------+------+-----+---------+----------------+ 7 rows in set (0.03 sec) mysql> show index from logs; +-------+------------+----------------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | +-------+------------+----------------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ | logs | 0 | PRIMARY | 1 | id | A | 18488671 | NULL | NULL | | BTREE | | | logs | 0 | id | 1 | id | A | 18488671 | NULL | NULL | | BTREE | | | logs | 1 | facilities | 1 | facility | A | NULL | NULL | NULL | YES | BTREE | | | logs | 1 | priorities | 1 | priority | A | NULL | NULL | NULL | YES | BTREE | | | logs | 1 | hosts | 1 | host | A | NULL | NULL | NULL | YES | BTREE | | | logs | 1 | programs | 1 | program | A | NULL | NULL | NULL | YES | BTREE | | | logs | 1 | dates | 1 | date | A | NULL | NULL | NULL | YES | BTREE | | | logs | 1 | facilitites_and_priorities | 1 | facility | A | NULL | NULL | NULL | YES | BTREE | | | logs | 1 | facilitites_and_priorities | 2 | priority | A | NULL | NULL | NULL | YES | BTREE | | | logs | 1 | messages | 1 | message | A | NULL | 1 | NULL | YES | FULLTEXT | | +-------+------------+----------------------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+ 10 rows in set (0.01 sec) This setup performs pretty well, I bet it does even better without a firewall dumping every 'deny'd packet into it. With properly tuned indexes (which I'm still working on) and dumping everything that's more than a month or so old it would probably scream. This is about two weeks worth of logs: mysql> select count(*) from logs; +----------+ | count(*) | +----------+ | 18490471 | +----------+ and it's running fine. If you happen to write a script for this please send it to me if you can :) Jeff ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mozley at exponential-e.com Mon Feb 2 10:31:55 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Mon, 02 Feb 2004 09:31:55 +0000 Subject: check_log not working properly In-Reply-To: <20040201072250.36099.qmail@restricted.dyndns.org> References: <20040201072250.36099.qmail@restricted.dyndns.org> Message-ID: <401E190B.8050905@exponential-e.com> Neil wrote: > Hi people, > Any other alternatives to check_log? > Thanks. I've used syslog-ng and swatch to submit passive checks, which works very well for network devices, providing events that are not shown up with things like SNMP traps. Jim ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Mon Feb 2 13:44:19 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Mon, 02 Feb 2004 07:44:19 -0500 Subject: Monitor disk use info !!! In-Reply-To: <20040128235747.29882.qmail@minnow.softflare.net> References: <20040128192212.19587.qmail@minnow.softflare.net> <20040128235747.29882.qmail@minnow.softflare.net> Message-ID: <1075725859.13318.5.camel@miles> On Wed, 2004-01-28 at 18:57, Paul L. Allen wrote: > Jason Martin writes: > > > It sounds like you are looking for the -e option: > > > > -e, --errors-only > > Display only devices/mountpoints with errors > > It wasn't me that wanted it but the other guy. I didn't remember the > -e option because it was long ago when I looked at what check_disk did > and figured out what I wanted to do with it. Silly me, I also assumed > that because this guy asked, he had already looked at what check_disk did > and there wasn't such an option, so there was no need for me to have a > look. Surely, if somebody asks for an option to do something, it is > because he has already looked at what options exist - not on this list, > which should probably be renamed nagios-for-users-too-lazy-or-too-stupid- > to-do-anything-for-themselves-and-expect-others-to-do-it-all-for-them. > > ...Better would be if check_disk > allowed multiple -p options, so that you could list all the mount points > you want to check, it would be done in one check, and you could use -e > to display only the ones with problems if you wanted. If you look at the 1.4a release or the CVS tree, that capability has been in the check_disk since for some time now. Not a stable release yet, but it's there if you need it. -- Karl ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Mon Feb 2 13:53:22 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Mon, 02 Feb 2004 07:53:22 -0500 Subject: does anyone have an example of using check_snmp? In-Reply-To: <20040201210045.GA27190@teddy.fas.com> References: <20040131124507.GA28796@teddy.fas.com> <20040201203910.14547.qmail@minnow.softflare.net> <20040201210045.GA27190@teddy.fas.com> Message-ID: <1075726401.13318.9.camel@miles> On Sun, 2004-02-01 at 16:00, stan wrote: > On Sun, Feb 01, 2004 at 08:39:10PM +0000, Paul L. Allen wrote: > > stan writes: > > > > >It appears that the plugin I need to use for this is check_snmp, Is this > > >correct? > > > > That's one way of doing it. If the remote hosts are directly reachable > > by a unique IP address then you can use check_by_ssh. If they're behind > > a firewall then you can use NRPE or NCSA running on the firewall (or > > other accessible machine). You could also make use of a VPN. Caveat > > implementor... > > > Yhey are directly rechable, and I will be using snmp on them to provide > data for cricket. So I think it makes sense to use check_snmp. > > So, once again, can anyone point me to an example of how to use thsi tool? grep snmp /etc/nagios/command.cfg There are nearly 20 examples with the plugins dustribution, including checks for cpu stats and memory. -- Karl ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From extern.Lars.Oeschey at audi.de Mon Feb 2 14:26:22 2004 From: extern.Lars.Oeschey at audi.de (extern.Lars.Oeschey at audi.de) Date: Mon, 2 Feb 2004 14:26:22 +0100 Subject: disk_by_snmp with apan Message-ID: <3A51ADC7DE201748AE224D58A8CA83B502256FC9@deaudiis1127.audi.de> Hi, anyone has snmp checks running with apan? I just can't get that to work :( Example: define service{ use generic-service ; Name of service template to use hostgroup_name nt-servers-int service_description Disk_C is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 240 notification_period 24x7 notification_options c,r check_command apan-sql!disk_by_snmp!80!90 } just give me a "Service timed out" as result... Of course SNMP is running, and snmpwalk gets me results. Lars ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From curt at shaffersconsulting.com Mon Feb 2 15:58:29 2004 From: curt at shaffersconsulting.com (Curt Shaffer) Date: 02 Feb 2004 09:58:29 -0500 Subject: Broken HTML in Tactical Monitoring Overview with Mozilla In-Reply-To: <401CE712.6040400@desy.de> References: <401CE712.6040400@desy.de> Message-ID: <1075733908.19012.29.camel@nocstation3.chilitech.net> Sven I had the same problem. I believe that what you need is to add: printf("\n") on line 1192 or 1193 of the tac.c file before compiling.(between printf("\n") and printf("\n")) I cant be 100% sure becuase like a bad sysadmin I have deleted my development version because everything was working fine. However I know for a fact that this the file where the problem is and that it was an unended table or td. Then you need to mess with the   ammounts with the display fields for hosts and such to make them look pretty. here is a screenshot of what ours looks like now after fixing that. http://shaffersconsulting.com/tacshot.bmp hope that helps! ;) Curt Shaffer Wireless/Network Specialist Chilitech Internet Solutions On Sun, 2004-02-01 at 06:46, Sven Sternberger wrote: > Hello! > > i'm a litte bit amazed that the page "Tactical Monitoring Overview" is > broken in Mozilla. Has anybody > analyzed the issue. The under the column "Critical Service" is also the > display for "Warning Service", this > looks like a wrong colspan. The evil IE has no problems with the page. > > bye! > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthewwilson at dsl.pipex.com Mon Feb 2 16:41:06 2004 From: matthewwilson at dsl.pipex.com (Matthew Wilson) Date: Mon, 02 Feb 2004 15:41:06 +0000 Subject: Escaping in Serviceextinfo notes_url Message-ID: <1075736466.1906.13.camel@localhost.localdomain> Greetings list, I use a service extinfo definition wtih notes_url=apan.cgi?host=$HOSTNAME$&service=PING to save me changing the url for each host. However, when Nagios interpolates a host which has '-' in it's name, it is escaped to %2D, causing Apan not to recognise it. Any ideas how I can prevent this? cheers Matthew. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From manfred.steinbacher at scheucher.at Mon Feb 2 17:09:53 2004 From: manfred.steinbacher at scheucher.at (Steinbacher Manfred) Date: Mon, 2 Feb 2004 17:09:53 +0100 Subject: Cisco: Configuration save Message-ID: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at> Hello I have many Cisco Systems (Routers and Switches). Does anyone known that I can save the configuration of these system with nagios? I also want to known which mac-addresses are in my network. We have same VLAN`s. Can I do this with Nagios or any other tool? Thanks manfred Best Regards Mit freundlichen Gr?ssen Manfred Steinbacher -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil-on-nagios at restricted.dyndns.org Mon Feb 2 17:39:51 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Mon, 02 Feb 2004 10:39:51 -0600 Subject: check_log not working properly In-Reply-To: <401E190B.8050905@exponential-e.com> References: <20040201072250.36099.qmail@restricted.dyndns.org> <401E190B.8050905@exponential-e.com> Message-ID: <20040202163951.75678.qmail@restricted.dyndns.org> Hi Jim, Actually, I want to try passive checks but I have no slightest idea how to implement this mode of check. So with passive check, how does nagios server check it? What do I need on the client side? What are pre-requisites. Thanks again. Jim Mozley writes: > Neil wrote: > >> Hi people, >> Any other alternatives to check_log? >> Thanks. > > I've used syslog-ng and swatch to submit passive checks, which works very > well for network devices, providing events that are not shown up with > things like SNMP traps. > > Jim ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschelin at hq.nasa.gov Mon Feb 2 18:04:42 2004 From: cschelin at hq.nasa.gov (Carl Schelin) Date: 02 Feb 2004 12:04:42 -0500 Subject: Monitoring NetOctopus Message-ID: <1075741482.29295.19.camel@unixgod.hq.nasa.gov> Hi, We're deploying NetOctopus on a 2003 server. I checked the plug-ins directories (1.3.1) for any specific scrpit to watch this service and don't see one. Short of check_tcp -H ... -p 1921, is there another script that's available or in work or can be used to actually get a data response? Thanks, Carl ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 2 18:13:24 2004 From: marc at ena.com (Marc Powell) Date: Mon, 2 Feb 2004 11:13:24 -0600 Subject: Cisco: Configuration save Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A1FD@mismail2.ena.com> >From: Steinbacher Manfred [mailto:manfred.steinbacher at scheucher.at] >Sent: Monday, February 02, 2004 10:10 AM >To: 'nagios-users at lists.sourceforge.net' >Subject: [Nagios-users] Cisco: Configuration save >I have many Cisco Systems (Routers and Switches). >Does anyone known that I can save the configuration of these system with nagios? Nagios isn't even remotely designed for this type of activity. You probably want something like RANCID http://www.shrubbery.net/rancid/. >I also want to known which mac-addresses are in my network. We have same VLAN`s. >Can I do this with Nagios or any other tool? Again, Nagios isn't designed for this. Unfortunately I don't have any suggestions for something that is. Perhaps someone else on the list might. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bwhaley at costrack.com Mon Feb 2 18:19:32 2004 From: bwhaley at costrack.com (Ben Whaley) Date: Mon, 02 Feb 2004 10:19:32 -0700 Subject: notifications_enabled 0 Message-ID: Greetings, I am having trouble with disabling notifications. I would not like to be notified when a host cannot be pinged, but I still want the check to happen. In my generic service template, I have "notifications_enabled 1". However, in the ping check service definition, I have: defined service{ ; Generic template for all services use common-to-all name simple-ping-check notifications_enabled 0 service description Ping Check check_command check_ping max_check_attempts 1 host_name * } The notifications disabled icon (a speaker with a red X through it) apears on the Service Detail webpage next to the Ping Check service. However, I am still getting notified when hosts are unreachable. Should I remove the "notifications_enabled 1" from the generic template and specify notifications_enabled in each service definition? This would be unintuitive. Does anyone have other suggestions? Regards, Ben Whaley ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Mon Feb 2 18:29:40 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Mon, 02 Feb 2004 11:29:40 -0600 Subject: check_log not working properly In-Reply-To: <401E190B.8050905@exponential-e.com> References: <20040201072250.36099.qmail@restricted.dyndns.org> <401E190B.8050905@exponential-e.com> Message-ID: <20040202172940.79195.qmail@restricted.dyndns.org> Jim Mozley writes: > > I've used syslog-ng and swatch to submit passive checks, which works very > well for network devices, providing events that are not shown up with > things like SNMP traps. > Hi Jim, How do I sumbit passive checks using swatch? I've used swatch a long time ago in snort. And I used it to check ALERTS string in my /var/log/messages file. But now, how do I do it in nagios using passive? Btw, I have just finished installing nsca daemon and it's running now. Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Feb 2 18:38:23 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 02 Feb 2004 17:38:23 +0000 Subject: Broken HTML in Tactical Monitoring Overview with Mozilla In-Reply-To: <1075733908.19012.29.camel@nocstation3.chilitech.net> References: <401CE712.6040400@desy.de> <1075733908.19012.29.camel@nocstation3.chilitech.net> Message-ID: <20040202173823.16493.qmail@minnow.softflare.net> Curt Shaffer writes: > I believe that what you need is to add: > > printf("\n") on line 1192 or 1193 of the tac.c file before > compiling.(between printf("\n") and printf("\n")) For the 1.1 release, I believe that the two commented-out lines: printf("\n"); printf("\n"); betwen the printf("\n"); on line 1221 and the printf("\n"); on line 1228 should be uncommented. I could be wrong about that because of the nesting of tables, but after taking the output and indenting various constructs in a text editor so I could see what was happening, it looked to me like those two lines should be there (browsers that follow the HTML spec don't strictly need the closing but some versions of some browsers get confused without it). Having tried the change, it now looks correct in IE, Mozilla and Konqueror. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Mon Feb 2 18:41:26 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Mon, 02 Feb 2004 11:41:26 -0600 Subject: check_log not working properly In-Reply-To: <20040202172940.79195.qmail@restricted.dyndns.org> References: <20040201072250.36099.qmail@restricted.dyndns.org> <401E190B.8050905@exponential-e.com> <20040202172940.79195.qmail@restricted.dyndns.org> Message-ID: <20040202174126.80100.qmail@restricted.dyndns.org> Forget this guys, I will just have to use swatch's mailing functionality for me to receive alerts. My only obstacle now is swatch reliability when system does a log rotation. Any neat solutions about this? Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Mon Feb 2 19:01:22 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Mon, 2 Feb 2004 13:01:22 -0500 (EST) Subject: Broken HTML in Tactical Monitoring Overview with Mozilla In-Reply-To: <20040202173823.16493.qmail@minnow.softflare.net> References: <20040202173823.16493.qmail@minnow.softflare.net> Message-ID: On Mon, 2 Feb 2004, Paul L. Allen wrote: > For the 1.1 release, I believe that the two commented-out lines: > > printf("\n"); > printf("\n"); > > betwen the printf("\n"); on line 1221 and the printf("\n"); > on line 1228 should be uncommented. Confirmed. I came up with the same solution to fix mine. Here's the patch I'm using: diff -uNr nagios-1.1.orig/cgi/tac.c nagios-1.1/cgi/tac.c --- nagios-1.1.orig/cgi/tac.c 2003-05-12 00:18:56.000000000 -0400 +++ nagios-1.1/cgi/tac.c 2004-02-02 12:45:08.000000000 -0500 @@ -1220,10 +1220,8 @@ printf("\n"); printf("\n"); - /* printf("\n"); printf("\n"); - */ printf("\n"); -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at masonc.com Mon Feb 2 19:05:55 2004 From: lists at masonc.com (Chris Mason) Date: Mon, 2 Feb 2004 14:05:55 -0400 Subject: Problems with restarting service Message-ID: <003801c3e9b7$33fab060$0600a8c0@poseiden> I have a server on which I am running nagios and a service similar to httpd. I want to restart the service should it stop responding. As a test, I have used httpd. Nagios is configured as follows: /etc/nagios/services.cfg ... check_command check_http event_handler restart-httpd ... /etc/nagios/checkcommands.cfg ... # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } ... /usr/lib/nagios/plugins/eventhandlers/restart_httpd ... # Call the init script to restart the HTTPD server sudo /etc/init.d/httpd restart ... I have sudo'ed the nagios user "nagios" as follows # Cmnd alias specification Cmnd_Alias HTTP = /etc/rc.d/init.d/httpd restart NAGUSERS localhost=NOPASSWD: HTTP If I su to nagios, I can execute the restart. Nagios tries to execute it, but the message is: Feb 2 13:22:38 slimp3server sudo(pam_unix)[15754]: authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=nagios And the command is not executed. Any ideas? Chris Mason masonc at masonc.com Box 340, The Valley, Anguilla, British West Indies Yahoo IM: netconcepts_anguilla at yahoo.com 264 497-5670 Fax: 264 497-8463 www.netconcepts.ai ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Mon Feb 2 19:12:56 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Mon, 2 Feb 2004 13:12:56 -0500 Subject: Broken HTML in Tactical Monitoring Overview with Mozilla Message-ID: Is there a way I can fix the cgi without recompiling? -----Original Message----- From: Matt Pounsett [mailto:matt.pounsett at cira.ca] Sent: Monday, February 02, 2004 1:01 PM To: Paul L. Allen Cc: Curt Shaffer; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Re: Broken HTML in Tactical Monitoring Overview with Mozilla On Mon, 2 Feb 2004, Paul L. Allen wrote: > For the 1.1 release, I believe that the two commented-out lines: > > printf("\n"); > printf("\n"); > > betwen the printf("\n"); on line 1221 and the printf("\n"); > on line 1228 should be uncommented. Confirmed. I came up with the same solution to fix mine. Here's the patch I'm using: diff -uNr nagios-1.1.orig/cgi/tac.c nagios-1.1/cgi/tac.c --- nagios-1.1.orig/cgi/tac.c 2003-05-12 00:18:56.000000000 -0400 +++ nagios-1.1/cgi/tac.c 2004-02-02 12:45:08.000000000 -0500 @@ -1220,10 +1220,8 @@ printf("\n"); printf("\n"); - /* printf("\n"); printf("\n"); - */ printf("\n"); -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Mon Feb 2 19:30:16 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Mon, 2 Feb 2004 13:30:16 -0500 (EST) Subject: Broken HTML in Tactical Monitoring Overview with Mozilla In-Reply-To: References: Message-ID: On Mon, 2 Feb 2004, Jack Doyle wrote: > Is there a way I can fix the cgi without recompiling? Nothing comes to mind. The HTML is hard-coded into the C source, so I think you're out of luck. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Feb 2 20:38:11 2004 From: pla at softflare.com (Paul L. Allen) Date: Mon, 02 Feb 2004 19:38:11 +0000 Subject: Cisco: Configuration save In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A1FD@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A1FD@mismail2.ena.com> Message-ID: <20040202193811.16584.qmail@minnow.softflare.net> Marc Powell writes: > >>From: Steinbacher Manfred [mailto:manfred.steinbacher at scheucher.at] >>I also want to known which mac-addresses are in my network. We have >>same VLAN`s. Can I do this with Nagios or any other tool? > > Again, Nagios isn't designed for this. Unfortunately I don't have any > suggestions for something that is. Perhaps someone else on the list > might. How about arp -a? As long as there has been recent traffic between the Linux box you do that on and the boxes you want MAC addresses for, that does the trick. Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Tue Feb 3 00:41:34 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Mon, 02 Feb 2004 17:41:34 -0600 Subject: Problems with restarting service In-Reply-To: <003801c3e9b7$33fab060$0600a8c0@poseiden> References: <003801c3e9b7$33fab060$0600a8c0@poseiden> Message-ID: <20040202234134.4948.qmail@restricted.dyndns.org> This is very interesting. I thought, Nagios only do monitoring. Is it true that nagios can restart a service using event handlers? What about services on remote like Windows using NRPE? Thanks. Chris Mason writes: > I have a server on which I am running nagios and a service similar to httpd. > > I want to restart the service should it stop responding. > > As a test, I have used httpd. > > Nagios is configured as follows: > /etc/nagios/services.cfg > > ... > check_command check_http > event_handler restart-httpd > ... > > /etc/nagios/checkcommands.cfg > ... > # 'check_http' command definition > define command{ > command_name check_http > command_line $USER1$/check_http -H $HOSTADDRESS$ > } > ... > > /usr/lib/nagios/plugins/eventhandlers/restart_httpd > ... > # Call the init script to restart the HTTPD server > sudo /etc/init.d/httpd restart > ... > > I have sudo'ed the nagios user "nagios" as follows > # Cmnd alias specification > Cmnd_Alias HTTP = /etc/rc.d/init.d/httpd restart > > NAGUSERS localhost=NOPASSWD: HTTP > > If I su to nagios, I can execute the restart. > > Nagios tries to execute it, but the message is: > Feb 2 13:22:38 slimp3server sudo(pam_unix)[15754]: authentication failure; > logname= uid=0 euid=0 tty= ruser= rhost= user=nagios > > And the command is not executed. > > Any ideas? > > > > > > > > Chris Mason > masonc at masonc.com > Box 340, The Valley, Anguilla, British West Indies > Yahoo IM: netconcepts_anguilla at yahoo.com > 264 497-5670 Fax: 264 497-8463 > www.netconcepts.ai > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Tue Feb 3 00:52:34 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Mon, 02 Feb 2004 17:52:34 -0600 Subject: performance Message-ID: <20040202235234.5747.qmail@restricted.dyndns.org> I just copied this from my Tactical Overview page. Can someone please check if the values are good? Monitoring Performance Check Execution Time: 0 / 5 / 1.697 sec Check Latency: 15 / 45 / 38.110 sec # Active Checks: 109 # Passive Checks: 0 And if it's ok, can someone tell me what those values are? Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Feb 3 00:54:09 2004 From: jhmartin at toger.us (Jason Martin) Date: Mon, 2 Feb 2004 15:54:09 -0800 (PST) Subject: Problems with restarting service In-Reply-To: <20040202234134.4948.qmail@restricted.dyndns.org> References: <003801c3e9b7$33fab060$0600a8c0@poseiden> <20040202234134.4948.qmail@restricted.dyndns.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A nagios event handler can do anything you want; with nrpe you'd have to write a nrpe 'check' that actually bounces the service. - -Jason Martin On Mon, 2 Feb 2004, Neil wrote: > This is very interesting. I thought, Nagios only do monitoring. Is it true > that nagios can restart a service using event handlers? What about services > on remote like Windows using NRPE? > > Thanks. > > > Chris Mason writes: > > > I have a server on which I am running nagios and a service similar to httpd. > > > > I want to restart the service should it stop responding. > > > > As a test, I have used httpd. > > > > Nagios is configured as follows: > > /etc/nagios/services.cfg > > > > ... > > check_command check_http > > event_handler restart-httpd > > ... > > > > /etc/nagios/checkcommands.cfg > > ... > > # 'check_http' command definition > > define command{ > > command_name check_http > > command_line $USER1$/check_http -H $HOSTADDRESS$ > > } > > ... > > > > /usr/lib/nagios/plugins/eventhandlers/restart_httpd > > ... > > # Call the init script to restart the HTTPD server > > sudo /etc/init.d/httpd restart > > ... > > > > I have sudo'ed the nagios user "nagios" as follows > > # Cmnd alias specification > > Cmnd_Alias HTTP = /etc/rc.d/init.d/httpd restart > > > > NAGUSERS localhost=NOPASSWD: HTTP > > > > If I su to nagios, I can execute the restart. > > > > Nagios tries to execute it, but the message is: > > Feb 2 13:22:38 slimp3server sudo(pam_unix)[15754]: authentication failure; > > logname= uid=0 euid=0 tty= ruser= rhost= user=nagios > > > > And the command is not executed. > > > > Any ideas? > > > > > > > > > > > > > > > > Chris Mason > > masonc at masonc.com > > Box 340, The Valley, Anguilla, British West Indies > > Yahoo IM: netconcepts_anguilla at yahoo.com > > 264 497-5670 Fax: 264 497-8463 > > www.netconcepts.ai > > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by EclipseCon 2004 > > Premiere Conference on Open Tools Development and Integration > > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > > http://www.eclipsecon.org/osdn > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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 SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAHuMql2ODWuqVSBMRAtMGAKCFMpHCVqGHwEAdlyjMXZj+0fT6MwCeNxVn lF0dr0GjpZAcJkJsRt5ixNQ= =x/LS -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie.baddeley at vpc.co.nz Tue Feb 3 06:48:00 2004 From: jamie.baddeley at vpc.co.nz (Jamie Baddeley) Date: 03 Feb 2004 18:48:00 +1300 Subject: Cisco: Configuration save In-Reply-To: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at> References: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at> Message-ID: <1075787284.1257.0.camel@munter> arpwatch will do it nicely. http://packages.debian.org/stable/admin/arpwatch jamie On Tue, 2004-02-03 at 05:09, Steinbacher Manfred wrote: > Hello > > > > I have many Cisco Systems (Routers and Switches). > > Does anyone known that I can save the configuration of these system with > nagios? > > > > I also want to known which mac-addresses are in my network. We have same > VLAN`s. > > Can I do this with Nagios or any other tool? > > > > Thanks > > manfred > > > > Best Regards > > Mit freundlichen Gr?ssen > > Manfred Steinbacher > > > > > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Basile.Mathieu at siris.sorbonne.fr Tue Feb 3 10:21:31 2004 From: Basile.Mathieu at siris.sorbonne.fr (Basile Mathieu) Date: Tue, 03 Feb 2004 10:21:31 +0100 Subject: Cisco: Configuration save In-Reply-To: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at > References: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at > Message-ID: <5.0.2.1.2.20040203102005.0238ec70@195.220.107.3> hi i do that with nagios by using check_snmp i have to modify the outpout of plugins which is too short it work fine now . basile A 17:09 02/02/2004 +0100, vous avez ?crit : >Hello > > > >I have many Cisco Systems (Routers and Switches). > >Does anyone known that I can save the configuration of these system with >nagios? > > > >I also want to known which mac-addresses are in my network. We have same >VLAN`s. > >Can I do this with Nagios or any other tool? > > > >Thanks > >manfred > > > >Best Regards > >Mit freundlichen Gr?ssen > >Manfred Steinbacher > > > > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mozley at exponential-e.com Tue Feb 3 11:00:59 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Tue, 03 Feb 2004 10:00:59 +0000 Subject: check_log not working properly In-Reply-To: <20040202163951.75678.qmail@restricted.dyndns.org> References: <20040201072250.36099.qmail@restricted.dyndns.org> <401E190B.8050905@exponential-e.com> <20040202163951.75678.qmail@restricted.dyndns.org> Message-ID: <401F715B.2000402@exponential-e.com> Neil wrote: > Hi Jim, > Actually, I want to try passive checks but I have no slightest idea > how to implement this mode of check. So with passive check, how does > nagios server check it? What do I need on the client side? Based on fictitious example for monitoring sonet network events using syslog (I have a plugin to do this via SNMP but the principle is the same for some other stuff we do and avoids some complexity that would take a bit of explaining). You define a service as normal, but you may want to turn off active checks and perhaps use the freshness checking. This is covered in the manual, but if there are specific bits that don't make sense I'd post a question here. Define the service(s) with some consistent naming e.g. "-sonet" as you will need this so your script associates the event with the appropriate service. Configure swatch or equivalent to perform an execute script type action. The script receives the syslog message and then submits a passive check against the service. It will need to build a service name from the syslog message passed to it, for instance by extracting the hostname from the syslog message and adding "-sonet". Depending upon the nature of the message it should also set a status e.g. if the messages match the regex /[Ee]rror|[Ff]ail/ make it critical or if its /[Uu]p/ make it OK. The scripts submits the passive check via Nagios' command pipe, the exact format of the command is available in the manuals and some sample scripts provided with the distribution. Once you've done this the big advantage is having one source of events i.e. nagios shows the results of pinging and syslog events and there is one unified set of notification mechanisms, etc. Otherwise using just swatch (email alerts for instance) you have a second system to administer. HTH Jim ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.hopkins at uk.easynet.net Tue Feb 3 11:09:10 2004 From: dan.hopkins at uk.easynet.net (Dan Hopkins) Date: Tue, 3 Feb 2004 10:09:10 -0000 Subject: notifications_enabled 0 Message-ID: <251F83C07099B54EB727A3B9D784451A07674BDB@vulcan.shepton.office.easynet.net> > -----Original Message----- > From: Ben Whaley [mailto:bwhaley at costrack.com] > Sent: 02 February 2004 17:20 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notifications_enabled 0 > > > Greetings, > > I am having trouble with disabling notifications. I would not > like to be > notified when a host cannot be pinged, but I still want the > check to happen. > In my generic service template, I have "notifications_enabled > 1". However, > in the ping check service definition, I have: > > defined service{ > ; Generic template for all services > use common-to-all > name simple-ping-check > notifications_enabled 0 > service description Ping Check > check_command check_ping > max_check_attempts 1 > host_name * > } > > The notifications disabled icon (a speaker with a red X > through it) apears > on the Service Detail webpage next to the Ping Check service. > However, I am > still getting notified when hosts are unreachable. > > Should I remove the "notifications_enabled 1" from the > generic template and > specify notifications_enabled in each service definition? > This would be > unintuitive. Does anyone have other suggestions? > > Regards, > Ben Whaley Are you sure it's a service notification you're getting and not a host notification? (easily spotted by service notifications having a service description if you're using the generic notify commands) Check the notifications setting in your host definition Kind Regards, -- Dan Hopkins ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Karl at multimap.com Tue Feb 3 12:22:15 2004 From: Karl at multimap.com (Karl Skidmore) Date: Tue, 3 Feb 2004 11:22:15 -0000 Subject: updating Nagios config manually with NagMIN Message-ID: <781DF5926EB3CA41B0F31054D3330BFD5AC944@mail02> >>(the script adds hosts, services, apan configs and creates rrds)<< Sounds like this could be really useful - is there a possibility of sharing parts of this script with the list? Cheers... Karl Skidmore Multimap.com -----Original Message----- From: Matthew Wilson [mailto:matthewwilson at dsl.pipex.com] Sent: 28 January 2004 13:36 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] updating Nagios config manually with NagMIN Greetings list, I am interested in trying NagMIN but have one concern - I need to be able to use a custom perl script to update nagios config files (the script adds hosts, services, apan configs and creates rrds). Is this possible without screwing up NagMIN's config info? thanks Matthew Wilson DC-Sat.net ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mozley at exponential-e.com Tue Feb 3 11:05:56 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Tue, 03 Feb 2004 10:05:56 +0000 Subject: check_log not working properly In-Reply-To: <20040202174126.80100.qmail@restricted.dyndns.org> References: <20040201072250.36099.qmail@restricted.dyndns.org> <401E190B.8050905@exponential-e.com> <20040202172940.79195.qmail@restricted.dyndns.org> <20040202174126.80100.qmail@restricted.dyndns.org> Message-ID: <401F7284.5000503@exponential-e.com> Neil wrote: > Forget this guys, I will just have to use swatch's mailing > functionality for me to receive alerts. My only obstacle now is swatch > reliability when system does a log rotation. Any neat solutions about > this? I use syslog-ng with one of its destinations as swatch as well as the usual log files. this means I don't need to worry about log rotation and each host's log files are in a separate directory. I'd recommend syslog-ng over the syslog daemon with solaris for instance. We're getting a bit OT but I can provide you with my syslog-ng config file off list if it would help. Jim ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sguilbaud at oceanet-technology.com Tue Feb 3 14:38:38 2004 From: sguilbaud at oceanet-technology.com (Sebastien Guilbaud) Date: Tue, 03 Feb 2004 14:38:38 +0100 Subject: anyone using xfs filesystem ? Message-ID: <401FA45E.7040609@oceanet-technology.com> my nagios does not seem to like be stored on an XFS filesystem : i've nailed down the (potential) problem to xdata/xodtemplate.c around line ~370 : #ifdef _DIRENT_HAVE_D_TYPE /* only process normal files */ if(dirfile->d_type!=DT_REG) continue; #endif dirfile->d_type seems to be null in this test. same cvs version works fine on another server, on an ext3 filesystem. anyone else using xfs filesystems ? have a nice day ! -- S?bastien Guilbaud ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at masonc.com Tue Feb 3 14:17:50 2004 From: lists at masonc.com (Chris Mason) Date: Tue, 3 Feb 2004 09:17:50 -0400 Subject: Problems with restarting service In-Reply-To: References: Message-ID: <000401c3ea58$201ba490$0600a8c0@poseiden> In case anyone is interested, I got the event handler to restart the services as needed by moving nagios to remote monitoring server and using ssh to remote restart the offending service. If anyone needs info on this please contact me. Chris Mason masonc at masonc.com Box 340, The Valley, Anguilla, British West Indies Yahoo IM: netconcepts_anguilla at yahoo.com 264 497-5670 Fax: 264 497-8463 www.netconcepts.ai ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jbautista at intercable.net.ve Tue Feb 3 15:34:03 2004 From: jbautista at intercable.net.ve (Jeyri bautista) Date: Tue, 3 Feb 2004 10:34:03 -0400 Subject: traps snmp Message-ID: <007001c3ea62$c5a31600$2605020a@bjeyri> Hi, I have configured my nagios to receive the traps snmp, but I can?t do is obtain the ip or hostname of the host that send the traps. I try with read host but don?t work. I have that do any things for solve that? Thanks Jeyri -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at masonc.com Tue Feb 3 16:42:13 2004 From: lists at masonc.com (Chris Mason) Date: Tue, 3 Feb 2004 11:42:13 -0400 Subject: Temperature monitoring Message-ID: <000c01c3ea6c$4af78990$0600a8c0@poseiden> I'm looking for a cheap way to monitor server room temperature as well as other locations. Can anyone recommend a cheaper solution than the $300 kits on https://shop.nelix.com/sensatronics/store/productlist.asp My preference is for an ethernet connected device I can monitor remotely with nagios. Chris Mason masonc at masonc.com Box 340, The Valley, Anguilla, British West Indies Yahoo IM: netconcepts_anguilla at yahoo.com 264 497-5670 Fax: 264 497-8463 www.netconcepts.ai ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yohann.desquerre at anpe.fr Tue Feb 3 18:09:46 2004 From: yohann.desquerre at anpe.fr (Yohann DESQUERRE (DSI NOISIEL)) Date: Tue, 3 Feb 2004 18:09:46 +0100 Subject: How to develop personal plugins to work with nagios ??? Message-ID: Hi all, We'd like to monitor via Nagios products which haven't got existants pluggins!!! Our duty is to develop the pluggins we need (the needs are very specific)!!!! Are there any existants best practices on how to develop pluggins for Nagios???? Thanks for help ----------------------------------------------- Yohann Desquerre "Plateforme ANPE.FR" S/Direction de la production Gestion des Ressources ----------------------------------------------- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Tue Feb 3 17:10:28 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Tue, 03 Feb 2004 10:10:28 -0600 Subject: services and hosts time Message-ID: <20040203161028.72124.qmail@restricted.dyndns.org> Hey guys, Below is an entry in my services.cfg: define service{ use generic-service ; Name of service template to use host_name wwww421 service_description W3SVC - NTService is_volatile 0 check_period 24x7 max_check_attempts 2 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 5 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_service_w3svc } and another one from hosts.cfg: define host{ use generic-host ; Name of host template to use host_name wwww421 alias Test Web Server #1 address 10.156.130.26 check_command check-host-alive parents gateway10.156.188.3 max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } I just noticed only now that my max_check_attempts in hosts.cfg is too high. Looks like I just copied it from the sample. Anyways, from what I saw in checkcommands.cfg, check-host-alive is basically PING. Someone from this list recommended me to use max_check_attempts equal to 2 in services.cfg(FOR PRODUCTION). To anyone, would you also recommended me setting max_check_attempts to 2 in each of my hosts in hosts.cfg and likewise the notification_interval to 5? Thanks again. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Feb 3 22:12:28 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 03 Feb 2004 21:12:28 +0000 Subject: services and hosts time In-Reply-To: <20040203161028.72124.qmail@restricted.dyndns.org> References: <20040203161028.72124.qmail@restricted.dyndns.org> Message-ID: <20040203211228.24144.qmail@minnow.softflare.net> Neil writes: > To anyone, would you also recommended me setting max_check_attempts to 2 > in each of my hosts in hosts.cfg and likewise the notification_interval to > 5? Pings get lost. Routers are allowed to discard pings if they are busy. Pings can also take a long time to return if the network is saturated even if routers aren't dropping them. If you want lots of e-mails about hosts going down and recovering then go ahead and make your change. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mozley at exponential-e.com Tue Feb 3 21:32:55 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Tue, 03 Feb 2004 20:32:55 +0000 Subject: How to develop personal plugins to work with nagios ??? In-Reply-To: References: Message-ID: <40200577.6010103@exponential-e.com> Yohann DESQUERRE (DSI NOISIEL) wrote: >Hi all, > >We'd like to monitor via Nagios products which haven't got existants >pluggins!!! > >Our duty is to develop the pluggins we need (the needs are very >specific)!!!! > > >Are there any existants best practices on how to develop pluggins for >Nagios???? > > >Thanks for help > > There are some developer guidelines available from the Nagios web site. I've found the best way is to use an existing perl plugin as an example or template. Jim ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Tue Feb 3 22:17:22 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Tue, 03 Feb 2004 15:17:22 -0600 Subject: service recovery and mail notification Message-ID: <20040203211722.93168.qmail@restricted.dyndns.org> Hey guys, max_checks_attempts 2 normal_check_interval 1 retry_check_interval 1 notification_interval 5 This means that normal check of service is every 2 minutes. If that service goes down, the check will be retried every 1 minute and it will retry checking for 2 times. Then we get the mail alert on our inbox. Succeeding mail will be in next every 5 minutes. Question: What if the service recovers, when are we going to get notified by email? I noticed that the status on the webpage already changed to UP but I got an email after a couple of minutes. Any ideas? And are the values above good for production use? Thanks guys. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skip at pobox.com Tue Feb 3 23:33:34 2004 From: skip at pobox.com (Skip Montanaro) Date: Tue, 3 Feb 2004 16:33:34 -0600 Subject: check_web_load plugin Message-ID: <16416.8638.160758.639161@montanaro.dyndns.org> Last week the Mojam web server got hammered by an ill-behaved crawler, probably harvesting email addresses. Most such crawlers don't obey robots.txt files, and if they dive into a region of your website with lots of dynamic content, they can wreak havoc. I learned from another group of admins that a simple routing trick can block such crawlers without upsetting your web server's config files: function disable-host () { route add -host $1 gw 127.0.0.1 } function enable-host () { route delete -host $1 } With a way to quickly solve the problem, you now need a way to quickly detect it. Checking the web server's load average is one technique. Another which seems to work reasonably well and is more specific to the particular problem is to consider the recent access history of the top two client IP addresses. I wrote a simple Nagios plugin (just a shell script at this point) which compares accesses from the two most frequent clients. You can get a copy here: http://manatee.mojam.com/~skip/check_web_load.sh Here's the help output: Usage: check_web_load.sh [ -h ] [ -w M ] [ -c M ] logfile ... -w M - warn if most frequent client has M times more hits than second most frequent client (default 3) -c M - critical if most frequent client has M times more hits than second most frequent client (default 6) -l N - specify last N lines of logfile to check (default 1000) -x P - specify egrep pattern P to exclude lines (default (/images|/icons)) The warning factor must be strictly less than the critical factor. If more than one logfile is given, each is considered separately, and the worst status (OK, WARNING, CRITICAL) is reported. Feedback is welcome. -- Skip Montanaro Got gigs? http://www.musi-cal.com/submit.html Got spam? http://spambayes.sf.net/ skip at pobox.com ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Tue Feb 3 23:41:26 2004 From: jhmartin at toger.us (Jason Martin) Date: Tue, 3 Feb 2004 14:41:26 -0800 (PST) Subject: check_web_load plugin In-Reply-To: <16416.8638.160758.639161@montanaro.dyndns.org> References: <16416.8638.160758.639161@montanaro.dyndns.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 One common problem with auto-blacklists like that is it can be used to DoS your host -- just start sending in spoofed IP addresses and get your host to blacklist its own GW or such. - -Jason Martin On Tue, 3 Feb 2004, Skip Montanaro wrote: > Last week the Mojam web server got hammered by an ill-behaved crawler, > probably harvesting email addresses. Most such crawlers don't obey > robots.txt files, and if they dive into a region of your website with lots > of dynamic content, they can wreak havoc. > > I learned from another group of admins that a simple routing trick can block > such crawlers without upsetting your web server's config files: > > function disable-host () { > route add -host $1 gw 127.0.0.1 > } > > function enable-host () { > route delete -host $1 > } > > With a way to quickly solve the problem, you now need a way to quickly > detect it. Checking the web server's load average is one technique. > Another which seems to work reasonably well and is more specific to the > particular problem is to consider the recent access history of the top two > client IP addresses. I wrote a simple Nagios plugin (just a shell script at > this point) which compares accesses from the two most frequent clients. You > can get a copy here: > > http://manatee.mojam.com/~skip/check_web_load.sh > > Here's the help output: > > Usage: check_web_load.sh [ -h ] [ -w M ] [ -c M ] logfile ... > -w M - warn if most frequent client has M times more hits > than second most frequent client (default 3) > -c M - critical if most frequent client has M times more hits > than second most frequent client (default 6) > -l N - specify last N lines of logfile to check (default 1000) > -x P - specify egrep pattern P to exclude lines (default (/images|/icons)) > The warning factor must be strictly less than the critical factor. > If more than one logfile is given, each is considered separately, > and the worst status (OK, WARNING, CRITICAL) is reported. > > Feedback is welcome. > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAICOjl2ODWuqVSBMRAhU5AJ0WYEItiORUnVTvbR6gGgStIdHwxwCgljCK g6q78E69evyLWaYH2oxrUF0= =qPJM -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skip at pobox.com Wed Feb 4 00:07:30 2004 From: skip at pobox.com (Skip Montanaro) Date: Tue, 3 Feb 2004 17:07:30 -0600 Subject: check_web_load plugin In-Reply-To: References: <16416.8638.160758.639161@montanaro.dyndns.org> Message-ID: <16416.10674.408932.669672@montanaro.dyndns.org> Jason> One common problem with auto-blacklists like that is it can be Jason> used to DoS your host -- just start sending in spoofed IP Jason> addresses and get your host to blacklist its own GW or such. Sure, you have to exercise due diligence, and I don't auto-blacklist any address. Before cutting off an IP address, I see if it will resolve, traceroute it, and also have a look at my access_log to see what the pattern of accesses looks like. I'm more likely to cut some slack for the source if it's an AOL address because I know they rely heavily on proxies. If AOL decides to feature my piddly little website on their home page (I should be so lucky), I'll take my lumps. In any case, the access pattern for 10,000 AOL users coming through a handful of AOL proxies is going to be a lot different than the access pattern of a single cretin harvesting email addresses from his about-to-be-shit-canned DSL address. Also, note that the AOL phenomenon probably wouldn't rate a Nagios warning anyway. It's likely that multiple proxies would be hitting my site, so the top two client IP addresses would probably have similar numbers of accesses. In any case, it doesn't really matter if the IP address is spoofed or not, if the requests show clear evidence that a crawler is simply marching through my site link-by-link and making my web server unusable I have no real choice but to block it. The issue for me is detecting that situation before my server's load average exceeds the national speed limit. After a few hours I can execute my enable-host function to delete the blocking route anyway. Nothing's permanent. Skip ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Wed Feb 4 00:12:51 2004 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Tue, 3 Feb 2004 17:12:51 -0600 Subject: Reports only show data from a specific time period? Message-ID: <115F85A8196CD411BBAB0008C7590661CC5297@FS01> All, Management has requested that all Nagios reports show ONLY data from the time period of 7 am to 7 pm. We do want monitoring and notification 24x7 though. In all of the reports I see no way of doing this. Is it possible? Daniel Jimenez Avatar Computer Solutions, Inc. Network Support, Voice / Data Cabling, and Internet Services 256 N. Sam Houston Parkway E. Suite #268 Voice: 281.999.1300 Fax: 281.999.7070 Web: www.avatar-cs.net ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Feb 4 01:06:39 2004 From: jhmartin at toger.us (Jason Martin) Date: Tue, 3 Feb 2004 16:06:39 -0800 (PST) Subject: service recovery and mail notification In-Reply-To: <20040203211722.93168.qmail@restricted.dyndns.org> References: <20040203211722.93168.qmail@restricted.dyndns.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The webpage will display 'soft' states while the notification engine is only invoked for 'hard' states; as such the emails will lag behind the webpage whenever max_check_attempts > 1. - -Jason Martin On Tue, 3 Feb 2004, Neil wrote: > Hey guys, > > max_checks_attempts 2 > normal_check_interval 1 > retry_check_interval 1 > notification_interval 5 > > This means that normal check of service is every 2 minutes. If that service > goes down, the check will be retried every 1 minute and it will retry > checking for 2 times. Then we get the mail alert on our inbox. Succeeding > mail will be in next every 5 minutes. > > Question: What if the service recovers, when are we going to get notified by > email? I noticed that the status on the webpage already changed to UP but I > got an email after a couple of minutes. > > Any ideas? And are the values above good for production use? > > Thanks guys. > > Neil > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAIDehl2ODWuqVSBMRAvyjAJ9GmbEM4iWuVQi2NFcFihZtJFFfoACdFDCo g3i5F+iHPJnWrvgLK3cbowg= =WMnV -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Feb 4 01:39:09 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 04 Feb 2004 00:39:09 +0000 Subject: Reports only show data from a specific time period? In-Reply-To: <115F85A8196CD411BBAB0008C7590661CC5297@FS01> References: <115F85A8196CD411BBAB0008C7590661CC5297@FS01> Message-ID: <20040204003910.21341.qmail@minnow.softflare.net> Daniel Jimenez writes: > Management has requested that all Nagios reports show ONLY data from the > time period of 7 am to 7 pm. We do want monitoring and notification 24x7 > though. The only sensible solution is to beat clues into your management using baseball bats. If you happen to kill a few of them before they get a clue, so much the better. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 3 20:35:12 2004 From: marc at ena.com (Marc Powell) Date: Tue, 3 Feb 2004 13:35:12 -0600 Subject: How to develop personal plugins to work with nagios ??? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A209@mismail2.ena.com> On Tuesday, February 03, 2004 11:10 AM, Yohann DESQUERRE (DSI NOISIEL) shared with us: > Hi all, > > We'd like to monitor via Nagios products which haven't got existants > pluggins!!! > > Our duty is to develop the pluggins we need (the needs are very > specific)!!!! > > > Are there any existants best practices on how to develop pluggins for > Nagios???? Yes, the documentation is located at http://nagiosplug.sourceforge.net/. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Tue Feb 3 20:28:36 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Tue, 3 Feb 2004 14:28:36 -0500 (EST) Subject: Temperature monitoring In-Reply-To: <000c01c3ea6c$4af78990$0600a8c0@poseiden> References: <000c01c3ea6c$4af78990$0600a8c0@poseiden> Message-ID: On Tue, 3 Feb 2004, Chris Mason wrote: > > I'm looking for a cheap way to monitor server room temperature as well as > other locations. Can anyone recommend a cheaper solution than the $300 kits > on https://shop.nelix.com/sensatronics/store/productlist.asp Someone reviewed a couple different kits on this list a week or two ago.. you can search the archives. Not sure how they match up with price. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Tue Feb 3 17:05:44 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Tue, 03 Feb 2004 10:05:44 -0600 Subject: Problems with restarting service In-Reply-To: <000401c3ea58$201ba490$0600a8c0@poseiden> References: <000401c3ea58$201ba490$0600a8c0@poseiden> Message-ID: <20040203160544.71731.qmail@restricted.dyndns.org> Chris Mason writes: > In case anyone is interested, I got the event handler to restart the > services as needed by moving nagios to remote monitoring server and using What and why did you say "moving nagios to remote monitoring server"? I'm sorry, I didn't start reading this thread. > ssh to remote restart the offending service. If anyone needs info on this > please contact me. > Sure, I am very interested. Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Wed Feb 4 04:59:14 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Tue, 03 Feb 2004 21:59:14 -0600 Subject: service recovery and mail notification In-Reply-To: References: <20040203211722.93168.qmail@restricted.dyndns.org> Message-ID: <20040204035914.20666.qmail@restricted.dyndns.org> Hi Jason, Ok. Now I know now. It's actually more important for us to receive an immediate email when a service goes in HARD state rather than a state that has just recovered. Thanks. Jason Martin writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > The webpage will display 'soft' states while the notification engine is > only invoked for 'hard' states; as such the emails will lag behind the > webpage whenever max_check_attempts > 1. > > - -Jason Martin > > On Tue, 3 Feb 2004, Neil > wrote: > >> Hey guys, >> >> max_checks_attempts 2 >> normal_check_interval 1 >> retry_check_interval 1 >> notification_interval 5 >> >> This means that normal check of service is every 2 minutes. If that service >> goes down, the check will be retried every 1 minute and it will retry >> checking for 2 times. Then we get the mail alert on our inbox. Succeeding >> mail will be in next every 5 minutes. >> >> Question: What if the service recovers, when are we going to get notified by >> email? I noticed that the status on the webpage already changed to UP but I >> got an email after a couple of minutes. >> >> Any ideas? And are the values above good for production use? >> >> Thanks guys. >> >> Neil >> >> >> ------------------------------------------------------- >> The SF.Net email is sponsored by EclipseCon 2004 >> Premiere Conference on Open Tools Development and Integration >> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. >> http://www.eclipsecon.org/osdn >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.3.3 (GNU/Linux) > Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ > > iD8DBQFAIDehl2ODWuqVSBMRAvyjAJ9GmbEM4iWuVQi2NFcFihZtJFFfoACdFDCo > g3i5F+iHPJnWrvgLK3cbowg= > =WMnV > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Wed Feb 4 05:04:32 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Tue, 03 Feb 2004 22:04:32 -0600 Subject: check_http on strings Message-ID: <20040204040432.21013.qmail@restricted.dyndns.org> I was testing check_http and string matching. I defaced a test webpage and I got a "string NOT FOUND" on the nagios webpage(color RED). But I was wondering why I didn't get any email notifications. Is it possible to receive notification with this kind of checking? The reason I was telling this is that, this morning, we're getting PAGE NOT FOUND on one of our IIS webservers. I checked the W3SVC service and it was still running. I used netcat to connect to the web daemon on port 80, and I get a connection. So, it seems to me that IIS just gave up serving webpages. But like I said, I didn't get any email notification. Any help is greatly appreciated. Thanks again. Ronneil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at debisschop.net Tue Feb 3 13:17:35 2004 From: karl at debisschop.net (Karl DeBisschop) Date: Tue, 03 Feb 2004 07:17:35 -0500 Subject: Cisco: Configuration save In-Reply-To: <20040202193811.16584.qmail@minnow.softflare.net> References: <370ACCFA5BB3B346A31222E5559BF91F03A1FD@mismail2.ena.com> <20040202193811.16584.qmail@minnow.softflare.net> Message-ID: <1075810655.1121.2.camel@miles> On Mon, 2004-02-02 at 14:38, Paul L. Allen wrote: > Marc Powell writes: > > > > >>From: Steinbacher Manfred [mailto:manfred.steinbacher at scheucher.at] > >>I also want to known which mac-addresses are in my network. We have > >>same VLAN`s. Can I do this with Nagios or any other tool? > > > > Again, Nagios isn't designed for this. Unfortunately I don't have any > > suggestions for something that is. Perhaps someone else on the list > > might. arpwatch Included in redhat/fedora, most likely in other OS's and distros as well. -- Karl ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 4 05:29:08 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 4 Feb 2004 15:29:08 +1100 Subject: check_traceroute Message-ID: <20040204152906.E69140@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, The check_traceroute plugin contributed by M Place seems to be a particuarly effective way of disambiguating faults in outsourced hosts from faults in outsourced networks to which they are connected. In this case, the parents directive may be be less helpful because 1 The providers network is opaque 2 You don't want to monitor - or cannot - each node in the providers network. Has anyone any experience with monitoring in this situation, or use of the check_traceroute plugin, that they would like to share ? I accept that some of the caveats above may make the check_traceroute plugin useless (eg routers that don't respond with TTL expired, firewalls etc). In this case, I think that check_traceroutes results could be useful in a global event handler that once it is certain that an event is the responsibility of a provider to 1 notifiy the provider by email 2 open a trouble-ticket/request (by email) with the wonderful 'Request Tracker' software. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yohann.desquerre at anpe.fr Tue Feb 3 18:14:24 2004 From: yohann.desquerre at anpe.fr (Yohann DESQUERRE (DSI NOISIEL)) Date: Tue, 3 Feb 2004 18:14:24 +0100 Subject: Check_by_ssh questions ???? Message-ID: Hi all, I would like to know how to tell Nagios if the check is at the state WARMING or CRITICAL or OK with the check_by_ssh pluggings. Thanks for help ----------------------------------------------- Yohann Desquerre "Plateforme ANPE.FR" S/Direction de la production Gestion des Ressources ----------------------------------------------- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 4 06:28:40 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 4 Feb 2004 16:28:40 +1100 Subject: Nagios plugin guidelines. In-Reply-To: <200402040442.i144gkCr007701@flora.securenet.com.au>; from nagios-users-request@lists.sourceforge.net on Tue, Feb 03, 2004 at 08:20:45PM -0800 References: <200402040442.i144gkCr007701@flora.securenet.com.au> Message-ID: <20040204162838.F69140@IPAustralia.Gov.AU> On Tue, Feb 03, 2004 at 08:20:45PM -0800, nagios-users-request at lists.sourceforge.net wrote: Dear Sir, I am writing to thank you for your letter and say, > From: "Yohann DESQUERRE (DSI NOISIEL)" > To: > Subject: [Nagios-users] How to develop personal plugins to work with nagios ??? > > Hi all, > > We'd like to monitor via Nagios products which haven't got existants > pluggins!!! > > Our duty is to develop the pluggins we need (the needs are very > specific)!!!! > > > Are there any existants best practices on how to develop pluggins for > Nagios???? http://nagiosplug.sourceforge.net/developer-guidelines.html Not quite what you asked for but close. In a nutshell, 1 foo yad blech - check business/service is kaput 2 write an appropriate message (that will be sent to the contact group) 3 exit with the corresponding Nagios exit code Do's and Don'ts for publication/portability/maintenance/best practises 1 use the same 'style' as the other plugins 2 use the plugin infrastructure (eg import utils.pm for Perl plugins) 3 use a language that is readily available and familiar (eschew LISP for example, if all you want is list data structures): C /bin/sh Perl Python Ruby are reasonable choices. 4 use the standard options - see the option plugin 5 provide a help/usage message 6 be mindful of language specific issues (eg Perl with the embedded interpreter) 7 provide some tests - use the Perl Test.pm and Test::Harness for example. 8 handle timeouts. Don't let your plugin run forever (hint: alarm($TIMEOUT)) 9 if your module is Perl or Python ..., trap 'use Required_Module' statements where the module is not installed and exit with an UNKNOWN status and the usage message. The real meta advice is simply the same for any coding exercise. Read code; Read code; Read code; until you know what works for you and what works for others and what is the subset of the intersection that you like. For example, gawk at the amazing plugins already in the CVS. > > > Thanks for help > > > ----------------------------------------------- > Yohann Desquerre > "Plateforme ANPE.FR" > S/Direction de la production > Gestion des Ressources > ----------------------------------------------- Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skip at pobox.com Tue Feb 3 18:32:52 2004 From: skip at pobox.com (Skip Montanaro) Date: Tue, 3 Feb 2004 11:32:52 -0600 Subject: performance In-Reply-To: <20040202235234.5747.qmail@restricted.dyndns.org> References: <20040202235234.5747.qmail@restricted.dyndns.org> Message-ID: <16415.56132.596749.944730@montanaro.dyndns.org> Neil> Monitoring Performance Neil> Check Execution Time: 0 / 5 / 1.697 sec Neil> Check Latency: 15 / 45 / 38.110 sec Neil> # Active Checks: 109 Neil> # Passive Checks: 0 Neil> And if it's ok, can someone tell me what those values are? I don't know if it's okay or not (I sort of suspect not - big latencies are generally not good), but your latency numbers are much different than mine. Mine are 0 / 1 / 0.181 sec. I have 513 active checks and no passive checks. -- Skip Montanaro Got gigs? http://www.musi-cal.com/submit.html Got spam? http://spambayes.sf.net/ skip at pobox.com ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pikelner at rogers.com Wed Feb 4 07:47:24 2004 From: pikelner at rogers.com (Frank Pikelner) Date: Wed, 4 Feb 2004 01:47:24 -0500 Subject: STATS: nagios -s nagios.cfg Message-ID: <000601c3eaea$bf5b89c0$98aa6418@netcraftinc.int> The following are our stats, what does the command check interval of "-1" indicate? Also any suggestion for tweaking the settings? Nagios 1.1 Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) Last Modified: 06-02-2003 License: GPL Warning: Host 'Internet' has no services associated with it! Warning: Host 'Internet' is not a member of any host groups! SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 890 Total hosts: 389 Command check interval: -1 sec Check reaper interval: 10 sec Inter-check delay method: SMART Average check interval: 300.000 sec Inter-check delay: 0.337 sec Interleave factor method: SMART Average services per host: 2.288 Service interleave factor: 3 Initial service check scheduling info: -------------------------------------- First scheduled check: 1075849658 -> Tue Feb 3 18:07:38 2004 Last scheduled check: 1075849958 -> Tue Feb 3 18:12:38 2004 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 30 Recommend value: 90 Thank you, Frank Pikelner ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 3 23:00:43 2004 From: marc at ena.com (Marc Powell) Date: Tue, 3 Feb 2004 16:00:43 -0600 Subject: services and hosts time Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A20C@mismail2.ena.com> On Tuesday, February 03, 2004 3:12 PM, Paul L. Allen shared with us: > Neil writes: > > > To anyone, would you also recommended me setting max_check_attempts > > to 2 in each of my hosts in hosts.cfg and likewise the > > notification_interval to 5? > > Pings get lost. Routers are allowed to discard pings if they are > busy. > Pings can also take a long time to return if the network is saturated > even if routers aren't dropping them. If you want lots of e-mails > about hosts going down and recovering then go ahead and make your > change. The flip side of this is that within Nagios, all other processing stops until the status of a questionable host is definitively determined. If it takes 1 minute to complete all the check attempts then nothing else will happen during that 1 minute; no new service checks, no notifications, no processing of service checks that are waiting to turn in their results, etc. It's generally recommended to keep the number of actual pings low and a max_checks that you are comfortable with. Each network is different and what is acceptable to you might be different that what is acceptable to someone else. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mauog at interfree.it Wed Feb 4 09:03:49 2004 From: mauog at interfree.it (Mauro) Date: Wed, 4 Feb 2004 09:03:49 +0100 Subject: How to monitor a router References: <000601c3eaea$bf5b89c0$98aa6418@netcraftinc.int> Message-ID: <002f01c3eaf5$6c3e3890$5dc810ac@graitmgatt> Hallo all, I'd like to know how to insert correctly a router in my nagios configuration. Actually I inserted router like an host that has in "address" statement its two IP (corresponding to its two interfaces) separated by comma. But when I have a problem on router I can't see any network outages even it is configured as parent of some hosts and I get status critical messages from all "sons" hosts. Do You know which is best way to manage a router? Thank You Mauro ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danny at g2k.es Wed Feb 4 09:26:33 2004 From: danny at g2k.es (=?iso-8859-1?Q?Danny_Garc=EDa_Hern=E1ndez?=) Date: Wed, 4 Feb 2004 09:26:33 +0100 Subject: begginer question .. Message-ID: <003201c3eaf8$9bb49d00$4801a8c0@ALACRA> Helo List. I?m a begginer with Nagios 1.2 and sorry for the gurus in this list, but i have the commom begginer?s problem. Host show like DOWN when really are UP, command sending to this host /bin/ping -n -U -c 1 192.168.1.5 return packets. Then HTTP and PING service are failing getting me a "CRITICAL - Plugin timed out after 10 seconds " errors. Can any body help me? Is necesary activate external command to verify host status? Thank in Advanced Danny ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From extern.Lars.Oeschey at audi.de Wed Feb 4 09:45:13 2004 From: extern.Lars.Oeschey at audi.de (extern.Lars.Oeschey at audi.de) Date: Wed, 4 Feb 2004 09:45:13 +0100 Subject: critical values for snmp? Message-ID: <3A51ADC7DE201748AE224D58A8CA83B502256FE3@deaudiis1127.audi.de> Hi, finally I get something back via snmp. Now I just can't figure, how the critical/warning limits are interpreted... My services.conf looks like this: define service{ use generic-service ; Name of service template to use hostgroup_name nt-servers-int service_description Disk_C is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 240 notification_period 24x7 notification_options c,r check_command apan-sql!disk_by_snmp!public!2!80!90 } but I get a critical warning: Disk usage: C: 5 GB free, 0 GB (12%) used. Lars ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From h.baecker at ecofis.de Wed Feb 4 10:09:21 2004 From: h.baecker at ecofis.de (h.baecker at ecofis.de) Date: Wed, 4 Feb 2004 10:09:21 +0100 Subject: Antwort: How to monitor a router In-Reply-To: <002f01c3eaf5$6c3e3890$5dc810ac@graitmgatt> References: <002f01c3eaf5$6c3e3890$5dc810ac@graitmgatt> Message-ID: Hello Mauro, I have my config like this: #'cisco' host definitions define host{ host_name cisco alias Router address 192.168.0.1 check_command check-host-alive max_check_attempts 5 notification_interval 3600 notification_period 24x7 notifications_enabled 1 notification_options r,d,u flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 } #'cisco' host definitions define service{ host_name cisco service_description ATM0 is_volatile 0 check_period 24x7 check_command check_ping!192.168.0.1 max_check_attempts 4 notification_interval 3600 notification_period 24x7 obsess_over_service 1 notifications_enabled 1 notification_options r,c normal_check_interval 60 retry_check_interval 1 contact_groups router } #'cisco' host definitions define service{ host_name cisco service_description LAN is_volatile 0 check_period 24x7 check_command check_ping!192.168.5.7 max_check_attempts 4 notification_interval 3600 notification_period 24x7 obsess_over_service 1 notifications_enabled 1 notification_options r,c normal_check_interval 60 retry_check_interval 1 contact_groups router } As far as I know there has to be configured services for an host for checking a complete host. "Mauro" Gesendet von: nagios-users-admin at lists.sourceforge.net 04.02.2004 09:03 Bitte antworten an "Mauro" An Kopie Thema [Nagios-users] How to monitor a router Hallo all, I'd like to know how to insert correctly a router in my nagios configuration. Actually I inserted router like an host that has in "address" statement its two IP (corresponding to its two interfaces) separated by comma. But when I have a problem on router I can't see any network outages even it is configured as parent of some hosts and I get status critical messages from all "sons" hosts. Do You know which is best way to manage a router? Thank You Mauro ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From h.baecker at ecofis.de Wed Feb 4 10:33:23 2004 From: h.baecker at ecofis.de (h.baecker at ecofis.de) Date: Wed, 4 Feb 2004 10:33:23 +0100 Subject: Antwort: begginer question .. In-Reply-To: <003201c3eaf8$9bb49d00$4801a8c0@ALACRA> References: <003201c3eaf8$9bb49d00$4801a8c0@ALACRA> Message-ID: Hello Danny, Can you give us an example of your hosts and service configuration? Greetz Hendrik Danny Garc?a Hern?ndez Gesendet von: nagios-users-admin at lists.sourceforge.net 04.02.2004 09:26 An Kopie Thema [Nagios-users] begginer question .. Helo List. I?m a begginer with Nagios 1.2 and sorry for the gurus in this list, but i have the commom begginer?s problem. Host show like DOWN when really are UP, command sending to this host /bin/ping -n -U -c 1 192.168.1.5 return packets. Then HTTP and PING service are failing getting me a "CRITICAL - Plugin timed out after 10 seconds " errors. Can any body help me? Is necesary activate external command to verify host status? Thank in Advanced Danny ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: From sven.sternberger at desy.de Tue Feb 3 12:25:11 2004 From: sven.sternberger at desy.de (Sven Sternberger) Date: Tue, 03 Feb 2004 12:25:11 +0100 Subject: Broken HTML in Tactical Monitoring Overview with Mozilla In-Reply-To: References: Message-ID: <401F8517.8030709@desy.de> Hello! first thanx for the help. now it works. and Jack it is very simple, just get the source and do a: tar -xvzf nagios-1.x.tar.gz cd nagios-1.x ./configure vi tac.c make tac.cgi #first make a backup of the old one! then: cp tac.cgi /where/ever/the/old/one/was bye! ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danny at g2k.es Wed Feb 4 11:28:18 2004 From: danny at g2k.es (=?iso-8859-1?Q?Danny_Garc=EDa_Hern=E1ndez?=) Date: Wed, 4 Feb 2004 11:28:18 +0100 Subject: Antwort: begginer question .. References: Message-ID: <005101c3eb09$9e650740$4801a8c0@ALACRA> Hello. here is my hosts.cfg and service.cfg files. Thks, Danny hosts.cfg ------------------------------------------ # Generic host definition template define host{ name generic-host ; The name of this host template - referenced in other host definitions, used for template recursion/resolution notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # 'linux1' host definition define host{ use generic-host ; Name of host template to use host_name micalet alias Linux Server Micalet address 192.169.1.5 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } # 'linux2' host definition define host{ use generic-host ; Name of host template to use host_name mestalla alias Linux Server Mestalla address 192.168.1.4 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } ------------------------------------------ services.cfg ------------------------------------------ # Generic service definition template define service{ name generic-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } # Service definition define service{ use generic-service ; Name of service template to use host_name micalet service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } # Service definition define service{ use generic-service ; Name of service template to use host_name micalet service_description HTTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r check_command check_http } # Service definition define service{ use generic-service ; Name of service template to use host_name micalet service_description Current Users is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r check_command check_local_users!75!150 } # Service definition define service{ use generic-service ; Name of service template to use host_name micalet service_description Total Processes is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r check_command check_local_procs!150!200!RSZDT } # Service definition define service{ use generic-service ; Name of service template to use host_name micalet service_description /dev/sda3 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_local_disk!20%!10%!/dev/sda3 } # Service definition define service{ use generic-service ; Name of service template to use host_name micalet service_description /dev/sda5 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_local_disk!20%!10%!/dev/sda5 } # Service definition define service{ use generic-service ; Name of service template to use host_name mestalla service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } # Service definition define service{ use generic-service ; Name of service template to use host_name mestalla service_description Current Users is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r check_command check_local_users!75!150 } # Service definition define service{ use generic-service ; Name of service template to use host_name mestalla service_description Total Processes is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r check_command check_local_procs!150!200!RSZDT } # Service definition define service{ use generic-service ; Name of service template to use host_name mestalla service_description /dev/sda3 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_local_disk!20%!10%!/dev/sda3 } # Service definition define service{ use generic-service ; Name of service template to use host_name mestalla service_description /dev/sda5 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_local_disk!20%!10%!/dev/sda5 } ------------------------------------------ ----- Original Message ----- From: To: Cc: ; Sent: Wednesday, February 04, 2004 10:33 AM Subject: Antwort: [Nagios-users] begginer question .. Hello Danny, Can you give us an example of your hosts and service configuration? Greetz Hendrik Danny Garc?a Hern?ndez Gesendet von: nagios-users-admin at lists.sourceforge.net 04.02.2004 09:26 An Kopie Thema [Nagios-users] begginer question .. Helo List. I?m a begginer with Nagios 1.2 and sorry for the gurus in this list, but i have the commom begginer?s problem. Host show like DOWN when really are UP, command sending to this host /bin/ping -n -U -c 1 192.168.1.5 return packets. Then HTTP and PING service are failing getting me a "CRITICAL - Plugin timed out after 10 seconds " errors. Can any body help me? Is necesary activate external command to verify host status? Thank in Advanced Danny ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mozley at exponential-e.com Wed Feb 4 11:43:27 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Wed, 04 Feb 2004 10:43:27 +0000 Subject: Cisco: Configuration save In-Reply-To: <20040203103650.25157.qmail@minnow.softflare.net> References: <370ACCFA5BB3B346A31222E5559BF91F03A1FD@mismail2.ena.com> <20040202193811.16584.qmail@minnow.softflare.net> <401F736B.5030909@exponential-e.com> <20040203103650.25157.qmail@minnow.softflare.net> Message-ID: <4020CCCF.4090003@exponential-e.com> Paul L. Allen wrote: > > Maybe there's something in SNMP that lets you get at MACs, maybe not. > That > would get the MACs of machines on remote network segments if it allows it > at all. I'd prefer to figure out how to use arp -a remotely than try to > dig around in SNMP MIBs. I have seen MACs in MIBs if one wanted to use it. I think it may even be in MIB-II but cannot remember the OID at present. http://www.mibdepot.com should help anyone out if they need it. Jim ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atpol at yahoo.com Wed Feb 4 12:01:28 2004 From: atpol at yahoo.com (Attilio Poleggi) Date: Wed, 4 Feb 2004 03:01:28 -0800 (PST) Subject: How to monitor a router In-Reply-To: <002f01c3eaf5$6c3e3890$5dc810ac@graitmgatt> References: <002f01c3eaf5$6c3e3890$5dc810ac@graitmgatt> Message-ID: <20040204110128.47144.qmail@web11601.mail.yahoo.com> Hi, I That the best way to check a router is using snmp. You can try check_snmp or check_ifoperstatus to check the status of your network interfaces (Up or down). Maybe you don't have any 'critical' because it depends on which network you are pinging from the interface! by Attilio --- Mauro wrote: > Hallo all, I'd like to know how to insert correctly > a router in my nagios > configuration. > Actually I inserted router like an host that has in > "address" statement its > two IP (corresponding to its two interfaces) > separated by comma. > But when I have a problem on router I can't see any > network outages even it > is configured as parent of some hosts and I get > status critical messages > from all "sons" hosts. > Do You know which is best way to manage a router? > > > Thank You > > Mauro > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and > Integration > See the breadth of Eclipse activity. February 3-5 in > Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ejl at man.fwltech.com Wed Feb 4 12:23:47 2004 From: ejl at man.fwltech.com (Ewan Leith) Date: Wed, 4 Feb 2004 11:23:47 -0000 Subject: Temperature monitoring Message-ID: <1012BD903945D411915500105A48FF5701C73ECC@nt.man.fwltech.com> We use a program called digitemp using a little chip from dallas semiconductor the ds1820, took a bit of initial work to get up and running, but it cost's about $15 for each little package we make now, plugs into a serial port. we buy our chips from maplins or rs here in the uk and wrap them up in a little 9pin serial port holder, in the usa you can buy them premade here: www.ibuttonlink.com Ewan > -----Original Message----- > From: Chris Mason [mailto:lists at masonc.com] > Sent: 03 February 2004 15:42 > To: 'Nagios Users' > Subject: [Nagios-users] Temperature monitoring > > > > I'm looking for a cheap way to monitor server room > temperature as well as > other locations. Can anyone recommend a cheaper solution than > the $300 kits > on https://shop.nelix.com/sensatronics/store/productlist.asp > > My preference is for an ethernet connected device I can > monitor remotely > with nagios. > > Chris Mason > masonc at masonc.com > Box 340, The Valley, Anguilla, British West Indies > Yahoo IM: netconcepts_anguilla at yahoo.com > 264 497-5670 Fax: 264 497-8463 > www.netconcepts.ai > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stefan.Hanssen at baerum.kommune.no Wed Feb 4 13:07:31 2004 From: Stefan.Hanssen at baerum.kommune.no (Stefan Hanssen) Date: Wed, 04 Feb 2004 13:07:31 +0100 Subject: Howto: Monitor COM+ applications in Nagios ? Message-ID: Is it possible to monitor if a COM+ application is running with nagios ? If so, how do i ? Best regards Stefan Hanssen ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From T-VANZEE at govst.edu Wed Feb 4 15:28:13 2004 From: T-VANZEE at govst.edu (VanZee, Timothy) Date: Wed, 4 Feb 2004 08:28:13 -0600 Subject: Temperature monitoring Message-ID: Can it be connected to an IP network? And do you have a plugin for Nagios? Tim Van Zee ITS Network Specialist -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ewan Leith Sent: Wednesday, February 04, 2004 5:24 AM To: 'Chris Mason'; 'Nagios Users' Subject: RE: [Nagios-users] Temperature monitoring We use a program called digitemp using a little chip from dallas semiconductor the ds1820, took a bit of initial work to get up and running, but it cost's about $15 for each little package we make now, plugs into a serial port. we buy our chips from maplins or rs here in the uk and wrap them up in a little 9pin serial port holder, in the usa you can buy them premade here: www.ibuttonlink.com Ewan > -----Original Message----- > From: Chris Mason [mailto:lists at masonc.com] > Sent: 03 February 2004 15:42 > To: 'Nagios Users' > Subject: [Nagios-users] Temperature monitoring > > > > I'm looking for a cheap way to monitor server room > temperature as well as > other locations. Can anyone recommend a cheaper solution than > the $300 kits > on https://shop.nelix.com/sensatronics/store/productlist.asp > > My preference is for an ethernet connected device I can > monitor remotely > with nagios. > > Chris Mason > masonc at masonc.com > Box 340, The Valley, Anguilla, British West Indies > Yahoo IM: netconcepts_anguilla at yahoo.com > 264 497-5670 Fax: 264 497-8463 > www.netconcepts.ai ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ejl at man.fwltech.com Wed Feb 4 16:19:05 2004 From: ejl at man.fwltech.com (Ewan Leith) Date: Wed, 4 Feb 2004 15:19:05 -0000 Subject: Temperature monitoring Message-ID: <1012BD903945D411915500105A48FF5701C73ED7@nt.man.fwltech.com> No unfortunately, we have terminal servers scattered around already and you can run long (10-20 metre) cables from the serial ports to the temperature sensors so we've never had to try. there's TINI, dallas semiconductors embedded tcpip system which you can plug into their chips, but it's about $150... I do have a plugin yes, which uses the digitemp program to query the device (www.digitemp.com), the plugin is so trivial though it would only take 5 minutes to write something much better. Running digitemp from the command line produces output like: digitemp -aq Feb 04 14:39:23 Sensor 0 C: 23.68 F: 74.62 so my plugin just wraps it up. > -----Original Message----- > From: VanZee, Timothy [mailto:T-VANZEE at govst.edu] > Sent: 04 February 2004 14:28 > To: Ewan Leith; Nagios Users > Subject: RE: [Nagios-users] Temperature monitoring > > > Can it be connected to an IP network? And do you have a plugin for > Nagios? > > > Tim Van Zee > ITS Network Specialist > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ewan > Leith > Sent: Wednesday, February 04, 2004 5:24 AM > To: 'Chris Mason'; 'Nagios Users' > Subject: RE: [Nagios-users] Temperature monitoring > > We use a program called digitemp using a little chip from dallas > semiconductor the ds1820, took a bit of initial work to get up and > running, > but it cost's about $15 for each little package we make now, > plugs into > a > serial port. > > we buy our chips from maplins or rs here in the uk and wrap > them up in a > little 9pin serial port holder, in the usa you can buy them premade > here: > www.ibuttonlink.com > > Ewan > > > > -----Original Message----- > > From: Chris Mason [mailto:lists at masonc.com] > > Sent: 03 February 2004 15:42 > > To: 'Nagios Users' > > Subject: [Nagios-users] Temperature monitoring > > > > > > > > I'm looking for a cheap way to monitor server room > > temperature as well as > > other locations. Can anyone recommend a cheaper solution than > > the $300 kits > > on https://shop.nelix.com/sensatronics/store/productlist.asp > > > > My preference is for an ethernet connected device I can > > monitor remotely > > with nagios. > > > > Chris Mason > > masonc at masonc.com > > Box 340, The Valley, Anguilla, British West Indies > > Yahoo IM: netconcepts_anguilla at yahoo.com > > 264 497-5670 Fax: 264 497-8463 > > www.netconcepts.ai > > -------------- next part -------------- A non-text attachment was scrubbed... Name: check_hot.pl Type: application/octet-stream Size: 1251 bytes Desc: not available URL: From marc at ena.com Wed Feb 4 17:04:10 2004 From: marc at ena.com (Marc Powell) Date: Wed, 4 Feb 2004 10:04:10 -0600 Subject: How to monitor a router Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A20E@mismail2.ena.com> On Wednesday, February 04, 2004 2:04 AM, Mauro shared with us: > Hallo all, I'd like to know how to insert correctly a router in my > nagios configuration. > Actually I inserted router like an host that has in "address" > statement its two IP (corresponding to its two interfaces) separated > by comma. This will only work if the check_command knows how to deal with two ip addresses. In the current plugins release, check-host-alive (aka check_ping) does not. > But when I have a problem on router I can't see any network outages > even it is configured as parent of some hosts and I get status > critical messages from all "sons" hosts. > Do You know which is best way to manage a router? I typically put a loopback IP on the router and monitor that as the host IP and then have additional IP's on the router defined as services to that router. It seems to me to be a more granular way of checking the state of the router. If any of the circuits are up I can get to the loopback but I can also tell if any of the individual interfaces go down. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yoavd at scopus.net Wed Feb 4 17:15:21 2004 From: yoavd at scopus.net (Yoav Shay Daniely) Date: Wed, 4 Feb 2004 18:15:21 +0200 Subject: Nagios keeps on sending notifications Message-ID: <47CD89DC04CAD04D9A43BE4220D8AD533426@hermes.scopus.net> Hi all, I'm using Nagios for a few weeks now and I have changed my configuration a few times , that includes removing services from monitoring. I have noticed that some of the "removed services" still sends me notifications though they are not listed (not listed on the "service detail" GUI page or services.cfg file) Any advise will be appreciated, Yoav Shay Daniely yoavd at scopus.net If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut. Albert Einstein (1879 - 1955), Observer, Jan. 15, 1950 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Wed Feb 4 17:20:05 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Wed, 04 Feb 2004 10:20:05 -0600 Subject: [CASE CLOSED] Re: check_http on strings In-Reply-To: <20040204040432.21013.qmail@restricted.dyndns.org> References: <20040204040432.21013.qmail@restricted.dyndns.org> Message-ID: <20040204162006.71837.qmail@restricted.dyndns.org> I was wrong! :) ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 4 17:35:23 2004 From: marc at ena.com (Marc Powell) Date: Wed, 4 Feb 2004 10:35:23 -0600 Subject: Nagios keeps on sending notifications Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A20F@mismail2.ena.com> On Wednesday, February 04, 2004 10:15 AM, Yoav Shay Daniely shared with us: > Hi all, > I'm using Nagios for a few weeks now and I have changed my > configuration a few times , that includes removing services from > monitoring. > I have noticed that some of the "removed services" still sends me > notifications though they are not listed (not listed on the "service > detail" GUI page or services.cfg file) Any advise will be > appreciated, This typically happens if you have multiple nagios processes running. This is especially likely if you've been restarting nagios a lot. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yoavd at scopus.net Wed Feb 4 17:41:46 2004 From: yoavd at scopus.net (Yoav Shay Daniely) Date: Wed, 4 Feb 2004 18:41:46 +0200 Subject: Nagios keeps on sending notifications Message-ID: <47CD89DC04CAD04D9A43BE4220D8AD53230A59@hermes.scopus.net> Hi Marc, Thanks for the fast reply, still I have only one process running and I have been restarting the machine a few times and even tried deleting the content of /var/log/nagios. Any ideas? Yoav. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Wednesday, February 04, 2004 6:35 PM To: Yoav Shay Daniely; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios keeps on sending notifications On Wednesday, February 04, 2004 10:15 AM, Yoav Shay Daniely shared with us: > Hi all, > I'm using Nagios for a few weeks now and I have changed my > configuration a few times , that includes removing services from > monitoring. > I have noticed that some of the "removed services" still sends me > notifications though they are not listed (not listed on the "service > detail" GUI page or services.cfg file) Any advise will be > appreciated, This typically happens if you have multiple nagios processes running. This is especially likely if you've been restarting nagios a lot. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jdoyle at lewisgaleclinic.com Wed Feb 4 18:15:16 2004 From: jdoyle at lewisgaleclinic.com (Jack Doyle) Date: Wed, 4 Feb 2004 12:15:16 -0500 Subject: Nagios keeps on sending notifications Message-ID: Seemed to happen to me. I just ended up stopping nagios, killing everything "nagios" and starting it again. -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Wednesday, February 04, 2004 11:35 AM To: Yoav Shay Daniely; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios keeps on sending notifications On Wednesday, February 04, 2004 10:15 AM, Yoav Shay Daniely shared with us: > Hi all, > I'm using Nagios for a few weeks now and I have changed my > configuration a few times , that includes removing services from > monitoring. > I have noticed that some of the "removed services" still sends me > notifications though they are not listed (not listed on the "service > detail" GUI page or services.cfg file) Any advise will be > appreciated, This typically happens if you have multiple nagios processes running. This is especially likely if you've been restarting nagios a lot. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christiaan.Ehlers at inclarity.co.uk Wed Feb 4 18:18:51 2004 From: Christiaan.Ehlers at inclarity.co.uk (Christiaan Ehlers) Date: Wed, 4 Feb 2004 17:18:51 -0000 Subject: Notification if a group goes down Message-ID: <26C5F6BB63EB3A4AB2A5BF8F6FDB85ADC53427@abstelecom.com> Would it be possible to implement nagios such that it notifies you if the whole host group is down? Ie, Host group = linux_servers = server1, server2, server3. Will mail a special mail if server1, 2 and 3 is down. Regards Christiaan Ehlers ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Wed Feb 4 18:19:27 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Wed, 04 Feb 2004 11:19:27 -0600 Subject: monitoring windows cluster Message-ID: <20040204171927.75940.qmail@restricted.dyndns.org> What's the ideal way of monitoring a microsoft cluster server? Sure, I can monitor cluster service using nrpe. But, how am I to determine which one is active and is there any preferable check for this kind of scenario? Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 4 18:30:14 2004 From: marc at ena.com (Marc Powell) Date: Wed, 4 Feb 2004 11:30:14 -0600 Subject: Notification if a group goes down Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A213@mismail2.ena.com> On Wednesday, February 04, 2004 11:19 AM, Christiaan Ehlers shared with us: > Would it be possible to implement nagios such that it notifies you if > the whole host group is down? > > Ie, > Host group = linux_servers = server1, server2, server3. > > Will mail a special mail if server1, 2 and 3 is down. The current version doesn't implement this but you can use the check_cluster plugin to to pretty much the same thing. It's in the plugins contrib directory. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Feb 4 18:33:20 2004 From: jhmartin at toger.us (Jason Martin) Date: Wed, 4 Feb 2004 09:33:20 -0800 (PST) Subject: monitoring windows cluster In-Reply-To: <20040204171927.75940.qmail@restricted.dyndns.org> References: <20040204171927.75940.qmail@restricted.dyndns.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A common way is to have your cluster machine pass around a Vitrual IP, and just have Nagios monitor that VIP for the app-specific processes. - -Jason Martin > What's the ideal way of monitoring a microsoft cluster server? Sure, I can > monitor cluster service using nrpe. But, how am I to determine which one is > active and is there any preferable check for this kind of scenario? > > Thanks. > > Neil > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAISzpl2ODWuqVSBMRAoJ5AJ9A2MDBjpB7gy5VJyk6nWJzORVvvQCglnjC /TXgCQf/8Y7h7h7ODUyLXMQ= =BKvs -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Feb 4 18:44:57 2004 From: jhmartin at toger.us (Jason Martin) Date: Wed, 4 Feb 2004 09:44:57 -0800 (PST) Subject: monitoring windows cluster In-Reply-To: <20040204174053.77571.qmail@restricted.dyndns.org> References: <20040204171927.75940.qmail@restricted.dyndns.org> <20040204174053.77571.qmail@restricted.dyndns.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well, you wouldn't per se, but you'd point Nagios to monitor the VIP. That way whichever machine is answering to the IP will be monitored. - -Jason Martin On Wed, 4 Feb 2004, Neil wrote: > Jason Martin writes: > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > A common way is to have your cluster machine pass around a Vitrual IP, and > > just have Nagios monitor that VIP for the app-specific processes. > > My question now is that, how would I know which node has taken over the > virtual ip address? > > Another one, how will I monitor a failed disk? > > Thanks. > > Neil > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAIS+hl2ODWuqVSBMRApfcAJ4oofaaWz5Q/b1mQPvxOAp05/canQCdEqPE /BgnORCKMg+eHn/hudvjr6s= =785G -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Wed Feb 4 18:40:53 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Wed, 04 Feb 2004 11:40:53 -0600 Subject: monitoring windows cluster In-Reply-To: References: <20040204171927.75940.qmail@restricted.dyndns.org> Message-ID: <20040204174053.77571.qmail@restricted.dyndns.org> Jason Martin writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > A common way is to have your cluster machine pass around a Vitrual IP, and > just have Nagios monitor that VIP for the app-specific processes. My question now is that, how would I know which node has taken over the virtual ip address? Another one, how will I monitor a failed disk? Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Wed Feb 4 18:58:21 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Wed, 04 Feb 2004 11:58:21 -0600 Subject: Nagios keeps on sending notifications In-Reply-To: <47CD89DC04CAD04D9A43BE4220D8AD53230A59@hermes.scopus.net> References: <47CD89DC04CAD04D9A43BE4220D8AD53230A59@hermes.scopus.net> Message-ID: <1075917500.3289.169.camel@localhost> On Wed, 2004-02-04 at 10:41, Yoav Shay Daniely wrote: > Hi Marc, > Thanks for the fast reply, still I have only one process running and I have been restarting the machine a few times and even tried deleting the content of /var/log/nagios. > Any ideas? Are they still in hosts.cfg? Might the hosts themselves still be getting checked? grep for the the hostname in all of the nagios/etc files and make sure it's not lurking somewhere. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Wed Feb 4 19:10:38 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Wed, 04 Feb 2004 12:10:38 -0600 Subject: monitoring windows cluster In-Reply-To: References: <20040204171927.75940.qmail@restricted.dyndns.org> <20040204174053.77571.qmail@restricted.dyndns.org> Message-ID: <20040204181038.79711.qmail@restricted.dyndns.org> Jason Martin writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Well, you wouldn't per se, but you'd point Nagios to monitor the VIP. > That way whichever machine is answering to the IP will be monitored. > IP takeover happens in the background and sometimes takes few seconds. Not even Nagios will notice the switching most especially if had an an normal interval say of 4 or 5 minutes. But, I think, it's still nice to monitor every private ip address of each node in the cluster. In this way, we'll know which one of the nodes failed. Is this a good idea? Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Christiaan.Ehlers at inclarity.co.uk Wed Feb 4 19:14:20 2004 From: Christiaan.Ehlers at inclarity.co.uk (Christiaan Ehlers) Date: Wed, 4 Feb 2004 18:14:20 -0000 Subject: CPU % monitor Message-ID: <26C5F6BB63EB3A4AB2A5BF8F6FDB85ADC5342E@abstelecom.com> Hi all Is there any plugin checks that monitor cpu utilization as a percentage instead of load? Kind Regards Christiaan ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From WDougallJR at nwdtc.com Wed Feb 4 19:20:12 2004 From: WDougallJR at nwdtc.com (WDougallJR at nwdtc.com) Date: Wed, 4 Feb 2004 10:20:12 -0800 Subject: Nagios keeps on sending notifications Message-ID: This might also happen when you have "Use Retained Program State Option" set to 1. Check your /usr/local/nagios/var/status.sav file for any instances of those service states being saved. -William > Hi all, > I'm using Nagios for a few weeks now and I have changed my > configuration a few times , that includes removing services from > monitoring. > I have noticed that some of the "removed services" still sends me > notifications though they are not listed (not listed on the "service > detail" GUI page or services.cfg file) Any advise will be > appreciated, ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Wed Feb 4 19:29:46 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Wed, 4 Feb 2004 13:29:46 -0500 (EST) Subject: monitoring windows cluster In-Reply-To: <20040204181038.79711.qmail@restricted.dyndns.org> References: <20040204181038.79711.qmail@restricted.dyndns.org> Message-ID: On Wed, 4 Feb 2004, Neil wrote: > IP takeover happens in the background and sometimes takes few seconds. Not > even Nagios will notice the switching most especially if had an an normal > interval say of 4 or 5 minutes. But, I think, it's still nice to monitor > every private ip address of each node in the cluster. In this way, we'll > know which one of the nodes failed. Is this a good idea? This is what I do for our load-balanced services. Each individual real server is monitored, along with all the services it offers. I also monitor the virtual hostnames associated with the load group. For a more specific example, suppose I have three machines which are my web servers, and a load balancer out front. I'll check the http service on all three real machines, the status of the load balancer itself, as well as the http service for the "www" host, which is really only an IP address on the load balancer. Works like a charm. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Wed Feb 4 20:21:10 2004 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Wed, 4 Feb 2004 13:21:10 -0600 Subject: Reports only show data from a specific tim e period? Message-ID: <115F85A8196CD411BBAB0008C7590661CC529F@FS01> Thanks for the humorous insight. Though it made me laugh it did not solve the problem. Does anyone have any ideas? Perhaps I can edit the CGI? Is this something planned for 2.0? Thanks, Daniel -----Original Message----- From: Paul L. Allen [mailto:pla at softflare.com] Sent: Tuesday, February 03, 2004 6:39 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Re: Reports only show data from a specific time period? Daniel Jimenez writes: > Management has requested that all Nagios reports show ONLY data from the > time period of 7 am to 7 pm. We do want monitoring and notification 24x7 > though. The only sensible solution is to beat clues into your management using baseball bats. If you happen to kill a few of them before they get a clue, so much the better. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From PSoltani at iitcorporation.com Wed Feb 4 21:15:05 2004 From: PSoltani at iitcorporation.com (Patrick Soltani) Date: Wed, 4 Feb 2004 12:15:05 -0800 Subject: email notification without subject and body Message-ID: <38F77311620C9641A1D054FD37AE6580A3ACE3@iitexch01.iitdomain.com> Hi, The nagios is 1.1 and been working just fine. I get proper notification when there is a problem, however, I get about 8 of these emails that do not have any subject and body. I matched the header id in sendmail's log with the header info of the messages received and they are sent from nagios box. I wonder if anybody has seen this? Regards, Patrick Soltani. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 4 21:22:59 2004 From: marc at ena.com (Marc Powell) Date: Wed, 4 Feb 2004 14:22:59 -0600 Subject: Reports only show data from a specific time period? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A215@mismail2.ena.com> On Wednesday, February 04, 2004 1:21 PM, Daniel Jimenez shared with us: > Thanks for the humorous insight. Though it made me laugh it did not > solve the problem. > > Does anyone have any ideas? Perhaps I can edit the CGI? Is this > something planned for 2.0? Regardless of what Paul might think, there are legitimate reasons for needing other reports besides 24hr. Our biggest client requires monthly reports based on school hours, 7am-4pm. They don't really care what the availability is like when no one is at school to use the service (but we do). For this very large contract we were more than happy to write our own reporting solution since 1.x doesn't support it and it tied in with other data retention requirements for this customer. I don't see any mention of it being included in 2.0 (from http://www.nagios.org/upcoming.php) but it would definitely be nice to have for those of us with other requirements. -- Marc P.S. Our solution was completely separate from Nagios so I don't have any patches to contribute. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Wed Feb 4 21:09:03 2004 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Wed, 4 Feb 2004 14:09:03 -0600 Subject: Reports only show data from a specific tim e period? Message-ID: <115F85A8196CD411BBAB0008C7590661CC52A0@FS01> Marc, So basically you took the performance data and used that to generate a report? Did you use something like Crystal reports? Daniel -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: Wednesday, February 04, 2004 2:23 PM To: Daniel Jimenez; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Re: Reports only show data from a specific time period? On Wednesday, February 04, 2004 1:21 PM, Daniel Jimenez shared with us: > Thanks for the humorous insight. Though it made me laugh it did not > solve the problem. > > Does anyone have any ideas? Perhaps I can edit the CGI? Is this > something planned for 2.0? Regardless of what Paul might think, there are legitimate reasons for needing other reports besides 24hr. Our biggest client requires monthly reports based on school hours, 7am-4pm. They don't really care what the availability is like when no one is at school to use the service (but we do). For this very large contract we were more than happy to write our own reporting solution since 1.x doesn't support it and it tied in with other data retention requirements for this customer. I don't see any mention of it being included in 2.0 (from http://www.nagios.org/upcoming.php) but it would definitely be nice to have for those of us with other requirements. -- Marc P.S. Our solution was completely separate from Nagios so I don't have any patches to contribute. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Wed Feb 4 21:36:06 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Wed, 04 Feb 2004 14:36:06 -0600 Subject: CPU % monitor In-Reply-To: <26C5F6BB63EB3A4AB2A5BF8F6FDB85ADC5342E@abstelecom.com> References: <26C5F6BB63EB3A4AB2A5BF8F6FDB85ADC5342E@abstelecom.com> Message-ID: <1075926966.3289.174.camel@localhost> On Wed, 2004-02-04 at 12:14, Christiaan Ehlers wrote: > Is there any plugin checks that monitor cpu utilization as a percentage > instead of load? There was an extensive discussion about this very recently. Go read the "Checking CPU Utilization" thread in the archives. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Wed Feb 4 21:26:20 2004 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Wed, 4 Feb 2004 14:26:20 -0600 Subject: Reports only show data from a specific tim e period? Message-ID: <115F85A8196CD411BBAB0008C7590661CC52A1@FS01> Sounds over my head! :) -----Original Message----- From: Jason Martin [mailto:jhmartin at toger.us] Sent: Wednesday, February 04, 2004 2:41 PM To: Marc Powell Cc: Daniel Jimenez; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Re: Reports only show data from a specific time period? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It sounds like you might need to implement a global event handler to record state changed into a database, then run your own reports to generat the necessary sub-reports. - -Jason Martin On Wed, 4 Feb 2004, Marc Powell wrote: > On Wednesday, February 04, 2004 1:21 PM, Daniel Jimenez shared with us: > > > Thanks for the humorous insight. Though it made me laugh it did not > > solve the problem. > > > > Does anyone have any ideas? Perhaps I can edit the CGI? Is this > > something planned for 2.0? > > > Regardless of what Paul might think, there are legitimate reasons for > needing other reports besides 24hr. Our biggest client requires monthly > reports based on school hours, 7am-4pm. They don't really care what the > availability is like when no one is at school to use the service (but we > do). For this very large contract we were more than happy to write our > own reporting solution since 1.x doesn't support it and it tied in with > other data retention requirements for this customer. I don't see any > mention of it being included in 2.0 (from > http://www.nagios.org/upcoming.php) but it would definitely be nice to > have for those of us with other requirements. > > -- > Marc > > P.S. Our solution was completely separate from Nagios so I don't have > any patches to contribute. > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAIVjtl2ODWuqVSBMRAqL+AJ9x+vpDuDiBkZ8vyVvzL/OHEnNS2gCfWlbN rQoOdOguWUrKZ8rWNL9R3dM= =w45Y -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Wed Feb 4 21:41:08 2004 From: jhmartin at toger.us (Jason Martin) Date: Wed, 4 Feb 2004 12:41:08 -0800 (PST) Subject: Reports only show data from a specific time period? In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A215@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A215@mismail2.ena.com> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It sounds like you might need to implement a global event handler to record state changed into a database, then run your own reports to generat the necessary sub-reports. - -Jason Martin On Wed, 4 Feb 2004, Marc Powell wrote: > On Wednesday, February 04, 2004 1:21 PM, Daniel Jimenez shared with us: > > > Thanks for the humorous insight. Though it made me laugh it did not > > solve the problem. > > > > Does anyone have any ideas? Perhaps I can edit the CGI? Is this > > something planned for 2.0? > > > Regardless of what Paul might think, there are legitimate reasons for > needing other reports besides 24hr. Our biggest client requires monthly > reports based on school hours, 7am-4pm. They don't really care what the > availability is like when no one is at school to use the service (but we > do). For this very large contract we were more than happy to write our > own reporting solution since 1.x doesn't support it and it tied in with > other data retention requirements for this customer. I don't see any > mention of it being included in 2.0 (from > http://www.nagios.org/upcoming.php) but it would definitely be nice to > have for those of us with other requirements. > > -- > Marc > > P.S. Our solution was completely separate from Nagios so I don't have > any patches to contribute. > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAIVjtl2ODWuqVSBMRAqL+AJ9x+vpDuDiBkZ8vyVvzL/OHEnNS2gCfWlbN rQoOdOguWUrKZ8rWNL9R3dM= =w45Y -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 4 22:06:58 2004 From: marc at ena.com (Marc Powell) Date: Wed, 4 Feb 2004 15:06:58 -0600 Subject: Reports only show data from a specific time period? Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A216@mismail2.ena.com> On Wednesday, February 04, 2004 2:09 PM, Daniel Jimenez shared with us: > Marc, > > So basically you took the performance data and used that to generate > a report? Did you use something like Crystal reports? Actually no (and yes). We have to keep the results of every 5 minute check for all 1700 devices for the life of the contract (5 years) so we needed something a little more involved. We use postgres as the back-end for nagios and have a trigger that copies the status information to a holding table on UPDATE or INSERT. That table is periodically sucked over to SQL Server, munged and stored. We then use Crystal Reports to generate the reports we need and can do so over arbitrary time periods. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DanielJ at avatar-cs.net Wed Feb 4 23:40:00 2004 From: DanielJ at avatar-cs.net (Daniel Jimenez) Date: Wed, 4 Feb 2004 16:40:00 -0600 Subject: Database storage Message-ID: <115F85A8196CD411BBAB0008C7590661CC52A9@FS01> All, I'm a bit confused I've been reading that some think it's a bad idea to store some data in databases and that this will be removed in 2.0. Are we talking just hostextinfo or even status/downtime? If status/downtime will continue to have the ability to be stored in a database then I may recompile my nagios install to dump status/downtime/availability data to mysql instead of text log files. My goal is to be able to easily manipulate the data since it is in a database. Thanks, Daniel Jimenez Avatar Computer Solutions, Inc. Network Support, Voice / Data Cabling, and Internet Services 256 N. Sam Houston Parkway E. Suite #268 Voice: 281.999.1300 Fax: 281.999.7070 Web: www.avatar-cs.net ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 5 00:18:00 2004 From: marc at ena.com (Marc Powell) Date: Wed, 4 Feb 2004 17:18:00 -0600 Subject: Database storage Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A217@mismail2.ena.com> On Wednesday, February 04, 2004 4:40 PM, Daniel Jimenez shared with us: > All, > > I'm a bit confused I've been reading that some think it's a bad idea > to store some data in databases and that this will be removed in 2.0. > Are we talking just hostextinfo or even status/downtime? > > If status/downtime will continue to have the ability to be stored in > a database then I may recompile my nagios install to dump > status/downtime/availability data to mysql instead of text log files. > My goal is to be able to easily manipulate the data since it is in a > database. Storage of host and service status in a DB will no longer be incorporated directly into Nagios. This is being done for a lot of reasons. In it's place, Ethan has written an Event Broker Daemon. This will allow an external module to register itself with Nagios to receive certain types of data. This will externalize the database processing routines and allow the core of nagios to change without needing to change all the database manipulation routines. It will also allow for the support of many more types of databases or whatever you like. An appropriate module that knows how to talk to the particular backend you like is all that needs to be written. When 2.0 beta hits the streets it probably won't be long before someone has written a module to emulate the current database storage behavior. From http://www.nagios.org/upcoming.php -- Real-Time Data Output I plan on adding an external event interface that would dump all service/host check info, alerts, downtime events, comments, etc. from Nagios to an external daemon via a unix domain socket. The daemon would then pass that data off to seperate user modules (loaded at runtime) that would process the data anyway they please. User modules will be able to register for different types of data they want to receive from the daemon using callback functions. This will provide an easy way for people to write their own modules to dump data in a DB, process performance data, etc. The event daemon is currently in development, but will probably not be publicly released until 2.0 is into the beta process. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cristian at alestraidc.net.mx Thu Feb 5 00:39:31 2004 From: cristian at alestraidc.net.mx (Cristian Trujillo G.) Date: Wed, 4 Feb 2004 17:39:31 -0600 Subject: check_oracle --tablespace In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A216@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A216@mismail2.ena.com> Message-ID: Hi, Someone cant post example how i use check_oracle --tablespace.. my problem is, always return CRITICAL - ORA-12154: TNS:could not resolve service name... my setup is: ORACLE_HOME=/oracle3/OraHome1/bin ORACLE_SID=data thanks ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthewwilson at dsl.pipex.com Tue Feb 3 18:46:18 2004 From: matthewwilson at dsl.pipex.com (Matthew Wilson) Date: Tue, 03 Feb 2004 17:46:18 +0000 Subject: updating Nagios config manually with NagMIN - config script In-Reply-To: <781DF5926EB3CA41B0F31054D3330BFD5AC944@mail02> References: <781DF5926EB3CA41B0F31054D3330BFD5AC944@mail02> Message-ID: <1075830377.1903.2.camel@localhost.localdomain> It's a very limited script but you're welcome it. It really hardcodes all the config, so would definitely need some customisation before use! (I also have a script that makes apan configs from the NagMIN database if anyone wants that) cheers Matthew Wilson DC-Sat.net On Tue, 2004-02-03 at 11:22, Karl Skidmore wrote: > >>(the script adds hosts, services, apan configs and creates rrds)<< > Sounds like this could be really useful - is there a possibility of sharing > parts of this script with the list? > > Cheers... > > Karl Skidmore > Multimap.com -------------- next part -------------- A non-text attachment was scrubbed... Name: addhost.pl Type: text/x-perl Size: 3113 bytes Desc: not available URL: From jneher at darkwing.uoregon.edu Thu Feb 5 01:03:03 2004 From: jneher at darkwing.uoregon.edu (Jon Neher) Date: Wed, 4 Feb 2004 16:03:03 -0800 (PST) Subject: problem with passive checks In-Reply-To: <200402042339.i14Nd365020884@darkwing.uoregon.edu> References: <200402042339.i14Nd365020884@darkwing.uoregon.edu> Message-ID: We are running a combination of active and passive service checks (via nsca) and have run into a weird problem. When starting up nagios with no previous state saved, it schedules active service checks for our passive service checks even though active_checks_enabled is explicity set to 0 in all the service def's for our passive checks. Since nagios makes us supply a "dummy" check_command for each of our passive service definitions, when this scheduled active check runs, it inevitably fails since it's a dummy command. This caused a flurry of "SOFT" active checks for the service a wreaks havok with our notifications and status screens since when ever an active check fails, a critical problem is flagged for the service, then as the passive checks come in, it looks OK for a while, until another one fo the "SOFT" active checks returns an error. Does anyone know a way around this? Thanks, Jon Computing Center Internet: jneher at darkwing.uoregon.edu University of Oregon WWW http://darkwing.uoregon.edu/~jneher Eugene, OR 97403-1212 Amateur Radio: N7WNX Voice: (541) 346-1731 Fax: (541) 346-4397 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Thu Feb 5 02:58:59 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Wed, 04 Feb 2004 19:58:59 -0600 Subject: check_oracle --tablespace In-Reply-To: References: Message-ID: <20040205015859.11771.qmail@restricted.dyndns.org> Try editing profile of the nagios user to add the oracle_base, home, tnsnames and so one. Try restarting nagios too. Cristian Trujillo G. writes: > > > Hi, > Someone cant post example how i use check_oracle --tablespace.. > my problem is, always return CRITICAL - ORA-12154: TNS:could not resolve > service name... > > my setup is: > ORACLE_HOME=/oracle3/OraHome1/bin > ORACLE_SID=data > > thanks > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thomaspan at usa.net Thu Feb 5 04:51:29 2004 From: thomaspan at usa.net (Hu Thomas Pan) Date: Wed, 4 Feb 2004 19:51:29 -0800 Subject: servicegroup and serviceescalation In-Reply-To: References: Message-ID: <000701c3eb9b$56937b30$0d3f91d8@hupan> Hi all, I have a question. After thoroughly reading the manual and on-line homepages, I cannot find anything about multiple services used in serviceescalation. My question is as simple as the following: Could I use a list of services separated by comma for the field service_description in the definition of a serviceescalation? Or, could I have that kind of feature in 2.0 after having servicegroup? Thanks, Thomas ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 fastmail.fm Thu Feb 5 05:40:25 2004 From: nagios at fastmail.fm (Newbie) Date: Wed, 04 Feb 2004 22:40:25 -0600 Subject: Nagios startup problem Message-ID: <6.0.0.22.2.20040204223609.030c0bc8@pop.mts.net> I am a former NetSaint user and have done a clean setup of Nagios and have performed a check of the configuration file using the -v parameter. There were no errors however when I try to start nagios up by issuing a ./nagios start I get "list of process ids must follow -p" along with a screen full of parameters. This happens whether I use the start or status parameter to nagios. Using Suse 8.2 Can anyone offer a suggestion what the problem might be? ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Feb 3 11:36:50 2004 From: pla at softflare.com (Paul L. Allen) Date: Tue, 03 Feb 2004 10:36:50 +0000 Subject: Cisco: Configuration save In-Reply-To: <401F736B.5030909@exponential-e.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A1FD@mismail2.ena.com> <20040202193811.16584.qmail@minnow.softflare.net> <401F736B.5030909@exponential-e.com> Message-ID: <20040203103650.25157.qmail@minnow.softflare.net> Jim Mozley writes: > I think this will only work on the local LAN, not anything beyond a > router. Depends what he means by VLANs. Also depends which machine he does it on. Even if segments of his network are separated by routers, he has to have at least one machine on each network segment and therefore he can login to a machine on a network segment and arp -a. Since it appeared that he wanted merely to get the MACs once, that would do the trick. I can't think of many reasons why he would want that info, and even fewer reasons why he would want to do it on a regular basis. The one reason I can think of for doing it repeatedly is to tie down an IP address allocated by DHCP to a particular machine so that you can identify who is doing what. If he needs to do it repeatedly and he has diverse network segments then things get more difficult to automate, but not impossible. And whatever tool he uses will probably have the problem of MAC addresses not passing beyond their local ethernet segment. So arp -a and some thought about remote command execution is about as good as it gets. Maybe there's something in SNMP that lets you get at MACs, maybe not. That would get the MACs of machines on remote network segments if it allows it at all. I'd prefer to figure out how to use arp -a remotely than try to dig around in SNMP MIBs. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Wed Feb 4 21:52:24 2004 From: pla at softflare.com (Paul L. Allen) Date: Wed, 04 Feb 2004 20:52:24 +0000 Subject: Reports only show data from a specific tim e period? In-Reply-To: <115F85A8196CD411BBAB0008C7590661CC529F@FS01> References: <115F85A8196CD411BBAB0008C7590661CC529F@FS01> Message-ID: <20040204205224.3121.qmail@minnow.softflare.net> Daniel Jimenez writes: > Does anyone have any ideas? I really can't see the point of this. Why present them with a display that's a lie? But since they want it, here are some thoughts. Tell your managers *not to look* at the output of the CGI outside of those hours. Tell your managers that if the see a problem reported outside of their hours they should treat it as a request for a pay rise and totally ignore it. Have a cron job modify the contents of the htpasswd.users so that your managers *cannot* see the output of the CGI outside of those hours. Run two copies of nagios in parallel with different sets of working hours? This is almost sensible, the downside would be doubling the overhead of checks on monitored hosts, but you could pass it off as fault-tolerant redundant monitoring. Write a plugin that passes on a command to another plugin (like check_by_ssh does) and not only returns a result to the nagios process that called it, it also uses nrpe to submit a passive check to a second instance of nagios on another server that is used by the pointy-haired ones and has different working hours. Maybe you can do something like that with nrpe directly, but I haven't looked at it deeply enough to know one way or the other. Tell them it isn't possible without major modifications to the code that could only be done by Ethan on a contractual basis and it will cost them *big* bucks. That sort of argument usually works. Slip Ethan $10 for a few beers so he'll back up your story if they ask him. To be honest, I think my original solution is cleaner. LART them to death then tell the CEO that you need replacements because the ones you had just stopped working and can't be rebooted. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mozley at exponential-e.com Tue Feb 3 11:09:47 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Tue, 03 Feb 2004 10:09:47 +0000 Subject: Cisco: Configuration save In-Reply-To: <20040202193811.16584.qmail@minnow.softflare.net> References: <370ACCFA5BB3B346A31222E5559BF91F03A1FD@mismail2.ena.com> <20040202193811.16584.qmail@minnow.softflare.net> Message-ID: <401F736B.5030909@exponential-e.com> Paul L. Allen wrote: > Marc Powell writes: > >> >>> From: Steinbacher Manfred [mailto:manfred.steinbacher at scheucher.at] >>> I also want to known which mac-addresses are in my network. We have >>> same VLAN`s. Can I do this with Nagios or any other tool? >> >> >> Again, Nagios isn't designed for this. Unfortunately I don't have any >> suggestions for something that is. Perhaps someone else on the list >> might. > > > How about arp -a? As long as there has been recent traffic between the > Linux box you do that on and the boxes you want MAC addresses for, > that does the trick. I think this will only work on the local LAN, not anything beyond a router. Jim ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Rookwell at t-online.de Thu Feb 5 07:15:08 2004 From: Rookwell at t-online.de (Sebastian) Date: Thu, 5 Feb 2004 07:15:08 +0100 Subject: check_oracle --tablespace Message-ID: <011d01c3ebaf$6af8a4b0$6602a8c0@piii> Hi, I think your ORACLE_HOME is wrong! ORACLE_HOME=/oracle3/OraHome1 Have you set /oracle3/OraHome1/bin in your Path? Do you use Oracle-Nameserver or a file-based resolving? Cristian Trujillo G. writes: > > > Hi, > Someone cant post example how i use check_oracle --tablespace.. > my problem is, always return CRITICAL - ORA-12154: TNS:could not resolve > service name... > > my setup is: > ORACLE_HOME=/oracle3/OraHome1/bin > ORACLE_SID=data > > thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil-on-nagios at restricted.dyndns.org Tue Feb 3 21:55:53 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Tue, 03 Feb 2004 14:55:53 -0600 Subject: performance In-Reply-To: <16415.56132.596749.944730@montanaro.dyndns.org> References: <20040202235234.5747.qmail@restricted.dyndns.org> <16415.56132.596749.944730@montanaro.dyndns.org> Message-ID: <20040203205554.91681.qmail@restricted.dyndns.org> I don't know now where if goofed up in services.cfg and nagios.cfg :( Look at my scheduling: Host Service Last Check Next Check Active Checks Actions dbsw805 Terminal Services - 3389/TCP 02-03-2004 13:54:02 02-03-2004 13:59:02 ENABLED gateway10-96-255-10 PING 02-03-2004 13:54:04 02-03-2004 13:59:04 ENABLED gateway10.151.254.42 PING 02-03-2004 13:54:07 02-03-2004 13:59:07 ENABLED gateway10.153.255.3 PING 02-03-2004 13:54:09 02-03-2004 13:59:09 ENABLED gateway10.156.188.3 PING 02-03-2004 13:54:12 02-03-2004 13:59:12 ENABLED gateway10.178.0.2 PING 02-03-2004 13:54:15 02-03-2004 13:59:15 ENABLED gateway10.254.0.46 PING 02-03-2004 13:54:17 02-03-2004 13:59:17 ENABLED gateway10.254.2.18 PING 02-03-2004 13:54:20 02-03-2004 13:59:20 ENABLED I now not able to monitor services in a minute. :( I'm still trying to find out what I modified. Skip Montanaro writes: > > Neil> Monitoring Performance > Neil> Check Execution Time: 0 / 5 / 1.697 sec > Neil> Check Latency: 15 / 45 / 38.110 sec > Neil> # Active Checks: 109 > Neil> # Passive Checks: 0 > > Neil> And if it's ok, can someone tell me what those values are? > > I don't know if it's okay or not (I sort of suspect not - big latencies are > generally not good), but your latency numbers are much different than mine. > Mine are 0 / 1 / 0.181 sec. I have 513 active checks and no passive checks. > > -- > Skip Montanaro > Got gigs? http://www.musi-cal.com/submit.html > Got spam? http://spambayes.sf.net/ > skip at pobox.com ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Thu Feb 5 08:32:50 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Thu, 05 Feb 2004 01:32:50 -0600 Subject: check_log not working properly In-Reply-To: <401F715B.2000402@exponential-e.com> References: <20040201072250.36099.qmail@restricted.dyndns.org> <401E190B.8050905@exponential-e.com> <20040202163951.75678.qmail@restricted.dyndns.org> <401F715B.2000402@exponential-e.com> Message-ID: <20040205073250.34494.qmail@restricted.dyndns.org> Jim Mozley writes: > Based on fictitious example for monitoring sonet network events using > syslog (I have a plugin to do this via SNMP but the principle is the same > for some other stuff we do and avoids some complexity that would take a > bit of explaining). > > You define a service as normal, but you may want to turn off active checks > and perhaps use the freshness checking. This is covered in the manual, but > if there are specific bits that don't make sense I'd post a question here. > Define the service(s) with some consistent naming e.g. "-sonet" > as you will need this so your script associates the event with the > appropriate service. > > Configure swatch or equivalent to perform an execute script type action. > The script receives the syslog message and then submits a passive check > against the service. It will need to build a service name from the syslog > message passed to it, for instance by extracting the hostname from the > syslog message and adding "-sonet". Depending upon the nature of the > message it should also set a status e.g. if the messages match the regex > /[Ee]rror|[Ff]ail/ make it critical or if its /[Uu]p/ make it OK. > > The scripts submits the passive check via Nagios' command pipe, the exact > format of the command is available in the manuals and some sample scripts > provided with the distribution. > > Once you've done this the big advantage is having one source of events > i.e. nagios shows the results of pinging and syslog events and there is > one unified set of notification mechanisms, etc. Otherwise using just > swatch (email alerts for instance) you have a second system to administer. First of all, thanks for the explanation above. I got your idea although, I am a little lost. If it's alright with you, can you provide me with a sample entry of each line for each configuration files. You can obscure the ip addresses if there are any listed. You also mentioned on the other emails that you can provide me with syslog-ng conf too. Is it ok too? :) This will speed me up about understanding how this process works. Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.mozley at exponential-e.com Tue Feb 3 11:12:13 2004 From: jim.mozley at exponential-e.com (Jim Mozley) Date: Tue, 03 Feb 2004 10:12:13 +0000 Subject: notifications_enabled 0 In-Reply-To: References: Message-ID: <401F73FD.4090104@exponential-e.com> Ben Whaley wrote: >Greetings, > >I am having trouble with disabling notifications. I would not like to be >notified when a host cannot be pinged, but I still want the check to happen. >In my generic service template, I have "notifications_enabled 1". However, >in the ping check service definition, I have: > > defined service{ > ; Generic template for all services > use common-to-all > name simple-ping-check > notifications_enabled 0 > service description Ping Check > check_command check_ping > max_check_attempts 1 > host_name * > } > >The notifications disabled icon (a speaker with a red X through it) apears >on the Service Detail webpage next to the Ping Check service. However, I am >still getting notified when hosts are unreachable. > >Should I remove the "notifications_enabled 1" from the generic template and >specify notifications_enabled in each service definition? This would be >unintuitive. Does anyone have other suggestions? > > > Try the host definition rather than the service to avoid host unreachables (the ping is checking a "service" on that host). Jim ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Volker.Aust at premiere.de Thu Feb 5 10:15:03 2004 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Thu, 5 Feb 2004 10:15:03 +0100 Subject: AW: Cisco: Configuration save Message-ID: > -----Urspr?ngliche Nachricht----- > Von: Marc Powell [mailto:marc at ena.com] > Gesendet: Montag, 2. Februar 2004 18:13 > An: Steinbacher Manfred; nagios-users at lists.sourceforge.net > Betreff: RE: [Nagios-users] Cisco: Configuration save > > > > >From: Steinbacher Manfred [mailto:manfred.steinbacher at scheucher.at] > >Sent: Monday, February 02, 2004 10:10 AM > >To: 'nagios-users at lists.sourceforge.net' > >Subject: [Nagios-users] Cisco: Configuration save > > >I have many Cisco Systems (Routers and Switches). > >Does anyone known that I can save the configuration of these system > with nagios? > > Nagios isn't even remotely designed for this type of activity. You > probably want something like RANCID http://www.shrubbery.net/rancid/. > > >I also want to known which mac-addresses are in my network. We have > same VLAN`s. > >Can I do this with Nagios or any other tool? > > Again, Nagios isn't designed for this. Unfortunately I don't have any > suggestions for something that is. Perhaps someone else on the list > might. > > -- > Marc Hi Manfred, http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080 1c9199.shtml explains in detail how you can find port-number and mac-addresses for vlan's on a Catalyst Switch with SNMP. But your two tasks are nothing Nagios is designed for. -vol ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From atulsh at hclinsys.com Thu Feb 5 11:31:40 2004 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Thu, 5 Feb 2004 16:01:40 +0530 (IST) Subject: Polling Time In-Reply-To: <20040203205554.91681.qmail@restricted.dyndns.org> References: <20040203205554.91681.qmail@restricted.dyndns.org> Message-ID: Hello, I have a problem while runnign nagios..... I want to monitor the hosts in every 5 seconds but there is no option like that. Is this possible in nagios. Also I have configured some critical hosts in nagios and make the polling interval one minute which is the least right now (I think). So I am able to get the change in state in around one and a half minute or so, but I want that whenever the hosts goes down, I need to be alerted the next second. ANY IDEAS ...???? Atul ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Thu Feb 5 11:57:01 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 05 Feb 2004 11:57:01 +0100 Subject: Polling Time In-Reply-To: References: Message-ID: <4022217D.3030502@mobeon.com> You can change the parameter 'interval_length' in nagios.cfg. I dont know what happens to Nagios if you set it really low and have a very short check_interval on many services... /FredrikW Atul Shrivastava wrote: > Hello, > > I have a problem while runnign nagios..... > > I want to monitor the hosts in every 5 seconds but there is no option > like that. Is this possible in nagios. Also I have configured some > critical hosts in nagios and make the polling interval one minute which is > the least right now (I think). So I am able to get the change in state in > around one and a half minute or so, but I want that whenever the hosts > goes down, I need to be alerted the next second. ANY IDEAS ...???? > > Atul > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From max at militant.dk Thu Feb 5 12:00:34 2004 From: max at militant.dk (Max Andersen) Date: Thu, 05 Feb 2004 12:00:34 +0100 Subject: old notifications popping up Message-ID: <40222252.4030808@militant.dk> Hi I have configured Nagios to check af few hosts on my network, and it all looks perfectly well on first look. But sometimes old notications are popping up from previous service downtime. I have a few screenshots to show how a VERY old check (24 Jan.) suddenly pops up between screen refreshings (look at date). The warnings and errors are also showing in tactical overview, and usually dissappears when reloading page, but after reloading 4-7 times suddenly reappear. It's like old warnings is haunting me :) http://www.nda.dk/images/nagss1.jpg http://www.nda.dk/images/nagss2.jpg http://www.nda.dk/images/nagss3.jpg I run nagios 1.2 (also had the problem on 1.1) on SuSE 8.1 standard server with apache2 with a configure line like this : ./configure --prefix=/srv/www/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin and with all the make options. My checks are standard cut'n'paste from the sample-files, so no unusual setup there. All suggestions will be appreciated. Sincerely Max -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3697 bytes Desc: S/MIME Cryptographic Signature URL: From kdebisschop at alert.infoplease.com Thu Feb 5 12:46:16 2004 From: kdebisschop at alert.infoplease.com (Karl DeBisschop) Date: Thu, 05 Feb 2004 06:46:16 -0500 Subject: How to monitor a router In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A20E@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A20E@mismail2.ena.com> Message-ID: <1075981576.1197.0.camel@localhost.localdomain> On Wed, 2004-02-04 at 10:04 -0600, Marc Powell wrote: > On Wednesday, February 04, 2004 2:04 AM, Mauro shared with us: > > > Hallo all, I'd like to know how to insert correctly a router in my > > nagios configuration. > > Actually I inserted router like an host that has in "address" > > statement its two IP (corresponding to its two interfaces) separated > > by comma. > > This will only work if the check_command knows how to deal with two ip > addresses. In the current plugins release, check-host-alive (aka > check_ping) does not. But the 1.4 alpha release does. -- Karl DeBisschop Director of Software Development, Infoplease/Pearson Education ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmunoz at comcel.com.co Wed Feb 4 16:02:58 2004 From: jmunoz at comcel.com.co (=?iso-8859-1?Q?Jose_Orlando_Mu=F1oz_Bravo_=28HP=29?=) Date: Wed, 4 Feb 2004 10:02:58 -0500 Subject: Temperature monitoring Message-ID: I have a easy free solution, of course I bought a quite modern machine, and I think all, included small servers like dell, HP, IBM have a internal temperature sensors, I have a HP DL760,DL360 (Compaq 2 years ago) both have a temperature internal sensor. All this sensor have SNMP sequence in the MIB of each machine Using snmpwalk I get the server internal temperature. with this I made a script for nagios. Jose O. -----Mensaje original----- De: Ewan Leith [mailto:ejl at man.fwltech.com] Enviado el: mi?rcoles, 04 de febrero de 2004 6:24 Para: 'Chris Mason'; 'Nagios Users' Asunto: RE: [Nagios-users] Temperature monitoring We use a program called digitemp using a little chip from dallas semiconductor the ds1820, took a bit of initial work to get up and running, but it cost's about $15 for each little package we make now, plugs into a serial port. we buy our chips from maplins or rs here in the uk and wrap them up in a little 9pin serial port holder, in the usa you can buy them premade here: www.ibuttonlink.com Ewan > -----Original Message----- > From: Chris Mason [mailto:lists at masonc.com] > Sent: 03 February 2004 15:42 > To: 'Nagios Users' > Subject: [Nagios-users] Temperature monitoring > > > > I'm looking for a cheap way to monitor server room > temperature as well as > other locations. Can anyone recommend a cheaper solution than > the $300 kits > on https://shop.nelix.com/sensatronics/store/productlist.asp > > My preference is for an ethernet connected device I can > monitor remotely > with nagios. > > Chris Mason > masonc at masonc.com > Box 340, The Valley, Anguilla, British West Indies > Yahoo IM: netconcepts_anguilla at yahoo.com > 264 497-5670 Fax: 264 497-8463 > www.netconcepts.ai > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dbenigni at lutron.com Thu Feb 5 15:08:34 2004 From: dbenigni at lutron.com (David Benigni) Date: Thu, 05 Feb 2004 09:08:34 -0500 Subject: Scheduled and Downtime Comments Message-ID: Based on my understanding of the documentation the comments for scheduled down time are lost after some time. Is it possible to change this in the configs? I couldn't find any where quickly. I'd like to be able to keep all the down time logs for tracking server down times. Has anyone done something similar? TIA. Dave ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at root4u.nl Thu Feb 5 16:25:39 2004 From: christian at root4u.nl (Christian) Date: Thu, 05 Feb 2004 16:25:39 +0100 Subject: distributed server Message-ID: <1075994739.5341.100.camel@cd-ws-dev> Hello everyone, I have a problem with nagios running on Redhat 9. I try to setup distributed monitoring but the central receives no information from the distributed server. The problem is that the ocsp command is not been executed on the distributed server. If I use the send_nsca command manual with a string information (hostname, svc_description, return code and plugin_output) then the central server will receive this information and process this. My conclusion is that the problem is not in de central server or in the script I am running on the distributed server but in the configuration of nagios on the distributed server. On the internet there are lot of suggestions to solve this problem but so far nothing has helped. I already installs the latest version of nagios (1.2) but again no result. The distributed server is configured to obsess over services and has a ocsp command defined. Enable notifications is set to disable. Has anyone a solution or suggestion for this problem? Greetings, Christian Dieker ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GWCOOK at mactec.com Thu Feb 5 17:24:47 2004 From: GWCOOK at mactec.com (Cook, Garry) Date: Thu, 5 Feb 2004 09:24:47 -0700 Subject: Cisco: Configuration save Message-ID: <41FD7929498A174DAB86C45F28E0EC0D3E9F14@golden-m.mactec.com> >>> From: Steinbacher Manfred > [mailto:manfred.steinbacher at scheucher.at] >>> Sent: Monday, February 02, 2004 10:10 AM >>> To: 'nagios-users at lists.sourceforge.net' >>> Subject: [Nagios-users] Cisco: Configuration save >> >>> I have many Cisco Systems (Routers and Switches). >>> Does anyone known that I can save the configuration of these system >>> with nagios? >> >> Nagios isn't even remotely designed for this type of activity. You >> probably want something like RANCID > http://www.shrubbery.net/rancid/. >> >>> I also want to known which mac-addresses are in my network. We have >>> same VLAN`s. Can I do this with Nagios or any other tool? >> >> Again, Nagios isn't designed for this. Unfortunately I don't have any >> suggestions for something that is. Perhaps someone else on the list >> might. >> >> -- >> Marc I've seen a couple of posts that say Nagios isn't designed for either of these tasks. While this may be true for the mac-address portion of the post, I'm not so sure about the configurations save. I've written a shell script that uses SNMP to TFTP configs from all my Cisco equipment to the box that hosts Nagios. It runs from cron daily, and a second script archives the configs regularly as well. It's kind of a pain to edit this script every time a new device is added or removed. Now, if there was a Nagios check that would do this for me, it would be much easier. This would sort of be the reverse of what Nagios is designed for, although I disagree that it would be totally outside of the design parameters. Currently, Nagios can check a service, and if it reports Warning or Critical, we can then run an event handler. The type of plugin that I'm thinking about would run an event handler (to tftp the config) and then report status based on the output. This seems both reasonable and possible to me. The only problem is that check_snmp is designed to use the SNMPGET command, whereas SNMPSET would be needed in order to tell the switch/router to TFTP its config. I don't really know C (yet) although I plan to muck around with check_snmp.c and see if I can create a new plugin to perform these tasks. Comments/suggestions? Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Feb 5 17:26:40 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu, 5 Feb 2004 08:26:40 -0800 (PST) Subject: Polling Time In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 One-second check intervals are generally a bad idea; Unless you are sitting right next to a console 24/7 you won't get that much benefit from knowing about a host failure within a second. Plus, if you need that level of uptime then no monitoring solution is going to be able to provide it -- you need to invest in a HA solution for your application. In other words, if you can't live with 1min30s delay between failure and notification, you need to look at re-architecting your application. - -Jason Martin On Thu, 5 Feb 2004, Atul Shrivastava wrote: > Hello, > > I have a problem while runnign nagios..... > > I want to monitor the hosts in every 5 seconds but there is no option > like that. Is this possible in nagios. Also I have configured some > critical hosts in nagios and make the polling interval one minute which is > the least right now (I think). So I am able to get the change in state in > around one and a half minute or so, but I want that whenever the hosts > goes down, I need to be alerted the next second. ANY IDEAS ...???? > > Atul > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAIm7Vl2ODWuqVSBMRAgFBAJ4uH7xfDknqOZZuDaAfeBHqZSKfnwCfclq1 bjmVeeBAE7Wxl3r4SYVKsNA= =pMtD -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.bergei at ementor.no Thu Feb 5 17:06:07 2004 From: andre.bergei at ementor.no (Andre Bergei) Date: Thu, 5 Feb 2004 17:06:07 +0100 Subject: Reports only show data from a specific time period? Message-ID: <3C8515D9676BF9479F7EF3545B63AA220B20F6@100NOOSLMSG001.common.alpharoot.net> > It sounds like you might need to implement a global event handler to > record state changed into a database, then run your own reports to > generat the necessary sub-reports. This is what we are about to do, nagios is great for gathering data, and since An SLA (service level agreement) mostly want availability, we can use state Changes for the calculations. We are about to evaluate an report program, we tried CA's SLM option, but That came short, it's not very flexible. We want do do boolean logic on objects to determine availbility, for example We are only in breach of our SLA if 3 of 10 M$ terminal servers are down. Crystal Reports is probaly the way to go, it better to let an specialized Program take care of complex reporting. We have a full blown distributed nagios enviroment, and we are logging state Changes on our distributed nodes for maximum reability, then we agregate our Logs to a central server for processing. One problem here is that the downtime CGI on our nagios central, do not Update the downtime file on our distributed node, so scheduled downtime periodes Must be processed from our downtime log file on our central. With some Cleverness we might be able to "push" our downtime values to our distributed nodes, to avoid processing of our downtime log. When we our operators do an aknowledge of an service alarm, they fill inn a troubleticket Reference number into the comment field, when we process our state changes our plan is To include the trouble ticket reference number to our downtime period, that would make our SLA managers happy :) On a sidenote, I would want an option to make tac.cgi respect the notification period, because Our monitoring team dont want alarms outside our client sla period, we have customers That only got monitoring bought as an service. Best /andr? ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Thu Feb 5 17:48:43 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Thu, 05 Feb 2004 10:48:43 -0600 Subject: small issue on SMTP Message-ID: <20040205164843.82914.qmail@restricted.dyndns.org> Hey guys, I have a small issue with SMTP. We have a dedicated smtp server. So for my nagios to send out notification, I needed to configure Postfix locally and have transport_maps point to our gateway. Works like a charm. I was just wondering if there is an area in Nagios that I have missed wherein we can directly specify an SMTP ip address. With this kind of solution, I don't need any mail function locally. Thanks. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Thu Feb 5 17:58:01 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Thu, 5 Feb 2004 11:58:01 -0500 (EST) Subject: Reports only show data from a specific tim e period? In-Reply-To: <20040204205224.3121.qmail@minnow.softflare.net> References: <20040204205224.3121.qmail@minnow.softflare.net> Message-ID: On Wed, 4 Feb 2004, Paul L. Allen wrote: > Daniel Jimenez writes: > > > Does anyone have any ideas? > > I really can't see the point of this. Why present them with a display > that's a lie? But since they want it, here are some thoughts. Where's the lie? His managers want statistical information over certain hours of the day. I can think of several legitimate reasons to want this information.. one of which was presented on the list already: that the services in question are only accessed by the public/clients/whatever during certain hours of the day, and they want to know what the rate of failure during those hours is. > Tell your managers *not to look* at the output of the CGI outside > of those hours. That doesn't really help with statistical information which is based on those other hours, does it? [remainder of sarcastic replies deleted] I swear you must to be the lest helpful person on this list, Paul. Instead of simply not providing help to people, you seem to actually go out of your way to discourage people from asking questions of any kind. Your sarcasm and insults reach a level I don't think I've ever before seen on a software users list. If you feel providing answers to certain questions is beneath you, then please do us all a favour and shut the hell up. Thanks. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Thu Feb 5 18:14:35 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Thu, 5 Feb 2004 12:14:35 -0500 (EST) Subject: small issue on SMTP In-Reply-To: <20040205164843.82914.qmail@restricted.dyndns.org> References: <20040205164843.82914.qmail@restricted.dyndns.org> Message-ID: On Thu, 5 Feb 2004, Neil wrote: > I was just wondering if there is an area in Nagios that I have missed > wherein we can directly specify an SMTP ip address. With this kind of > solution, I don't need any mail function locally. Nagios' only interface to send mail is the notification commands you define. If you use the example notification commands (which use /bin/mail I believe) then of course your machine needs to be able to successfully send mail. If you want to have those notifications go out directly as SMTP, bypassing use of a local MUA, then you'll probably have to write something to replace those default notification commands. To answer your qestion directory.. no, there is no way to configure an SMTP server in Nagios, since Nagios itself has no idea about SMTP. It's all in the notification commands. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 5 18:15:09 2004 From: marc at ena.com (Marc Powell) Date: Thu, 5 Feb 2004 11:15:09 -0600 Subject: small issue on SMTP Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A21A@mismail2.ena.com> Neil wrote: > Hey guys, > > I have a small issue with SMTP. We have a dedicated smtp server. So > for my nagios to send out notification, I needed to configure Postfix > locally and have transport_maps point to our gateway. Works like a > charm. > > I was just wondering if there is an area in Nagios that I have missed > wherein we can directly specify an SMTP ip address. With this kind of > solution, I don't need any mail function locally. Nagios isn't an MTA and doesn't speak SMTP so it doesn't have that capability built in. To do so would require a nice amount of coding to handle the SMTP transaction, queueing, redelivery, failure processing, etc, that are already done better by dedicated applications. That being said, there are a couple of other options besides configuring a full install of Postfix that may be interesting to you. http://www.nagios.org/faqs/viewfaq.php?faq_id=150 has more info. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Feb 5 18:21:43 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 05 Feb 2004 17:21:43 +0000 Subject: Reports only show data from a specific tim e period? In-Reply-To: References: Message-ID: <20040205172143.22582.qmail@minnow.softflare.net> Matt Pounsett writes: > On Wed, 4 Feb 2004, Paul L. Allen wrote: > >> Daniel Jimenez writes: >> >> > Does anyone have any ideas? >> >> I really can't see the point of this. Why present them with a display >> that's a lie? But since they want it, here are some thoughts. > > Where's the lie? His managers want statistical information over certain > hours of the day. The CGIs display more than statistical information. And even assuming they are only interested in the statistical information, suppressing raw data turns statistics into a LIE. It is known as selective sampling. It is known as "Look - the stats show there haven't been ANY problems with your machines up until today (as long as you don't find out about all the problems they were having at night when you don't use them)." > I can think of several legitimate reasons to want this > information.. one of which was presented on the list already: that the > services in question are only accessed by the public/clients/whatever > during certain hours of the day, and they want to know what the rate > of failure during those hours is. And I can think of one reason that suppressing this information is a bad idea. Any trouble outside of those hours may be a sign of an impending problem that will eventually impact the working hours. That is, after all, why he did not want to limit the monitoring interval so that he would get alerted about those issues. Let's face it, if the machines aren't misbehaving outside of hours then the stats will look good anyway and your argument about needing to suppress out-of-hours data is a crock. >> Tell your managers *not to look* at the output of the CGI outside >> of those hours. > > That doesn't really help with statistical information which is based > on those other hours, does it? If that is the only problem, and he doesn't allow those managers to look at any other part of the web interface and doesn't send them mail alerts then post-processing the raw data and generating statistics from that would probably be a simpler solution than hacking the CGIs, which was all he could think of. > [remainder of sarcastic replies deleted] What a shame. You deleted the answer I gave him which would probably solve his problem just so you could take a pop at me. I'll repeat it. Set up two monitoring systems, call it redundant monitoring to get it past his bosses, and have restricted notification hours on one of them. Assuming Nagios honours the notification hours when dealing with the statistical data (I have no reason to try it so can't be sure that it does), it solves his problem. What answer did YOU give him? > I swear you must to be the lest helpful person on this list, Paul. I can think of one person even less helpful than I as far as this thread goes... > Instead of simply not providing help to people, See above. What help did YOU give him? > you seem to actually go out of your way to discourage people from > asking questions of any kind. Oh yes, I could tell he was severely discouraged when he said he and his colleagues saw the humour in my reply. It discouraged him so much that in the same post that he laughed at my humour, he asked if anyone had any answers. That was VERY effective discouragement on my part. > Your sarcasm and insults reach a level I don't think I've ever before > seen on a software users list. I will take that as a compliment. > If you feel providing answers to certain questions is beneath you, But I DID provide an answer. Which is more than you did. In fact, I provided several answers, because it was unclear precisely what level of detail he was trying to hide from whom. The simpler answers required least effort and would be good enough if all he needed to do was stop clueless bosses looking at the display outside of their working hours. One answer you chose to delete and dismiss as sarcastic will, if Nagios is consistent about how it handles working hours, is a solution to his problem. > then please do us all a favour and shut the hell up. Let me introduce you to a concept called a "kill file." It allows you to control what you choose to read, because you sure as hell don't get to choose what I write. HTH. HAND. Oh, and a passing clue: complaining about somebody attacking others with insults and then attacking that person yourself is known as "hypocrisy;" attacking another person when you're wrong is known as "stupidity." -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Thu Feb 5 18:34:28 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Thu, 05 Feb 2004 11:34:28 -0600 Subject: small issue on SMTP In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A21A@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A21A@mismail2.ena.com> Message-ID: <20040205173428.86182.qmail@restricted.dyndns.org> Hi guys, Ok then. I'll just have to stick back to my Postfix setup. I saw the link that you gave guys, and found nullmailer. I will try this next time but for now, I will use my existing Postfix as relay setup. Thanks in advance. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yohann.desquerre at anpe.fr Thu Feb 5 18:51:15 2004 From: yohann.desquerre at anpe.fr (Yohann DESQUERRE (DSI NOISIEL)) Date: Thu, 5 Feb 2004 18:51:15 +0100 Subject: sending notification of a generic service to different contact groups Message-ID: Hi all, I've got a problem to notify to different contact the same service notification....my wishes are not easy to understand so It would be better with a example: I would like to configure a service check-disk(this service may work on all platforms of our production) on 6 different machines : Linux1 (Linux-Server-contact-group) Linux2 (Linux-Server-contact-group) Sun1 (Sun-Server-contact-group) Sun2 (Sun-Server-contact-group) Hp1 (Hp-Server-contact-group) Hp2 (Hp-Server-contact-group) So in the service definition I gave the six servers names but I would like send notification to different contacts group. Is there any way to solve this problem???? Or do I have to duplicate the definition service as many time as I have got different contact group just changing the "host names" and the "contact_group" in each definition of the service... Thanks for help ----------------------------------------------- Yohann Desquerre "Plateforme ANPE.FR" S/Direction de la production Gestion des Ressources ----------------------------------------------- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pleroux at nocout.net Thu Feb 5 18:53:55 2004 From: pleroux at nocout.net (philippe leroux) Date: Thu, 5 Feb 2004 18:53:55 +0100 Subject: distributed server In-Reply-To: <1075994739.5341.100.camel@cd-ws-dev> References: <1075994739.5341.100.camel@cd-ws-dev> Message-ID: <200402051853.55222.pleroux@nocout.net> Le Jeudi 5 F?vrier 2004 16:25, Christian a ?crit : Hi Christian, The last time I met with that problem it was the information in the state_retention_file=/usr/local/nagios/var/status.sav didn't feet I let the retain_state_information=1 and in this case my ocsp command was not launch !! try to set retain_state_information=0 in the nagios.cfg file and restart .... Philippe. > Hello everyone, > > I have a problem with nagios running on Redhat 9. I try to setup > distributed monitoring but the central receives no information from the > distributed server. The problem is that the ocsp command is not been > executed on the distributed server. If I use the send_nsca command > manual with a string information (hostname, svc_description, return code > and plugin_output) then the central server will receive this information > and process this. My conclusion is that the problem is not in de central > server or in the script I am running on the distributed server but in > the configuration of nagios on the distributed server. > > On the internet there are lot of suggestions to solve this problem but > so far nothing has helped. I already installs the latest version of > nagios (1.2) but again no result. > > The distributed server is configured to obsess over services and has a > ocsp command defined. Enable notifications is set to disable. > > Has anyone a solution or suggestion for this problem? > > Greetings, > Christian Dieker > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Philippe Leroux NOC OUT 21, rue de F?camp 75012 Paris Tel/fax: 01 48 73 54 53 mobile: 06 07 86 25 22 pleroux at nocout.net www.nocout.net ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Thu Feb 5 19:12:59 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Thu, 5 Feb 2004 13:12:59 -0500 (EST) Subject: Reports only show data from a specific tim e period? In-Reply-To: <20040205172143.22582.qmail@minnow.softflare.net> References: <20040205172143.22582.qmail@minnow.softflare.net> Message-ID: On Thu, 5 Feb 2004, Paul L. Allen wrote: > >> I really can't see the point of this. Why present them with a display > >> that's a lie? But since they want it, here are some thoughts. > > > > Where's the lie? His managers want statistical information over certain > > hours of the day. > > The CGIs display more than statistical information. And even assuming > they are only interested in the statistical information, suppressing > raw data turns statistics into a LIE. It is known as selective sampling. It's not a lie if that's the statistical information you're asked for. "We have had no outages between 7am and 7pm weekdays," is made a lie because the webserver was out for five minutes on Saturday. He's not requesting that the entire system only report data between those hours -- he's asking for trends and graphs that show statistics for those hours. > > information.. one of which was presented on the list already: that the > > services in question are only accessed by the public/clients/whatever > > during certain hours of the day, and they want to know what the rate > > of failure during those hours is. > > And I can think of one reason that suppressing this information is a bad > idea. Any trouble outside of those hours may be a sign of an impending Nobody said anything about supressing any information. > What answer did YOU give him? None.. since the software doesn't actually do what he's asking for, and a few helpful people already provided him with the same suggestions and alternatives I would have. As to your suggestion that I killfile you... I'm quite happy to simply skip over your posts. I'm more concerned about the new users who are unaware of your posting habits and might be discouraged from participation by you. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Feb 5 18:09:58 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu, 5 Feb 2004 09:09:58 -0800 (PST) Subject: small issue on SMTP In-Reply-To: <20040205164843.82914.qmail@restricted.dyndns.org> References: <20040205164843.82914.qmail@restricted.dyndns.org> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > I was just wondering if there is an area in Nagios that I have missed > wherein we can directly specify an SMTP ip address. With this kind of > solution, I don't need any mail function locally. Mails are sent out by the notify-by-email 'command', specified in the misccommands.cfg file. It uses /bin/mail, which is really a wrapper to the local sendmail. If you can find a mail-like command that lets you post to a remote SMTP server then it'll work; just change the command in misccommands.cfg. - -Jason Martin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAInjul2ODWuqVSBMRAnB+AKCYnh7W8S2JZfJTCwS+maj8HsbuTgCbB6sR lD/VwDBSK9YMI1KDtgf8Y0o= =QqIq -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.bergei at ementor.no Thu Feb 5 19:51:17 2004 From: andre.bergei at ementor.no (Andre Bergei) Date: Thu, 5 Feb 2004 19:51:17 +0100 Subject: Reports only show data from a specific tim e period? Message-ID: <3C8515D9676BF9479F7EF3545B63AA220B20F7@100NOOSLMSG001.common.alpharoot.net> > It is known as selective sampling. It is known as "Look > - the stats show there haven't been ANY problems with your > machines up until today (as long as you don't find out about > all the problems they were having at night when you don't use them)." Yes, that's is the idea. The reason the managers want this is to prove to the customer That they had uptime during the service hours. The hole point is that They dont care what happen at night, that is our problem, the sys admins. If there is downtime during Service hours, there will be economic penalties if totalt downtime dont meet The demands of the SLA agreement. > And I can think of one reason that suppressing this > information is a bad idea. Why would we want to supress information? This is solved by having techy reports for the techyies, and Boring availability reports for the managers. The right information to the right people, a good thing! Like it or not, in the "wonderful" world of out-sourcing, things like service level agreements becomes more and more common, in fact, customers _demand_ it. /andr? ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Feb 5 20:00:04 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 05 Feb 2004 19:00:04 +0000 Subject: Reports only show data from a specific tim e period? In-Reply-To: References: Message-ID: <20040205190005.24820.qmail@minnow.softflare.net> Matt Pounsett writes: > On Thu, 5 Feb 2004, Paul L. Allen wrote: >> The CGIs display more than statistical information. And even assuming >> they are only interested in the statistical information, suppressing >> raw data turns statistics into a LIE. It is known as selective sampling. > > It's not a lie if that's the statistical information you're asked for. > "We have had no outages between 7am and 7pm weekdays," is made a lie > because the webserver was out for five minutes on Saturday. So let's examine that closely. Either there are significant outages outside of hours or there are not. If there are no significant outages outside of hours then the full data can be processed and it will still look healthy. If there are significant outages outside of hours that is a sign of system instability or impending failure but the statistics will show "no problem" and that is not a lie, according to you. Let me think about this. Why would somebody want to know if machines are failing outside of working hours but not let the customer know about that? One reason might be so that the machines could be fixed on the pretext of "preventative maintenance" without the customer realizing they'd been sold unreliable rubbish. Remember that if there are no significant problems outside of working hours then the statistics will show good health anyway and there would be no need to suppress data. > He's not requesting that the entire system only report data between those > hours -- he's asking for trends and graphs that show statistics for those > hours. If they can see the statistics they can see everything. They can even have a look outside of hours and see that half their hosts are dead and yet the statistics show everything is hunky-dory. So they get very confused because you haven't told them to ignore the other stuff out of hours. But it isn't a lie, according to you, it's "creative accounting." >> And I can think of one reason that suppressing this information is a bad >> idea. Any trouble outside of those hours may be a sign of an impending > > Nobody said anything about supressing any information. Yes you did. This select group of people do not get to see information about failures that occur outside of hours. The information that there have been such failures is *suppressed*. They do not have the opportunity to ask "Why do our machines keep failing at night" because they do not even know it is happening. It might not directly affect their normal operations but it is a cause for concern. If any of the clients we provide monitoring services to ever found us pulling a trick like that, where we did 24-hour monitoring but only told them of faults during their working day, they'd be very upset. They might even accuse us of lying to them, because they want to know if there are any signs of impending failure. >> What answer did YOU give him? > > None.. since the software doesn't actually do what he's asking for, If Nagios honours work intervals when plotting statistics, then it does. A single instance of Nagios does not, but two instances will. > As to your suggestion that I killfile you... I'm quite happy to simply > skip over your posts. Killfiles require far less effort in the long run. > I'm more concerned about the new users who are unaware of your posting > habits and might be discouraged from participation by you. Isn't defining what others may read known as "censorship?" Which is pretty much what you tried to do when you told me to stop posting. And you're not doing it for yourself but for the good of others who might be led astray into thinking forbidden thoughts - the excuse of censors throughout history. How about you try using facts and logic to prove what I post is wrong? Ooops, sorry, that's not one of your strong points. Your strong point is snipping a helpful answer of mine then accusing me of not giving a helpful answer. Another strong point of yours is pretending that preventing some data being incorporated into statistics is not suppressing information - it may be information that somebody has requested to be suppressed, but it is still suppressed. The strange thing about this thread is that in most of your posts you seem fairly clueful. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Thu Feb 5 20:18:04 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Thu, 5 Feb 2004 14:18:04 -0500 (EST) Subject: Reports only show data from a specific tim e period? In-Reply-To: <20040205190005.24820.qmail@minnow.softflare.net> References: <20040205190005.24820.qmail@minnow.softflare.net> Message-ID: First... my apologies to the list for continuing this thread. This'll be my last post.. really. On Thu, 5 Feb 2004, Paul L. Allen wrote: > Matt Pounsett writes: > > > On Thu, 5 Feb 2004, Paul L. Allen wrote: > > > Nobody said anything about supressing any information. > > Yes you did. This select group of people do not get to see information > about failures that occur outside of hours. The information that there > have been such failures is *suppressed*. They do not have the opportunity > to ask "Why do our machines keep failing at night" because they do not > even know it is happening. It might not directly affect their normal > operations but it is a cause for concern. Again.. nobody said anything about supressing information. He was looking for additional statistics covering a more specific timeperiod than is currently available. That is all. I'm sorry you can't see the value in this, but continuing to try to explain it to you is too far off topic, so I'm going to drop this now. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pleroux at nocout.net Thu Feb 5 20:03:49 2004 From: pleroux at nocout.net (philippe leroux) Date: Thu, 5 Feb 2004 20:03:49 +0100 Subject: sending notification of a generic service to different contact groups In-Reply-To: References: Message-ID: <200402052003.49628.pleroux@nocout.net> Le Jeudi 5 F?vrier 2004 18:51, Yohann DESQUERRE (DSI NOISIEL) a ?crit : Hi Yohann, for me I duplicate but if you use the # Generic service definition template (register 0) you may have a small service definition after for example : # Service definition define service{ use generic_service_check_disk ; Name of service template to use host_name XXXX service_description Espace Disques zzz contact_groups groupxxxx } i f you have to change something in the future it should be easier .... !! Philippe > Hi all, > > > I've got a problem to notify to different contact the same service > notification....my wishes are not easy to understand so It would be > better with a example: > > I would like to configure a service check-disk(this service may work on > all platforms of our production) on 6 different machines : > > Linux1 (Linux-Server-contact-group) > Linux2 (Linux-Server-contact-group) > Sun1 (Sun-Server-contact-group) > Sun2 (Sun-Server-contact-group) > Hp1 (Hp-Server-contact-group) > Hp2 (Hp-Server-contact-group) > > > So in the service definition I gave the six servers names but I would > like send notification to different contacts group. > > Is there any way to solve this problem???? Or do I have to duplicate the > definition service as many time as I have got different contact group > just changing the "host names" and the "contact_group" in each > definition of the service... > > > Thanks for help > > > > > > > > > > > > > ----------------------------------------------- > Yohann Desquerre > "Plateforme ANPE.FR" > S/Direction de la production > Gestion des Ressources > ----------------------------------------------- > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Philippe Leroux NOC OUT 21, rue de F?camp 75012 Paris Tel/fax: 01 48 73 54 53 mobile: 06 07 86 25 22 pleroux at nocout.net www.nocout.net ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cschelin at hq.nasa.gov Thu Feb 5 20:39:52 2004 From: cschelin at hq.nasa.gov (Carl Schelin) Date: 05 Feb 2004 14:39:52 -0500 Subject: small issue on SMTP In-Reply-To: References: <20040205164843.82914.qmail@restricted.dyndns.org> Message-ID: <1076009992.29292.463.camel@unixgod.hq.nasa.gov> On Thu, 2004-02-05 at 12:09, Jason Martin wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > I was just wondering if there is an area in Nagios that I have missed > > wherein we can directly specify an SMTP ip address. With this kind of > > solution, I don't need any mail function locally. > Mails are sent out by the notify-by-email 'command', specified in the > misccommands.cfg file. It uses /bin/mail, which is really a wrapper to > the local sendmail. If you can find a mail-like command that lets you post > to a remote SMTP server then it'll work; just change the command in > misccommands.cfg. Since we're using Skytel two way pagers, I have a script (page-by-skytel:skytel) that fills out a form and posts it to the skytel web page, mainly to avoid the "nagios at nagios.hq" for each and every page. Now it says "CRITICAL: demilo" or "Host 'mrtg' is U" on the page window. Carl ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Feb 5 21:20:15 2004 From: pla at softflare.com (Paul L. Allen) Date: Thu, 05 Feb 2004 20:20:15 +0000 Subject: Reports only show data from a specific tim e period? In-Reply-To: References: Message-ID: <20040205202015.13685.qmail@minnow.softflare.net> Matt Pounsett writes: Oh, and how *deviously* he writes. Such a clever turn of phrase to make it look like I'm wrong, but when parsed carefully shows that it means the opposite. Have you considered applying for a job in the Bush administration, Matt? > Again.. nobody said anything about supressing information. Let me see. Nagios has information covering 24x7 and he wants to display statistics based only upon the information that is generated during working hours. That means he wants to SUPPRESS the information that is generated outside those working hours from appearing in the statistics. It doesn't take a genius to figure that out whether he said it in those precise words or not - his query is about how to suppress information from appearing in the statistics. Whether he is doing it for valid or nefarious reasons, and whether he is doing it at the request of those who get to see those statistics, is neither here nor there - he DOES want to suppress information. You claimed otherwise and you were just plain *wrong* (and refuse to admit it). But that sentence from Matt is only on a par with Clinton saying that because Monica gave him a BJ he didn't have sex with her, or Bush saying that because he said something along the lines of "Saddam was an immediate danger" he could legitimately deny it when a reporter stated Bush claimed Saddam was an "imminent danger" because he never used the word "imminent." Can Matt do better and take us into the realms of a clean air act that harms the environment or protecting forests by opening them up to logging? He surely can. > He was looking for additional statistics covering a more specific > timeperiod than is currently available. That's a good one. I had to read it three times before I figured out how it was possible to interpret that in a way that was factual. You have to take a fairly perverse approach to parsing English to squeeze the truth out of that one, and most people will simply interpret it as Matt providing more "evidence" that I'm wrong because the guy didn't want to suppress information, he actually wanted additional information. The natual interpretation is that the guy wanted *additional information* and so I was dead wrong to say the guy wanted to suppress information - even though he does. A simple mechanic knows that the purpose of a muffler in the exhaust system is to *suppress* noise even if it is the case that everyone wishes the noise to be suppressed. People who buy power strips with surge suppressors (they're advertised as such) want the surgers to be suppressed. Just as mufflers suppress unwanted noise, and surge suppressors suppress unwanted surges, the guy wanted to suppress some unwanted information appearing in the statistics. So Matt has to resort to semantic trickery to try and make his bogus claim about suppression not being involved seem true. With more care, and interpolating "additional statistics" to mean "an additional set of statistics viewable by a select group" we can see that Matt admits the truth that the goal was to *suppress* data from statistics viewed by a specific group of people. With the right parsing, Matt's statement is true (but sloppy English), and does not contradict what I wrote. With more natural parsing, it appears to justify his bogus claim that no suppression is involved. Very creative. When I first read that sentence I nearly re-read the thread to see how I could possibly have missed the guy wanting additional information. When you have to stoop to the sort of trickery Matt has, it is a clear sign you're in the wrong. > I'm sorry you can't see the value in this, I can see value in it to people who like lying to their clients in order to make unreliable equipment and services they provide seem more reliable than it really is. I can't see any point in doing this if the equipment and services are reliable or if you wish to be honest with your clients. There may be an innocent explanation that justifies doing something like this, but you have not offered it. If the equipment and services are reliable 24x7 then you do not need to suppress the information. If they have significant, repeated outages outside of working hours then you have serious problems that need to be addressed and the clients are entitled to know about them and should know about them. Let's face it, if you have serious problems when the machine is under minimal load then there is something drastically wrong. Oh, I just thought of a case that justifies it. ADSL lines in the UK frequently have outages, most outside of working hours. That's not our fault, and the stats would look better if we excluded those outages. Whooops - I forgot something. Our clients WANT to know about out-of-hours ADSL outages so they can hammer the supplier and demand compensation for the outages, even if the out-of-hours outages didn't actually disrupt anything. > but continuing to try to explain it to you is too far off topic, Yes, it is a good idea for you to stop digging while you can still see the top of the hole many feet above your head. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 acmecargo.com Thu Feb 5 22:24:35 2004 From: nagios at acmecargo.com (nagios at acmecargo.com) Date: Thu, 05 Feb 2004 16:24:35 -0500 Subject: specify all hosts without an acknowledgement Message-ID: <6.0.0.22.2.20040205160006.028dac08@mail.acmecargo.com> From the main nagios page whe you click on "Service Problems" you get the following URL. http://localhost/nagios/cgi-bin/status.cgi?host=all&servicestatustypes=248 I would like to change the servicestatustypes to something that will not display acknowledged services problems. I've looked through the docs but cannot find anything that helps me with this. How would I go about changing this URL to not show acknowledged services, or is this possible? Dylan ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From proftp_cj at kdd.de Thu Feb 5 22:19:14 2004 From: proftp_cj at kdd.de (christian janssen) Date: Thu, 05 Feb 2004 21:19:14 +0000 Subject: How to include Nagios Status in other Website In-Reply-To: <3A51ADC7DE201748AE224D58A8CA83B502256FE3@deaudiis1127.audi .de> References: <3A51ADC7DE201748AE224D58A8CA83B502256FE3@deaudiis1127.audi.de> <3A51ADC7DE201748AE224D58A8CA83B502256FE3@deaudiis1127.audi .de> Message-ID: <6.0.1.1.2.20040204104833.0279cec0@195.82.63.16> Hello, I just want to ask if somebody have a "simple" solution to include parts of status.cgi (small overview) in Standard Websites, or e.g as module for example in Typo3. I guess just to include the source is not enough because of the status updates. some suggestions for me. thanks Christian ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 5 22:35:18 2004 From: marc at ena.com (Marc Powell) Date: Thu, 5 Feb 2004 15:35:18 -0600 Subject: specify all hosts without an acknowledgement Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A220@mismail2.ena.com> nagios at acmecargo.com wrote: > From the main nagios page whe you click on "Service Problems" you > get the following URL. > http://localhost/nagios/cgi-bin/status.cgi?host=all&servicestatustypes=2 48 > I would like to change the servicestatustypes to something that will > not display acknowledged services problems. I've looked through the > docs but cannot find anything that helps me with this. How would I go > about changing this URL to not show acknowledged services, or is this > possible? Edit share/side.html and replace the URL for that link with "http://localhost/cgi-bin/status.cgi?host=all&style=detail&servicestatus types=32&hoststatustypes=3&serviceprops=42" I got that URL by going to the Tactical Overview and selecting the link for 'X Unhandled problems'. I believe our NOC uses the exact same workflow to keep track of what's new on the board. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Feb 5 22:55:58 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 5 Feb 2004 16:55:58 -0500 (EST) Subject: Nagios "Monitor of Monitors" In-Reply-To: <4B8F50430DC6D611875E00508BE14DF2108BE636@pasmail.office.tmcs> References: <4B8F50430DC6D611875E00508BE14DF2108BE636@pasmail.office.tmcs> Message-ID: On Tue, 27 Jan 2004, George Miscioscia wrote: > Hi, > > Has anyone ever done something like this? I have 4 Central servers and 4 > Distributive servers sitting in 4 datacenters, one of each per DC. The > Central/Distributive setup is for redundancy and capacity. I plan on > putting Central and Distributives in another 9 data centers. What I want to > do is roll up the alerts to one MOM, one Central Server which does not check > freshness or send notifications. It's sole purpose is to provide a focal > point for all 13 Centrals. I have set up "submit_check_result" on the > distro's to send to two central servers successfully and have also set up > the centrals to "submit_check_results" to a master server after each passive > check. The problem is that in both cases, performance degraded on the > central or distributive. > > I know that there are a few applications out there which do something like > this, but I have found that they do not have the functionality of Nagios as > far as sorting, etc. I also want to keep the GUI's consistent. > > Thoughts? > > Thanks, > George > Take a look at check_remote_nagios_status.pl in the distribution contrib dir... Russell wrote it for a similar reason. A bunch of Nagios servers running with their own config - A central MoM looking at the status.log on the boxes to provide summarized status. Works great is the services are similar in each location. -- -sg ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bwhaley at costrack.com Thu Feb 5 22:56:04 2004 From: bwhaley at costrack.com (Ben Whaley) Date: Thu, 05 Feb 2004 14:56:04 -0700 Subject: Return code of 139 Message-ID: Hello all, I am getting segmentation faults for SMTP checks and SSH checks. It seems random; sometimes it happens when the service is OK, when it is Critical, etc. The error on my nagios console says: Segmentation Fault - core dumped Warning: Return code of 139 for check of service 'SMTP Check' on host 'xxxx' was out of bounds. I emailed the nagiosplug mailing list as well but have not heard anything back. Has anyone else seen this issue? I didn't see the problem when searching the archives. TIA. Regards, Ben ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Thu Feb 5 22:57:22 2004 From: jhmartin at toger.us (Jason Martin) Date: Thu, 5 Feb 2004 13:57:22 -0800 (PST) Subject: How to include Nagios Status in other Website In-Reply-To: <6.0.1.1.2.20040204104833.0279cec0@195.82.63.16> References: <3A51ADC7DE201748AE224D58A8CA83B502256FE3@deaudiis1127.audi.de> <6.0.1.1.2.20040204104833.0279cec0@195.82.63.16> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The underlying data is available in either the status.log or a mysql database (depending on how you are using Nagios); you could write something to read that fairly simply. - -Jason Martin On Thu, 5 Feb 2004, christian janssen wrote: > Hello, > > I just want to ask if somebody have a "simple" solution to include parts of > status.cgi (small overview) in Standard Websites, or e.g as module for > example in Typo3. > > I guess just to include the source is not enough because of the status updates. > > some suggestions for me. > > thanks > Christian > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.3 (GNU/Linux) Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/ iD8DBQFAIrxMl2ODWuqVSBMRAgzvAJ0S/lSoqU/SvYk97TMfA3WeUGdimQCdHW4v e8GrbkHV2sZQpvYHy/N+oJE= =7WH2 -----END PGP SIGNATURE----- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 gargantuan.com Thu Feb 5 23:22:22 2004 From: michael at gargantuan.com (Michael W. Oliver) Date: Thu, 5 Feb 2004 17:22:22 -0500 Subject: maps with restrictive client views Message-ID: <20040205222222.GC93904@gargantuan.com> Hey folks! I have a setup that I am working on to restrict the view for a subset of users, and everything looks good to me except the map. I prefer to use the circular marked-up map, and though the restricted can only see their hosts, they can also see the entire marked-up map. All of the 'cells' for the entire map are drawn, green or red, and the cells are empty. The fact that the cells are empty is a good thing, since those hosts don't belong to this client, but I only want the map to show the cells for the hosts that this client is allowed to see. Here is a picture of what the client sees: http://michael.gargantuan.com/images/nagios_map.png Am I making myself clear? Thanks for your help! -- Mike perl -e 'print unpack("u","88V]N=&%C=\"!I;F9O(&EN(&AE861E Gary MacMinn wrote: > Garry, > > Could you post the shell script you wrote to save the Cisco configs > please? I've been thinking of doing the same thing but if someone has > already got a working solution, why reinvent it. > OK, but don't say I didn't warn you... There's a reason that I want to use a Nagios plugin to do this for me. I'm still hoping for some input/feedback on my original email... There are actually three scripts, tftpbak_public is a shell script that uses snmp to grab the configs from Cisco devices. All of the variables that you'll want to replace are listed . The code for IOS and CatOS switches will either need to be copied for each device that you want to grab, or put in a loop that calls a file where you store the name, ip, etc. of each device. I had planned to do this myself, but never got a round tuit. These are some of the first shell scripts that I ever wrote, about 3 years ago, so they aren't very fancy. Tftpbak_public also calls two expect scripts, which will telnet/login to HP 4000 & 4100 series switches and force them to send their configs. If you don't use HP switches, you'll need to comment out or delete the code that calls the expect scripts. Have fun! Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 720.220.1862 (Mobile) -------------- next part -------------- A non-text attachment was scrubbed... Name: tftpbak_public Type: application/octet-stream Size: 4692 bytes Desc: tftpbak_public URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tftp4100_public Type: application/octet-stream Size: 3709 bytes Desc: tftp4100_public URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tftp4000_public Type: application/octet-stream Size: 4507 bytes Desc: tftp4000_public URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Feb 5 23:36:05 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 6 Feb 2004 09:36:05 +1100 Subject: Nagios and Cisco router configs. In-Reply-To: <200402052211.i15MBvCr005587@flora.securenet.com.au>; from nagios-users-request@lists.sourceforge.net on Thu, Feb 05, 2004 at 01:59:36PM -0800 References: <200402052211.i15MBvCr005587@flora.securenet.com.au> Message-ID: <20040206093603.A74366@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Thu, Feb 05, 2004 at 01:59:36PM -0800, nagios-users-request at lists.sourceforge.net wrote: > Subject: RE: [Nagios-users] Cisco: Configuration save > Date: Thu, 5 Feb 2004 09:24:47 -0700 > From: "Cook, Garry" > To: , > , > > > > I've seen a couple of posts that say Nagios isn't designed for either of > these tasks. While this may be true for the mac-address portion of the > post, I'm not so sure about the configurations save. I've written a > shell script that uses SNMP to TFTP configs from all my Cisco equipment > to the box that hosts Nagios. It runs from cron daily, and a second > script archives the configs regularly as well. It's kind of a pain to > edit this script every time a new device is added or removed. Now, if > there was a Nagios check that would do this for me, it would be much > easier. > .. snip .. > Comments/suggestions? > IMHO opinion you are reinventing what RANCID already does. Have a look at Joe Abley's superb paper http://www.nanog.org/mtg-0210/abley.html to see that RANCID provided router configs (in a CVS ..) provides the foundations for other valuable applications such as . autogenerated (dynamic) dot maps of your internet . ACL/filter audit . Max prefixes ... To my mind some of these applications could then generate passive service check results (if the BGP prefix of some outpost exceeds a certain length, ACLs change etc). > Garry W. Cook, CCNA > Network Infrastructure Manager > MACTEC, Inc. - http://www.mactec.com/ > 303.308.6228 (Office) - 720.220.1862 (Mobile) > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chuckdock at mail.com Fri Feb 6 00:20:10 2004 From: chuckdock at mail.com (Chuck Dock) Date: Thu, 05 Feb 2004 18:20:10 -0500 Subject: Cisco: Configuration save Message-ID: <20040205232010.DD1D92E7C5C@ws1-12.us4.outblaze.com> This is the expect script that I run on my slackware box. I schedule this to run once a week via cron. Expect is part of a default slackware 9.1 full install. I also had to create a /tftpboot directory and have the tftp service running. I save the configs for over 515 routers weekly with this, made me a mini hero at my job due to the time it saves. #!/usr/bin/expect # # rtrcfg.exp -- a script to perform mass configuration changes to # a list of routers using telnet and Expect # # # Set Behavior set tftp "10.210.5.36" <<-----REPLACE with your tftp server # set vtypasswd xxxxxxx<<<<------REPLACE with the vty password set enablepwd XXXXXX<<<<------REPLACE with your enable password set aaa XXXXXXXXX<<<<<--------REPLACE with your aaa password set userid XXX<<<<<<<----------REPLACE with your aaa username set RTR [open "/home/chuck/programs/common_files/RTR_LIST" r] <<<<----REPLACE with a path to your router hostname list set LOG [open "/home/chuck/programs/RESULTS/running_config_results" w] <<<---REPLACE with path to result log file while {[gets $RTR router] != -1} { if {[ string range $router 0 0 ] != "#"} { set timeout 8 spawn telnet; expect "telnet>"; send "open $router\n" sleep 2 expect { {Username} { send "$userid\r" expect { {*Password*} { send "$aaa\r" } } } {Password} { send "$vtypasswd\r" expect { {*>*} {send "enable\r" expect { {*Password*} { send "$enablepwd\r" } } } } } } # expect { {*#} { puts $LOG "$router - enable login ok" } {*>} { puts $LOG "$router - failed-wrong enable" close; wait; continue } timeout { puts $LOG "$router - Wrong password-failed" close; wait; continue } } # CMDs set timeout 18 send "copy running-config tftp\r" sleep 2 send "$tftp\r" sleep 1 send "$router\r" sleep 1 send "\r" expect { {*copied*} { puts $LOG "$router - TFTP successful"} {*OK*} { puts $LOG "$router - TFTP successful"} timeout { puts $LOG "$router - TFTP failed" close; wait; continue } } #CMDs send "exit\r"; close; wait } } close $RTR; close $LOG -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rwhuff at ucdavis.edu Fri Feb 6 01:54:00 2004 From: rwhuff at ucdavis.edu (Ron Huff) Date: Thu, 5 Feb 2004 16:54:00 -0800 Subject: lost my Balanced Tree display ... Message-ID: <200402060054.i160sJtQ013610@pop17.ucdavis.edu> As soon as I configured a 'real' number of network devices (125); the statusmap display for 'Balanced Tree' won't display anything...when I scale down a bit (Scaling factor), I get a temporary border-line that disappears ... The other display choices do display the configured network, but 'Balanced tree' just won't ...can someone point me in the right direction?!? If this is a well known problem just tell to look harder... I decided against a custom (meaning hand-drawn) layout early on as being labor intensive and a nightmare to maintain...we really like the built-in nagios capability to draw the true network relationships from the .cfg 'parents' info; this provides a meaningfull display and is easy to maintain. Previously, I had a small test-set (12 devices) configured...and all worked as expected. - Ron Huff ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Feb 6 02:40:08 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 06 Feb 2004 01:40:08 +0000 Subject: Return code of 139 In-Reply-To: References: Message-ID: <20040206014008.2092.qmail@minnow.softflare.net> Ben Whaley writes: > I am getting segmentation faults for SMTP checks and SSH checks. It seems > random; sometimes it happens when the service is OK, when it is Critical, > etc. The error on my nagios console says: Nope, not seen it. Is the fault on the monitored machine or on the monitoring machine? > Segmentation Fault - core dumped > Warning: Return code of 139 for check of service 'SMTP Check' on host > 'xxxx' was out of bounds. It's past 1am here, but the "139" seems familiar. Something to do with the remote plugin writing output to STDERR and that being sent to Nagios. If my failing memory is not totally screwed (which it probably is), that is only a problem with check_by_ssh and not a problem with check_smtp if you are calling it directly. But you should rely on the information from somebody who has not been drinking unless you need to deal with the problem urgently. -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From yohann.desquerre at anpe.fr Thu Feb 5 22:21:41 2004 From: yohann.desquerre at anpe.fr (Yohann DESQUERRE (DSI NOISIEL)) Date: Thu, 5 Feb 2004 22:21:41 +0100 Subject: sending notification of a generic service to different contact groups Message-ID: I find solution to minimize the duplication but i t's very strange it's not documentate anywhere I replace host_name 'long list of host' by hostgroup_name 'short list of Host group' Instead of copy the name of our 170 server I put the name of 4 host group !!!!! ;-) Do you know is it's an official way ???? Thought it is thanks for your help !!!! -----Message d'origine----- De?: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de philippe leroux Envoy??: jeudi 5 f?vrier 2004 20:04 ??: nagios-users at lists.sourceforge.net Objet?: Re: [Nagios-users] sending notification of a generic service to different contact groups Le Jeudi 5 F?vrier 2004 18:51, Yohann DESQUERRE (DSI NOISIEL) a ?crit : Hi Yohann, for me I duplicate but if you use the # Generic service definition template (register 0) you may have a small service definition after for example : # Service definition define service{ use generic_service_check_disk ; Name of service template to use host_name XXXX service_description Espace Disques zzz contact_groups groupxxxx } i f you have to change something in the future it should be easier .... !! Philippe > Hi all, > > > I've got a problem to notify to different contact the same service > notification....my wishes are not easy to understand so It would be > better with a example: > > I would like to configure a service check-disk(this service may work on > all platforms of our production) on 6 different machines : > > Linux1 (Linux-Server-contact-group) > Linux2 (Linux-Server-contact-group) > Sun1 (Sun-Server-contact-group) > Sun2 (Sun-Server-contact-group) > Hp1 (Hp-Server-contact-group) > Hp2 (Hp-Server-contact-group) > > > So in the service definition I gave the six servers names but I would > like send notification to different contacts group. > > Is there any way to solve this problem???? Or do I have to duplicate the > definition service as many time as I have got different contact group > just changing the "host names" and the "contact_group" in each > definition of the service... > > > Thanks for help > > > > > > > > > > > > > ----------------------------------------------- > Yohann Desquerre > "Plateforme ANPE.FR" > S/Direction de la production > Gestion des Ressources > ----------------------------------------------- > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -- Philippe Leroux NOC OUT 21, rue de F?camp 75012 Paris Tel/fax: 01 48 73 54 53 mobile: 06 07 86 25 22 pleroux at nocout.net www.nocout.net ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 nagios.org Fri Feb 6 00:06:45 2004 From: nagios at nagios.org (Ethan Galstad) Date: Thu, 05 Feb 2004 17:06:45 -0600 Subject: Nagios-users Mailing List "Rules" Message-ID: <40227825.13670.FDFA6E@localhost> I'm crossposting this to nagios-announce, as some of you might not notice it on nagios-users... A lot of junk messages have been seen on the nagios-users mailing list over the last two or three weeks. Flame wars have erupted over feature requests, issues with new users not reading the manual, what email clients users send messages with, HTML and long sigs in messages, etc. It's getting downright ridiculous. There are over 2,000 people currently subscribed to the nagios-users list. I'm quite sure that 99+% of us don't want to see this junk in our inboxes. I've enjoyed reading spam messages about enlargement pills more than postings on the nagios-users list recently. To those of you who feel the need to bash some user because they posted a "stupid" question, use the wrong email client, or whatever.. I say get over it. There will always be people who send HTML email to the list, have a long sig/disclaimer auto-attached to their postings by their mail server, don't RTFM before posting questions, dislike Nagios, etc. You can always choose to not read or respond to messages you don't care for (for whatever reason). You can't control what other people do or don't use/say/do, but you can control your response to them. Remember that you were once new to Nagios, you haven't always read the manuals (and still don't), and you've done plenty of "stupid" things and asked plenty of "stupid" questions in the past too. The nagios-users list is supposed to be about Nagios and *helping* people to use Nagios. That includes both newbies and more seasoned users. If we were all experts about Nagios, there wouldn't be any questions and we wouldn't need the list. Take your flame wars, etc. elsewhere. As the playground nanny, I guess I need to enforce some basic rules of etiquette on the list. So here's the deal... If you... 1. start, or significantly contribute to or participate in a flame war 2. deride or ridicule users for things they have or have not done 3. post messages that are generally mean, unsavory, etc. ...the following things will happen... 1. I'll ban your email address and/or entire company's domain from posting messages to the list 2. After ~2 weeks or so I'll remove the posting restriction 3. If you get banned again for reasons mentioned above, it'll probably be permanent This is supposed to be a public list and I hate to do this, but I feel I *have* to in order to keep this list useable. I won't allow offenders to remain unchecked at the of risk alienating the majority of list members. Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Feb 6 01:54:48 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 06 Feb 2004 00:54:48 +0000 Subject: Reports only show data from a specific tim e period? In-Reply-To: <3C8515D9676BF9479F7EF3545B63AA220B20F7@100NOOSLMSG001.common.alpharoot.net> References: <3C8515D9676BF9479F7EF3545B63AA220B20F7@100NOOSLMSG001.common.alpharoot.net> Message-ID: <20040206005449.26800.qmail@minnow.softflare.net> Hi Andre Andre Bergei writes: > Yes, that's is the idea. The reason the managers want this is to prove > to the customer That they had uptime during the service hours. The hole > point is that They dont care what happen at night, that is our problem, > the sys admins. If there is downtime during Service hours, there will be > economic penalties if totalt downtime dont meet The demands of the SLA > agreement. I understand the reasoning, I just dispute the logic behind it. I know that ADSL lines in the UK are unreliable - I know it for a fact because Nagios proves it to me. Most of the problems occur out of working hours (because we consider 0800-1830 to be working hours). Our clients want to know about them because they can claim compensation from their ADSL suppliers even though the outages didn't affect actual operation. I know that if I have a host or services which are unreliable out of hours, when the workload is minimal, and which are not caused by power failures or ADSL outages that there are serious problems. One of our clients had a very bad power feed that caused eventual physical disk corruption, and without statistics showing that many of the problems occurred out of working hours would have had a harder time claiming from he power company. But, in the end, our clients want to know that we are being honest with them. That we are not hiding problems that occur out of working hours and pretending everything is perfect because they have not *yet* had problems during working hours. They want to know what is happening out of working hours to prove that we're not hiding anything from them (they would want such proof from whoever provided their infrastructure). It seems to me that what you are arguing for is that the statistics CGIs should take into account working hours for the contacts who view them. So that if you view the stats you see the whole picture and if some client whose working hours are 7am-7pm views them he or she sees only the problems that occurred in that interval. That way you could define user x-working-hours who only saw the limited information and x-overall who saw everything (which would allow customer X to see both views and know that you met your SLA but that there are problems outside of working hours which might eventually impact regular operations). > Why would we want to supress information? > This is solved by having techy reports for the techyies, and > Boring availability reports for the managers. The right information to > the right people, a good thing! Throwing away information is ALWAYS a bad idea. Providing two different views onto the information ("this is the availability when you actually needed it" and "this is the overall availability whether you needed it or not") is a good thing. > Like it or not, in the "wonderful" world of out-sourcing, things like > service level agreements becomes more and more common, in fact, customers > _demand_ it. As I just explained, our customers not only want SLAs during periods when the service is critical to them, they also want to know about problems outside of those hours for various reasons. If nothing else, giving them the 24x7 info shows them that we're being honest with them. If every host they have goes down within roughly the same time interval we can point out that it must have been an ADSL failure or a power failure; if one host alone has problems they know it is probably our fault. Whether it happens out of working hours or not, they use that information to evaluate our service level against that of their Internet feed and power feed. If I can't be honest with our customers, I don't want to work here... -- Paul Allen Softflare Support ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Fri Feb 6 03:59:04 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Thu, 05 Feb 2004 20:59:04 -0600 Subject: Nagios in the Enterprise Message-ID: <20040206025904.26436.qmail@restricted.dyndns.org> I know you guys have setup nagios in your enterprise. I have actually just finished nagios last Tuesday and the managers where impressed about it. I was actually demoing it using netmeeting and one of the techguy who joined the conference call turned off a service. Nagios showed off it's ability. :) So much for this. I am planning to create another proposal which will show how a Distributed Nagios server can be used in the enterprise. My question is that, assuming I have deployed 4 distributed nagios and 1 central, do I have to repeat a host/service monitoring that is being monitored on distributed nagios server1 on the other distributed nagios servers? Can you guys give me some bullet points on what to watch out for when deploying nagios in this kind of scenario. Thank you very much. NAGIOS REALLY ROCKS!!! Btw, just got mssql check using freetds driver :) Embracing opensource with close technology Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From neil-on-nagios at restricted.dyndns.org Fri Feb 6 05:04:47 2004 From: neil-on-nagios at restricted.dyndns.org (Neil) Date: Thu, 05 Feb 2004 22:04:47 -0600 Subject: Nagios in the Enterprise In-Reply-To: References: Message-ID: <20040206040447.30855.qmail@restricted.dyndns.org> Demetri Mouratis writes: > > http://nagios.omeda.com/docs/distributed.html > This link is inaccesible. Neil ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Peter.Hicks at POGGS.CO.UK Fri Feb 6 08:14:27 2004 From: Peter.Hicks at POGGS.CO.UK (Peter Hicks) Date: Fri, 06 Feb 2004 07:14:27 +0000 Subject: Cisco: Configuration save In-Reply-To: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at> References: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at> Message-ID: <40233ED3.20900@POGGS.CO.UK> Steinbacher Manfred wrote: > I have many Cisco Systems (Routers and Switches). > > Does anyone known that I can save the configuration of these system with > nagios? > > I also want to known which mac-addresses are in my network. We have same > VLAN`s. > > Can I do this with Nagios or any other tool? Try the attached script, ios-copy.pl. You will have to hack it around a bit, as I wrote it and just pulled straight from one of our NOC boxes. In particular, you'll need to work out how to pass SNMP community strings without using a database. The core functionality's there, its just a case of modifying it to work outside NETMAN. I might get to do this some day. For monitoring MAC addresses on your LAN, look at the BRIDGE-MIB and in particular the dot1dTpFdbTable, which contains a list of MAC addresses and their corresponding switch ports. I have scripts that will automagically poll devices and record their bridge table, as well as getting updates from the CISCO-MAC-NOTIFICATION-MIB traps. This is in less of a "I can email it to you" state because it doesn't work at the moment. Hope the attached script helps - email it back to me if you make any changes and I'll incorporate them in to NETMAN (with credit). Best wishes, Peter. -------------- next part -------------- A non-text attachment was scrubbed... Name: ios-copy.pl Type: text/x-perl Size: 12723 bytes Desc: not available URL: From allan at lxd1.asiandevbank.org Fri Feb 6 08:30:24 2004 From: allan at lxd1.asiandevbank.org (Ako Ito) Date: Fri, 6 Feb 2004 15:30:24 +0800 Subject: raid monitoring for solaris Message-ID: <00cf01c3ec83$15fb0870$72a017ac@asiandevbank.org> hello sirs, is there such a nagios plugin that lets me monitor the health of a raid system on our solaris servers.. what is available on the plugin site is for linux only.. thanks, allan -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.koch at eurodata.de Fri Feb 6 08:28:56 2004 From: a.koch at eurodata.de (Andreas Koch) Date: Fri, 06 Feb 2004 08:28:56 +0100 Subject: configure Holidays Message-ID: <1076052535.656.68.camel@dresden.eurodata.de> Hello nagios-frend's, how I can adjust in timeperios.cfg that at holidays is also informed. Does it does give there an adjustable solution, or must I programming? THX Andreas ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From a.koch at eurodata.de Fri Feb 6 08:33:22 2004 From: a.koch at eurodata.de (Andreas Koch) Date: Fri, 06 Feb 2004 08:33:22 +0100 Subject: configure service.cfg Message-ID: <1076052802.655.71.camel@dresden.eurodata.de> Hello nagios-friends, Is there the possibility that I can give service with the service configuration also a description in addition? - > there is a definition as alias also the host configuration has? THX Andreas -- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 the-galloways.us Fri Feb 6 08:35:19 2004 From: nagios at the-galloways.us (Robert S. Galloway - Nagios Account) Date: Fri, 06 Feb 2004 00:35:19 -0700 Subject: Cisco: Configuration save In-Reply-To: <40233ED3.20900@POGGS.CO.UK> References: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at> <40233ED3.20900@POGGS.CO.UK> Message-ID: <1076052919.25729.1.camel@lakota.leathernecks.us> Check out Kiwi CatTools. It will do all of this and more. Robert S. Galloway Chief Network Security Engineer IKANO Communications On Fri, 2004-02-06 at 00:14, Peter Hicks wrote: > Steinbacher Manfred wrote: > > > I have many Cisco Systems (Routers and Switches). > > > > Does anyone known that I can save the configuration of these system with > > nagios? > > > > I also want to known which mac-addresses are in my network. We have same > > VLAN`s. > > > > Can I do this with Nagios or any other tool? > > Try the attached script, ios-copy.pl. You will have to hack it around a > bit, as I wrote it and just pulled straight from one of our NOC boxes. > In particular, you'll need to work out how to pass SNMP community > strings without using a database. > > The core functionality's there, its just a case of modifying it to work > outside NETMAN. I might get to do this some day. > > For monitoring MAC addresses on your LAN, look at the BRIDGE-MIB and in > particular the dot1dTpFdbTable, which contains a list of MAC addresses > and their corresponding switch ports. I have scripts that will > automagically poll devices and record their bridge table, as well as > getting updates from the CISCO-MAC-NOTIFICATION-MIB traps. This is in > less of a "I can email it to you" state because it doesn't work at the > moment. > > Hope the attached script helps - email it back to me if you make any > changes and I'll incorporate them in to NETMAN (with credit). > > Best wishes, > > > Peter. > > ______________________________________________________________________ > #!/usr/bin/perl -w > # > # NETMAN - An Open Source Network Management System > # Copyright (C) 2003 Peter Hicks > # > # This program is free software; you can redistribute it and/or > # modify it under the terms of the GNU General Public License > # as published by the Free Software Foundation; either version 2 > # of the License, or (at your option) any later version. > # > # This program is distributed in the hope that it will be useful, > # but WITHOUT ANY WARRANTY; without even the implied warranty of > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > # GNU General Public License for more details. > # > # You should have received a copy of the GNU General Public License > # along with this program; if not, write to the Free Software > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. > # > # $Source: /home/cvsroot/netman/cisco-config/ios-copy.pl,v $ > # > # Request the configuration from a Cisco IOS device is copied to a > # TFTP server. > # > # $Id: ios-copy.pl,v 1.5 2003/11/18 15:08:28 pwh Exp $ > # > > use strict; > use Netman; > use Getopt::Long; > > Netman::print_version(); > > > # Options parsing > > my $verbose = 0; > my $debug = 0; > my $hostname; > my $help; > > GetOptions('verbose' => \$verbose, 'debug' => \$debug, 'hostname=s' => \$hostname, 'help' => \$help); > > if($help) { > > print < This script will copy a Cisco IOS device's configuration to a TFTP server > and import the configuration in to the configuration database. > > Commands: > > -d, --debug Show debugging information for troubleshooting > -v, --verbose Show detailed progress information > --help Display this help screen > --hostname [host] Copy configuration for the specified host only > > ENDHELP > > exit; > > }; > > > # Read in the configuration files > > my %config = Netman::read_config(); > > > # Build an SQL query to find the devices from which to copy configurations > > my $configcopy_query = " > SELECT devices.id AS id, > devices.hostname AS hostname, > devices.ip_address AS ip_address, > devices.checks AS checks > > FROM devices > > LEFT JOIN sites > ON devices.site_id = sites.id > > LEFT JOIN management_systems > ON sites.poll_from = management_systems.id > > WHERE management_systems.hostname = '".$config{'node_config'}{'hostname'}."' > AND checks LIKE '%config-copy%' > AND devices.enabled = '1' > "; > > # If a hostname has been specified on the command line, then append this to > # the SQL query. > > if($hostname) { > > $configcopy_query = $configcopy_query . "AND devices.hostname LIKE '%".$hostname."%'"; > > }; > > > # Sort the data > > $configcopy_query = $configcopy_query . "ORDER BY hostname"; > > > my $dbh = Netman::db_connect(); > > my $db_query = $dbh->prepare($configcopy_query); > my $db_result = $db_query->execute; > > if($db_query->rows == 0) { > > print "No targets found.\n\n"; > print " * Set 'config-copy' as a check for every host for you wish to maintain a copy\n"; > print " of the configuration.\n\n"; > print " * Make sure that the devices are configured to be at a location polled from this\n"; > print " management system\n\n"; > print " * If a hostname was specified in the command line, is this hostname set to be\n"; > print " polled from this system?\n"; > print "\n\n"; > > exit 0; > > } else { > > while(my $row = $db_query->fetchrow_hashref) { > > if($verbose) { > > print " * Copying from ".$row->{'hostname'}." (".$row->{'ip_address'}.")...\n"; > > } else { > > print " * Copying from ".$row->{'hostname'}."...\n"; > > }; > > my $device_info = Netman::device_info($row->{'hostname'}); > > my $result = get_configuration($device_info->{'hostname'}, $device_info->{'ip_address'}, $device_info->{'passwords'}{'snmpwrite'}); > > if($result eq 0) { > > if($verbose) { > > print " * Copying configuration to SQL database... "; > > }; > > my $tftp_filename = $config{'miscellaneous'}{'system_tftproot'}."/configs/".$device_info->{'hostname'}; > > > # Loop until the file size stops growing > > my $old_tftp_size = 0; > my $new_tftp_size = -1; > > do { > > sleep 1; > > $old_tftp_size = $new_tftp_size; > $new_tftp_size = -s $tftp_filename; > > print " - File is $new_tftp_size bytes\n" if $debug; > > } until($new_tftp_size > $old_tftp_size); > > open(CONFIG, "<".$tftp_filename) || warn "Could not open ".$tftp_filename; > > my $config_text = ""; > > my $lines = 0; > > while() { > > chomp; > > $config_text = $config_text . $_ . "\n"; > > $lines++; > > }; > > print " - Read $lines lines from configuration\n" if $debug; > > my $db_query = $dbh->prepare(" > > INSERT INTO cisco_configs > (device_id, config_text, updated) > > VALUES('".$device_info->{'id'}."', ".$dbh->quote($config_text).", > UNIX_TIMESTAMP(NOW()) > ) > > "); > > $db_query->execute; > > close(CONFIG); > > if($verbose) { > > print "OK\n"; > > }; > > } elsif($result eq -1) { > > print " * TFTP copy failed\n"; > > }; > > }; > > }; > > > sub get_configuration { > > # Read in variables > > my %config = Netman::read_config(); > > my $hostname = shift; > my $ip_address = shift; > my $write_community = shift; > > > # Connect to the NETMAN datbase > > my $db_handle = Netman::db_connect(); > > > > # Connect to the device using the SNMP read-write community string > # as defined in the NETMAN database > > if($debug) { > > print " * Connecting to $hostname ($write_community\@$ip_address)... "; > > } elsif($verbose) { > > print " * Connecting to $hostname... "; > > }; > > my $snmp_handle = new SNMP::Session(DestHost => $ip_address, Community => $write_community); > > > # Retreive sysUptime.0 to check that the connection was successful > > my @sysUpTime = [ ['sysUpTime', 0] ]; > > my $sysUpTimeValue = $snmp_handle->get(@sysUpTime); > > if(!defined($sysUpTimeValue)) { > > if($debug) { > > print "failed - incorrect community string?\n"; > > } else { > > print "failed.\n"; > > }; > > return -1; > > } else { > > print "OK\n" if $verbose; > > }; > > > # Tell the user what we are doing > > if($verbose) { > > print " * Copying configuration from device...\n"; > > }; > > > # Create an empty file in the TFTP root directory. The TFTP daemon will > # not allow us to create files by default - it will only allow us to > # overwrite files. > > print " - Creating skeleton TFTP file\n" if $debug; > > system("touch ".$config{'miscellaneous'}{'system_tftproot'}."/configs/".$hostname."; chmod 777 ".$config{'miscellaneous'}{'system_tftproot'}."/configs/".$hostname.""); > > > > > }; > > > sub netman_configcopy_writenet { > > # Attempt to use SNMP writeNet, which is depreciated but still works > # for some versions of IOS. This method should be tried last as it > # isn't possible to tell whether a device supports this method until > # we try it. Kinda like pulling the trigger of a gun to see if its > # loaded. > > > # Pull in the SNMP handle > > my $snmp_handle = shift || die "No SNMP handle was passed to netman_configcopy_writenet()\n"; > > > print " - Attempting to use SNMP writeNet (legacy)...\n" if $debug; > > my @writeNet = [ ['writeNet', '192.168.1.1', 'configs/'.$hostname, 'OCTETSTR'] ]; > > my $writeNet = $snmp_handle->set(@writeNet); > > my $writeNetErrorNum = $snmp_handle->{ErrorNum}; > my $writeNetErrorString = $snmp_handle->{ErrorStr}; > > if($writeNetErrorNum eq 0) { > > if($verbose) { > > print " * Copy successful\n"; > > }; > > return 0; > > } else { > > print " - Failed.\n" if $debug; > > }; > > > > }; > > sub netman_configcopy_catos { > > # Try to copy the device's configuration using the CISCO-STACK-MIB. > # This method isn't as sey as the CONFIG-COPY-MIB, but we aren't > # dealing with IOS here! > > > # Pull in the SNMP handle > > my $snmp_handle = shift || die "No SNMP handle was passed to netman_configcopy_writenet()\n"; > > > print " - Attempting to use SNMP CatOS method...\n" if $debug; > > my @tftpCatOS = [ ['tftpHost', '0', '192.168.1.1', 'OCTETSTR'], > ['tftpFile', '0', 'configs/'.$hostname, 'OCTETSTR'], > ['tftpModule', '0', '1', 'INTEGER'], > ['tftpAction', '0', '3', 'INTEGER'] > ]; > > my $tftpCatOS = $snmp_handle->set(@tftpCatOS); > > my @tftpResult = [ ['tftpResult', '0'] ]; > > > print " - Waiting for completion" if $debug; > > $| = 1; > > sleep 1; > > > # Loop until tftpResult is not inProgress(1) > > while($snmp_handle->get(@tftpResult) eq 1) { > > print "."; > > sleep 1; > > }; > > print "\n"; > > $| = 0; > > my $finaltftpResult = $snmp_handle->get(@tftpResult); > > if($finaltftpResult eq 2) { > > print " - Success!\n" if $debug; > > return 0; > > } elsif($finaltftpResult eq 3) { > > print " - Error 3: No response from TFTP server\n" if $debug; > > return -1; > > } elsif($finaltftpResult eq 4) { > > print " - Error 4: Too many retries\n" if $debug; > > return -1; > > } elsif($finaltftpResult eq 16) { > > print " - Error 16: Access Violation\n" if $debug; > > return -1; > > }; > > }; > > sub netman_configcopy_configcopymib { > > # Try to copy the device's configurating using the CONFIG-COPY-MIB. > # This method provides the best feedback on completion and errors, > # and full documentation is available at: > # > # http://www.cisco.com/warp/customer/477/SNMP/copy_configs_snmp.shtml > > > # Pull in the SNMP handle > > my $snmp_handle = shift || die "No SNMP handle was passed to netman_configcopy_configcopymib()\n"; > > > print " - Attempting to use SNMP ccConfigCopy MIB...\n" if $debug; > > my $rowIndex; > my @rowIndexCheck; > my $rowIndexCheckValue; > my $rowIndexCheckError = 0; > my $rowIndexCheckErrorString = ""; > my $rowIndexCheckErrorCount = 0; > > > > # Choose a random number for the row index, and check whether this > # index is already being used (will probably never happen, but best > # to be safe). If the row index is being used, retry five times and > # then assume there's some other problem. > > while($rowIndexCheckError ne 2 && $rowIndexCheckErrorCount lt 5) { > > print " - Finding a valid row index...\n" if $debug; > > $rowIndex = int(rand(2**24)); > > print " - Trying index $rowIndex...\n" if $debug; > > @rowIndexCheck = [ ['ccCopyEntryRowStatus', $rowIndex] ]; > > $rowIndexCheckValue = $snmp_handle->get(@rowIndexCheck); > > my $rowIndexCheckError = $snmp_handle->{ErrorNum}; > my $rowIndexCheckErrorString = $snmp_handle->{ErrorStr}; > > if($rowIndexCheckError ne 2 && $rowIndexCheckErrorCount lt 5) { > > print STDERR " - Error '".$rowIndexCheckErrorString."' returned\n" if $debug; > > $rowIndexCheckErrorCount++; > > }; > > }; > > > # Bail out if we've hit five or more errors from above > > if($rowIndexCheckErrorCount ge 5) { > > print STDERR " * Too many errors - skipping!\n"; > > return -1; > > }; > > > print " - Using row index $rowIndex\n" if $debug; > > > # Prepare an SNMP VarList of OIDs to set, then set them > > print " - Preparing SNMP sets\n" if $debug; > > my @copyVarList = [ ['ccCopyProtocol', $rowIndex, '1', 'INTEGER'], > ['ccCopySourceFileType', $rowIndex, '4', 'INTEGER'], > ['ccCopyDestFileType', $rowIndex, '1', 'INTEGER'], > ['ccCopyServerAddress', $rowIndex, '192.168.1.1', 'IPADDR'], > ['ccCopyFileName', $rowIndex, 'configs/'.$hostname, 'OCTETSTR'], > ['ccCopyEntryRowStatus', $rowIndex, '4', 'INTEGER'] > ]; > > $snmp_handle->set(@copyVarList); > > > # Check to see if the SNMP set was successful > > if($snmp_handle->{ErrorStr} ne "") { > > print " - SNMP set failed - ".$snmp_handle->{ErrorStr}."\n" if $debug; > > return -1; > > }; > > > # Keep tabs on the ccCopyState, printing a '.' for every 100ms that > # the row is in the running(2) state > > my @copyState = [ ['ccCopyState', $rowIndex] ]; > my @copyFailCause = [ ['ccCopyFailCause', $rowIndex] ]; > > print " - Waiting for completion" if $debug; > > $| = 1; > > sleep 1; > > > # Loop until ccCopyState is not running(2) > > while($snmp_handle->get(@copyState) eq 2) { > > print "." if $verbose; > > sleep 1; > > }; > > print "\n" if $verbose; > > $| = 0; > > > # Find out the final copy status and the fail cause > > my $copyFinalStatus = $snmp_handle->get(@copyState); > my $copyFailCause = $snmp_handle->get(@copyFailCause); > > > # Check the final copy status > > if($copyFinalStatus eq 3) { > > return 0; > > } elsif($copyFinalStatus eq 4) { > > if($copyFailCause eq "1") { $copyFailCause = "Unknown error"; }; > if($copyFailCause eq "2") { $copyFailCause = "TFTP server returned an error"; }; > if($copyFailCause eq "3") { $copyFailCause = "TFTP server timeout"; }; > if($copyFailCause eq "4") { $copyFailCause = "Low memory on device"; }; > if($copyFailCause eq "5") { $copyFailCause = "Configuration not found"; }; > if($copyFailCause eq "6") { $copyFailCause = "Unsupported protocol"; }; > if($copyFailCause eq "7") { $copyFailCause = "Configuration application failed"; }; > > print " - Configuration copy was unsuccessful - $copyFailCause\n" if $debug; > > return -1; > > } else { > > print " - Final status unknown (error code $copyFinalStatus)\n" if $debug; > > return -1; > > }; > > }; ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 the-galloways.us Fri Feb 6 08:42:46 2004 From: nagios at the-galloways.us (Robert S. Galloway - Nagios Account) Date: Fri, 06 Feb 2004 00:42:46 -0700 Subject: Cisco: Configuration save In-Reply-To: <1076052919.25729.1.camel@lakota.leathernecks.us> References: <3705031E1454D7119E740002B32AED360138A2@ntsv01.scheucher.at> <40233ED3.20900@POGGS.CO.UK> <1076052919.25729.1.camel@lakota.leathernecks.us> Message-ID: <1076053366.25723.3.camel@lakota.leathernecks.us> Sorry, I guess a URL could be good. :-) www.kiwisyslog.com Robert On Fri, 2004-02-06 at 00:35, Robert S. Galloway - Nagios Account wrote: > Check out Kiwi CatTools. It will do all of this and more. > > Robert S. Galloway > Chief Network Security Engineer > IKANO Communications > > On Fri, 2004-02-06 at 00:14, Peter Hicks wrote: > > Steinbacher Manfred wrote: > > > > > I have many Cisco Systems (Routers and Switches). > > > > > > Does anyone known that I can save the configuration of these system with > > > nagios? > > > > > > I also want to known which mac-addresses are in my network. We have same > > > VLAN`s. > > > > > > Can I do this with Nagios or any other tool? > > > > Try the attached script, ios-copy.pl. You will have to hack it around a > > bit, as I wrote it and just pulled straight from one of our NOC boxes. > > In particular, you'll need to work out how to pass SNMP community > > strings without using a database. > > > > The core functionality's there, its just a case of modifying it to work > > outside NETMAN. I might get to do this some day. > > > > For monitoring MAC addresses on your LAN, look at the BRIDGE-MIB and in > > particular the dot1dTpFdbTable, which contains a list of MAC addresses > > and their corresponding switch ports. I have scripts that will > > automagically poll devices and record their bridge table, as well as > > getting updates from the CISCO-MAC-NOTIFICATION-MIB traps. This is in > > less of a "I can email it to you" state because it doesn't work at the > > moment. > > > > Hope the attached script helps - email it back to me if you make any > > changes and I'll incorporate them in to NETMAN (with credit). > > > > Best wishes, > > > > > > Peter. > > > > ______________________________________________________________________ > > #!/usr/bin/perl -w > > # > > # NETMAN - An Open Source Network Management System > > # Copyright (C) 2003 Peter Hicks > > # > > # This program is free software; you can redistribute it and/or > > # modify it under the terms of the GNU General Public License > > # as published by the Free Software Foundation; either version 2 > > # of the License, or (at your option) any later version. > > # > > # This program is distributed in the hope that it will be useful, > > # but WITHOUT ANY WARRANTY; without even the implied warranty of > > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > > # GNU General Public License for more details. > > # > > # You should have received a copy of the GNU General Public License > > # along with this program; if not, write to the Free Software > > # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. > > # > > # $Source: /home/cvsroot/netman/cisco-config/ios-copy.pl,v $ > > # > > # Request the configuration from a Cisco IOS device is copied to a > > # TFTP server. > > # > > # $Id: ios-copy.pl,v 1.5 2003/11/18 15:08:28 pwh Exp $ > > # > > > > use strict; > > use Netman; > > use Getopt::Long; > > > > Netman::print_version(); > > > > > > # Options parsing > > > > my $verbose = 0; > > my $debug = 0; > > my $hostname; > > my $help; > > > > GetOptions('verbose' => \$verbose, 'debug' => \$debug, 'hostname=s' => \$hostname, 'help' => \$help); > > > > if($help) { > > > > print < > This script will copy a Cisco IOS device's configuration to a TFTP server > > and import the configuration in to the configuration database. > > > > Commands: > > > > -d, --debug Show debugging information for troubleshooting > > -v, --verbose Show detailed progress information > > --help Display this help screen > > --hostname [host] Copy configuration for the specified host only > > > > ENDHELP > > > > exit; > > > > }; > > > > > > # Read in the configuration files > > > > my %config = Netman::read_config(); > > > > > > # Build an SQL query to find the devices from which to copy configurations > > > > my $configcopy_query = " > > SELECT devices.id AS id, > > devices.hostname AS hostname, > > devices.ip_address AS ip_address, > > devices.checks AS checks > > > > FROM devices > > > > LEFT JOIN sites > > ON devices.site_id = sites.id > > > > LEFT JOIN management_systems > > ON sites.poll_from = management_systems.id > > > > WHERE management_systems.hostname = '".$config{'node_config'}{'hostname'}."' > > AND checks LIKE '%config-copy%' > > AND devices.enabled = '1' > > "; > > > > # If a hostname has been specified on the command line, then append this to > > # the SQL query. > > > > if($hostname) { > > > > $configcopy_query = $configcopy_query . "AND devices.hostname LIKE '%".$hostname."%'"; > > > > }; > > > > > > # Sort the data > > > > $configcopy_query = $configcopy_query . "ORDER BY hostname"; > > > > > > my $dbh = Netman::db_connect(); > > > > my $db_query = $dbh->prepare($configcopy_query); > > my $db_result = $db_query->execute; > > > > if($db_query->rows == 0) { > > > > print "No targets found.\n\n"; > > print " * Set 'config-copy' as a check for every host for you wish to maintain a copy\n"; > > print " of the configuration.\n\n"; > > print " * Make sure that the devices are configured to be at a location polled from this\n"; > > print " management system\n\n"; > > print " * If a hostname was specified in the command line, is this hostname set to be\n"; > > print " polled from this system?\n"; > > print "\n\n"; > > > > exit 0; > > > > } else { > > > > while(my $row = $db_query->fetchrow_hashref) { > > > > if($verbose) { > > > > print " * Copying from ".$row->{'hostname'}." (".$row->{'ip_address'}.")...\n"; > > > > } else { > > > > print " * Copying from ".$row->{'hostname'}."...\n"; > > > > }; > > > > my $device_info = Netman::device_info($row->{'hostname'}); > > > > my $result = get_configuration($device_info->{'hostname'}, $device_info->{'ip_address'}, $device_info->{'passwords'}{'snmpwrite'}); > > > > if($result eq 0) { > > > > if($verbose) { > > > > print " * Copying configuration to SQL database... "; > > > > }; > > > > my $tftp_filename = $config{'miscellaneous'}{'system_tftproot'}."/configs/".$device_info->{'hostname'}; > > > > > > # Loop until the file size stops growing > > > > my $old_tftp_size = 0; > > my $new_tftp_size = -1; > > > > do { > > > > sleep 1; > > > > $old_tftp_size = $new_tftp_size; > > $new_tftp_size = -s $tftp_filename; > > > > print " - File is $new_tftp_size bytes\n" if $debug; > > > > } until($new_tftp_size > $old_tftp_size); > > > > open(CONFIG, "<".$tftp_filename) || warn "Could not open ".$tftp_filename; > > > > my $config_text = ""; > > > > my $lines = 0; > > > > while() { > > > > chomp; > > > > $config_text = $config_text . $_ . "\n"; > > > > $lines++; > > > > }; > > > > print " - Read $lines lines from configuration\n" if $debug; > > > > my $db_query = $dbh->prepare(" > > > > INSERT INTO cisco_configs > > (device_id, config_text, updated) > > > > VALUES('".$device_info->{'id'}."', ".$dbh->quote($config_text).", > > UNIX_TIMESTAMP(NOW()) > > ) > > > > "); > > > > $db_query->execute; > > > > close(CONFIG); > > > > if($verbose) { > > > > print "OK\n"; > > > > }; > > > > } elsif($result eq -1) { > > > > print " * TFTP copy failed\n"; > > > > }; > > > > }; > > > > }; > > > > > > sub get_configuration { > > > > # Read in variables > > > > my %config = Netman::read_config(); > > > > my $hostname = shift; > > my $ip_address = shift; > > my $write_community = shift; > > > > > > # Connect to the NETMAN datbase > > > > my $db_handle = Netman::db_connect(); > > > > > > > > # Connect to the device using the SNMP read-write community string > > # as defined in the NETMAN database > > > > if($debug) { > > > > print " * Connecting to $hostname ($write_community\@$ip_address)... "; > > > > } elsif($verbose) { > > > > print " * Connecting to $hostname... "; > > > > }; > > > > my $snmp_handle = new SNMP::Session(DestHost => $ip_address, Community => $write_community); > > > > > > # Retreive sysUptime.0 to check that the connection was successful > > > > my @sysUpTime = [ ['sysUpTime', 0] ]; > > > > my $sysUpTimeValue = $snmp_handle->get(@sysUpTime); > > > > if(!defined($sysUpTimeValue)) { > > > > if($debug) { > > > > print "failed - incorrect community string?\n"; > > > > } else { > > > > print "failed.\n"; > > > > }; > > > > return -1; > > > > } else { > > > > print "OK\n" if $verbose; > > > > }; > > > > > > # Tell the user what we are doing > > > > if($verbose) { > > > > print " * Copying configuration from device...\n"; > > > > }; > > > > > > # Create an empty file in the TFTP root directory. The TFTP daemon will > > # not allow us to create files by default - it will only allow us to > > # overwrite files. > > > > print " - Creating skeleton TFTP file\n" if $debug; > > > > system("touch ".$config{'miscellaneous'}{'system_tftproot'}."/configs/".$hostname."; chmod 777 ".$config{'miscellaneous'}{'system_tftproot'}."/configs/".$hostname.""); > > > > > > > > > > }; > > > > > > sub netman_configcopy_writenet { > > > > # Attempt to use SNMP writeNet, which is depreciated but still works > > # for some versions of IOS. This method should be tried last as it > > # isn't possible to tell whether a device supports this method until > > # we try it. Kinda like pulling the trigger of a gun to see if its > > # loaded. > > > > > > # Pull in the SNMP handle > > > > my $snmp_handle = shift || die "No SNMP handle was passed to netman_configcopy_writenet()\n"; > > > > > > print " - Attempting to use SNMP writeNet (legacy)...\n" if $debug; > > > > my @writeNet = [ ['writeNet', '192.168.1.1', 'configs/'.$hostname, 'OCTETSTR'] ]; > > > > my $writeNet = $snmp_handle->set(@writeNet); > > > > my $writeNetErrorNum = $snmp_handle->{ErrorNum}; > > my $writeNetErrorString = $snmp_handle->{ErrorStr}; > > > > if($writeNetErrorNum eq 0) { > > > > if($verbose) { > > > > print " * Copy successful\n"; > > > > }; > > > > return 0; > > > > } else { > > > > print " - Failed.\n" if $debug; > > > > }; > > > > > > > > }; > > > > sub netman_configcopy_catos { > > > > # Try to copy the device's configuration using the CISCO-STACK-MIB. > > # This method isn't as sey as the CONFIG-COPY-MIB, but we aren't > > # dealing with IOS here! > > > > > > # Pull in the SNMP handle > > > > my $snmp_handle = shift || die "No SNMP handle was passed to netman_configcopy_writenet()\n"; > > > > > > print " - Attempting to use SNMP CatOS method...\n" if $debug; > > > > my @tftpCatOS = [ ['tftpHost', '0', '192.168.1.1', 'OCTETSTR'], > > ['tftpFile', '0', 'configs/'.$hostname, 'OCTETSTR'], > > ['tftpModule', '0', '1', 'INTEGER'], > > ['tftpAction', '0', '3', 'INTEGER'] > > ]; > > > > my $tftpCatOS = $snmp_handle->set(@tftpCatOS); > > > > my @tftpResult = [ ['tftpResult', '0'] ]; > > > > > > print " - Waiting for completion" if $debug; > > > > $| = 1; > > > > sleep 1; > > > > > > # Loop until tftpResult is not inProgress(1) > > > > while($snmp_handle->get(@tftpResult) eq 1) { > > > > print "."; > > > > sleep 1; > > > > }; > > > > print "\n"; > > > > $| = 0; > > > > my $finaltftpResult = $snmp_handle->get(@tftpResult); > > > > if($finaltftpResult eq 2) { > > > > print " - Success!\n" if $debug; > > > > return 0; > > > > } elsif($finaltftpResult eq 3) { > > > > print " - Error 3: No response from TFTP server\n" if $debug; > > > > return -1; > > > > } elsif($finaltftpResult eq 4) { > > > > print " - Error 4: Too many retries\n" if $debug; > > > > return -1; > > > > } elsif($finaltftpResult eq 16) { > > > > print " - Error 16: Access Violation\n" if $debug; > > > > return -1; > > > > }; > > > > }; > > > > sub netman_configcopy_configcopymib { > > > > # Try to copy the device's configurating using the CONFIG-COPY-MIB. > > # This method provides the best feedback on completion and errors, > > # and full documentation is available at: > > # > > # http://www.cisco.com/warp/customer/477/SNMP/copy_configs_snmp.shtml > > > > > > # Pull in the SNMP handle > > > > my $snmp_handle = shift || die "No SNMP handle was passed to netman_configcopy_configcopymib()\n"; > > > > > > print " - Attempting to use SNMP ccConfigCopy MIB...\n" if $debug; > > > > my $rowIndex; > > my @rowIndexCheck; > > my $rowIndexCheckValue; > > my $rowIndexCheckError = 0; > > my $rowIndexCheckErrorString = ""; > > my $rowIndexCheckErrorCount = 0; > > > > > > > > # Choose a random number for the row index, and check whether this > > # index is already being used (will probably never happen, but best > > # to be safe). If the row index is being used, retry five times and > > # then assume there's some other problem. > > > > while($rowIndexCheckError ne 2 && $rowIndexCheckErrorCount lt 5) { > > > > print " - Finding a valid row index...\n" if $debug; > > > > $rowIndex = int(rand(2**24)); > > > > print " - Trying index $rowIndex...\n" if $debug; > > > > @rowIndexCheck = [ ['ccCopyEntryRowStatus', $rowIndex] ]; > > > > $rowIndexCheckValue = $snmp_handle->get(@rowIndexCheck); > > > > my $rowIndexCheckError = $snmp_handle->{ErrorNum}; > > my $rowIndexCheckErrorString = $snmp_handle->{ErrorStr}; > > > > if($rowIndexCheckError ne 2 && $rowIndexCheckErrorCount lt 5) { > > > > print STDERR " - Error '".$rowIndexCheckErrorString."' returned\n" if $debug; > > > > $rowIndexCheckErrorCount++; > > > > }; > > > > }; > > > > > > # Bail out if we've hit five or more errors from above > > > > if($rowIndexCheckErrorCount ge 5) { > > > > print STDERR " * Too many errors - skipping!\n"; > > > > return -1; > > > > }; > > > > > > print " - Using row index $rowIndex\n" if $debug; > > > > > > # Prepare an SNMP VarList of OIDs to set, then set them > > > > print " - Preparing SNMP sets\n" if $debug; > > > > my @copyVarList = [ ['ccCopyProtocol', $rowIndex, '1', 'INTEGER'], > > ['ccCopySourceFileType', $rowIndex, '4', 'INTEGER'], > > ['ccCopyDestFileType', $rowIndex, '1', 'INTEGER'], > > ['ccCopyServerAddress', $rowIndex, '192.168.1.1', 'IPADDR'], > > ['ccCopyFileName', $rowIndex, 'configs/'.$hostname, 'OCTETSTR'], > > ['ccCopyEntryRowStatus', $rowIndex, '4', 'INTEGER'] > > ]; > > > > $snmp_handle->set(@copyVarList); > > > > > > # Check to see if the SNMP set was successful > > > > if($snmp_handle->{ErrorStr} ne "") { > > > > print " - SNMP set failed - ".$snmp_handle->{ErrorStr}."\n" if $debug; > > > > return -1; > > > > }; > > > > > > # Keep tabs on the ccCopyState, printing a '.' for every 100ms that > > # the row is in the running(2) state > > > > my @copyState = [ ['ccCopyState', $rowIndex] ]; > > my @copyFailCause = [ ['ccCopyFailCause', $rowIndex] ]; > > > > print " - Waiting for completion" if $debug; > > > > $| = 1; > > > > sleep 1; > > > > > > # Loop until ccCopyState is not running(2) > > > > while($snmp_handle->get(@copyState) eq 2) { > > > > print "." if $verbose; > > > > sleep 1; > > > > }; > > > > print "\n" if $verbose; > > > > $| = 0; > > > > > > # Find out the final copy status and the fail cause > > > > my $copyFinalStatus = $snmp_handle->get(@copyState); > > my $copyFailCause = $snmp_handle->get(@copyFailCause); > > > > > > # Check the final copy status > > > > if($copyFinalStatus eq 3) { > > > > return 0; > > > > } elsif($copyFinalStatus eq 4) { > > > > if($copyFailCause eq "1") { $copyFailCause = "Unknown error"; }; > > if($copyFailCause eq "2") { $copyFailCause = "TFTP server returned an error"; }; > > if($copyFailCause eq "3") { $copyFailCause = "TFTP server timeout"; }; > > if($copyFailCause eq "4") { $copyFailCause = "Low memory on device"; }; > > if($copyFailCause eq "5") { $copyFailCause = "Configuration not found"; }; > > if($copyFailCause eq "6") { $copyFailCause = "Unsupported protocol"; }; > > if($copyFailCause eq "7") { $copyFailCause = "Configuration application failed"; }; > > > > print " - Configuration copy was unsuccessful - $copyFailCause\n" if $debug; > > > > return -1; > > > > } else { > > > > print " - Final status unknown (error code $copyFinalStatus)\n" if $debug; > > > > return -1; > > > > }; > > > > }; > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From max at militant.dk Fri Feb 6 08:55:24 2004 From: max at militant.dk (Max Andersen) Date: Fri, 06 Feb 2004 08:55:24 +0100 Subject: old notifications popping up In-Reply-To: <40222252.4030808@militant.dk> References: <40222252.4030808@militant.dk> Message-ID: <4023486C.3030402@militant.dk> Haven't anybody seen this behaviour before? Or just a pointer in another direction (f.ex. 1.2 is outdated please use 2.0 branch, or something). ANY help is MUCH appreciated...... Max Andersen wrote: > Hi > > I have configured Nagios to check af few hosts on my network, and it all > looks perfectly well on first look. > > But sometimes old notications are popping up from previous service > downtime. > > I have a few screenshots to show how a VERY old check (24 Jan.) suddenly > pops up between screen refreshings (look at date). > > The warnings and errors are also showing in tactical overview, and > usually dissappears when reloading page, but after reloading 4-7 times > suddenly reappear. It's like old warnings is haunting me :) > > http://www.nda.dk/images/nagss1.jpg > http://www.nda.dk/images/nagss2.jpg > http://www.nda.dk/images/nagss3.jpg > > I run nagios 1.2 (also had the problem on 1.1) on SuSE 8.1 standard > server with apache2 with a configure line like this : > > ./configure --prefix=/srv/www/nagios/ --with-nagios-user=nagios > --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin > > and with all the make options. My checks are standard cut'n'paste from > the sample-files, so no unusual setup there. > > All suggestions will be appreciated. > > Sincerely > Max -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3697 bytes Desc: S/MIME Cryptographic Signature URL: From h.baecker at ecofis.de Fri Feb 6 09:01:41 2004 From: h.baecker at ecofis.de (h.baecker at ecofis.de) Date: Fri, 6 Feb 2004 09:01:41 +0100 Subject: Monitoring IBM AS/400 Message-ID: Hi list, I have to monitor some AS400 Systems. I know from our AS 400 Service Team that they can be contacted with SNMP but my question is if there are more ways for effectiv monitoring. Has anyone some suggestions? Best regards Hendrik -------------- next part -------------- An HTML attachment was scrubbed... URL: From R.Gillman at nerc.ac.uk Fri Feb 6 10:13:41 2004 From: R.Gillman at nerc.ac.uk (Richard Gillman) Date: Fri, 06 Feb 2004 09:13:41 +0000 Subject: nagios 127.0.0.1 Message-ID: <40235AC5.70807@nerc.ac.uk> Solaris 9, apache 1.3.27, nagios 1.1 Whenever I point my browser at my nagios home page http://mybox/nagios, my browser tells me I'm at url http://127.0.0.1/nagios/ So, nagios looks fine if my browser is running on the same box as nagios and apache, but I get Not Found The requested URL /nagios/ was not found on this server. if I attempt to access nagios from a browser running anywhere else. I have compiled nagios with all the defaults; the only flags to the configure script were --with-nagios-user=xxx --with-nagios-grp=yyy. Similarly, I've compiled with all the defaults except --with-nagios-user=xxx --with-nagios-group=yyy I haven't been able to spot a relevant parameter in any of the configuration files. The only thing I can think of to try is to compile nagios with --with-cgiurl=http://mybox/nagios --with-htmurl=http://mybox/nagios What am I supposed to do? Any help appreciated. tia, Dick -- Richard Gillman iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From alchemyx at uznam.net.pl Fri Feb 6 11:17:35 2004 From: alchemyx at uznam.net.pl (=?iso-8859-2?q?Micha=B3_Margula?=) Date: Fri, 6 Feb 2004 11:17:35 +0100 Subject: nagios 127.0.0.1 In-Reply-To: <40235AC5.70807@nerc.ac.uk> References: <40235AC5.70807@nerc.ac.uk> Message-ID: <200402061117.35836.alchemyx@uznam.net.pl> Dnia pi?tek 06 luty 2004 10:13, Richard Gillman napisa?: > What am I supposed to do? Any help appreciated. Try adding slash to your URL when acessing nagios or properly configure apache, which probably has 127.0.0.1 put as its IP address. -- Micha? Margula, alchemyx at uznam.net.pl, http://alchemyx.uznam.net.pl/ "W ?yciu pi?kne s? tylko chwile" [Ryszard Riedel] ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at sd.com Fri Feb 6 11:45:00 2004 From: marco at sd.com (Marco Supino) Date: Fri, 06 Feb 2004 12:45:00 +0200 Subject: Active <-> Passve service check warnings. Message-ID: <4023702C.400@sd.com> Hi, I am seeing something strange in the service notification, I have a process which checks the status of a device, when the status changes to WARNING or CRITICAL it submits a passive check and i get an alert, which is fine, then , when the Active check gets the same results (but maybe a different text output) i get another notification, this happends only with NON-OK states, Any solution ? Marco. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at sd.com Fri Feb 6 11:54:39 2004 From: marco at sd.com (Marco Supino) Date: Fri, 06 Feb 2004 12:54:39 +0200 Subject: [Fwd: Active <-> Passve service check warnings.] Message-ID: <4023726F.209@sd.com> Sorry, now i know what "is_volatile" means. Marco. -------- Original Message -------- Subject: Active <-> Passve service check warnings. Date: Fri, 06 Feb 2004 12:45:00 +0200 From: Marco Supino Organization: Summit Design To: nagios-users at lists.sourceforge.net Hi, I am seeing something strange in the service notification, I have a process which checks the status of a device, when the status changes to WARNING or CRITICAL it submits a passive check and i get an alert, which is fine, then , when the Active check gets the same results (but maybe a different text output) i get another notification, this happends only with NON-OK states, Any solution ? Marco. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From R.Gillman at nerc.ac.uk Fri Feb 6 12:01:05 2004 From: R.Gillman at nerc.ac.uk (Richard Gillman) Date: Fri, 06 Feb 2004 11:01:05 +0000 Subject: nagios 127.0.0.1 - solved In-Reply-To: <200402061117.35836.alchemyx@uznam.net.pl> References: <40235AC5.70807@nerc.ac.uk> <200402061117.35836.alchemyx@uznam.net.pl> Message-ID: <402373F1.1030702@nerc.ac.uk> Micha? Margula wrote: > Dnia pi?tek 06 luty 2004 10:13, Richard Gillman napisa?: > >>What am I supposed to do? Any help appreciated. > > > Try adding slash to your URL when acessing nagios or properly configure > apache, which probably has 127.0.0.1 put as its IP address. > Thanks Mike for your advice. It was indeed an Apache issue. Setting Apache parameter Servername mybox.nwl.ac.uk solved the problem -- Richard Gillman iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB Tel: 01491 - 692 339 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From danny at g2k.es Fri Feb 6 12:54:57 2004 From: danny at g2k.es (=?iso-8859-1?Q?Danny_Garc=EDa_Hern=E1ndez?=) Date: Fri, 6 Feb 2004 12:54:57 +0100 Subject: host down ... Message-ID: <003401c3eca8$0dd0bb70$4801a8c0@ALACRA> Hello List. Some day ago i was asking in this list for a problem about HOST DOWN message in my Nagios Setup. The message said. --------------------------------------- Helo List. I?m a begginer with Nagios 1.2 and sorry for the gurus in this list, but i have the commom begginer?s problem. Host show like DOWN when really are UP, command sending to this host /bin/ping -n -U -c 1 192.168.1.5 return packets. Then HTTP and PING service are failing getting me a "CRITICAL - Plugin timed out after 10 seconds " errors. Can any body help me? Is necesary activate external command to verify host status? Thank in Advanced Danny --------------------------------------- Please, can any body help me? Thnx Danny Danny Garc?a Hern?ndez HELIO YAGO S.L. http://www.g2k.es e-mail:danny at g2k.es Tlf: (96) 363 43 17 Fax: (96) 390 27 17 ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From manjunathk at yahoo.com Fri Feb 6 13:13:57 2004 From: manjunathk at yahoo.com (=?iso-8859-1?q?Manjunath=20K.=20Murthy?=) Date: Fri, 6 Feb 2004 12:13:57 +0000 (GMT) Subject: Configuring Host group Message-ID: <20040206121357.2264.qmail@web40706.mail.yahoo.com> Hi, I want to add a host group has a member of another host group. How to do it? TIA Manjunath Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at rune-z.dk Fri Feb 6 14:52:14 2004 From: mail at rune-z.dk (Rune Zimmermann) Date: Fri, 6 Feb 2004 14:52:14 +0100 (CET) Subject: Apan: Apan could not find service Message-ID: <6284.212.88.93.235.1076075534.squirrel@mailserver.spiffer.dk> Hey... I'm having trouble configuring Apan on my Nagios server. Ping works fine, but snmp dosn't. I can use: snmpget -v 1 -c "community" unv08 .1.3.6.1.2.1.2.2.1.10.2 - on the host, a NT4 server. Apan.debug says: Apan could not find service 'Net' on host 'unv08'. apan.cfg: unv08;Net;/usr/local/nagios/rrd/UNV08_Net-usage.rrd;"community":.1.3.6.1.2.1.2.2.1.10.2|"community":.1.3.6.1.2.1.2.2.1.16.2;IN:LINE2 OUT:LINE2;Network throughput;Bytes/sek; checkcommands.cfg: define command { command_name apan-sql command_line /usr/local/nagios/apan-sql/apan-sql.sh $ARG1$ $HOSTNAME$ $SERVICEDESC$ $TIMET$ $ARG2$ $ARG3$} services.cfg: define service{ use nt-service host_name unv08 service_description Net check_command apan-sql!snmpget!10!20 } unv08 is set in /etc/hosts. My first though was that the snmpget didn't suply the -v 1 parameter, so i manualy configured it in check_snmp in checkcommands.cfg. By the look of the snmp.sh plug in Apan it looked to me like Apan uses the Nagios check. Am I right? Any way.. it didn't work :-(I'm a bit lost now, so any guidens is very velcome. Regards Rune Zimmermann ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From twelsh at square-box.com Fri Feb 6 13:51:19 2004 From: twelsh at square-box.com (Tom Welsh) Date: Fri, 06 Feb 2004 12:51:19 +0000 Subject: nagios 127.0.0.1 In-Reply-To: <40235AC5.70807@nerc.ac.uk> References: <40235AC5.70807@nerc.ac.uk> Message-ID: <20040206125119.30249.qmail@pod-163.dolphin-server.co.uk> Hi Richard, Heres my apache configuration for my nagios server. It works fine. Any probs just drop me an email direct and I'll try and help you out. All our nagios configs are at http://demo.square-box.com -------------------- #Listen. This is your IP and port number Listen 10.10.10.10:80 #ServerName the name of your server if it resolves in dns or an IP address ServerName 10.10.10.10:80 #ServerName ### Section 3: Virtual Hosts ####################################################### ####################################################### ## ## nagios.somedomain.net definition ## ####################################################### ####################################################### ## Script aliases for Nagios scrip aliases. they live ## in /usr/local/nagios/sbin/ NameVirtualHost 10.10.10.10:80 ServerAdmin webmaster at somedomain.com DocumentRoot /usr/local/nagios/share ServerName nagios.somedomain,com ServerAlias anothername.somedomain.com ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all ## Setup alias for /nagios/ to point to ## /usr/local/nagios/share/ Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all ########################################################## ## Webserver authentication for ## /usr/local/nagios/sbin Nagios cgi scripts ## /usr/local/nagios/share Nagios HTML pages ########################################################## AllowOverride AuthConfig order allow,deny allow from all Options ExecCGI AllowOverride AuthConfig order allow,deny allow from all ----------< END >---------- Hope this helps Tom Welsh twelsh at square-box.com Richard Gillman writes: > Solaris 9, apache 1.3.27, nagios 1.1 > > Whenever I point my browser at my nagios home page http://mybox/nagios, my > browser tells me I'm at url http://127.0.0.1/nagios/ > > So, nagios looks fine if my browser is running on the same box as nagios > and apache, but I get > > Not Found > > The requested URL /nagios/ was not found on this server. > > if I attempt to access nagios from a browser running anywhere else. > > I have compiled nagios with all the defaults; the only flags to the > configure script were --with-nagios-user=xxx --with-nagios-grp=yyy. > Similarly, I've compiled with all the defaults except > --with-nagios-user=xxx --with-nagios-group=yyy > > I haven't been able to spot a relevant parameter in any of the > configuration files. The only thing I can think of to try is to compile > nagios with > --with-cgiurl=http://mybox/nagios --with-htmurl=http://mybox/nagios > > What am I supposed to do? Any help appreciated. > > tia, Dick > -- > Richard Gillman > iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk being > sent to /dev/null Kind Regards Tom Welsh 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, disclose, distribute, copy, print, or rely on this e-mail. Sender accepts no liability for any damage resulting from the use and/or acceptation of the content of this e-mail. Always scan attachments before opening them. The views expressed in this communication may not necessarily be the views held by squareBOX technologies ltd ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fredrik.wanglund at mobeon.com Fri Feb 6 14:06:34 2004 From: fredrik.wanglund at mobeon.com (=?ISO-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 06 Feb 2004 14:06:34 +0100 Subject: Apan: Apan could not find service In-Reply-To: <6284.212.88.93.235.1076075534.squirrel@mailserver.spiffer.dk> References: <6284.212.88.93.235.1076075534.squirrel@mailserver.spiffer.dk> Message-ID: <4023915A.7050105@mobeon.com> The new Apan, Apan-sql, does not use apan.cfg. It stores the configuration in an SQL-database instead. /FredrikW Rune Zimmermann wrote: > Hey... > > I'm having trouble configuring Apan on my Nagios server. > > Ping works fine, but snmp dosn't. > > I can use: > snmpget -v 1 -c "community" unv08 .1.3.6.1.2.1.2.2.1.10.2 > - on the host, a NT4 server. > > Apan.debug says: > Apan could not find service 'Net' on host 'unv08'. > > > apan.cfg: > unv08;Net;/usr/local/nagios/rrd/UNV08_Net-usage.rrd;"community":.1.3.6.1.2.1.2.2.1.10.2|"community":.1.3.6.1.2.1.2.2.1.16.2;IN:LINE2 > OUT:LINE2;Network throughput;Bytes/sek; > checkcommands.cfg: > define command { > command_name apan-sql > command_line /usr/local/nagios/apan-sql/apan-sql.sh > $ARG1$ $HOSTNAME$ $SERVICEDESC$ $TIMET$ $ARG2$ $ARG3$} > > services.cfg: > define service{ > use nt-service > host_name unv08 > service_description Net > check_command apan-sql!snmpget!10!20 > } > > > unv08 is set in /etc/hosts. > > My first though was that the snmpget didn't suply the -v 1 parameter, so i > manualy configured it in check_snmp in checkcommands.cfg. By the look of > the snmp.sh plug in Apan it looked to me like Apan uses the Nagios check. > Am I right? Any way.. it didn't work :-(I'm a bit lost now, so any guidens is very velcome. > > Regards > Rune Zimmermann > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ebollengier at sigma.fr Fri Feb 6 14:23:19 2004 From: ebollengier at sigma.fr (BOLLENGIER Eric) Date: Fri, 06 Feb 2004 14:23:19 +0100 Subject: Reports only show data from a specific tim e period? In-Reply-To: <20040206005449.26800.qmail@minnow.softflare.net> References: <3C8515D9676BF9479F7EF3545B63AA220B20F7@100NOOSLMSG001.common.alpharoot.net> <20040206005449.26800.qmail@minnow.softflare.net> Message-ID: <1076073799.24186.183.camel@plume.sigma.fr> Hi, At this time (with nagios 2a), the trend.cgi doesn't work very well... Let me explain more precisely what I mean : my check_period is 8-19_5x7, but the trend report computes statistics on 24-24_7x7. The thing is, how can nagios give statistics on periods it is not even checking ? The result, for now, is that, if my service goes CRITICAL right before the end of the check_period, nagios assumes it is CRITICAL until the next check-period. Which, obviously, is not what I want : my statistics are wrong. Or am I missing something somewhere ? Wouldn't it be better to have it set to "UNDETERMINATE" outside of the check_period ? To patch this, we can restart nagios process every hour, so undetermiate state will appear... Or else, if we could use a "masq" timeperiod when computing the statistics, it would probably solve all our problems : we could report only what we want for who we want : - working hours for our managers (or clients, for that matter) - all day for us, as we do need to know if there is a potential problem on our systems. - etc. Thanks in advance, Regards, Eric On Fri, 2004-02-06 at 01:54, Paul L. Allen wrote: > Hi Andre > > Andre Bergei writes: > > > Yes, that's is the idea. The reason the managers want this is to prove > > to the customer That they had uptime during the service hours. The hole > > point is that They dont care what happen at night, that is our problem, > > the sys admins. If there is downtime during Service hours, there will be > > economic penalties if totalt downtime dont meet The demands of the SLA > > agreement. > > I understand the reasoning, I just dispute the logic behind it. > > I know that ADSL lines in the UK are unreliable - I know it for a fact > because Nagios proves it to me. Most of the problems occur out of > working hours (because we consider 0800-1830 to be working hours). Our > clients want to know about them because they can claim compensation from > their ADSL suppliers even though the outages didn't affect actual > operation. > > I know that if I have a host or services which are unreliable out of > hours, when the workload is minimal, and which are not caused by power > failures or ADSL outages that there are serious problems. One of our > clients had a very bad power feed that caused eventual physical disk > corruption, and without statistics showing that many of the problems > occurred out of working hours would have had a harder time claiming from > he power company. > > But, in the end, our clients want to know that we are being honest with > them. That we are not hiding problems that occur out of working hours > and pretending everything is perfect because they have not *yet* had > problems during working hours. They want to know what is happening out > of working hours to prove that we're not hiding anything from them > (they would want such proof from whoever provided their infrastructure). > > It seems to me that what you are arguing for is that the statistics > CGIs should take into account working hours for the contacts who view > them. So that if you view the stats you see the whole picture and if > some client whose working hours are 7am-7pm views them he or she sees > only the problems that occurred in that interval. That way you could > define user x-working-hours who only saw the limited information and > x-overall who saw everything (which would allow customer X to see both > views and know that you met your SLA but that there are problems outside > of working hours which might eventually impact regular operations). > > > Why would we want to supress information? > > This is solved by having techy reports for the techyies, and > > Boring availability reports for the managers. The right information to > > the right people, a good thing! > > Throwing away information is ALWAYS a bad idea. Providing two different > views onto the information ("this is the availability when you actually > needed it" and "this is the overall availability whether you needed it > or not") is a good thing. > > > Like it or not, in the "wonderful" world of out-sourcing, things like > > service level agreements becomes more and more common, in fact, customers > > _demand_ it. > > As I just explained, our customers not only want SLAs during periods when > the service is critical to them, they also want to know about problems > outside of those hours for various reasons. If nothing else, giving > them the 24x7 info shows them that we're being honest with them. If > every host they have goes down within roughly the same time interval > we can point out that it must have been an ADSL failure or a power > failure; if one host alone has problems they know it is probably our > fault. Whether it happens out of working hours or not, they use that > information to evaluate our service level against that of their Internet > feed and power feed. If I can't be honest with our customers, I don't > want to work here... -- Eric BOLLENGIER, Administrateur Syst?me - Poste 1325 SIGMA Informatique http://www.sigma.fr 3 rue Newton, BP 4127, 44241 La Chapelle sur Erdre Cedex tel : 02.40.37.14.00 -------------- next part -------------- An HTML attachment was scrubbed... URL: From w.pfeiffer at enbw.com Fri Feb 6 14:43:38 2004 From: w.pfeiffer at enbw.com (w.pfeiffer at enbw.com) Date: Fri, 6 Feb 2004 14:43:38 +0100 Subject: host down ... Message-ID: <949B03E209CCCE43A00F0BBEA2FB4034018C90@s2h3148r> Danny Garc?a Hern?ndez wrote: > Hello List. > > Some day ago i was asking in this list for a problem about HOST DOWN > message in my Nagios Setup. > > The message said. > > --------------------------------------- > Helo List. > > I?m a begginer with Nagios 1.2 and sorry for the gurus in > this list, but i have the commom begginer?s problem. > Host show like DOWN when really are UP, > command sending to this host /bin/ping -n -U -c 1 192.168.1.5 return > packets. Then HTTP and PING service are failing getting me a > "CRITICAL - Plugin timed out after 10 seconds " errors. > Can any body help me? > > Is necesary activate external command to verify host status? > > Thank in Advanced > Danny > > --------------------------------------- > > Please, can any body help me? There's no need to apologize to the 'gurus', helping Nagios users is what this list is all about. However, to allow us to help you, you must provide more information. E.g.: - When you say that a host is shown as DOWN, do you have problems only with this host (i.e., is the status for your other hosts displayed correctly)? - What is your host config for host 192.168.1.5? - What are your service checks for that host? - What are your check command definitions? - Does Nagios yield any warnings when you check the config with the -v option? - Did you run the Nagios plugins _as the Nagios user_ on the command line? What was their exact output? - Are you sure that the IP in the host definition is correct? - Did you try out some suggestions from the FAQ? What was the result? I'm afraid I don't understand your following question: > Is necesary activate external command to verify host status? What part of the documentation are you referring to? What did you try? Then what happened? HTH, kind regards, Wolfram Pfeiffer PS: It's perfectly OK if you don't understand all of the Nagios documentation now. It's huge, and some things won't make sense until after you've played around with the Nagios config for a while. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Fri Feb 6 16:21:09 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Fri, 06 Feb 2004 09:21:09 -0600 Subject: Configuring Host group In-Reply-To: <20040206121357.2264.qmail@web40706.mail.yahoo.com> References: <20040206121357.2264.qmail@web40706.mail.yahoo.com> Message-ID: <1076080869.3289.189.camel@localhost> On Fri, 2004-02-06 at 06:13, Manjunath K. Murthy wrote: > I want to add a host group has a member of another host group. How to > do it? If you could explain yourself a little further, it would help considerably. If I'm gathering what you're asking correctly, I think you're asking "can I make a hostgroup full of hostgroups?" If so, no. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ray.ward at mapfusion.com Fri Feb 6 17:08:21 2004 From: ray.ward at mapfusion.com (Ray Ward) Date: Fri, 6 Feb 2004 11:08:21 -0500 Subject: NagMIN Mulde internal server error, trying with Nagios v1.2 Help! Message-ID: Hi, I've posted this to the nagmin-users list as well, but since this list is much more active I thought there my be more response here. I'm having some problems getting NagMIN up and running on my Solaris 8 box. I've installed MySQL 3.23.53 and that seems to be working fine. I installed the Webmin v1.130 package for solaris, that seems to work fine. Nagios v1.2 is installed and working fine. Now when I run the setup for NagMIN v2.0.6 (full output below) I get a small error when loading the DB files: Executing: mysql -uroot -p1234ABcd < nagmin_load.sql ERROR 1136 at line 420: Column count doesn't match value count at row 1 Also after this I try to install the NagMIN module into webmin, but when I try to use the module I get a 500 Level Internal error. So I guess my questions are: 1. what can I do about that error when loading the nagmin_load.sql script 2. How can I trouble-shoot the 500 level error when running the NagMIN module? ANY help offered would be appreciated, Thanks! Enter database name:(nagios): Enter your Nagios ETC directory: (/usr/local/nagios/etc): /export/home/nagios/etc Enter your NagMIN root directory: (/usr/local/nagmin): Nagios Configuration File: (/export/home/nagios/etc/nagios.cfg): CGI Configuration File: (/export/home/nagios/etc/cgi.cfg): NagMIN Database: nagios Nagios ETC: /export/home/nagios/etc/ NagMIN Root: /usr/local/nagmin Nagios Config: /export/home/nagios/etc/nagios.cfg Nagios CGI: /export/home/nagios/etc/cgi.cfg NagMIN DB Dir: /usr/local/nagmin/nagios/ NagMIN CFG: /usr/local/nagmin/nagios/verify.cfg Continue(Y,q): Create NagMIN root directory /usr/local/nagmin mkdir: Failed to make directory "/usr/local/nagmin"; File exists Create NagMIN database directory /usr/local/nagmin/nagios/ mkdir: Failed to make directory "/usr/local/nagmin/nagios"; File exists Create NagMIN nagios.cfg verification file Load NagMIN cgi.cfg Extended Template files # # NAGIOS CONFIGURATION FILES # # The following is a list of the configuration files from # your nagios.cfg and cgi.cfg files that will be processed. # # cfg_file=/export/home/nagios/etc/checkcommands.cfg cfg_file=/export/home/nagios/etc/misccommands.cfg cfg_file=/export/home/nagios/etc/contactgroups.cfg cfg_file=/export/home/nagios/etc/contacts.cfg cfg_file=/export/home/nagios/etc/dependencies.cfg cfg_file=/export/home/nagios/etc/escalations.cfg cfg_file=/export/home/nagios/etc/hostgroups.cfg cfg_file=/export/home/nagios/etc/hosts.cfg cfg_file=/export/home/nagios/etc/services.cfg cfg_file=/export/home/nagios/etc/timeperiods.cfg Continue(Y,q): # # DATABASE SQL FILE CREATION # # NagMIN can handle multiple databases. You can run setup more # than once specifying different database names. # # Ignore any messages related to directory creation if you've run setup before # NagMIN directories have already been created. # Creating nagmin_load.sql file... Loading nagmin_init.sql database initialization file... Processing /export/home/nagios/etc/checkcommands.cfg file... Processing /export/home/nagios/etc/misccommands.cfg file... Processing /export/home/nagios/etc/contactgroups.cfg file... Processing /export/home/nagios/etc/contacts.cfg file... Processing /export/home/nagios/etc/dependencies.cfg file... Processing /export/home/nagios/etc/escalations.cfg file... Processing /export/home/nagios/etc/hostgroups.cfg file... Processing /export/home/nagios/etc/hosts.cfg file... Processing /export/home/nagios/etc/services.cfg file... Processing /export/home/nagios/etc/timeperiods.cfg file... # # DATABASE SQL FILE CREATED FOR nagios # SQL Upload file created for Database=nagios... Do you want to view the SQL file?(N,q): # # DATABASE CREATION # # You can stop now and manually load the database. # The SQL file is nagmin_load.sql # # IMPORTANT: IF YOU PROCEED YOU'LL LOSE ANY EXISTING NAGMIN DATA # ALL NAGMIN TABLES WILL BE DELETED FROM THE SELECTED DATABASE # Do you want to build the database?(Y,q): Enter username for 'nagios' database: (root): Enter password for 'nagios' database: (): 1234ABcd Executing: mysql -uroot -p1234ABcd < nagmin_drop.sql ERROR 1049 at line 1: Unknown database 'nagios' Executing: mysql -uroot -p1234ABcd < nagmin_load.sql ERROR 1136 at line 420: Column count doesn't match value count at row 1 # # NagMIN SERVICE TEMPLATE LOAD # # NagMIN has default service templates for standard services to be used by # the Port Scanning and Service Group features. # # NagMIN templates are prefixed with NM- # Do you want to load NagMIN Service Templates?(Y,q): Executing: mysql -uroot -p1234ABcd nagios < nagmin_services.sql # # NagMIN Setup Processing Completed # # 1 - Now access WebMIN and install the NagMIN plugin # 2 - Configure NagMIN Nagios default values clicking Module Config in WebMIN # 3 - Edit your database tables and run Verification until you get # a clean configuration. This will create NagMIN configuration files in # /usr/local/nagmin/nagios/ directory # 4 - Modify your nagios.cfg and cgi.cfg files to replace configuration file settings # with new NagMIN configuration files listed below. This must be done before # you can successfully activate your first NagMIN configuration. # 5 - Run Activate Config. Check the verification output for any errors. # 6 - Remove any unnecessary configuration files from your /usr/local/nagios/etc # directory. # # NagMIN Configuration Files # cfg_file=/export/home/nagios/etc/Command.cfg cfg_file=/export/home/nagios/etc/Contact.cfg cfg_file=/export/home/nagios/etc/ContactGroup.cfg cfg_file=/export/home/nagios/etc/Host.cfg cfg_file=/export/home/nagios/etc/HostEscalation.cfg cfg_file=/export/home/nagios/etc/HostGroup.cfg cfg_file=/export/home/nagios/etc/HostGroupEscalation.cfg cfg_file=/export/home/nagios/etc/HostTemplate.cfg cfg_file=/export/home/nagios/etc/Service.cfg cfg_file=/export/home/nagios/etc/ServiceDependency.cfg cfg_file=/export/home/nagios/etc/ServiceEscalation.cfg cfg_file=/export/home/nagios/etc/ServiceExtInfo.cfg cfg_file=/export/home/nagios/etc/ServiceTemplate.cfg cfg_file=/export/home/nagios/etc/TimePeriod.cfg _______________________________ Ray Ward IT Technician MapFusion Technologies Inc. http://www.mapfusion.com _______________________________ NOTICE: This message is intended only for the use of the individual or entity to which it is addressed; and it, including any attachments, may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any disclosure, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please delete it from your system without copying or forwarding it and notify us by telephone (905-709-1925) or by return e-mail immediately. MapFusion Corp. and its affiliated companies do not accept responsibility or liability for any loss or damage arising in any way from your receipt or use or for any errors or omissions in the contents of this communication. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeff.vier at tradingtechnologies.com Fri Feb 6 19:31:40 2004 From: jeff.vier at tradingtechnologies.com (jeff vier) Date: Fri, 06 Feb 2004 12:31:40 -0600 Subject: Configuring Host group In-Reply-To: <20040206180615.58893.qmail@web40708.mail.yahoo.com> References: <20040206180615.58893.qmail@web40708.mail.yahoo.com> Message-ID: <1076092300.3289.228.camel@localhost> On Fri, 2004-02-06 at 12:06, Manjunath K. Murthy wrote: > I have a hostgroup's by name "NT server", "Win 2K Server", "RHL 7.2" > "HP-UX" and so on.. > What I want to do is have Host Group by name say "Windows Server" and > "Unix Server". The members of "Windows server" should be hostgroup "NT > Server" and "Win 2K Server" and Host group "Unix Server" with members > "RHL 7.2" and "HP-UX" so on... unless something's changed - no, you can't do that (most unfortunately). ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mail at rune-z.dk Fri Feb 6 19:57:55 2004 From: mail at rune-z.dk (Rune Zimmermann) Date: Fri, 06 Feb 2004 19:57:55 +0100 Subject: Apan: Apan could not find service In-Reply-To: <4023915A.7050105@mobeon.com> References: <6284.212.88.93.235.1076075534.squirrel@mailserver.spiffer.dk> <4023915A.7050105@mobeon.com> Message-ID: <4023E3B2.50308@rune-z.dk> Fredrik W?nglund wrote: > The new Apan, Apan-sql, does not use apan.cfg. It stores the > configuration in an SQL-database instead. Arhg.. Damn. Thanks!! Rune Zimmermann ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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.pounsett at cira.ca Fri Feb 6 20:34:45 2004 From: matt.pounsett at cira.ca (Matt Pounsett) Date: Fri, 6 Feb 2004 14:34:45 -0500 (EST) Subject: Reports only show data from a specific tim e period? In-Reply-To: <1076073799.24186.183.camel@plume.sigma.fr> References: <1076073799.24186.183.camel@plume.sigma.fr> Message-ID: On Fri, 6 Feb 2004, BOLLENGIER Eric wrote: > At this time (with nagios 2a), the trend.cgi doesn't work very well... > Let me explain more precisely what I mean : > my check_period is 8-19_5x7, but the trend report computes statistics on > 24-24_7x7. The thing is, how can nagios give statistics on periods it is > not even checking ? The result, for now, is that, if my service goes > CRITICAL right before the end of the check_period, nagios assumes it is > CRITICAL until the next check-period. Which, obviously, is not what I > want : my statistics are wrong. Or am I missing something somewhere ? Unless the service actually goes down outside the timeperiod you're currently checking it, then you may want to consider making your check period 24/7, and simply restricting your notification period to 8-19_5x7. Not sure if this meets your needs, but I think under most conditions this would fix your problem. -- Matt Pounsett CIRA - Canadian Internet Registration Authority Technical Support Programmer 350 Sparks Street, Suite 1110 matt.pounsett at cira.ca Ottawa, Ontario, Canada 613.237.5335 ext. 231 http://www.cira.ca ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Feb 6 20:52:14 2004 From: pla at softflare.com (Paul L. Allen) Date: Fri, 06 Feb 2004 19:52:14 +0000 Subject: Reports only show data from a specific tim e period? In-Reply-To: <1076073799.24186.183.camel@plume.sigma.fr> References: <3C8515D9676BF9479F7EF3545B63AA220B20F7@100NOOSLMSG001.common.alpharoot.net> <20040206005449.26800.qmail@minnow.softflare.net> <1076073799.24186.183.camel@plume.sigma.fr> Message-ID: <20040206195214.9483.qmail@minnow.softflare.net> BOLLENGIER Eric writes: > Wouldn't it be better to have it set to "UNDETERMINATE" outside of the > check_period ? I assumed trends and availability would do something sensible outside the check period (I've never had to use them against something that wasn't 24x7). Looking closely at the FAQ and docs, the state is undetermined outside the check period *but* the CGIs use the last known state outside of check periods, so it's working as documented (but not as expected). There's no explicit statement on the CGIs page about this, so you have to do some digging to find out that's how it works. After some thought, I concluded that this is not ideal for host/service checks, but better than showing undetermined. If you use the CGIs at all, you probably want to know that there was a failure at the end of the check period which may persist until the host/service is next needed. If they show undetermined you would not see from the CGI that there had been a fault which may still be present and will need to be dealt with. If they show undetermined then the first you'll know, if all you look at is the CGI, is the next morning when the host/service is needed (and you may get an angry phone call first). So there's possibly an argument for having an orange "Outside of check period but last known status was critical" state indicating that the host/service is not needed at this time but may have a fault. But most people will get mail and/or pager alerts anyway and I'd guess most monitoring is 24x7, so it's hard to justify the effort involved in adding an extra state. Yeah, it would mean my boss, who keeps an eye on the status displays, would see an orange instead of a red and know it wasn't something he had to panic about, but I can live with him having occasional panics as long as he checks whether the machine is inside or outside the check period before demanding it be fixed immediately or demanding to know why it hasn't been fixed yet. And my guess is it wouldn't be simple to implement, either, so I doubt the developers would be eager to add it. The case for availability and trends is not as simple. If you have an outage 5 minutes before the check period ends but the host or service returns before the next check period starts then availability is going to show a 16-hour, 5-minute outage in a 24-hour period whereas what you would like is for it to show a 5 minute outage in an 8-hour monitored period and to ignore the unmonitored period compleely. I don't think showing 16 hours of undetermined (as you ask for) is the best solution because there can be other causes for the state to be undetermined, so availability needs to distinguish between undertermined (Nagios tried to check but couldn't get an answer) and unmonitored (Nagios wasn't trying to check at that time). Or it could simply ignore the unmonitored period completely. But I'd want either of those to be display options if implemented at all, not the only.way of displaying it. I want to be able to see a pessemistic display (as at present) not an optimistic display. I want to assume the worst and be proved wrong rather than assume the best and get angry phone calls. Seeing a large chunk of critical rather than a brief period of critical followed by a chunk of undetermined or unmonitored makes it clear to me that the problem could well have persisted all night rather than leading me to assume it was just a brief problem. The current behaviour of the CGIs suits the majority of our requirements because we have almost no monitored items that are turned off overnight, and the few that are belong to clients who aren't interested in the availability data because they want us to take care of it all for them without them having to do anything themselves. That may not be true of your situation, but I suspect most checking done with Nagios is 24x7 even if alerts are restricted by the check period. So although the availability and trends are not ideal for all usage, they probably suit most people. Unless the changes required are trivial, I think it's probably going to be hard to justify the effort involved to the developers given that there are more important things that could be (and are being) improved. I would guess the easiest solution for those that need it is to take the raw data and process it with something else, or to have a script which modifies the data by inserting "undetermined" at the end of each check period on things which aren't monitored 24x7 (you'd need to be careful about file locking, or copy the files elsewhere, modify the copies, and have another copy of the CGIs that works on the files in the new location). Or, rather than having a cron job restart nagios every hour, just schedule a restart at the end of the check period (unless you have a lot of different check periods involved). I don't think those are ideal, because I'd prefer to see a distinction between undetermined and unmonitored, but it's not me that wants those features. Or, if you really want those features without bodging, code them up and submit a patch. I can see that Softflare might have need of something like that in the future, so it was worth taking the time (which became free because I had to wait for one of our client's offices to empty so I could do some potentially disrupive work outside their working hours) to think about options and make suggestions in case we ever do need them. But until we do actually need them, I'm not going to do any playing with it because maybe, by then, somebody else will have added something like that. Without looking at the code, my first thoughts about how you'd build that sort of feature into Nagios itself make it appear to be hard. One way would be to rewrite the CGIs to be capable of getting the check periods from the configuration files and making appropriate adjustments to what they display. Another way would be to modify the Nagios scheduler so that when inside the check period it performs a check every X minutes and when outside the check period it instead writes "unmonitored" to the status file every X minutes. Either way looks like it could be difficult to implement, so if I needed this sort of thing right now I'd go for one of the bodges and live with the fact that the results are not my preferred solution. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thilanka at sbcglobal.net Fri Feb 6 22:09:54 2004 From: thilanka at sbcglobal.net (Thilanka) Date: Fri, 6 Feb 2004 21:09:54 +0000 (UTC) Subject: =?utf-8?b?Y2hlY2tfYnlfc3No?= Message-ID: check_by_ssh (Version: check_by_ssh (nagios-plugins 1.4.0alpha1) 1.18) OS: Solaris 8 Is it possible to specify a password even though it may not be possible when trying to monitor a remote host using the check_by_ssh plugin ? ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 6 22:23:00 2004 From: marc at ena.com (Marc Powell) Date: Fri, 6 Feb 2004 15:23:00 -0600 Subject: check_by_ssh Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A229@mismail2.ena.com> On Friday, February 06, 2004 3:10 PM, Thilanka shared with us: > check_by_ssh (Version: check_by_ssh (nagios-plugins 1.4.0alpha1) 1.18) > > OS: Solaris 8 > > > > Is it possible to specify a password even though it may not be > possible when > > trying to monitor a remote host using the check_by_ssh plugin ? Ssh itself doesn't let you specify a user password on the command line and check_by_ssh is just a wrapper to ssh so no, not really. That's assuming I'm understanding your question properly. The best you can probably do is using ssh's authorized_keys functionality to allow a particular user from a particular host to log in without a password. -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 matthouse.com Sat Feb 7 00:03:15 2004 From: nagios at matthouse.com (Matt Sturtz) Date: Fri, 6 Feb 2004 16:03:15 -0700 (MST) Subject: dry alarm contact monitor? Message-ID: <64206.64.207.49.98.1076108595.squirrel@www.ontheside.net> Hello, We have (like lots of other people, I'm sure) a cabinet at a colocation facility... I want to have some intrusion detection (IE magnetic door contacts). Anybody doing something like this with Nagios? -Matt- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thomaspan at usa.net Sat Feb 7 05:34:06 2004 From: thomaspan at usa.net (Hu Thomas Pan) Date: Fri, 6 Feb 2004 20:34:06 -0800 Subject: notification on soft state In-Reply-To: References: Message-ID: <002301c3ed33$a0762c40$0d3f91d8@hupan> Hi All, How could I enable notification during soft state? Basically, I want to have different check intervals during OK state and non-OK state. There must be notification during non-OK state. Any idea? Thanks very much, Thomas ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 acmecargo.com Sat Feb 7 07:46:39 2004 From: nagios at acmecargo.com (nagios at acmecargo.com) Date: Sat, 07 Feb 2004 01:46:39 -0500 Subject: Notification problem Message-ID: <6.0.0.22.2.20040207014605.0295dff8@mail.acmecargo.com> I'm not sure if this made it to the list the first time. I never saw it come through. I am having a problem getting my notifications working. I see the service notification go through on the log but I never see the message being sent through the outgoing mail log file nor do I get the email of course. Feb 6 17:39:15 src at sysmon nagios: SERVICE NOTIFICATION: contactname;temp_probe1;Central DC temp;WARNING;notify-phone-by-email;Temp Warning: Probe 3 = 71.1 F I can send a message manually simulating what is in my misccommands.cfg. The actual line says: /usr/bin/printf "%b $NOTIFICATIONTYPE$ $SERVICEDESC$ $HOSTALIAS$ $SERVICESTATE$ $DATETIME$ Info:$OUTPUT$" | /bin/mail -s ALERT $CONTACTEMAIL$ I try the following: /usr/bin/printf "This is a test" | /bin/mail -s "Test Subject" user at domain.com and I see it process in my mail log and I receive the email. Why is it that Nagios is logging the Service Notification but it is never submitted to the local sendmail daemon? Dylan ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Sat Feb 7 08:08:17 2004 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sat, 7 Feb 2004 02:08:17 -0500 (EST) Subject: notification on soft state In-Reply-To: <002301c3ed33$a0762c40$0d3f91d8@hupan> References: <002301c3ed33$a0762c40$0d3f91d8@hupan> Message-ID: On Fri, 6 Feb 2004, Hu Thomas Pan wrote: > Hi All, > > How could I enable notification during soft state? Basically, I want to have > different check intervals during OK state and non-OK state. There must be > notification during non-OK state. > > Any idea? > > > Thanks very much, > Thomas You don't want to do that - consider soft state as an internal artifact (verification) not for end-user consumption. Also the check intervals are static per definition - same whether in an ok or non-ok state. -- -sg ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thomaspan at usa.net Sat Feb 7 09:10:53 2004 From: thomaspan at usa.net (Hu Thomas Pan) Date: Sat, 7 Feb 2004 00:10:53 -0800 Subject: notification on soft state In-Reply-To: References: Message-ID: Subhendu, That would be very inconvenient. Suppose a service would be checked once per day. We have to wait for one day for the status changing from CRITICAL to OK even though we know that the problem would be definitely fixed within one day. Maybe, an easy way is for me to restart Nagios. :-) Best, Thomas -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Friday, February 06, 2004 11:08 PM To: Hu Thomas Pan Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] notification on soft state On Fri, 6 Feb 2004, Hu Thomas Pan wrote: > Hi All, > > How could I enable notification during soft state? Basically, I want to have > different check intervals during OK state and non-OK state. There must be > notification during non-OK state. > > Any idea? > > > Thanks very much, > Thomas You don't want to do that - consider soft state as an internal artifact (verification) not for end-user consumption. Also the check intervals are static per definition - same whether in an ok or non-ok state. -- -sg ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 7 09:32:14 2004 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 7 Feb 2004 19:32:14 +1100 Subject: Harnessing IDS (snort snort) to Nagios. Was: dry alarm contact monitor? In-Reply-To: <200402070426.i174QqCr008281@flora.securenet.com.au>; from nagios-users-request@lists.sourceforge.net on Fri, Feb 06, 2004 at 08:18:44PM -0800 References: <200402070426.i174QqCr008281@flora.securenet.com.au> Message-ID: <20040207193211.A243@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Fri, Feb 06, 2004 at 08:18:44PM -0800, nagios-users-request at lists.sourceforge.net wrote: > Date: Fri, 6 Feb 2004 16:03:15 -0700 (MST) > From: "Matt Sturtz" > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] dry alarm contact monitor? > > Hello, > > We have (like lots of other people, I'm sure) a cabinet at a colocation > facility... I want to have some intrusion detection (IE magnetic door > contacts). Anybody doing something like this with Nagios? > I think this is an example of the general question of having remote sensors or applications report 'alarms' to Nagios or put another way 'of integrating Nag with other software' (see docs for example of integrating ArcServe with Nag). The answer is 'it depends' on how the "magnetic door contacts" sensors report their findings => snmptrap: easi-peasi, see the ArcServe example => log file: easi peasi, have some high class log analysis daemon like Sec (see SourceForge), Swatch or the RuleCore process the logs, and apply any necessary business logic (don't bother if it's a staff card that opens the door unless its the reactor door [open the door, Hal]) before submitting passive service checks to Nag (maybe with NCSA) => look at a distributed monitoring setup and run a Nag reporter that runs active checks (such as check_log) on the host near the sensor and monitors (in some way) its reports. http://www.nagios.org/download/extras.php has some more ideas. Out of the box solutions ? prob none. Doable with not too much work ? Certainly. > -Matt- Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie.baddeley at vpc.co.nz Sat Feb 7 09:53:25 2004 From: jamie.baddeley at vpc.co.nz (Jamie Baddeley) Date: 07 Feb 2004 21:53:25 +1300 Subject: dry alarm contact monitor? In-Reply-To: <64206.64.207.49.98.1076108595.squirrel@www.ontheside.net> References: <64206.64.207.49.98.1076108595.squirrel@www.ontheside.net> Message-ID: <1076144009.3262.45.camel@munter> HI Matt, You could use something like the Temptrax sensor the Ethan mentions on the site. I mailed the guys at temptrax ages ago, and they advised me that if you shorted the sensors, it basically produced a "1" on output. Or something like that. So I'm sure some hackery could produce the desired result. jamie On Sat, 2004-02-07 at 12:03, Matt Sturtz wrote: > Hello, > > We have (like lots of other people, I'm sure) a cabinet at a colocation > facility... I want to have some intrusion detection (IE magnetic door > contacts). Anybody doing something like this with Nagios? > > -Matt- > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From karl at sfdata.net Sat Feb 7 11:58:40 2004 From: karl at sfdata.net (Karl Balsmeier) Date: Sat, 07 Feb 2004 02:58:40 -0800 Subject: Any NT/2000-specific Docs? In-Reply-To: <370ACCFA5BB3B346A31222E5559BF91F03A229@mismail2.ena.com> References: <370ACCFA5BB3B346A31222E5559BF91F03A229@mismail2.ena.com> Message-ID: <1076151519.2160.32.camel@localhost.localdomain> Any NT/2000-specific Docs? just curious, -have a large number of MS machines to monitor from my openbsd machine. -am looking for key items like "requires reboot during install of NSClient or NRPE" ; "download/find nsclient here" et al. danke. p.s. am impressed how flawlessly nagios assembled on my bsd platform, only had to make *one* change, and that was to edit the Makefile and change two user entries from root to nagios. -karlski On Fri, 2004-02-06 at 13:23, Marc Powell wrote: > On Friday, February 06, 2004 3:10 PM, Thilanka shared with us: > > > check_by_ssh (Version: check_by_ssh (nagios-plugins 1.4.0alpha1) 1.18) > > > > OS: Solaris 8 > > > > > > > > Is it possible to specify a password even though it may not be > > possible when > > > > trying to monitor a remote host using the check_by_ssh plugin ? > > > Ssh itself doesn't let you specify a user password on the command line > and check_by_ssh is just a wrapper to ssh so no, not really. That's > assuming I'm understanding your question properly. The best you can > probably do is using ssh's authorized_keys functionality to allow a > particular user from a particular host to log in without a password. > > -- > Marc > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 at sd.com Sat Feb 7 10:53:10 2004 From: marco at sd.com (Marco Supino) Date: Sat, 07 Feb 2004 11:53:10 +0200 Subject: dry alarm contact monitor? References: <64206.64.207.49.98.1076108595.squirrel@www.ontheside.net> Message-ID: <4024B586.1010507@sd.com> Hi, What i did in order to monitor things which dont have any interface (lights, in my case), is using relays, connect them to RS232 cable, and then convert it to ethernet with somelike like Digi realport One, if you take CTS,DSR or DCD from a RS232 cable, and short them with the DTR signal, you get a "1" on the RS232, then connect it to a ethernet <-> RSR232 device (like the Digi device), and with SNMP get the status of the signals. Marco. Matt Sturtz wrote: > Hello, > > We have (like lots of other people, I'm sure) a cabinet at a colocation > facility... I want to have some intrusion detection (IE magnetic door > contacts). Anybody doing something like this with Nagios? > > -Matt- > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From skip at pobox.com Sat Feb 7 13:32:50 2004 From: skip at pobox.com (Skip Montanaro) Date: Sat, 7 Feb 2004 06:32:50 -0600 Subject: Unclear on mapping of passive checks to state changes In-Reply-To: <20040207193211.A243@IPAustralia.Gov.AU> References: <200402070426.i174QqCr008281@flora.securenet.com.au> <20040207193211.A243@IPAustralia.Gov.AU> Message-ID: <16420.56050.670575.221386@montanaro.dyndns.org> Stanley> ... and apply any necessary business logic (don't bother if Stanley> it's a staff card that opens the door unless its the reactor Stanley> door [open the door, Hal]) before submitting passive service Stanley> checks to Nag (maybe with NCSA) I'm more than a bit unclear on how passive checks of stuff like logfiles are supposed to work. If I monitor a condition actively (let's say, whether or not my web server is responding), that condition remains present and the state remains at critical or warning until the problem causing it is resolved (server restarted, network problem resolved, etc). If I'm monitoring a logfile and see 2004-02-07 door opened by skip without auth code a passive check might report that condition. How is that turned into a warning or critical condition? That's presumably only going to occur one time though. Since it's a report of a one-time event, not a long-term state change to the system, how is the system supposed to know when to change the state back to ok? Thx, -- Skip Montanaro Got gigs? http://www.musi-cal.com/submit.html Got spam? http://spambayes.sf.net/ skip at pobox.com ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at masonc.com Sat Feb 7 14:42:25 2004 From: lists at masonc.com (Chris Mason) Date: Sat, 7 Feb 2004 09:42:25 -0400 Subject: dry alarm contact monitor? In-Reply-To: <64206.64.207.49.98.1076108595.squirrel@www.ontheside.net> References: <64206.64.207.49.98.1076108595.squirrel@www.ontheside.net> Message-ID: <000501c3ed80$389d3710$0600a8c0@poseiden> http://www.akcpinc.com/includes/sp2_brochure.pdf Seems like this can monitor anything, they specifically mention security. Chris Mason masonc at masonc.com Box 340, The Valley, Anguilla, British West Indies Yahoo IM: netconcepts_anguilla at yahoo.com 264 497-5670 Fax: 264 497-8463 www.netconcepts.ai > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Matt Sturtz > Sent: Friday, February 06, 2004 7:03 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] dry alarm contact monitor? > > > Hello, > > We have (like lots of other people, I'm sure) a cabinet at a > colocation > facility... I want to have some intrusion detection (IE magnetic door > contacts). Anybody doing something like this with Nagios? > > -Matt- > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 acmecargo.com Fri Feb 6 23:50:26 2004 From: nagios at acmecargo.com (nagios at acmecargo.com) Date: Fri, 06 Feb 2004 17:50:26 -0500 Subject: Notification problem Message-ID: <6.0.0.22.2.20040206174420.023eac48@mail.acmecargo.com> I am having a problem getting my notifications working. I see the service notification go through on the log but I never see the message being sent through the outgoing mail log file nor do I get the email of course. Feb 6 17:39:15 src at sysmon nagios: SERVICE NOTIFICATION: contactname;temp_probe1;Central DC temp;WARNING;notify-phone-by-email;Temp Warning: Probe 3 = 71.1 F I can send a message manually simulating what is in my misccommands.cfg. The actual line says: /usr/bin/printf "%b $NOTIFICATIONTYPE$ $SERVICEDESC$ $HOSTALIAS$ $SERVICESTATE$ $DATETIME$ Info:$OUTPUT$" | /bin/mail -s ALERT $CONTACTEMAIL$ I try the following: /usr/bin/printf "This is a test" | /bin/mail -s "Test Subject" user at domain.com and I see it process in my mail log and I receive the email. Why is it that Nagios is logging the Service Notification but it is never submitted to the local sendmail daemon? Dylan ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please 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 Feb 8 03:18:05 2004 From: marc at ena.com (Marc Powell) Date: Sat, 7 Feb 2004 20:18:05 -0600 Subject: notification on soft state Message-ID: <370ACCFA5BB3B346A31222E5559BF91F03A22C@mismail2.ena.com> Hu Thomas Pan wrote: > Hi All, > > How could I enable notification during soft state? Basically, I want > to have different check intervals during OK state and non-OK state. > There must be notification during non-OK state. > > Any idea? I think you're going to need to clarify for the group why you are needing notifications for soft states. Why not just adjust your max_check_attempts to be lower so you get notified sooner? Nagios doesn't notify for soft states but it could probably be accomplished with a bit of coding and using OCSP. As for different check intervals for OK and non-OK states, that's built in -- http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service normal_check_interval: This directive is used to define the number of "time units" to wait before scheduling the next "regular" check of the service. "Regular" checks are those that occur when the service is in an OK state or when the service is in a non-OK state, but has already been rechecked max_attempts number of times. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. More information on this value can be found in the check scheduling documentation. retry_check_interval: This directive is used to define the number of "time units" to wait before scheduling a re-check of the service. Services are rescheduled at the retry interval when the have changed to a non-OK state. Once the service has been retried max_attempts times without a change in its status, it will revert to being scheduled at its "normal" rate as defined by the check_interval value. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. More information on this value can be found in the check scheduling documentation. Nagios will of course notify you when a service is in a HARD non-OK state if you have notifications enabled and the correct notification_options set (c,r most likely). -- Marc ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From thilanka at sbcglobal.net Sun Feb 8 03:40:59 2004 From: thilanka at sbcglobal.net (Thilanka) Date: Sun, 8 Feb 2004 02:40:59 +0000 (UTC) Subject: multiple notifications Message-ID: I was just wondering whether someone else has come accross this same problem. I monitor a remote host using the check_ping plugin and nothing else. I am not monitoring any other service on this particular host. During tests, I am getting five notifications (three e-mails - three minutes apart and two pages on my pager) when this particular host comes up from being down. Does anyone know whether I can configure it so that I will only be paged or e-mailed once? If someone can point me int the right direction that will be great. Any help would be appreciated. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From renders at cknxradio.com Sun Feb 8 18:51:04 2004 From: renders at cknxradio.com (Rob Enders) Date: Sun, 8 Feb 2004 12:51:04 -0500 Subject: Dry contact solution Message-ID: Hi all.. Recently there has been some questions about monitoring dry contacts.. Here is a solution that I have used successfully for 4 years, I have two joysticks ports ( 8 contacts) . I am still using Netsaint, for no other reason that a lack of time to rebuild the machine to use Nagios but the plugin should work the same.. Good luck Rob From: "Rob Enders" <...> To: Date sent: Mon, 6 Nov 2000 21:47:49 -0500 Subject: [Netsaintplug-devel] JoyStick Button Plugin I have managed to kludge together a joystick button monitoring plugin using joyd http://www.h.shuttle.de/mitch/joyd.en.html. I am using it for monitoring audio silence sensors at our radio station. It could also be used for smoke/fire detectors, motion sensors, etc. It works as follows: I have wired up a connector to a standard audio card joystick port, simulating a 2 axis 4 button analog joystick. The button inputs wired to relays that are part of an audio silense monitor. The linux joystick modules, joystick.o and joy-analog.o are needed. The current version of joyd, 0.2.2 requires a complete press and release of the button to complete an action. I modified the code in line 246 of joystick.c of the joyd package from: if ((button_normal == 0) && (axis_normal == 0) to: if (button_normal!= 0) && (axis_normal == 0) This changed the detection routine to button presses only. Joyd is a joystick monitoring daemon that turns button presses into commands. I assigned the following command to each button: /usr/local/netsaint/libexec/eventhandler/submit_check_result 2 The event handler is identical to the sample in the documentation for portsentry. I created a plugin called check_joystick using one of the other scripts (check_sensor)in the latest tarball as follows: #! /bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin PROGNAME=`basename $0` PROGPATH=`echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'` REVISION=`echo '$Revision: 1.0 $' | sed -e 's/[^0-9.]//g'` STATUS="" . $PROGPATH/utils.sh print_usage() { echo "Usage: $PROGNAME /dev/js<#>