Re: [Nagios-users] Custom Cfg files?
You should look in the manual for the configuration variable "cfg_file": http://nagios.sourceforge.net/docs/3_0/configmain.html Mathieu Shoaibi wrote: > What if i create my config files and want to use them instead of the > default files? > > Like suppose: > Default files are: > contact.cfg > template.cfg > commands.cfg > localhost.cfg > > and i want to create files like: > test_contact.cfg > test_template.cfg > test_commands.cfg > test_localhost.cfg > > and want to use these, even if those files exist? > Or should i change data in those files? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] HOWTO for nagiosgrapher
Stephan, --On 25. Juni 2008 14:24:57 -0400 Stephen Valdinger <[EMAIL PROTECTED]> wrote: > Does anyone have notes on how to get nagiosgrapher up and running on an > ubuntu installation? I've downloaded the stuff, but there is no configure > scripts or anything, and the documentation just plain well sucks. Any > help or pointers would be wonderful. Google yielded a few very vague and > unhelpful results on the matter. I'm running ubuntu 7.10 and nagios 2.10 > with NDO installed and NagVis. Have you tried the Debian configure script? According to my experience you have to call two distri specific parameters (--with-layout=DISTRI --with...=DISTRI), but I do not remember the second at the moment. Dirk -- Dirk H. Schulz IT Systems Service Wiesenweg 12, 85567 Grafing Tel. 0 80 92/86 25 68 Fax. 0 80 92/86 25 72 -- Technik vom Feinsten - und das nötige Tuning - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] disable event handlers during scheduled downtime
Hi, I set up Nagios with event handlers to restart an application in case it fails, when I have to do a maintenance of it, I schedule downtime, but when I start working on the maintenance, Nagios restarts it and does not let me work, so, what I'm doing now, is stopping Nagios, but I know that it is not the best solution. I can disable the event handler every time that I have maintenace window, but I have around 100 services on it and to disable one by one takes forever. Someone knows if there is any other possibility to do disable event handlers during schedule downtime? Thanks, Charly ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] notify_with_sms
Before you read further, please have a look at the following pages if you havent seen them already... http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1855.html;d=1 http://cristian.livadaru.net/2006/04/27/nagios-with-sms-notification/ My question is, what are the correct "define command"s for the service and host if i use this pluggin? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Custom Cfg files?
What if i create my config files and want to use them instead of the default files? Like suppose: Default files are: contact.cfg template.cfg commands.cfg localhost.cfg and i want to create files like: test_contact.cfg test_template.cfg test_commands.cfg test_localhost.cfg and want to use these, even if those files exist? Or should i change data in those files? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Forcing a check on a Desginated Slave from cmd.cgi?
On Tue, 24 Jun 2008, Marcel wrote: > have you looked at DNX? I think it's the way to solve your problem. > I talked to the DNX people about some contract work to develop a slave-specific meta-data structure -- none exists -- DNX's decision making is based on "load distribution" metrics. As for determining which slave to exec a check on using cmd.cgi hack, at least for our config, you you could use regexp match against the service/host "hostname" or "notes" fields to make the decision. The offer is still on the table for anyone who wants to tackle it. ~BAS > On Tue, Jun 24, 2008 at 2:06 PM, Brian A. Seklecki < > [EMAIL PROTECTED]> wrote: > >> All: >> >> >> In the el-generic Master w/NSCA distributed configuration, has anyone >> developed a hack to have cmd.cgi pass a SCHEDULE_FORCED_HOST_CHECK or >> SCHEDULE_FORCED_SVC_CHECK received by the master instance, onto a >> designated slave? >> >> We have a config where our slaves are in remote facilities and the >> master can only rely on passive checks -- attempting to force an active >> check on the master is a no-go due to network ACLs and other >> limitations. >> >> It would be nice to only need one web interface on the master NSCA >> receiver. >> >> The problem is two-fold (and this gets into the whole inter-component >> architecture discussion) -- >> >> 1) Even with a cmd.cgi hack, there is no native meta-data within Nagios >> to associate a host/service with a designated slave. >> >> 2) There is no clean communications channel other than a shell script >> wrapper (ssh and keys, etc. that stdout's to the slave's nagios.cmd >> -- this could get ugly...fast) >> >> ~BAS >> >> >> - >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> ___ >> Nagios-users mailing list >> Nagios-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ "Guilty? Yeah. But he knows it. I mean, you're guilty. You just don't know it. So who's really in jail?" ~Maynard James Keenan - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NSCA not receiving or send_nsca not se nding
> Thanks guys! That would explain why the messages are not being received > from the Windows machine as the time is, in fact, later than the time on > the server. However, it does not make sense to me that it starts working > when I reboot the Windows machine or in the case of the Linux machine I > restart the nsca daemon. > > At any rate, I will give it a go. > > Regards, > > Jim Mohr In any case, the logs at Nagios server that i mentioned earlier should give u info on the source of the problem. If u dont receive logs at all, then most probably the client is unable to connect to the nsca daemon - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [Fwd: Bug Reporting / Issue Tracking System ?]
On Jun 25, 2008, at 3:14 PM, Jay R. Ashworth wrote: >> Oh, I'm all for ticketing systems... as long as they aren't giving > people the impression that work is likely to be done which will not in > fact ever be done. Have you looked at The Original Bugzilla > lately? ;-) Has anyone bothered to ask Ethan why he has chosen not to use the SF bugtracker? It had to have been a conscious decision so unless those reasons have changed, I would expect that those same reasons would apply here. If one of those reasons is that it's a pain to manage and he doesn't have the time/inclination, then it may work out well. A community supported bugtracker is all well and good but unless there is developer participation it's only marginally valuable. For the most part that developer is Ethan (not to minimize *any* of the significant work by other people, it's just that he's the main developer and gatekeeper for all patches). -- Marc p.s. IMHE, there are not a lot of bugs related to nagios-stable and any real, verified bugs get fixed relatively quickly. Could be my rose- colored glasses though. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [Fwd: Bug Reporting / Issue Tracking System ?]
On Wed, 2008-06-25 at 16:14 -0400, Jay R. Ashworth wrote: > admit I'm not familiar with their ticket universe, so I retract the > judgement. And I would concede that there are certain scenarios where it can be especially tricky, in terms of conflict of interest, for example when an F/OSS project is released by a commercial entity marketing a service/product (who may maintain an internal CMS system). I'm not implying that that's the case with Nagios, but that was certainly perfectly valid concern with syslog-ng and public ticket (much less actually getting public access to SVN/CVS outside of tarballs) Anyway, this conversation is healthy and productive. ~BAS - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_nrpe missing
check_nrpe does not come with the nagios-plugins. Download the nrpe source tarball. On 6/25/08, Natxo Asenjo <[EMAIL PROTECTED]> wrote: > hi, > > I followed the instructions on the guide to install nagios 3.03 and > the nagios-plugins-1.4.12. The operating system is debian stable, but > as I say, the nagios installation is manual from the official nagios > sources. > > I do > # tar xzf nagios-plugins-1.4.12.tar.gz > # cd nagios-plugins-1.4.12 > > Compile and install the plugins. > > # ./configure --with-nagios-user=nagios --with-nagios-group=nagios > # make > # make install > > and when I cd to /usr/local/nagios/libexec I have a lot of plugins, > but no check_nrpe. What am I doing wrong? > -- > Groeten, > J.Asenjo > > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] check_nrpe missing
hi, I followed the instructions on the guide to install nagios 3.03 and the nagios-plugins-1.4.12. The operating system is debian stable, but as I say, the nagios installation is manual from the official nagios sources. I do # tar xzf nagios-plugins-1.4.12.tar.gz # cd nagios-plugins-1.4.12 Compile and install the plugins. # ./configure --with-nagios-user=nagios --with-nagios-group=nagios # make # make install and when I cd to /usr/local/nagios/libexec I have a lot of plugins, but no check_nrpe. What am I doing wrong? -- Groeten, J.Asenjo - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [Fwd: Bug Reporting / Issue Tracking System ?]
On Wed, Jun 25, 2008 at 04:11:10PM -0400, Brian A. Seklecki wrote: > > Yes, precisely my point. If no developers are closing tickets, having > > a tracking system is somewhat beside the point. > > My opinion is that Net-SNMP actually doing a suburb job. > > Good enough that vendors are shipping it embedded (a la OpenSSH into > Cisco and HFUX) > > Moreover, even if tickets cannot be immediately solved/closed, they > should still be documented to eliminate unnecessary duplication of > reporting / coding / testing efforts. > > Having a 15% open bug ticket rate does in no way reflect poorly upon a > project. Well, you can look at that both ways: having almost 300 tickets open and only 7 people working on them is a pretty steep hill... but I'll admit I'm not familiar with their ticket universe, so I retract the judgement. > All of that is abstracted from the actuality of developers writing / > testing / documenting code -- the code will be written regardless -- but > 1) the chances of 3rd parties contributing patches back in and 2) the > R&D overhead of the development process, which the ticketing system only > serve to simplify. Oh, I'm all for ticketing systems... as long as they aren't giving people the impression that work is likely to be done which will not in fact ever be done. Have you looked at The Original Bugzilla lately? ;-) Cheers, -- jra -- Jay R. Ashworth Baylink [EMAIL PROTECTED] Designer The Things I Think RFC 2100 Ashworth & Associates http://baylink.pitas.com '87 e24 St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274 Those who cast the vote decide nothing. Those who count the vote decide everything. -- (Joseph Stalin) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [Fwd: Bug Reporting / Issue Tracking System ?]
> Yes, precisely my point. If no developers are closing tickets, having > a tracking system is somewhat beside the point. My opinion is that Net-SNMP actually doing a suburb job. Good enough that vendors are shipping it embedded (a la OpenSSH into Cisco and HFUX) Moreover, even if tickets cannot be immediately solved/closed, they should still be documented to eliminate unnecessary duplication of reporting / coding / testing efforts. Having a 15% open bug ticket rate does in no way reflect poorly upon a project. Conversely, having a 60% NFR ticket rate reflects favorably upon a project -- representing tangible interest in future development efforts and illustrating the need for additional developer human resources. All of that is abstracted from the actuality of developers writing / testing / documenting code -- the code will be written regardless -- but 1) the chances of 3rd parties contributing patches back in and 2) the R&D overhead of the development process, which the ticketing system only serve to simplify. ~BAS > Cheers, > -- jra - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [Fwd: Bug Reporting / Issue Tracking System ?]
On Wed, Jun 25, 2008 at 03:38:03PM -0400, Brian A. Seklecki wrote: > On Wed, 2008-06-25 at 14:14 -0400, Jay R. Ashworth wrote: > > And if other people work the tickets. > > I'll volunteer to have my team manage tickets and generate reports. > > Its just a reality of work-flow management in F/OSS projects. > > Consider at Net-SNMP, one of the most active projects on sf.net (*), > tracker stats -- only 7 active developers and: > > Bugs ( 294 open / 1960 total ) > Feature Requests ( 95 open / 160 total ) > Official Patches ( 11 open / 46 total ) > Patches ( 37 open / 915 total ) Yes, precisely my point. If no developers are closing tickets, having a tracking system is somewhat beside the point. Cheers, -- jra -- Jay R. Ashworth Baylink [EMAIL PROTECTED] Designer The Things I Think RFC 2100 Ashworth & Associates http://baylink.pitas.com '87 e24 St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274 Those who cast the vote decide nothing. Those who count the vote decide everything. -- (Joseph Stalin) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [Fwd: Bug Reporting / Issue Tracking System ?]
On Wed, 2008-06-25 at 14:14 -0400, Jay R. Ashworth wrote: > And if other people work the tickets. I'll volunteer to have my team manage tickets and generate reports. Its just a reality of work-flow management in F/OSS projects. Consider at Net-SNMP, one of the most active projects on sf.net (*), tracker stats -- only 7 active developers and: Bugs ( 294 open / 1960 total ) Feature Requests ( 95 open / 160 total ) Official Patches ( 11 open / 46 total ) Patches ( 37 open / 915 total ) ~BAS * http://www.net-snmp.org/about/history.html - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] HOWTO for nagiosgrapher
Does anyone have notes on how to get nagiosgrapher up and running on an ubuntu installation? I've downloaded the stuff, but there is no configure scripts or anything, and the documentation just plain well sucks. Any help or pointers would be wonderful. Google yielded a few very vague and unhelpful results on the matter. I'm running ubuntu 7.10 and nagios 2.10 with NDO installed and NagVis. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Check_mrtgtraf
WHAT I DON´T UNDERSTAND IS THAT WHEN I USE: ./check_mrtgtraf -F /var/www/mrtg/memswap.log -a MAX I GET THIS ANSWER: Traffic CRITICAL - Max. In = 217.0 B/s, Max. Out = 0.0 B/s|in=217.00B/s;;;0.00 in=0.00B/s;;;0.00 SO, HOW DO I TRANSLATE THIS TO THE CORRECT SYNTAX IN CHECK_MRTGTRAF! ... About Pre-flight check (/usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg) THAT´S WHAT I GOT: Nagios 3.0.2 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 05-19-2008 License: GPL Reading configuration data... Warning: Duplicate definition found for service 'cmbbkp01' on host 'Memory Usage' (config file '/usr/local/nagios/etc/objects/windows.cfg', starting on line 161) Running pre-flight check on configuration data... Checking services... Checked 46 services. Checking hosts... Checked 13 hosts. Checking host groups... Checked 7 host groups. Checking service groups... Checked 0 service groups. Checking contacts... Checked 2 contacts. Checking contact groups... Checked 2 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 25 commands. Checking time periods... Checked 5 time periods. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check cmbmonitor01:/usr/local/nagios/etc/objects # service nagios start Starting nagios: done. Hello, you can test your nagios configs if you try: (you have to set correct path to nagios and the config) /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg Perhaps you can post the output. You can find the plugin in you nagios libexec Folder. The service definition is ok, because the command definition looks like that: # 'check_local_mrtgtraf' command definition define command{ command_name check_local_mrtgtraf command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$ } How do you try to connect to the remote machine? If you try to connect via ssh, you need the plugin on the remote machine, too. Steffen Gentlemen. I´ve been fighting with Nagios 3.0.2 on OpenSuse 10.3 while trying to integrate MRTG and Nagios. I have followed the sample in Nagios docs which guides us to: define service{ use generic-service host_name linksys-srw224p service_description Port 1 Bandwidth Usage check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!100,200!500,500!10 } But first of all this plugin check_local_mrtgtraf! is not found, but check_mrtgtraf and every time I try to adapt the sample with my path/mylog or changing check_local_mrtgtraf to check_mrtgtraf! I don´t get any success. Besides I can´t even start Nagios and get this Msg: Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [Fwd: Bug Reporting / Issue Tracking System ?]
On Tue, Jun 24, 2008 at 12:49:15PM -0400, Brian A. Seklecki wrote: > "given enough eyeballs, all bugs are shallow" -- Eric S. Raymond > -- But only if someone writes them down :) And if other people work the tickets. Is *that* part figured out yet? :-) Cheers, -- jra -- Jay R. Ashworth Baylink [EMAIL PROTECTED] Designer The Things I Think RFC 2100 Ashworth & Associates http://baylink.pitas.com '87 e24 St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274 Those who cast the vote decide nothing. Those who count the vote decide everything. -- (Joseph Stalin) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem scheduling downtime externally
On Jun 25, 2008, at 12:32 PM, Tony Rice (trice) wrote: > Perl script looks like this: > > open (FILE, ">$cmd_file"); > print "[$epoch_now] > SCHEDULE_HOST_DOWNTIME;$host;$epoch_start;$epoch_stop;0;0;$duration; > $use > rid;$comment\n"; > close (FILE); > > Nothing in the log indicating that this command is making it anywhere. > Nothing in the log relevant either. I use the following quite successfully if you don't mind making a system call -- $cmdline="[$datetime] DEL_SVC_COMMENT;$comment\n"; $action = localtime($datetime) ." - $ticket - host: $host - service: $service - state: $state - ticket: $status - Deleted Comment\n"; # append the command to the end of the command file system("$echocmd \"$cmdline\" >> $CommandFile"); system("$echocmd \"$action\" >> $LogFile"); -- Marc - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem scheduling downtime externally
You can't open nagios.cmd in append mode, otherwise it will cause a seek. You should use the function nagios_cmd declared in Nagios::Cmd: http://search.cpan.org/src/TOBEYA/Nagios-Cmd-0.05/lib/Nagios/Cmd.pm It's working fine for me. -- Mathieu - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem scheduling downtime externally
Sorry, typo in my cutting and pasted to the email. The FILE file handle is there. -Tony > -Original Message- > From: Aaron M. Segura [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 1:37 PM > To: Tony Rice (trice) > Cc: nagios-users@lists.sourceforge.net > Subject: RE: [Nagios-users] Problem scheduling downtime externally > > Maybe i'm not familiar enough with perl (I'm not, really), > but it appears to me that you are not writing anything to the > file since your 'print' statement is missing the file handle > argument... > > maybe try > > print FILE "..." > > ?? > > On Wed, 2008-06-25 at 13:32 -0400, Tony Rice (trice) wrote: > > Perl script looks like this: > > > > open (FILE, ">$cmd_file"); > > print "[$epoch_now] > > > SCHEDULE_HOST_DOWNTIME;$host;$epoch_start;$epoch_stop;0;0;$duration;$u > > se > > rid;$comment\n"; > > close (FILE); > > > > Nothing in the log indicating that this command is making > it anywhere. > > Nothing in the log relevant either. > > > > -Tony > > > > > -Original Message- > > > From: Aaron M. Segura [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, June 25, 2008 11:25 AM > > > To: Tony Rice (trice) > > > Cc: nagios-users@lists.sourceforge.net > > > Subject: Re: [Nagios-users] Problem scheduling downtime externally > > > > > > Please be more specific. How, exactly, are you trying to > write to > > > the pipe? Please include some examples. > > > > > > Do you look in the nagios log after that to see if it > picked up any > > > commands? Are there any relevant log entries that might help? > > > > > > On Wed, 2008-06-25 at 11:09 -0400, Tony Rice (trice) wrote: > > > > I'm trying to interface a database of upcoming downtimes to > > > Nagios via > > > > the SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME > external command. > > > > However, writing to the nagios.cmd file just sits there > and never > > > > returns. I'm wondering if it's a problem with the way the > > > named pipe > > > > is setup. My nagios.cmd file looks like this: > > > > > > > > % ls -la var/rw/nagios.cmd > > > > prw-rw-rw- 1 nagios nagios 0 Jun 25 08:03 > > > > var/rw/nagios.cmd > > > > > > > > I've tried writing to this file from perl and a borne > shell script > > > > with similar results. An advice? > > > > > > > > > > > > > > > -- > > > > --- Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for just about > > > > anything Open Source. > > > > http://sourceforge.net/services/buy/index.php > > > > ___ > > > > Nagios-users mailing list > > > > Nagios-users@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and > > > OS when reporting any issue. > > > > ::: Messages without supporting info will risk being sent > > > to /dev/null > > > > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem scheduling downtime externally
Maybe i'm not familiar enough with perl (I'm not, really), but it appears to me that you are not writing anything to the file since your 'print' statement is missing the file handle argument... maybe try print FILE "..." ?? On Wed, 2008-06-25 at 13:32 -0400, Tony Rice (trice) wrote: > Perl script looks like this: > > open (FILE, ">$cmd_file"); > print "[$epoch_now] > SCHEDULE_HOST_DOWNTIME;$host;$epoch_start;$epoch_stop;0;0;$duration;$use > rid;$comment\n"; > close (FILE); > > Nothing in the log indicating that this command is making it anywhere. > Nothing in the log relevant either. > > -Tony > > > -Original Message- > > From: Aaron M. Segura [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, June 25, 2008 11:25 AM > > To: Tony Rice (trice) > > Cc: nagios-users@lists.sourceforge.net > > Subject: Re: [Nagios-users] Problem scheduling downtime externally > > > > Please be more specific. How, exactly, are you trying to > > write to the pipe? Please include some examples. > > > > Do you look in the nagios log after that to see if it picked > > up any commands? Are there any relevant log entries that might help? > > > > On Wed, 2008-06-25 at 11:09 -0400, Tony Rice (trice) wrote: > > > I'm trying to interface a database of upcoming downtimes to > > Nagios via > > > the SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME external command. > > > However, writing to the nagios.cmd file just sits there and never > > > returns. I'm wondering if it's a problem with the way the > > named pipe > > > is setup. My nagios.cmd file looks like this: > > > > > > % ls -la var/rw/nagios.cmd > > > prw-rw-rw- 1 nagios nagios 0 Jun 25 08:03 > > > var/rw/nagios.cmd > > > > > > I've tried writing to this file from perl and a borne shell script > > > with similar results. An advice? > > > > > > > > -- > > > --- Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for just about anything > > > Open Source. > > > http://sourceforge.net/services/buy/index.php > > > ___ > > > Nagios-users mailing list > > > Nagios-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and > > OS when reporting any issue. > > > ::: Messages without supporting info will risk being sent > > to /dev/null > > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem scheduling downtime externally
Perl script looks like this: open (FILE, ">$cmd_file"); print "[$epoch_now] SCHEDULE_HOST_DOWNTIME;$host;$epoch_start;$epoch_stop;0;0;$duration;$use rid;$comment\n"; close (FILE); Nothing in the log indicating that this command is making it anywhere. Nothing in the log relevant either. -Tony > -Original Message- > From: Aaron M. Segura [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2008 11:25 AM > To: Tony Rice (trice) > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Problem scheduling downtime externally > > Please be more specific. How, exactly, are you trying to > write to the pipe? Please include some examples. > > Do you look in the nagios log after that to see if it picked > up any commands? Are there any relevant log entries that might help? > > On Wed, 2008-06-25 at 11:09 -0400, Tony Rice (trice) wrote: > > I'm trying to interface a database of upcoming downtimes to > Nagios via > > the SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME external command. > > However, writing to the nagios.cmd file just sits there and never > > returns. I'm wondering if it's a problem with the way the > named pipe > > is setup. My nagios.cmd file looks like this: > > > > % ls -la var/rw/nagios.cmd > > prw-rw-rw- 1 nagios nagios 0 Jun 25 08:03 > > var/rw/nagios.cmd > > > > I've tried writing to this file from perl and a borne shell script > > with similar results. An advice? > > > > > -- > > --- Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for just about anything > > Open Source. > > http://sourceforge.net/services/buy/index.php > > ___ > > Nagios-users mailing list > > Nagios-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Questions about Nagios Looking Glass
Hi Matt, Sounds like quite a task you've gotten there! Can I take it that fun is with a capital F? ;-) The template engine isn't really an engine at all, but simply a mixture of placeholders and a bunch of str_replace()'s! It is hideous I know, but v2 will have it's own templating engine (currently being developed and refined in other projects.) I can tell you now that version 2 *may* make this sort of job easier, as it will have a pluggable architecture that splits out the application into separate logical "layers" - in similar fashion to n-tier applications - e.g. NLG will take care of grabbing the data and authentication etc, while allowing other users and developers to tack a "view" on top of this layer. In this sense you should theoretically be able to do virtually anything with the data - from creating a whole new template to showing the last-known status as an RSS feed (something which will be part of the standard distribution.) If you want to contact me privately (remove the -lists from this e-mail address) and let me know what you're trying to do with v1 now and I'll certainly try to help, as v2 is still a good way off yet. Unfortunately I have no experience of Joomla. I'd need to know more about how it authenticates (e.g. using standard HTTP authentication or whatever) and if there is a public variable available in PHP that gives the Joomla username (in similar fashion to $_SERVER['PHP_AUTH_USER'] etc.) Regards, Andy Matthew Macdonald-Wallace wrote: > On Wed, 25 Jun 2008 00:39:36 +0100 > Andy Shellam <[EMAIL PROTECTED]> wrote: > > >> There is no current way to exclude hosts that are in scheduled >> downtime or have been acknowledged; this is on the cards for version >> 2. >> > > Sorry to hijack the thread, but can I put in a feature request for > version 2? :o) > > I'm not sure if this can be done or not at the moment, however I am > trying to integrate NLG into Joomla (it's fun, really, it is...) and > one of the things I want to be able to do is authenticate against > Nagios using the Joomla Usernames so that the currently logged on user > only sees their own servers. > > If it can be done, can you tell me how? If it can't, please can it be > added as a feature request? > > Secondly, which templating engine are you using? I've tried to rewrite > the templates so it does only shows the server names on the first page > but still allows the user to drill down through the services on that > host but I'm not having much luck - if you can help me in any way, that > would be great! > > Thanks in advance, > > Matt > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] LDAP Authentication, and what authenticated users can see.
On Jun 25, 2008, at 10:13 AM, Steven Relf wrote: > Hi All, > > I have gotten LDAP authentication working against the webserver. And > it works great, the question is, how do I go about determining what > users can see what. > > Ideally I would like to split it down to per host group. > > Has anyone got any ideas? http://nagios.sourceforge.net/docs/3_0/cgiauth.html -- Marc - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem scheduling downtime externally
Please be more specific. How, exactly, are you trying to write to the pipe? Please include some examples. Do you look in the nagios log after that to see if it picked up any commands? Are there any relevant log entries that might help? On Wed, 2008-06-25 at 11:09 -0400, Tony Rice (trice) wrote: > I'm trying to interface a database of upcoming downtimes to Nagios via > the SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME external command. > However, writing to the nagios.cmd file just sits there and never > returns. I'm wondering if it's a problem with the way the named pipe is > setup. My nagios.cmd file looks like this: > > % ls -la var/rw/nagios.cmd > prw-rw-rw- 1 nagios nagios 0 Jun 25 08:03 > var/rw/nagios.cmd > > I've tried writing to this file from perl and a borne shell script with > similar results. An advice? > > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem scheduling downtime externally
I had a similar problem and just switched to using the cmd.cgi to get it done. Attached is a simple daemon I wrote until I can get around to writing a proper one. You can take a look at it to get an example of how to use cmd.cgi. If you decide you want to use the script itself, you'll need to make modifications for your environment and be sure to heed the warning. On Wed, Jun 25, 2008 at 11:09 AM, Tony Rice (trice) <[EMAIL PROTECTED]> wrote: > I'm trying to interface a database of upcoming downtimes to Nagios via > the SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME external command. > However, writing to the nagios.cmd file just sits there and never > returns. I'm wondering if it's a problem with the way the named pipe is > setup. My nagios.cmd file looks like this: > > % ls -la var/rw/nagios.cmd > prw-rw-rw- 1 nagios nagios 0 Jun 25 08:03 > var/rw/nagios.cmd > > I've tried writing to this file from perl and a borne shell script with > similar results. An advice? > > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Richard Quintin, DBA Database & Application Administration Virginia Tech #!/usr/bin/perl -w # WARNING WARNING WARNING WARNING WARNING WARNING WARNING # This is a hack. Not an acceptable long-term solution. # The only guarantee that comes with this script is that # it is definitely insecure. # WARNING WARNING WARNING WARNING WARNING WARNING WARNING #additional header for sockets handling use IO::Socket; #used for the function gethostbyaddr use Net::hostent; #you have to specify the port number after the perl command my $port=shift || die "Usage server.pl \n"; my %CMD_CODES = ( 'SCHEDULE_SVC_CHECK' => 7, 'SCHEDULE_HOST_SVC_CHECKS' => 17, 'SCHEDULE_FORCED_HOST_SVC_CHECKS' => 53, 'SCHEDULE_FORCED_SVC_CHECK' => 54, 'SCHEDULE_HOST_DOWNTIME' => 55, 'SCHEDULE_SVC_DOWNTIME' => 56, 'SCHEDULE_HOSTGROUP_HOST_DOWNTIME' => 84, 'SCHEDULE_HOSTGROUP_SVC_DOWNTIME' => 85, 'SCHEDULE_HOST_SVC_DOWNTIME' => 86, 'SCHEDULE_HOST_CHECK' => 96, 'SCHEDULE_FORCED_HOST_CHECK' => 98, 'SCHEDULE_SERVICEGROUP_HOST_DOWNTIME' => 121, 'SCHEDULE_SERVICEGROUP_SVC_DOWNTIME' => 122, 'SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME' => 134, 'SCHEDULE_AND_PROPAGATE_HOST_DOWNTIME' => 137, ); #creation of the socket called $server: #Proto= protocol to use #LocalPort = service name or port number to be the server #ports < 1024 under linux are restricted to the superuser #Listen = number of pending connections, SOMAXCON is #a special symbol for the system maximum #Reuse = restart the server manually my $server = IO::Socket::INET->new( Proto => 'tcp', LocalPort => $port, Listen => SOMAXCONN, Reuse => 1); die "can't setup server" unless $server; print "[Server $0 is running]\n"; #the server waits for a client to connect #and accept it with $server->accept #you can telnet to the port you want to test it while ($client = $server->accept()) { $client->autoflush(1); # Only talk to 10.2.3.4 if ($client->peerhost ne '10.2.3.4') { print $client "Sorry. I'm not supposed to talk to strangers.\n"; printf "[Reject connect from %s]\n", $client->peerhost; close($client); next; } #welcome print $client "Welcome to $0\n"; #get informations on the client #peeraddr = client name or IP $hostinfo = gethostbyaddr($client->peeraddr); #print this informations on the server side printf "[Connect from %s]\n", $hostinfo->name || $client->peerhost; #ask the client for a command print $client "[server]\$"; while (my $request = <$client>) { next unless $request =~ /\S/; # blank line #quit/exit if ($request =~ /^quit/i) { last; } elsif ($request =~ /^date/i) { printf $client "%s\n", scalar localtime; } else { if (handleRequest($request)) { print $client "Done.\n"; } else { print $client "There was a problem.\n"; } } } continue { print $client "[server]\$ "; } close $client; } #the socket $client is closed #to close the socket $server: ctrl+c sub handleRequest { my ($request) = @_; chomp($request); my @request = split(';', $request); my $TYPE = $CMD_CODES{ $request[0] }; my $HOST = $request[1]; my $SERVICE = ""; if ($request[0] eq 'SCHEDULE_SVC_DOWNTIME') { $SERVICE = "&service=$request[2]"; shift(@r
[Nagios-users] LDAP Authentication, and what authenticated users can see.
Hi All, I have gotten LDAP authentication working against the webserver. And it works great, the question is, how do I go about determining what users can see what. Ideally I would like to split it down to per host group. Has anyone got any ideas? Thanks Steve. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Problem scheduling downtime externally
I'm trying to interface a database of upcoming downtimes to Nagios via the SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME external command. However, writing to the nagios.cmd file just sits there and never returns. I'm wondering if it's a problem with the way the named pipe is setup. My nagios.cmd file looks like this: % ls -la var/rw/nagios.cmd prw-rw-rw- 1 nagios nagios 0 Jun 25 08:03 var/rw/nagios.cmd I've tried writing to this file from perl and a borne shell script with similar results. An advice? - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios 3.x - check_bonding ?
> >> >> it's no problem to get the status of the bonding interace via snmp. >> >> (i have an Intel Dual Server Adapter): >> .1.3.6.1.2.1.2.2.1.7.5 = INTEGER: up(1) >> >> The only one you need is the correct oid. >> >> so you can check via check_snmp. >> >> I try to monitor the traffic of the bonding interface >> (BONDING_MODULE_OPTS="mode=4") via mrtg (Traffic), but the result is >> dissatisfying. It's not the sum of the ethernet interfaces. >> But it's no problem to monitor the two "real" ethernet cards. >> >> > > i'll take a look - thanks > > Hello, if you saerch a MIB /OID take a look to : http://www.oidview.com/mibs/detail.html http://www.mibdepot.com/index.shtml or you have to look yourself: snmpwalk -On -v 1 -c COMMUNITY IP OID You can get everything of the bonding interface via snmp, with one exception: the Max Network Speed (1000 MBit per example). Unfortenately you will get the wrong integer. greets Steffen - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios 3.x - check_bonding ?
> > it's no problem to get the status of the bonding interace via snmp. > > (i have an Intel Dual Server Adapter): > .1.3.6.1.2.1.2.2.1.7.5 = INTEGER: up(1) > > The only one you need is the correct oid. > > so you can check via check_snmp. > > I try to monitor the traffic of the bonding interface > (BONDING_MODULE_OPTS="mode=4") via mrtg (Traffic), but the result is > dissatisfying. It's not the sum of the ethernet interfaces. > But it's no problem to monitor the two "real" ethernet cards. > > i'll take a look - thanks - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] use_timezone
Hi, I add in config file this option: use_timezone=US/Mountain but: /etc/init.d/nagios start Starting nagios:/etc/init.d/nagios: line 121: 6987 Segmentation fault $NagiosBin -d $NagiosCfgFile done. why this? -- André O Moura http://andrem.wordpress.com - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios 3.x - check_bonding ?
Hi Tom, it's no problem to get the status of the bonding interace via snmp. (i have an Intel Dual Server Adapter): .1.3.6.1.2.1.2.2.1.7.5 = INTEGER: up(1) The only one you need is the correct oid. so you can check via check_snmp. I try to monitor the traffic of the bonding interface (BONDING_MODULE_OPTS="mode=4") via mrtg (Traffic), but the result is dissatisfying. It's not the sum of the ethernet interfaces. But it's no problem to monitor the two "real" ethernet cards. Steffen > Hi > > I have recently started deploying bonding throughout our estate and i > interested in monitoring the bonded interface - I can see the status of > the bond in /proc/net/bonding but i wonder if anyone has already written > a plugin to test this. I have looked on nagios exchange and google but > not come up with anything so far. > > thanks > > > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NSCA not receiving or send_nsca not sending
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Anthony Montibello Gesendet: Mittwoch, 25. Juni 2008 05:17 An: Jason Cc: nagios-users@lists.sourceforge.net Betreff: Re: [Nagios-users] NSCA not receiving or send_nsca not sending There was a post on the time syncronization of NSCA just 2 weeks ago, the following is a copy of the email (I did not verify that this works) TOny Thanks guys! That would explain why the messages are not being received from the Windows machine as the time is, in fact, later than the time on the server. However, it does not make sense to me that it starts working when I reboot the Windows machine or in the case of the Linux machine I restart the nsca daemon. At any rate, I will give it a go. Regards, Jim Mohr - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Check_mrtgtraf
Hello, you can test your nagios configs if you try: (you have to set correct path to nagios and the config) /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg Perhaps you can post the output. You can find the plugin in you nagios libexec Folder. The service definition is ok, because the command definition looks like that: # 'check_local_mrtgtraf' command definition define command{ command_namecheck_local_mrtgtraf command_line$USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$ } How do you try to connect to the remote machine? If you try to connect via ssh, you need the plugin on the remote machine, too. Steffen > > Gentlemen. > > I´ve been fighting with Nagios 3.0.2 on OpenSuse 10.3 while trying to > integrate MRTG and Nagios. > > I have followed the sample in Nagios docs which guides us to: > > define service{ > use generic-service > host_name linksys-srw224p > service_description Port 1 Bandwidth Usage > check_command > check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!100,200!500,500!10 > } > > But first of all this plugin check_local_mrtgtraf! is not found, but > check_mrtgtraf and every time I try to adapt the sample with my > path/mylog or changing check_local_mrtgtraf to check_mrtgtraf! > > I don´t get any success. Besides I can´t even start Nagios and get this > Msg: Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios > configuration. > > > > > - > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > > > > > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nagios 3.x - check_bonding ?
Hi I have recently started deploying bonding throughout our estate and i interested in monitoring the bonded interface - I can see the status of the bond in /proc/net/bonding but i wonder if anyone has already written a plugin to test this. I have looked on nagios exchange and google but not come up with anything so far. thanks - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] sms notifications for only specific services
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Machiel Richards wrote: | I have created the sms notifications in the | contacts and contact group, however I am trying to find out how I can | assign this to only specific services while thewy also get mails for | these services. Create new contact(s) that are using the SMS notification. Then add the contact(s) to the specific service(s) Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIYgeHBvzDRVjxmYERAksGAJ9D1+UU9o/TfcY/IUAHqBM5kVy/CwCgmDi5 CFLaeqK/8vZTm4o2hv6XS9k= =Nk9Y -END PGP SIGNATURE- - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Antwort: Problems with correct execution Nagios Plugin scheduled
[EMAIL PROTECTED] schrieb am 25.06.2008 10:32:54: > I have one problem very particular on a Nagios check custom. It try > to execute one query to Oracle Server. > When I run my plugin from Linux shell as nagios user, the check > returns correct output. But, when Nagios runs the same plugin with > the same parameters, the check returns incorrect output. > The permissions are OK, otherwise Nagios check doesn't returned > correct result from shell as nagios user. > > What's wrong? Any ideas? No Path inside the check environment? > touch $FILE [...snip...] > grep -q Ok $FILE Won't work without a path. Try using the full path to grep and touch. Regards Sascha -- Sascha Runschke Netzwerk- und Systemmanagement Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Problems with correct execution Nagios Plugin scheduled
Hello, I have one problem very particular on a Nagios check custom. It try to execute one query to Oracle Server. When I run my plugin from Linux shell as nagios user, the check returns correct output. But, when Nagios runs the same plugin with the same parameters, the check returns incorrect output. The permissions are OK, otherwise Nagios check doesn't returned correct result from shell as nagios user. What's wrong? Any ideas? Thanks Giovanni This is a part of my plugin. - STATE_ERROR=-1 STATE_OK=0 STATE_CRITICAL=2 STATE_UNKNOWN=3 ECHO=/bin/echo FILE=/instantclient_11_1/query QUERY="select 'SQL Query Test is Ok' from dual;" SQLPLUS=/instantclient_11_1/sqlplus esegui_plugin() { blank=" " HOSTNAME=${2:-blank} touch $FILE $ECHO $QUERY | $SQLPLUS -s nagios/nagios@//${HOSTNAME}/orcl > $FILE grep -q Ok $FILE if [ $? -eq 0 ] ; then exitstatus=${STATE_OK} echo "SQL Query Test is Ok" rm -f $FILE exit $exitstatus else exitstatus=${STATE_CRITICAL} echo "CRITICAL - ORACLE SERVER NOT RESPONDING" rm -f $FILE exit $exitstatus fi } - - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] sms notifications for only specific services
Hi All I hope you can assist. We have an exhange server which we monitor using the normal nagios monitoring. We are however trying to set up sms notifications for specific services on this mail server. I have created the sms notifications in the contacts and contact group, however I am trying to find out how I can assign this to only specific services while thewy also get mails for these services. Machiel *** Disclaimer *** The information contained in this e-mail is confidential and legally privileged and is intended solely for the addressee and to others who have the authority to receive it. Access to this e-mail by anyone else is unauthorized and as such, any disclosure, copying, distribution or any action taken or omitted in reliance on it is unlawful. If you have received this e-mail in error, please notify the sender immediately. The views expressed in this e-mail are the views of the individual sender and should in no way be construed as the views of the Company. The Company is not liable to ensure that outgoing e-mails are virus-free. The Company is not liable, should information or data, for whatever reason, be corrupted or fail to reach its intended addressee. The Company is not liable for any loss or damage of whatsoever nature and howsoever arising resulting from the opening or the use of the information in this e-mail, including its attachments and links. The sender of this e-mail is subject to and bound by the terms and conditions of Company’s Electronic Communications Usage Policy. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Questions about Nagios Looking Glass
On Wed, 25 Jun 2008 00:39:36 +0100 Andy Shellam <[EMAIL PROTECTED]> wrote: > There is no current way to exclude hosts that are in scheduled > downtime or have been acknowledged; this is on the cards for version > 2. Sorry to hijack the thread, but can I put in a feature request for version 2? :o) I'm not sure if this can be done or not at the moment, however I am trying to integrate NLG into Joomla (it's fun, really, it is...) and one of the things I want to be able to do is authenticate against Nagios using the Joomla Usernames so that the currently logged on user only sees their own servers. If it can be done, can you tell me how? If it can't, please can it be added as a feature request? Secondly, which templating engine are you using? I've tried to rewrite the templates so it does only shows the server names on the first page but still allows the user to drill down through the services on that host but I'm not having much luck - if you can help me in any way, that would be great! Thanks in advance, Matt -- Matthew Macdonald-Wallace [EMAIL PROTECTED] http://www.truthisfreedom.org.uk - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Antwort: [Nagiosplug-help] locking out AD account
[EMAIL PROTECTED] schrieb am 24.06.2008 21:57:30: > Since ~ Friday nagios appears to be locking out random servers AD > accounts. I know what you’re thinking, what changed?! I went > through log files, and even grep’d the entire /etc/nagios directory > and subdirectories for the connection string to make sure that the > $USER#$ userID matched the corresponding $USER#$ password. I looked > at all the files mod dates and made sure to fine tooth comb those to > no avail. Anyone run into this? Its more of a needle in the > haystack kinda thing and I don’t expect anyone to know exactly OH > yeah do this! But I am definitely going nuts trying to find it so I > figured hey why not! Well, I'm rather thinking: How the hell can Nagios lock AD accounts? If you do not describe what you did at all, I doubt anyone can help you. I have absolutely no clue why someone would want to define some $USER#$ or whatever and what it would have to do with AD ;) Please be more descriptive in your posts to the list. We cannot guess what you are doing, hence we cannot tell you what might be wrong with your setup. First of all: Problems with Nagios itself do not belong to the nagiosplug list, this one is about the plugins for Nagios. Second: What does your Nagios have to do with your AD at all? Regards Sascha PS: I'll be CC'ing this to the Nagios-Users list. -- Sascha Runschke Netzwerk- und Systemmanagement Telefon : +49 (201) 102-1879 Mobil : +49 (173) 5419665 Fax : +49 (201) 102-1102105 GFKL Financial Services AG Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Till Ergenzinger, Dr. Tom Haverkamp Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522 - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null