[Nagios-users] autogenerate nrpe.cfg file
What is the best way to autogenerate nrpe.cfg files across lots of servers? Googling, I've found things like Puppet, but that requires a bit more overhead and planning than I have right now. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ 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] Service checks scheduled far in future
Service checks scheduled I stopped nagios I deleted /var/log/nagios/* I started nagios output from date command: Sun Feb 17 09:46:30 CST 2008 From nagios service detail page: Service check scheduled for Mon Feb 18 07:00:00 CST 2008 If I force the check, it will run OK, but the next check will happen far into the future. This one is weird. Help me obi-won kenobi, you're my only hope. Dale - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] NRPE on monitoring host
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16/02/08 03:35 PM, Henrik Schou wrote: > Hi all > > Thank you for your answers. > > You say that I can install the nrpe conf file for xinetd. > > As you state you belive I have already done that. Yes, I belive I have.. In > /etc/xinetd.d/nrpe I have entered the following: > > # default: on > # description: NRPE (Nagios Remote Plugin Executor) > service nrpe > { > flags = REUSE > socket_type = stream > wait= no > user= nagios > server = /usr/local/nagios/bin/nrpe -c > server_args = /etc/local/nagios/etc/nrpe.cfg -d --inetd > log_on_failure += USERID > disable = no > only_from = 192.168.0.0/24 > } > > If I understand all of the comments I have received correct, it seems that I > run nrpe in 2 instances, which I can't. How would I do it the right way then? > I'd say I would prefer to run it through xinetd.. As Sean made me realize you were actually trying to run the xinetd config file... In fact all you have to do it probably reload or restart xinetc. (make sure to kill all instances of the NRPE daemon) Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHuGhc6dZ+Kt5BchYRAiMnAJ9YjFdi8kxJP4KDInwaBI4GPIUWRgCg9nbb AOzCO0LmnKK81r4njbR5+0c= =BMJx -END PGP SIGNATURE- - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Service checks scheduled far in future
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Dale J. Chatham > Sent: Sunday, February 17, 2008 9:49 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Service checks scheduled far in future > > Service checks scheduled > > I stopped nagios > I deleted /var/log/nagios/* > I started nagios > > output from date command: > Sun Feb 17 09:46:30 CST 2008 > > From nagios service detail page: > Service check scheduled for Mon Feb 18 07:00:00 CST 2008 Please post the service definition (including template) as well as the output of '/path/to/nagios -s /path/to/nagios.cfg'. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Service checks scheduled far in future
The output of the command is below. I included the objects.cache file. As I understand it, this is created at run time from what nagios reads from the config files and saves. Therefore, if I left something out, it should be more obvious here. If you need the actual files, I can tar and zip 'em, though. I make heavy use of config_dir and have one file per configuration item. Dale [EMAIL PROTECTED] nagios]# nagios -s /etc/nagios/nagios.cfg Nagios 2.10 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 10-21-2007 License: GPL Projected scheduling information for host and service checks is listed below. This information assumes that you are going to start running Nagios with your current config files. HOST SCHEDULING INFORMATION --- Total hosts: 8 Total scheduled hosts: 0 Host inter-check delay method: SMART Average host check interval: 0.00 sec Host inter-check delay: 0.00 sec Max host check spread: 30 min First scheduled check: N/A Last scheduled check: N/A SERVICE SCHEDULING INFORMATION --- Total services: 15 Total scheduled services: 15 Service inter-check delay method: SMART Average service check interval: 600.00 sec Inter-check delay: 12.00 sec Interleave factor method: SMART Average services per host: 1.88 Service interleave factor: 2 Max service check spread: 3 min First scheduled check: Mon Feb 18 07:00:00 2008 Last scheduled check: Mon Feb 18 07:00:00 2008 CHECK PROCESSING INFORMATION Service check reaper interval: 10 sec Max concurrent service checks: Unlimited PERFORMANCE SUGGESTIONS --- I have no suggestions - things look okay. Marc Powell wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED]] On Behalf Of Dale J. Chatham Sent: Sunday, February 17, 2008 9:49 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Service checks scheduled far in future Service checks scheduled I stopped nagios I deleted /var/log/nagios/* I started nagios output from date command: Sun Feb 17 09:46:30 CST 2008 From nagios service detail page: Service check scheduled for Mon Feb 18 07:00:00 CST 2008 Please post the service definition (including template) as well as the output of '/path/to/nagios -s /path/to/nagios.cfg'. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 OBJECT CACHE FILE # # THIS FILE IS AUTOMATICALLY GENERATED # BY NAGIOS. DO NOT MODIFY THIS FILE! # # Created: Sun Feb 17 09:55:30 2008 define timeperiod { timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week monday 07:00-17:00 tuesday 07:00-17:00 wednesday 07:00-17:00 thursday07:00-17:00 friday 07:00-17:00 } define timeperiod { timeperiod_name none alias No Time Is A Good Time } define timeperiod { timeperiod_name nonworkhours alias Non Work Hours sunday 00:00-24:00 monday 00:00-07:00,17:00-24:00 tuesday 00:00-07:00,17:00-24:00 wednesday 00:00-07:00,17:00-24:00 thursday00:00-07:00,17:00-24:00 friday 00:00-07:00,17:00-24:00 saturday00:00-24:00 } define timeperiod { timeperiod_name workhours alias "Normal" Working Hours monday 07:00-17:00 tuesday 07:00-17:00 wednesday 07:00-17:00 thursday07:00-17:00 friday 07:00-17:00 } define command { command_namecheck-fast-alive command_line/usr/lib64/nagios/plugins/check_fping -H $HOSTADDRESS$ } define command { command_namecheck-host-alive command_line/usr/lib64/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1 } define command { command_namecheck-imap command_line/usr/lib64/nagios/plugins/check_imap -H $HOSTADDRESS$ } define command { command_namecheck-netapp-cpuload
Re: [Nagios-users] check_rrdtraf
On Feb 16, 2008, at 4:32 AM, Pili Muñoz Gargallo wrote: > Hi Israel, > Well that is what i get > > ./check_rrdtraf -f /var/www/html/cfg/62.81.189.117_1.rrd -c > 5000,5000 -w 3000,3000 -vv > Using RRD file: /var/www/html/cfg/62.81.189.117_1.rrd > Input warning level(kb/s): 3000 > Output warning level(kb/s): 3000 > Input critical level (kb/s): 5000 > Output critical level (kb/s): 5000 > Fetching data with command: rrdtool fetch /var/www/html/cfg/ > 62.81.189.117_1.rrd AVERAGE -s-10minutes | grep -vi "nan" > RRD File Data: > ds0 ds1 > > 1203155100: 4.4908022742e+04 6.8003888963e+04 > Raw Input Traffic Value (b/s): 32,00 > Raw Output Traffic Value (b/s): 48,00 > Decimal Input Traffic Value (b/s): 32,00 > Decimal Output Traffic Value (b/s): 48,00 > ./check_rrdtraf: line 248: [: 32,00: integer expression expected > ./check_rrdtraf: line 251: [: 32,00: integer expression expected > ./check_rrdtraf: line 254: [: 32,00: integer expression expected > ./check_rrdtraf: line 263: [: 48,00: integer expression expected > ./check_rrdtraf: line 266: [: 48,00: integer expression expected > ./check_rrdtraf: line 269: [: 48,00: integer expression expected Seems like a regional number-formatting issue. Your OS LC_NUMERIC settings specify a number format that uses ',' in place of '.' and the script (or perl?) isn't internationalized to understand that. Would that be the case? I'm not too familiar with i18n so can't be of much help. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Service checks scheduled far in future
On Feb 17, 2008, at 11:33 AM, Dale J. Chatham wrote: > The output of the command is below. > > I included the objects.cache file. As I understand it, this is > created at run time from what nagios > reads from the config files and saves. Therefore, if I left > something out, it should be more obvious here. > > First scheduled check: Mon Feb 18 07:00:00 2008 > Last scheduled check: Mon Feb 18 07:00:00 2008 > > > define timeperiod { > timeperiod_name 24x7 > alias 24 Hours A Day, 7 Days A Week > monday 07:00-17:00 > tuesday 07:00-17:00 > wednesday 07:00-17:00 > thursday07:00-17:00 > friday 07:00-17:00 > } You've modified this timeperiod to _not_ be 24x7 but are treating it as if it still is. Nagios is doing what you've told it to do. > define service { > host_name callisto > service_description PING > check_period24x7 -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] conditional inclusion of cfg files
Okay, let's say you have lots of distributed pollers, which should only load cfg files for their particular environment (both hosts and services). However, you'd like to manage the same set of "global" cfg files from the central server, and rsync them all everywhere. Is there any known way to make a poller just load a subset of cfg files, *without hardcoding it into each poller's nagios.cfg file*? Sorry if this sounds a little crazy. I guess what I had envisioned was a way to push out a set of cfg files named by each poller's hostname, with the expectation that a poller could intelligently include only its own cfg file. Each of those files, in turn, would include a set of cfg_dir definitions to further include the directories needed for the poller to poll its specific environment. Nagios just appears to be very limited in the ability to declare variables in the configuration files. Yes, you can set macros, but that doesn't seem to help me with this particular situation. Any suggestions? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] NRPE on monitoring host
Some of my nrpe checks works ok now. I'm still having some issues getting check_disk to return information. Nagios displays: NRPE: Command 'check_disk' not defined. In my nrpe.cfg I have the following entry: command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/sda1 --> I can run ./configure check_disk... successfully on the remote system? In my localhost.cfg I have: define host{ use check-status host_name donald alias Donald address 192.168.1.21 } # 'linux-boxes' host group definition define hostgroup{ hostgroup_name linux-servers alias Linux Servers # contact_groups infrastructure-production members donald } define service{ use local-service host_name donald service_description cpuload contact_groups infrastructure-production check_command check_nrpe!check_load } define service{ use local-service host_name donald service_description disk - / contact_groups infrastructure-production check_command check_nrpe!check_disk } The nrpe cpuload check returns results. In my commands.cfg: # NRPE define command{ command_namecheck_nrpe command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } I can telnet the remote host as well. - Henrik --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=9449 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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