[Nagios-users] logrotation
Title: logrotation Hi all, Currently we are running nagios on Debian testing. I found a small problem that might already have been fixed but I did not find anything about it. The defaults within Nagios for rotating the logfiles have been set to 1 day. It rotates around midnight. The problem is that I suspect nagios is pointing to a wrong filepointer. I stops logging the events until the next os logrotation (around 6 a.m. in our case). Has this already been reported? Best regards, Hans Wolters - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios process not running? It is running!
I don't think so because when I run the exact command that I put in the cgi.cfg from the command line as the nagios user (I copied and pasted to make sure it was identical), I got the right result as expected. It was only when put in the cgi.cfg and run by Nagios that it always gave the same thing, saying nagios wasn't running. But when nagios isn't running the web interface doesn't come up properly, I get a whole different error. I also still receive alerts so Nagios must be running. The reason the status file can't be in the wrong place is because otherwise the test when executed from the command line would fail, whereas it passes. I think this is more likely a subtle bug, it's the only way that I can account for the difference. -h Hari Sekhon Guang Deng wrote: > > the status.log file is missing, they this: > > touch /var/nagios/status.log > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] holidays
Hi list, i've been searching around for a way to define holidays in nagios. The object is to be able to use a 24-7 timeperiod on holidays (e.g. 25 december) and the Tech_hours timeperiod on 'normal' days: define timeperiod timeperiod_name 24x7 alias twenty-four seven baby! sunday00:00-24:00 monday00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday00:00-24:00 saturday 00:00-24:00 } define timeperiod { timeperiod_name Tech_hours sunday00:00-24:00 monday00:00-08:59,17:00-23:59 tuesday 00:00-08:59,17:00-23:59 wednesday 00:00-08:59,17:00-23:59 thursday 00:00-08:59,17:00-23:59 friday00:00-08:59,17:00-23:59 saturday 00:00-24:00 } Thank you for any hint or helpful suggestion. cheers, Bart Bart van Daal Network Operations Van Landeghemstraat 20 9100 SINT-NIKLAAS [EMAIL PROTECTED] www.edpnet.be T +32 (0)3 265 67 00 F +32 (0)3 265 67 01 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] what does "last check" mean / "last check" inconsistence
I noticed that "last check" in the nagios interface is used twice, and that its usage is inconsistent - it shows different things: 1. "Last check" in "Host detail" 2. "Last check" in "View status detail for that host" For example, I have a host called "SERVER". In "Host detail", "Last check" shows a date of "04-10-2006 17:09:01". In "View status detail for that host", "Last check" shows a date of "05-10-2006 13:05:05", which is close to the current date. What is the difference between the two? Especially, I'd like to know what "Last check" in "Host detail" means. I'm running nagios 2.5. -- Tomasz Chmielewski http://wpkg.org - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Some info on check_disk output
Title: Some info on check_disk output Hi List, SLES9.2 Nagios 2.5 Nagios-Plugins 1-4-3 NRPE 2.5.1 When I look at my check disk output in nagios I see the following against some entries. My disks are partitioned with LVM My command line from my nrpe.cfg is command[check_disk1]=/usr/local/nagios/libexec/check_disk -l -X iso9660 -w 20% -c 10% -W 20% -K 10% -p / [EMAIL PROTECTED]:~> /usr/local/nagios/libexec/check_disk -l -X iso9660 -w 20% -c 10% -W 20% -K 10% -p / Which returns the below DISK OK - free space: / 1188 MB (53% inode=nan%);| /=1068MB;1804;2029;-2147483648;2255 I get the following returned in the Nagios Services view. Free Disk Space / OK 05-10-2006 11:25:09 0d 17h 51m 42s 1/3 DISK OK - free space: / 2699 MB (66% inode=nan%): Free Disk Space /boot OK 05-10-2006 11:25:37 0d 17h 50m 26s 1/3 DISK OK - free space: /boot 63 MB (61% inode=nan%): Free Disk Space /opt OK 05-10-2006 11:26:21 0d 17h 49m 10s 1/3 DISK OK - free space: /opt 987 MB (96% inode=nan%): Free Disk Space /osmf OK 05-10-2006 11:22:04 0d 17h 52m 57s 1/3 DISK OK - free space: /osmf 145 MB (73% inode=nan%): Free Disk Space /tmp OK 05-10-2006 11:22:47 0d 17h 51m 41s 1/3 DISK OK - free space: /tmp 462 MB (92% inode=100%): Free Disk Space /usr OK 05-10-2006 11:23:29 0d 17h 50m 25s 1/3 DISK OK - free space: /usr 2053 MB (67% inode=nan%): Free Disk Space /var OK 05-10-2006 11:24:12 0d 17h 49m 9s 1/3 DISK OK - free space: /var 29720 MB (56% inode=nan%): What I want to know is what does the % inode=nan% mean? It seems that the only filesystem to return inodes is /tmp but that probably coz its not sitting on any particular disk. Here's my fstab h1oiap:/home/welsht2 # cat /etc/fstab /dev/vg01/rootlv / reiserfs defaults 1 1 /dev/sda1 /boot reiserfs defaults 1 2 /dev/vg01/homelv /home reiserfs defaults 1 2 /dev/vg01/optlv /opt reiserfs defaults 1 2 /dev/vg01/osmflv /osmf reiserfs defaults 1 2 /dev/vg01/usrlv /usr reiserfs defaults 1 2 /dev/vg01/varlv /var reiserfs defaults 1 2 /dev/sda5 swap pri=42 0 0 /dev/sda6 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 sysfs /sys sysfs noauto 0 0 /dev/dvd /media/dvd subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0 /dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0 none /tmp tmpfs mode=1777,size=500M 0 0 Any help gratefully received Regards Tom - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] ANNOUNCEMENT: Cnagios (Re: Monthly Detail Report)
Some folks have reminded me that I've never mentioned my nifty full-screen terminal interface for Nagios... http://noc.hep.wisc.edu/cnagios.html Cnagios and nagiosr make a pretty good replacement for the web GUI, imnsho. enjoy. steve - - - > Original Message > From: rader > > > I need to generate a report for a given month (the files in the > > archive) that will detail the date, host/service, the start time for > > the outage, and the end time for the outage. The CGI does not seem to > > give me the full detail that I need. How do I go about building this > > report? > > http://noc.hep.wisc.edu/nagiosr.txt > > ? > > sample follows > > steve > - - - > systems & network manager > high energy physics > university of wisconsin > > bash$ nagiosr --begin "Oct 1st" > > Nagios CRITICAL Service Alert Report for Oct 1st through now > > Date & Time Down Date & Time UpDescriptionPlugin > Output Duration > -- > -- > Sun Oct 1 23:43 *still critical* thyme AFS Volumesyench > o 100% 2d18h > Mon Oct 2 07:45 Mon Oct 2 08:05 Fermi Ping 100% packe > t loss19m39s > Mon Oct 2 08:10 Mon Oct 2 13:06 Fermi Ping 100% packe > t loss 4h55m > Mon Oct 2 12:29 Mon Oct 2 13:30 cilantro NSR Tape...available, 348 GB > total 1h00m > Mon Oct 2 13:11 Mon Oct 2 13:20 garlic Load Average snmpget > failed 8m50s > Tue Oct 3 09:23 Tue Oct 3 09:47 ESnet Ping 100% packe > t loss24m14s > Wed Oct 4 00:11 Wed Oct 4 00:31 DESY Peering hop is wiscn > et.net20m08s > Wed Oct 4 02:44 Wed Oct 4 02:54 glowserv01 /space snmpget > failed 9m40s > Wed Oct 4 10:36 Wed Oct 4 10:41 cmsgrid02 Cfengine socket tim > ed out 4m31s > Wed Oct 4 10:36 Wed Oct 4 10:41 cmsgrid02 Grid Gatekeeper socket tim > ed out 4m31s > Wed Oct 4 10:46 Wed Oct 4 12:31 Fermi Ping 100% packe > t loss 1h44m > Wed Oct 4 13:28 Wed Oct 4 13:31 Fermi Ping 80% pk > t loss 3m44s > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share yo > ur > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporti > ng any issue. > ::: Messages without supporting info will risk being sent to /dev/null - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] ANNOUNCEMENT: Cnagios (Re: Monthly Detail Report)
Hi It´s a nice little handy tool , i installed it and it works fine after i changed the path to the nagios.log (instead for status.log) file (nagios ver 2.5) in /cnagios-0.13/config.h Now it works fine for me. Thanks for this little handy Tool Great !! Regards /jörg Mvh Jörg Schulz Senior Konsult Linux/Unix/Novell/Windows/Networking SYSteam Kalmar AB Strömgatan 15 Box 99 S-391 21 Kalmar Direkt 0480-456638 Mobil 0708-157806 E-Post [EMAIL PROTECTED] http://www.systeam.se [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 2006-10-05 13:59 To nagios-users@lists.sourceforge.net cc Subject [Nagios-users] ANNOUNCEMENT: Cnagios (Re: Monthly Detail Report) Some folks have reminded me that I've never mentioned my nifty full-screen terminal interface for Nagios... http://noc.hep.wisc.edu/cnagios.html Cnagios and nagiosr make a pretty good replacement for the web GUI, imnsho. enjoy. steve - - - > Original Message > From: rader > > > I need to generate a report for a given month (the files in the > > archive) that will detail the date, host/service, the start time for > > the outage, and the end time for the outage. The CGI does not seem to > > give me the full detail that I need. How do I go about building this > > report? > > http://noc.hep.wisc.edu/nagiosr.txt > > ? > > sample follows > > steve > - - - > systems & network manager > high energy physics > university of wisconsin > > bash$ nagiosr --begin "Oct 1st" > > Nagios CRITICAL Service Alert Report for Oct 1st through now > > Date & Time Down Date & Time Up Description Plugin > Output Duration > -- > -- > Sun Oct 1 23:43 *still critical* thyme AFS Volumes yench > o 100% 2d18h > Mon Oct 2 07:45 Mon Oct 2 08:05 Fermi Ping 100% packe > t loss 19m39s > Mon Oct 2 08:10 Mon Oct 2 13:06 Fermi Ping 100% packe > t loss 4h55m > Mon Oct 2 12:29 Mon Oct 2 13:30 cilantro NSR Tape...available, 348 GB > total 1h00m > Mon Oct 2 13:11 Mon Oct 2 13:20 garlic Load Average snmpget > failed 8m50s > Tue Oct 3 09:23 Tue Oct 3 09:47 ESnet Ping 100% packe > t loss 24m14s > Wed Oct 4 00:11 Wed Oct 4 00:31 DESY Peering hop is wiscn > et.net 20m08s > Wed Oct 4 02:44 Wed Oct 4 02:54 glowserv01 /space snmpget > failed 9m40s > Wed Oct 4 10:36 Wed Oct 4 10:41 cmsgrid02 Cfengine socket tim > ed out 4m31s > Wed Oct 4 10:36 Wed Oct 4 10:41 cmsgrid02 Grid Gatekeeper socket tim > ed out 4m31s > Wed Oct 4 10:46 Wed Oct 4 12:31 Fermi Ping 100% packe > t loss 1h44m > Wed Oct 4 13:28 Wed Oct 4 13:31 Fermi Ping 80% pk > t loss 3m44s > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share yo > ur > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporti > ng any issue. > ::: Messages without supporting info will risk being sent to /dev/null - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Me
[Nagios-users] SMS notifications to a cell phone
Hi All, I am in the process of setting up nagios for monitoring key services in our network setup. I have already tested and used the email method of sending notifications using Sendmail as my relay host. I would be grateful if I get some pointers for sending notifications using SMS to a cell number, in case of service failures and recoveries. I went through the nagios docs. They have mentioned quite a few options for using SMS as a notification method. But it seems that one needs to subscribe to the services of a service provider to use any of those options. And the service provider should be providing services in your country/location. Is it possible to use this notification without subscribing to any specific paid service ? I am extremely sorry if this question has already been answered before. Thanks In Advance Yogesh - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notifications to a cell phone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yogesh Hasabnis wrote: > > Is it possible to use this notification without subscribing to any > specific paid service ? > > In my shop we just treat cell phone notifications the same as email notification. For instance, Verizon Wireless customers who have text messaging can receive pages by sending an email to [EMAIL PROTECTED] where ## is the telephone number of the cell phone you are sending email to. I also have a "front end" (middle end?) script for cell phones that chops a notification up into chunks that don't overflow the cell phone's text size limit and sends them out as multiple pages. - -- Peter L. Berghold [EMAIL PROTECTED] "Those who fail to learn from history are condemned to repeat it." AIM: redcowdawgYahoo IM: blue_cowdawg ICQ: 11455958 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org iD8DBQFFJRUyUM9/01RIhaARAnv4AKC7TJPEvReUD5Wm4S6pU5Aj1pSXGgCgvFP5 Qfu1Giv4YCBpcMndjoQvcGI= =57m0 -END PGP SIGNATURE- begin:vcard fn:Peter L. Berghold n:Berghold;Peter org:IBM;GSD email;internet:[EMAIL PROTECTED] title:Unix Specialist tel;work:(732) 918-1487 tel;fax:(732) 982-1632 x-mozilla-html:FALSE url:http://www.berghold.net version:2.1 end:vcard - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notifications to a cell phone
On 5 Oct, 2006, at 15:52, Yogesh Hasabnis wrote: > Is it possible to use this notification without subscribing to any > specific paid service ? I've seen a few options IRL: * attach a cellphone to your server and install SMS sending software * subscribe to an email-to-SMS gateway * subscribe to another SMS provider * ??? Cheers! - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notifications to a cell phone
> I am in the process of setting up nagios for monitoring key services in > our network setup. I have already tested and used the email method of > sending notifications using Sendmail as my relay host. I would be > grateful if I get some pointers for sending notifications using SMS to a > cell number, in case of service failures and recoveries. I went through > the nagios docs. They have mentioned quite a few options for using SMS > as a notification method. But it seems that one needs to subscribe to > the services of a service provider to use any of those options. And the > service provider should be providing services in your country/location. > Is it possible to use this notification without subscribing to any > specific paid service ? we send pages (no sms) using a modem on the nagios box and then this routes to the pager supplier - Relying on email or email-to-sms gateway is dangerous as what happens if all connectivity fails - your alerts do not get through. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notifications to a cell phone
On 10/5/06, Tom Brown <[EMAIL PROTECTED]> wrote: > > > we send pages (no sms) using a modem on the nagios box and then this > routes to the pager supplier - Relying on email or email-to-sms gateway > is dangerous as what happens if all connectivity fails - your alerts do > not get through. > I agree mostly, but I'd like to send SMS messages via a directly connected modem or wireless phone. On that subject, anyone have information on installing a blackberry on a linux box for this purpose? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notifications to a cell phone
well, you could just use gnokii or something like that and have a mobile phone connected directly to the nagios server, although I haven't tried this myself. it does mean that there is a completely separate route for gettng alerts. -h Hari Sekhon Tom Brown wrote: I am in the process of setting up nagios for monitoring key services in our network setup. I have already tested and used the email method of sending notifications using Sendmail as my relay host. I would be grateful if I get some pointers for sending notifications using SMS to a cell number, in case of service failures and recoveries. I went through the nagios docs. They have mentioned quite a few options for using SMS as a notification method. But it seems that one needs to subscribe to the services of a service provider to use any of those options. And the service provider should be providing services in your country/location. Is it possible to use this notification without subscribing to any specific paid service ? we send pages (no sms) using a modem on the nagios box and then this routes to the pager supplier - Relying on email or email-to-sms gateway is dangerous as what happens if all connectivity fails - your alerts do not get through. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Delay hostchecks?
On 10/4/06, Fredrik Vöcks <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > Is it possible to delay hostchecks until after you've done all retries > stated in the service defintion? If for example a service check fails once > Nagios will immediately start doing hostchecks. This is not very good > because a short reboot/power failure/ etc will make Nagios send alarms about > host being down. Especially bad is this during weekend when people are hired > to monitor and get these kind of alarms in the middle of the night. > > The behaviour in Nagios is; > > Service check fails 09:00 -> host check 09:00 -> Send Alarm > > I want to have a 15 minute period before Nagios starts doing hostchecks, > like this; > > Service check fails 09:00 -> wait 1 min -> Service check fails 09:01 -> > repeat 13 times -> host check 09:15 -> Send Alarm > > > Im using Nagios 2.4. > > Regards, > Anders > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > If you are able to search through the archives, I posted a workaround which works similar to what you want. Basically, you pass the notification number in the notification command and have the notification command call a script. This script checks the notification number and if it is 1 then exit, if it is 2 or higher then send an email/page/etc. This is oversimplifying it, but you should get the idea. Mike - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notifications to a cell phone
I use 'qpage', which drives a direct attach modem, through a dedicated analog line. Most cell phone providers, including Verizon, support using the TAP protocol to send messages to mobile phones as text messages. http://www.qpage.org/ https://www.vtext.com/customer_site/jsp/aboutservice.jsp Peter L. Berghold wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yogesh Hasabnis wrote: Is it possible to use this notification without subscribing to any specific paid service ? In my shop we just treat cell phone notifications the same as email notification. For instance, Verizon Wireless customers who have text messaging can receive pages by sending an email to [EMAIL PROTECTED] where ## is the telephone number of the cell phone you are sending email to. I also have a "front end" (middle end?) script for cell phones that chops a notification up into chunks that don't overflow the cell phone's text size limit and sends them out as multiple pages. - -- Peter L. Berghold [EMAIL PROTECTED] "Those who fail to learn from history are condemned to repeat it." AIM: redcowdawgYahoo IM: blue_cowdawg ICQ: 11455958 -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org iD8DBQFFJRUyUM9/01RIhaARAnv4AKC7TJPEvReUD5Wm4S6pU5Aj1pSXGgCgvFP5 Qfu1Giv4YCBpcMndjoQvcGI= =57m0 -END PGP SIGNATURE- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null begin:vcard fn:Matthew Stier n:Stier;Matthew org:Fujitsu Network Communications;CAE adr:Sixth Floor;;Two Blue Hill Plaza;Pearl River;NY;10965;USA email;internet:[EMAIL PROTECTED] title:Principal Engineer tel;work:845-731-2097 tel;fax:845-731-2011 tel;cell:845-893-0575 x-mozilla-html:TRUE version:2.1 end:vcard - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] a new check_bgp plugin
I enhanced the check_bgp.pl plugin provided by Indiana University (see the "IU Nagios Plugins" project at SourceForge). The old check_bgp.pl plugin checks that BGP sessions on a router are up. The attached check_bgp_new.pl plugin does the same thing, and is upward-compatible with the old check_bgp.pl. The new plugin has a new optional feature that works only on Juniper routers. For each BGP session on a Juniper router, the new plugin can check that the number of active or received prefixes falls between given minimum and maximum values.We use check_bgp_new at our site to make Nagios notify us when our routing with the outside world gets "funny", like when one ISP suddenly becomes less preferred than another. -- Pete#!/usr/bin/perl -w # # This Nagios plugin checks BGP sessions on a router. It checks that # the BGP sessions in a given list are in "established" state, and on # Juniper routers it can check that the number of prefixes learned # from each BGP neighbor falls within a given range. # # This is a rewrite of the Nagios plugin named check_bgp.pl, available # at SourceForge under the project named "IU Nagios Plugins". That # plugin checks that BGP sessions are in "established" state. This # plugin does the same, but allows passing in an optional set of # threshold values with each BGP neighbor. When the optional # thresholds are supplied on the command line, this plugin checks the # number of prefixes learned via each BGP session against the # thresholds. # # TODO: # Make it check prefixes on Cisco as well as Juniper routers. # # HISTORY: # version 2.0, 2006-08-09, named check_bgp_new.pl # Pete Siemsen, [EMAIL PROTECTED] # version 1.0, 2005-10-11, named check_bgp.pl # see SourceForge project "IU Nagios Plugins" use strict; use Getopt::Std; use Net::SNMP qw(:snmp); #use Data::Dumper; # debugging use vars qw/ %opt /; my $lastScriptModification = '2006-08-09'; # Standard Nagios plug-in return codes. my $NAGIOS_OK = 0; # success my $NAGIOS_WARNING = 1; # something is a little bit wrong my $NAGIOS_CRITICAL = 2; # something is very wrong my $NAGIOS_UNKNOWN = 3; # bad command-line arguments #= # Do SNMP with the router and set %NeighborStatusTable. sub GetNeighborStatusTable($$$) { my $RouterName = shift; my $community = shift; my $NeighborStatusTableRef = shift; # Open an SNMPv2 session with the router my ($Session, $Error) = Net::SNMP->session( -version => 'snmpv2c', -timeout => 2, -hostname => $RouterName, -community => $community ); return $Error if !defined($Session); my $BaseOid = '1.3.6.1.2.1.15.3.1.2'; my $Result = $Session->get_table($BaseOid); if (!defined($Result)) { $Session->close; return $Session->error(); } foreach (keys %$Result) { my $newkey = $_; $newkey =~ s/^$BaseOid\.//; $$NeighborStatusTableRef{$newkey} = $$Result{$_}; } return 'success'; } #= # Do SNMP with the router and set %NeighborReceivedPrefixTable. sub GetNeighborPrefixCounts() { my $RouterName = shift; my $community = shift; my $GetActiveCounts = shift; my $NeighborPrefixCountsRef = shift; # Open an SNMPv2 session with the router my ($Session, $Error) = Net::SNMP->session( -version => 'snmpv2c', -timeout => 2, -hostname => $RouterName, -community => $community ); return $Error if !defined($Session); # .iso.org.dod.internet.private.enterprises.juniperMIB. # jnxExperiment.jnkBGPM2Experiment.jnxBgpM2.jnxBgpM2Peer. # jnxBgpM2PeerData.jnxBgpM2PeerTable.jnxBgpM2PeerEntry. # jnxBgpMpPeerIndex my $jnxBgpMpPeerIndexOid = '1.3.6.1.4.1.2636.5.1.1.2.1.1.1.14'; my $SnmpPeerIndices = $Session->get_table($jnxBgpMpPeerIndexOid); if (!defined($SnmpPeerIndices)) { $Session->close; return $Session->error(); } # print Dumper $SnmpPeerIndices; my %PeerIndexToIp; foreach my $ReturnedOid (keys %$SnmpPeerIndices) { my $LocalOid = $ReturnedOid; $LocalOid =~ s/^$jnxBgpMpPeerIndexOid\.//; # remove the baseoid from the left next if $LocalOid !~ /^0\.1\./; # skip any non-ipv4 entries $LocalOid =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$)/; # get the IP address from the right $PeerIndexToIp{$$SnmpPeerIndices{$ReturnedOid}} = $1; } # print Dumper \%PeerIndexToIp; my $BaseOid; if ($GetActiveCounts) { # .iso.org.dod.internet.private.enterprises.juniperMIB. # jnxExperiment.jnkBGPM2Experiment.jnxBgpM2.jnxBgpM2Peer. # jnxBgpM2PeerCounters.jnxBgpM2PrefixCountersTable. # jnxBgpM2PrefixCountersEntry.jnxBgpM2PrefixInPrefixesAccepted $BaseOid = '1.3.6.1.4.1.2636.5.1.1.2.6.2.1.8'; } else { # .iso.org.dod.internet.private.enterprises.juniperMIB. # jnxExperiment.jnkBGPM2Experiment.jnxBgpM2.jnxBgpM2Peer. # jnxBgpM2PeerCounters.jnxB
Re: [Nagios-users] SMS notifications to a cell phone
http://smstools.meinemullemaus.de/ Yogesh Hasabnis wrote: > Hi All, > > I am in the process of setting up nagios for monitoring key services in our > network setup. I have already tested and used the email method of sending > notifications using Sendmail as my relay host. I would be grateful if I get > some pointers for sending notifications using SMS to a cell number, in case > of service failures and recoveries. I went through the nagios docs. They > have mentioned quite a few options for using SMS as a notification method. > But it seems that one needs to subscribe to the services of a service > provider to use any of those options. And the service provider should be > providing services in your country/location. Is it possible to use this > notification without subscribing to any specific paid service ? > > I am extremely sorry if this question has already been answered before. > > Thanks In Advance > > Yogesh > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- --- The call came for light, and there was light. Then came the darkness, known as night. Man was created free from all sin. And then it came... the happening! Welcome to your Death! --- Ing. Andrea Gabellini Email: [EMAIL PROTECTED] Tel: 0549 886111 (Italy) Tel. +378 0549 886111 (International) Telecom Italia San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Repubblic of San Marino http://www.omniway.sm http://www.telecomitalia.sm - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Kyle Niederhauser is out of the office.
I will be out of the office starting 10/05/2006 and will not return until 10/11/2006. I will be out of the office until October 11th If you need assistance, please call the BP Operations Center at 1-877-471-6079 and ask for BP UNIX support. Clarify queue. IBM: UNIX HOSTS - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notifications to a cell phone
+++ Andrea Gabellini [Thu, Oct 05, 2006 at 06:27:34PM CEST]: > > > I am in the process of setting up nagios for monitoring key services in our > > network setup. I have already tested and used the email method of sending > > notifications using Sendmail as my relay host. I would be grateful if I get > > some pointers for sending notifications using SMS to a cell number, in case > > of service failures and recoveries. I went through the nagios docs. They > > have mentioned quite a few options for using SMS as a notification method. > > But it seems that one needs to subscribe to the services of a service > > provider to use any of those options. And the service provider should be > > providing services in your country/location. Is it possible to use this > > notification without subscribing to any specific paid service ? > > > > I am extremely sorry if this question has already been answered before. We are using yaps to send sms notifications via ISDN to cell phones. Regards Frank -- There's never time to do it right, but there's always time to do it over. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Failover configuration - "no output"
Let me start off saying that I am sorry this is so long but I wanted to include all of the necessary information: OK. I am going absolutley crazy at this point. I am getting "no output" as a result of the following configuration for Nagios “failover” as defined in the manual. The following is a file I have created called failover.cfg Host Group Listing define hostgroup{ hostgroup_name Nagios_Master alias Nagios-Master contact_groups Emails_to_GNPC_Staff members Nagios-Master } ### Host Denfinition Listing # # Generic host definition template define host{ name generic-host10 ; The name of this host template - referenced in other host definitions, used for template recursion/resolution check_command check-nagios max_check_attempts 10 notification_interval 10 notification_period 24x7 notification_options d,r 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! } define host{ use generic-host10 ; Name of host template to use host_name Nagios-Master alias Nagios Master address 10.130.4.80 } ### Service Denfinition Listing # # Generic service definition template define service{ name generic-service10 ; The 'name' of this service template, referenced in other service definitions service_description NAGIOS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups Emails_to_GNPC_Staff notification_interval 15 notification_period 24x7 notification_options c,r check_command check_nagios 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! } define service{ use generic-service10 host_name Nagios-Master service_description HOST check_command handle-master-host-event normal_check_interval 5 notification_interval 5 } define service{ use generic-service10 host_name Nagios-Master service_description PROCESS check_command handle-master-proc-event normal_check_interval 5 notification_interval 5 } HERE is the command definitions defined in checkcommands.cfg define command{ command_name handle-master-host-event command_line /usr/lib/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-host-event $HOSTSTATE$ $STATETYPE$ } define command{ command_name handle-master-proc-event command_line /usr/lib/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-proc-event $SERVICESTATE$ $STATETYP E$ } In the nagios.log I have the following: [1159979791] HOST NOTIFICATION: emailuser;Nagios-Master;DOWN;host-notify-by-email;check_nagios: Unknown argument - (null) Here is what I get from the GUI for the service identified above: Nagios-Master HOST OK 10-04-2006 12:39:54 1d 22h 5m 17s 1/3 (No output!) PROCESS CRITICAL 10-04-2006 12:41:26 1d 22h 8m 41s 1/3 (No output!) hope that this helps someone point me in the right direction. This the dir and file contents for handle-master-host-event /usr/lib/nagios/plugins/eventhandlers/redundancy-scenario1/handle-master-host-event #!/bin/sh # REDUNDANCY EVENT HANDLER SCRIPT # Written By: Ethan Galstad ([EMAIL PROTECTED]) # Last Modified: 02-18-2002 # # This is an example script for implementing redundancy. # Read the HTML documentation on redundant monitoring for more # information on what this does. # Location of the echo and mail commands echocmd="/bin/echo" mailcmd="/bin/mail" # Location of the event handlers eventhandlerdir="/usr/lib/nagios/plugins/eventhandlers" # Only take action on hard host states... case "$2" in HARD) case "$1" in DOWN) # The master host has gone down! # We should now become the master host and take # over the responsibilities of monitori
Re: [Nagios-users] Ubuntu Server + Nagios 2.5
When you deploy Debian Sarge with Nagios 2.5, do you build it in the 'Debain way' ? That is, does your 2.5 use the same folder location and config location as earlier Nagios version ? Matthew Joyce 02 9382 0051 | 0412 309745 | IT Manager | Children's Cancer Institute Australia for Medical Research > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Thibault Genessay > Sent: Wednesday, 4 October 2006 5:13 PM > To: Nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Ubuntu Server + Nagios 2.5 > > Hi > > Matthew Joyce wrote: > > > > I use Nagios 1.3 (mysql) on Debian Sarge, and I thought I would try > > Ubuntu Server 6.03. > > > > I'd rather hoped Ubuntu would have a Nagios v2.5 package but it > > doesn't, still 1.3. > > Debian is a cool distro but packages are sometimes very old ... > > > > Does anyone have instructions to installed v2.5 on either > Debian Sarge > > or Ubuntu Server ? > > From source is the way to go ! > Our production servers use Debian Sarge with 2.5; we deploy > Nagios manually. But unless your setup is huge this is not > too complicated. > Anyway you will have to work quite a lot to upgrade your > configuration from 1.x to 2.x, so compiling & installing > Nagios will be almost an insignificant task. Use the doc at > http://nagios.sourceforge.net/docs/2_0/toc.html, section 'installing'. > > Regards > > -- > Thibault GENESSAY > ALIADIS > www.aliadis.fr > Tel. +33 4 72 13 90 40 > Fax +33 4 74 22 00 09 > > -- > --- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to > share your opinions on IT & business topics through brief > surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null