Re: [Nagios-users] Upgrading to Nagios 4.0.0

2013-09-29 Thread Daniel Bareiro
Hi all!

On Wednesday, 25 September 2013 22:02:14 -0300,
Daniel Bareiro wrote:

 I was reviewing the installation of Nagios which also installed
 PNP4Nagios and I could not find the source code of the latter so I will
 not be able to uninstall it with a simple make uninstall. So what I'm
 trying to do is disable it.
 
 For this I was reviewing the Nagios configuration files in
 /usr/local/nagios/etc.
 
 nagios.cfg: I commented the following line:
 
 broker_module=/usr/local/nagios/bin/npcdmod.o
 
 Also I deleted the references to PNP4Nagios in the configuration files
 into the objects directory.
 
 With these changes I got that Nagios can start, however there are some
 sections that are not yet operational:
 
 * Map.
 * Trends.
 * Alerts - Histogram.
 
 Reviewing again in /usr/local/nagios/var/nagios.log, I found the
 following records are repeated continuously:
 
 -
 [1380156849] wproc: HOST PERFDATA job 1983 from worker Core Worker 27245 is a 
 non-check helper but exited with return code 2
 [1380156849] wproc:   command: /usr/bin/perl 
 /usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
 [1380156849] wproc:   early_timeout=0; exited_ok=1; wait_status=512; 
 error_code=0;
 [1380156849] Worker 27245: Unknown jobtype: 9
 [1380156849] wproc: Unknown job type: 9
 [1380157096] wproc: SERVICE PERFDATA job 2020 from worker Core Worker 27246 
 is a non-check helper but exited with return code 2
 [1380157096] wproc:   command: /usr/bin/perl 
 /usr/local/nagios/libexec/process_perfdata.pl
 [1380157096] wproc:   early_timeout=0; exited_ok=1; wait_status=512; 
 error_code=0;
 [1380157096] Worker 27246: Unknown jobtype: 10
 -
 
 May this have to do with the components that are not yet operational?

Although still have these messages in the log, I could fix the errors I
was having to try to get the Map, Trends and Alerts - Histogram. The
configure was not finding the GD library and include files.

When now entered in the status map for the first time, the default was
user-supplied coords, with the message below:

You have not supplied any host drawing coordinates, so you cannot use
this layout method. Read the FAQs for more information on specifying
drawing coordinates or select a different layout method

If I select circular (marked up), I think it was the layout I was
using with Nagios Core 3.5.0, and update, I keep getting the same
message without being able to see the map. Is there to do some
additional configuration?


Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___
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] Upgrading to Nagios 4.0.0

2013-09-29 Thread Daniel Bareiro
On Sunday, 29 September 2013 13:51:13 -0300,
Daniel Bareiro wrote:

 Although still have these messages in the log, I could fix the errors I
 was having to try to get the Map, Trends and Alerts - Histogram. The
 configure was not finding the GD library and include files.
 
 When now entered in the status map for the first time, the default was
 user-supplied coords, with the message below:
 
 You have not supplied any host drawing coordinates, so you cannot use
 this layout method. Read the FAQs for more information on specifying
 drawing coordinates or select a different layout method
 
 If I select circular (marked up), I think it was the layout I was
 using with Nagios Core 3.5.0, and update, I keep getting the same
 message without being able to see the map. Is there to do some
 additional configuration?

This is a bug found after released version 4.0.0 of Nagios Core [1].



Regards,
Daniel

[1] http://tracker.nagios.org/view.php?id=470
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___
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] Upgrading to Nagios 4.0.0

2013-09-25 Thread Daniel Bareiro

Hi all!


Since I saw recently released version 4.0.0 of Nagios Core, today I
tried to test it using the update procedure published [1].

But, from what I saw, the process does not start after doing a
restart.

Viewing the /usr/local/nagios/var/nagios.log, I find the following:

-
[1380134669] Warning: use_embedded_perl_implicitly is deprecated and will be 
removed.
[1380134669] Warning: enable_embedded_perl is deprecated and will be removed.
[1380134669] Warning: p1_file is deprecated and will be removed.
[1380134669] Warning: sleep_time is deprecated and will be removed.
[1380134669] Warning: external_command_buffer_slots is deprecated and will be 
removed. All commands are always processed upon arrival
[1380134669] Warning: command_check_interval is deprecated and will be removed. 
Commands are always handled on arrival
[1380134669] Nagios 4.0.0 starting... (PID=23082)
[1380134669] Local time is Wed Sep 25 15:44:29 ART 2013
[1380134669] LOG VERSION: 2.0
[1380134669] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully 
initialized
[1380134669] qh: core query handler registered
[1380134669] nerd: Channel hostchecks registered successfully
[1380134669] nerd: Channel servicechecks registered successfully
[1380134669] nerd: Channel opathchecks registered successfully
[1380134669] nerd: Fully initialized and ready to rock!
[1380134669] wproc: Successfully registered manager as @wproc with query handler
[1380134669] wproc: Registry request: name=Core Worker 23085;pid=23085
[1380134669] wproc: Registry request: name=Core Worker 23086;pid=23086
[1380134669] wproc: Registry request: name=Core Worker 23084;pid=23084
[1380134669] wproc: Registry request: name=Core Worker 23083;pid=23083
[1380134669] Error: Module '/usr/local/nagios/bin/npcdmod.o' is using an old or 
unspecified version of the event broker API.  Module will be unloaded.
[1380134669] Event broker module '/usr/local/nagios/bin/npcdmod.o' 
deinitialized successfully.
[1380134669] Error: Failed to load module '/usr/local/nagios/bin/npcdmod.o'.
[1380134669] Error: Module loading failed. Aborting.
-

May Nagios not start for failure on npcdmod.o module? Is it necessary to
do something else that is not documented in [1]?



Thanks in advance for your reply.


Regards,
Daniel

[1] http://nagios.sourceforge.net/docs/nagioscore/4/en/upgrading.html#nagios3x
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___
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] Upgrading to Nagios 4.0.0

2013-09-25 Thread Daniel Bareiro
Hi, Paul.

On Wednesday, 25 September 2013 15:27:23 -0400,
Paul Dubuc wrote:

 Are you using the latest version of PNP4Nagios?  If so, maybe it doesn't 
 support Nagios 4.0 yet?

Mm... now that you mention it, I installed it some time ago but I'm
not giving extensive use so I may uninstall (or disable) it. I'll try to
find a way to do it.


Thanks for your replay.


Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Wheezy - Linux user #188.598


signature.asc
Description: Digital signature
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___
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] Upgrading to Nagios 4.0.0

2013-09-25 Thread Daniel Bareiro
Hi, Sven.

On Wednesday, 25 September 2013 21:45:29 +0200,
Sven Nierlein wrote:

  Are you using the latest version of PNP4Nagios?  If so, maybe it
  doesn't support Nagios 4.0 yet?

 PNP4Nagios works with Nagios4 without any modification, but you have
 to compile the npcdmod against the Nagios4 headers and includes.

I was reviewing the installation of Nagios which also installed
PNP4Nagios and I could not find the source code of the latter so I will
not be able to uninstall it with a simple make uninstall. So what I'm
trying to do is disable it.

For this I was reviewing the Nagios configuration files in
/usr/local/nagios/etc.

nagios.cfg: I commented the following line:

broker_module=/usr/local/nagios/bin/npcdmod.o

Also I deleted the references to PNP4Nagios in the configuration files
into the objects directory.

With these changes I got that Nagios can start, however there are some
sections that are not yet operational:

* Map.
* Trends.
* Alerts - Histogram.

Reviewing again in /usr/local/nagios/var/nagios.log, I found the
following records are repeated continuously:

-
[1380156849] wproc: HOST PERFDATA job 1983 from worker Core Worker 27245 is a 
non-check helper but exited with return code 2
[1380156849] wproc:   command: /usr/bin/perl 
/usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
[1380156849] wproc:   early_timeout=0; exited_ok=1; wait_status=512; 
error_code=0;
[1380156849] Worker 27245: Unknown jobtype: 9
[1380156849] wproc: Unknown job type: 9
[1380157096] wproc: SERVICE PERFDATA job 2020 from worker Core Worker 27246 is 
a non-check helper but exited with return code 2
[1380157096] wproc:   command: /usr/bin/perl 
/usr/local/nagios/libexec/process_perfdata.pl
[1380157096] wproc:   early_timeout=0; exited_ok=1; wait_status=512; 
error_code=0;
[1380157096] Worker 27246: Unknown jobtype: 10
-

May this have to do with the components that are not yet operational?



Thanks for your reply.


Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___
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_disk output

2013-09-16 Thread Daniel Bareiro

Hi all!

I am observing the following output on one of my virtual machines:

atlantis:~# /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p / -p /drbd/
DISK OK - free space: / 796 MB (23% inode=69%); /drbd 9094 MB (94% inode=96%);| 
/=2575MB;2840;3195;0;3551 /drbd=482MB;8071;9080;0;10089


This is the configuration that I have in /usr/local/nagios/etc/nrpe.cfg:

command[check_disk]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p / - 
/drbd


According to the output of the plugin, there is a 23% free, but still
it is returning a WARNING state, which would not be consistent.

This is the output of df, which is also 23% free for /:

atlantis:~# df -h
S.ficheros Tamaño Usados  Disp Uso% 
Montado en
rootfs   3,5G   2,6G  797M  77% 
/
udev  10M  0   10M   0% 
/dev
tmpfs 50M   240K   50M   1% 
/run
/dev/disk/by-uuid/cbe1a04f-fd01-4ea9-aeb0-3844ad04ccc3   3,5G   2,6G  797M  77% 
/
tmpfs5,0M   4,0K  5,0M   1% 
/run/lock
tmpfs197M   197M  4,0K 100% 
/run/shm
/dev/drbd0   9,9G   483M  8,9G   6% 
/drbd


Inconsistency may have to do with the existence of symbolic links to
directories in /drbd?


Thanks in advance for your reply.



Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___
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] Plugin check_md_raid

2013-05-06 Thread Daniel Bareiro
Hi, Roger.

On Monday, 06 May 2013 11:55:34 +0100,
Roger Bell_West wrote:

 On Sun, May 05, 2013 at 09:58:29PM -0300, Daniel Bareiro wrote:
 Hari, if you're out there, do you know what could be the problem?

 Looks to me as though clean  is not the same as clean.

What a subtle difference :-)

 These days I use check_linux_raid out of the standard plugins
 package. (Haven't upgraded to wheezy yet.)

As I see, this plugin is in the contrib directory of the tarball. I 
tested it after giving execute permission and seems to work without
problem:

sirius:~/Nagios/nagios-plugins-1.4.13/contrib# ./check_linux_raid.pl 
OK md0 status=[UU]. md1 status=[UU]. md2 status=[UU]. md3 status=[UU].


Is there any parameter to install de contrib plugins when compiling the
standards plugins?



Thanks for your reply.


Regards,
Daniel
-- 
Daniel Bareiro
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1___
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] Plugin check_md_raid

2013-05-05 Thread Daniel Bareiro

Hi all!

I'm trying the script check_md_raid [1] of Hari Sekhon (version 0.7.2).
It works correctly with Debian GNU/Linux Squeeze, but seems to have a
problem with the parsing in Debian GNU/Linux Wheezy (since yesterday is
stable).

I copy high verbose output:

---
sirius:~# /usr/local/nagios/libexec/non-std/check_md_raid.pl -vvv
finding all MD arrays via: /sbin/mdadm --detail --scan
found array /dev/md0
found array /dev/md1
found array /dev/md2
found array /dev/md3
Now testing raid device /dev/md0
/dev/md0:
Version : 0.90
  Creation Time : Sat May 24 16:54:22 2008
 Raid Level : raid1
 Array Size : 979840 (957.04 MiB 1003.36 MB)
  Used Dev Size : 979840 (957.04 MiB 1003.36 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Sat Feb 16 22:55:30 2013
  State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

   UUID : 7ca3a761:0b7f8242:966549c2:cf5e5f4f
 Events : 0.28032

Number   Major   Minor   RaidDevice State
   0   8   170  active sync   /dev/sdb1
   1   811  active sync   /dev/sda1
Now testing raid device /dev/md1
/dev/md1:
Version : 0.90
  Creation Time : Sat May 24 16:54:41 2008
 Raid Level : raid1
 Array Size : 96320 (94.08 MiB 98.63 MB)
  Used Dev Size : 96320 (94.08 MiB 98.63 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Sun May  5 21:46:33 2013
  State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

   UUID : e6b6e28f:f1d35cb5:9000b848:259f4f40
 Events : 0.306356

Number   Major   Minor   RaidDevice State
   0   8   180  active sync   /dev/sdb2
   1   821  active sync   /dev/sda2
Now testing raid device /dev/md2
/dev/md2:
Version : 0.90
  Creation Time : Sat May 24 16:54:52 2008
 Raid Level : raid1
 Array Size : 1951808 (1906.38 MiB 1998.65 MB)
  Used Dev Size : 1951808 (1906.38 MiB 1998.65 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Sun May  5 21:46:33 2013
  State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

   UUID : f1545e54:3ecbd06e:8a13b91c:feb5b20b
 Events : 0.2484914

Number   Major   Minor   RaidDevice State
   0   8   190  active sync   /dev/sdb3
   1   831  active sync   /dev/sda3
Now testing raid device /dev/md3
/dev/md3:
Version : 0.90
  Creation Time : Sat May 24 16:55:14 2008
 Raid Level : raid1
 Array Size : 484355780 (461.92 GiB 495.98 GB)
  Used Dev Size : 484355780 (461.92 GiB 495.98 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 3
Persistence : Superblock is persistent

Update Time : Sun May  5 21:46:33 2013
  State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

   UUID : a18a76b5:cfe1950e:3e109807:c4b19353
 Events : 0.3107222

Number   Major   Minor   RaidDevice State
   0   8   200  active sync   /dev/sdb4
   1   841  active sync   /dev/sda4
RAID CRITICAL: 4 arrays not ok - Array MD0 is in state clean  (raid1), Array 
MD1 is in state clean  (raid1), Array MD2 is in state clean  (raid1), Array 
MD3 is in state clean  (raid1) [4
arrays checked]
---

As you can see from the output, the four arrays are clean, but the
script displays a CRITICAL state.


Hari, if you're out there, do you know what could be the problem?


Thanks in advance for your reply.


Regards,
Daniel

[1] 
http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/Linux-Software-Raid-Plugin-for-32-2Dbit-and-64-2Dbit-systems/details
-- 
Daniel Bareiro
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1___
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

[Nagios-users] RRD checking for high and low values

2013-02-11 Thread Daniel Bareiro

Hi all!

I was looking for plugins to check the values of RRD databases and found
these in Nagios Exchange:

http://exchange.nagios.org/directory/Plugins/Databases/RRD

Unfortunately none of them seems to be established whether the
thresholds are higher or lower. This would be useful if we monitor the
values of a UPS, for example. I mean something like the options provided
by check_lm_sensors:


  -l, --low   specifies a check for a sensor value which is too low.
  Example:
--low fan1=2000,1000
  will give a warning if the value of the fan1 sensor drops
  below 2000 RPMs and a critical status if it drops below
  1000 RPMs

  -h, --high  specifies a check for a sensor value which is too high.
  Example:
--high temp1=50,60
  will give a warning if the value of the temp1 sensor reaches
  50 degrees and a critical status if it reaches 60 degrees


Is there a plugin for RRD having this flexibility?


Thanks in advance for your reply.


Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb___
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] Error building check_swap en OpenIndiana

2011-11-28 Thread Daniel Bareiro

Hi all!

I'm trying to compile Nagios plugins (nagios-plugins-1.4.15.tar.gz) on
OpenIndiana (build 151a), but the compilation does not generate the
check_swap plugin.

When I do a make config, I get the error shown below in the
config.log:


---
/usr/include/sys/swap.h:51:2: #error Cannot use swapctl in the large files 
compilation environment
configure:20249: checking whether swapctl is declared
/usr/include/sys/swap.h:51:2: #error Cannot use swapctl in the large files 
compilation environment
| #ifndef swapctl
|   (void) swapctl;
/usr/include/sys/swap.h:51:2: #error Cannot use swapctl in the large files 
compilation environment
/usr/include/sys/swap.h:51:2: #error Cannot use swapctl in the large files 
compilation environment
/usr/include/sys/swap.h:51:2: #error Cannot use swapctl in the large files 
compilation environment
/usr/include/sys/swap.h:51:2: #error Cannot use swapctl in the large files 
compilation environment
ac_cv_have_decl_swapctl=no
---

I get the same result with nagios-plugins-HEAD.tar.gz.

Has anyone experienced this error and was able to resolve in any way?


Thanks in advance.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598


signature.asc
Description: Digital signature
--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
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] Using PNP4Nagios

2010-06-21 Thread Daniel Bareiro
Hi, Jim.

On Monday, 21 June 2010 12:32:00 +0100,
Jim Avery wrote:

  I'm testing PNP4Nagios, but for some reason I'm just looking
  graphics for services in the Nagios server. For the rest of the
  remote hosts, when I click on the some red star, I get something
  like this:
 
  Initalising
  (OK) Using /usr/local/nagios/share/perfdata/
  (OK) RRDTool /usr/bin/rrdtool found.
  (OK) RRDTool /usr/bin/rrdtool is executable
  (OK) PHP Function proc_open is enabled
  (OK) PHP Function fpassthru is enabled
  (OK) PHP Function xml_parser_create is enabled
  (OK) PHP zlib Support found.
  (OK) PHP GD Support found.
  (OK) RRD Base Directory /usr/local/nagios/share/perfdata/ found.
  (OK) Hostname Router is set.
  (!)  Directory /usr/local/nagios/share/perfdata/alderamin not found.
 
  Where Alderamin is the hostname. In the service status interface,
  the Nagios server shows no red stars for the host or for services.
  However I can access their information through the following URL:
 
  http://ws1/nagios/pnp/index.php
 
 
  These are the lines I've in /usr/local/nagios/etc/nagios.cfg for
  pnp4nagios:
 
 
  broker_module=/usr/local/nagios/bin/npcdmod.o
 
  process_performance_data=1
  enable_environment_macros=1
 
  host_perfdata_command=process-host-perfdata
  service_perfdata_command=process-service-perfdata
 
 
  In /usr/local/nagios/etc/objects/mynet.cfg I added srv-pnp to the
  service definitions in the directive use and I added host-pnp to
  the directive use in the hosts definitions. Also, I'm using
  process_perf_data 0 in both hosts and services definitions.

 The srv-pnp and host-pnp templates will set the process_perf_data
 directive like so:
 
   process_perf_data   1
 
 If you override this by setting process_perf_data to 0 in the host or
 service definition, this will stop PNP from generating the graph!
 
 I recommend you remove the line which says process_perf_data 0 from
 those service and host definitions in mynet.cfg which use the
 srv-pnp and host-pnp template.

Good. This made the difference. Now I can see the graphics on all remote
hosts but I can not see them on the host on which Nagios is installed.
But I found why this is. I was missing add host-pnp and srv-pnp in
the directive use in /usr/local/nagios/etc/objects/localhost.cfg file.

There are services that are failing to be plotted but I believe that it
is because they are not providing information for perfdata, as in the
case of check_md_raid. In the service state information table for the
check_md_raid service, the performance data is empty.

But I don't believe that it has much sense, for this particular case, to
make some type of graph. Perhaps for this case it may be desirable to
set process_perf_data to 0.

check_ssh and check_local_procs don't give information for perfdata
either.

On the other hand, I've a router whose host_name is Router#1. It
appears that the # was causing a conflict that would prevent the
creation of the directory to keep track of charting. After removing this
character, the problem was solved.

For this router I'm checking three services: Enet0, PING, uptime. Of
these three services, only PING (check_ping) is providing perfdata
information. Uptime is obtained using check_snmp and in this case it
would not have sense to plotting these values. But the values of the
Enet0 interface (check_snmp_int [1]) can be useful.



Thanks for your reply.

Regards,
Daniel

[1] http://nagios.manubulon.com/snmp_int.html
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598


signature.asc
Description: Digital signature
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
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] Using PNP4Nagios

2010-06-20 Thread Daniel Bareiro
Hi, all!

I'm testing PNP4Nagios, but for some reason I'm just looking graphics
for services in the Nagios server. For the rest of the remote hosts,
when I click on the some red star, I get something like this:

Initalising 
(OK) Using /usr/local/nagios/share/perfdata/
(OK) RRDTool /usr/bin/rrdtool found.
(OK) RRDTool /usr/bin/rrdtool is executable 
(OK) PHP Function proc_open is enabled 
(OK) PHP Function fpassthru is enabled 
(OK) PHP Function xml_parser_create is enabled 
(OK) PHP zlib Support found.
(OK) PHP GD Support found.
(OK) RRD Base Directory /usr/local/nagios/share/perfdata/ found.
(OK) Hostname Router is set.
(!)  Directory /usr/local/nagios/share/perfdata/alderamin not found.

Where Alderamin is the hostname. In the service status interface, the
Nagios server shows no red stars for the host or for services. However I
can access their information through the following URL:

http://ws1/nagios/pnp/index.php


These are the lines I've in /usr/local/nagios/etc/nagios.cfg for
pnp4nagios:


broker_module=/usr/local/nagios/bin/npcdmod.o

process_performance_data=1
enable_environment_macros=1

host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata


In /usr/local/nagios/etc/objects/mynet.cfg I added srv-pnp to the
service definitions in the directive use and I added host-pnp to the
directive use in the hosts definitions. Also, I'm using
process_perf_data 0 in both hosts and services definitions.


In /usr/local/nagios/etc/objects/templates.cfg I added the following
definitions:


# DGB - 20100620
define host {
  name   host-pnp
  register   0
  action_url /nagios/pnp/index.php?host=$HOSTNAME$
}

define service {
  name   srv-pnp
  register   0
  action_url /nagios/pnp/index.php?host=$HOSTNAME$srv=$SERVICEDESC$
}


And in /usr/local/nagios/etc/object/commands.cfg I replace the existing
definitions of process-host-perfdata and process-service-perfdata for
the following:


define command {
  command_nameprocess-service-perfdata
  command_line/usr/bin/perl
/usr/local/nagios/libexec/process_perfdata.pl
}

define command {
  command_nameprocess-host-perfdata
  command_line/usr/bin/perl
/usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
}


Am I doing something wrong or I am forgetting some step?


Thanks in advance for your replies.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598


signature.asc
Description: Digital signature
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
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] About Nagios3 and arbitrary code execution

2009-07-09 Thread Daniel Bareiro
On Wednesday, 08 July 2009 11:42:15 +0100,
Ton Voon wrote:

 On 8 Jul 2009, at 10:44, Daniel Bareiro wrote:
 
  According to I see in changelog of the version 3.1.1, it
  incorporates a security fix for statuswml.cgi where arbitrary shell
  injection was possible. Somebody could confirm to me that this
  vulnerability is the same that is mentioned in the DSA?
 
 Yes it is.

Perfect. Thanks for your reply, Ton.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
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] About Nagios3 and arbitrary code execution

2009-07-08 Thread Daniel Bareiro
Hi all!

At the moment I am using Nagios 3.0.6 (12/01/2008) compiled from the
source code provided from nagios.org. Recently I have read in the
DSA-1825-1 [1] about an arbitrary code execution.

According to I see in changelog of the version 3.1.1, it incorporates a
security fix for statuswml.cgi where arbitrary shell injection was
possible. Somebody could confirm to me that this vulnerability is the
same that is mentioned in the DSA?

Thanks in advance.

Regards,
Daniel

[1] http://lwn.net/Alerts/339889/
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge___
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] Doubt about email notifications

2009-04-27 Thread Daniel Bareiro
On Sunday, 26 April 2009 23:24:37 -0300,
Daniel Bareiro wrote:

 On Sunday, 19 April 2009 22:02:44 -0300,
 Daniel Bareiro wrote:
 
  On Tuesday, 14 April 2009 07:11:28 -0500,
  Marc Powell wrote:
 
On the other hand, I would like also to know if it is possible to
define the maximum number of notifications that are sent.
   
I read exist variables that allow to configure both things using
escalations, although I do not have defined escalations.
 
   yes, I believe an escalation would do for this. I haven't done this
   but I expect you could set your first notification to the number of
   the last notification you want to receive (i.e. 3 for the third
   notification) and your last notification to some high number (99).
   Create a contact with a notification period of 'none' and set it as
   the contact for the escalation.
  
  It seems a good idea :-) I am going to try it and any doubt I will
  consult you again.
 
 With a little more of time, I was reading about escalations and, to
 where I could see, these are created by host and services. Unless there
 is a general form to define the escalations, I don't believe that it is
 practical considering that I have 291 services and 58 hosts.

Apparently wilcards for the names of services can be used [1] although I
am not sure if also it is possible to be done for the hostnames. Will
wildcards (or .*) be valid with Nagios 3.0.6?

These are the definitions that I was thinking to use:

define hostescalation{
  host_name *
  first_notification1
  last_notification 3
  escalation_period none
  notification_interval 60
  contact_groupsadmins
}

define hostescalation{
  host_name *
  first_notification4
  last_notification 0
  escalation_period none
  notification_interval 60
  contact_groupsadmins
}

define serviceescalation{
  hostgroup_name
linux-servers,solaris-servers,windows-servers
  service_description   *
  first_notification1
  last_notification 3
  notification_interval 60
  contact_groupsadmins
}

define serviceescalation{
  hostgroup_name
linux-servers,solaris-servers,windows-servers
  service_description   *
  first_notification4
  last_notification 0
  escalation_period none
  notification_interval 60
  contact_groupsadmins
}


Regards,
Daniel

[1] 
http://www.linuxquestions.org/questions/linux-server-73/advanced-notifications-with-nagios-690896/
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Doubt about email notifications

2009-04-26 Thread Daniel Bareiro

On Sunday, 19 April 2009 22:02:44 -0300,
Daniel Bareiro wrote:

 On Tuesday, 14 April 2009 07:11:28 -0500,
 Marc Powell wrote:

   On the other hand, I would like also to know if it is possible to
   define the maximum number of notifications that are sent.
  
   I read exist variables that allow to configure both things using
   escalations, although I do not have defined escalations.
 
  yes, I believe an escalation would do for this. I haven't done this
  but I expect you could set your first notification to the number of
  the last notification you want to receive (i.e. 3 for the third
  notification) and your last notification to some high number (99).
  Create a contact with a notification period of 'none' and set it as
  the contact for the escalation.
 
 It seems a good idea :-) I am going to try it and any doubt I will
 consult you again.

With a little more of time, I was reading about escalations and, to
where I could see, these are created by host and services. Unless there
is a general form to define the escalations, I don't believe that it is
practical considering that I have 291 services and 58 hosts.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Doubt about email notifications

2009-04-19 Thread Daniel Bareiro
Hi Marc.

On Tuesday, 14 April 2009 07:11:28 -0500,
Marc Powell wrote:

  Is there any variable where I can configure each how long are sent
  the email notifications for the services? At first I see that these
  are  sent hourly.
 
 notification_interval -- 
 http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service

Perfect.
 
  On the other hand, I would like also to know if it is possible to
  define the maximum number of notifications that are sent.
 
  I read exist variables that allow to configure both things using
  escalations, although I do not have defined escalations.

 yes, I believe an escalation would do for this. I haven't done this
 but I expect you could set your first notification to the number of
 the last notification you want to receive (i.e. 3 for the third
 notification) and your last notification to some high number (99).
 Create a contact with a notification period of 'none' and set it as
 the contact for the escalation.

It seems a good idea :-) I am going to try it and any doubt I will
consult you again.

Thanks to both for your replies.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Output from check_local_mrtgtraf

2009-04-19 Thread Daniel Bareiro
Hi all!

I am observing some differences between which I see with MRTG and the
output from check_local_mrtgtraf. For example, if I manually execute the
command, I obtain the following thing:

# /usr/local/nagios/libexec/check_mrtgtraf -F \
/space/www/htdocs/mrtg.sysadminhaiku.com.ar/192.168.1.1_1.log -a AVG \
-w 100,100 -c 500,500 -e 10
Traffic OK - Avg. In = 410,0 B/s, Avg. Out = 797,0
B/s|in=410,00B/s;100,00;500,00;0,00
in=797,00B/s;100,00;500,00;0,00


The last values registered by MRTG that I see by the web interface are
the following:


`Daily' Graph (5 Minute Average)

Max Average Current
In  40.3 kb/s (0.0%)3616.0 b/s (0.0%)   3272.0 b/s  (0.0%)
Out 1809.5 kb/s (1.8%)  44.6 kb/s (0.0%)6376.0 b/s  (0.0%) 


This is the service definition:

define service{
  use generic-service ; Inherit values from a template
  host_name Router#1
  service_description Bandwidth Usage
  check_command
  
check_local_mrtgtraf!/space/www/htdocs/mrtg.sysadminhaiku.com.ar/192.168.1.1_1.log!AVG!100,100!500,500!10
}


I do not have left very clear to what that difference can be due or if I
am losing myself in the interpretation of the data of Nagios plugin.

Thanks in advance.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Doubt about email notifications

2009-04-14 Thread Daniel Bareiro
Hi all!

Is there any variable where I can configure each how long are sent the
email notifications for the services? At first I see that these are sent
hourly.

On the other hand, I would like also to know if it is possible to define
the maximum number of notifications that are sent.

I read exist variables that allow to configure both things using
escalations, although I do not have defined escalations.

I am using Nagios 3.0.1 in Debian GNU/Linux 

Thanks in advance.

Regards,
Daniel
-- 
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598


signature.asc
Description: Digital signature
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Could not opencommandfile '/usr/local/nagios/var/rw/nagios.cmd'

2008-05-26 Thread Daniel Bareiro
On Thursday, 22 May 2008 07:47:46 -0500,
Marc Powell wrote:

   ... or just set nagios_group in nagios.cfg to be nagcmd...

  I liked this simpleness. But after restarting the Nagios server, this
  doesn't work :-(

 Interesting... smells buglish.

 # grep nagios_group nagios.cfg
 nagios_group=nagios

 # ps -eo pid,user,rgroup,command | grep nagios

 27347 nagios   nagios /usr/local/nagios/bin/nagios -d
 /usr/local/nagios/etc/nagios.cfg

 # vi nagios.cfg

 # grep nagios_group nagios.cfg
 nagios_group=nagcmd

 # /etc/init.d/nagios restart
 Running configuration check...done
 Stopping network monitor: nagios
 Waiting for nagios to exit . . done.
 Starting network monitor: nagios

 # ps -eo pid,user,rgroup,command | grep nagios

 32016 nagios   nagcmd /usr/local/nagios/bin/nagios -d
 /usr/local/nagios/etc/nagios.cfg

 I see the change here -
 -rw-rw-r--1 nagios   nagcmd 829161 May 22 07:25 status.dat

 But not here -
 prw-rw1 nagios   nagios  0 May 22 07:26 nagios.cmd

I obtain a different result slightly:

sparky:/usr/local/nagios/var# ps -eo pid,user,rgroup,command | grep nagios
16830 nagios   nagcmd   /usr/local/nagios/bin/nagios -d 
/usr/local/nagios/etc/nagios.cfg
16831 nagios   nagcmd   /usr/local/nagios/bin/nagios -d 
/usr/local/nagios/etc/nagios.cfg
16832 nagios   nagcmd   /usr/local/nagios/bin/nagios -d 
/usr/local/nagios/etc/nagios.cfg

sparky:/usr/local/nagios/var# ll status.dat
-rw-rw-r-- 1 nagios nagios 286639 2008-05-26 11:08 status.dat

sparky:/usr/local/nagios/var/rw# ll nagios.cmd
prw-rw 1 nagios nagios 0 2008-05-26 10:58 nagios.cmd

Thanks for your reply.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598


signature.asc
Description: Digital 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] Could not open commandfile '/usr/local/nagios/var/rw/nagios.cmd'

2008-05-21 Thread Daniel Bareiro
On Sunday, 18 May 2008 22:53:03 -0500,
Marc Powell wrote:

  There are at least a couple ways to fix this. One would be to
  recompile Nagios to use a group your webserver is a member of.
  Another would be to set the rw directory setgid www-data so new
  files created there have that as their group. For that to work, the
  nagios user would also need to be a member of www-data.

 ... or just set nagios_group in nagios.cfg to be nagcmd...

I liked this simpleness. But after restarting the Nagios server, this
doesn't work :-(

Thanks for your reply.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598


signature.asc
Description: Digital 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

[Nagios-users] Could not open command file '/usr/local/nagios/var/rw/nagios.cmd'

2008-05-18 Thread Daniel Bareiro
Hi!

I've update the Nagios version from 3.0b5 to 3.0.1 stable. But
re-scheduling a new check for a service I get:

-
Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd'
for update!

The permissions on the external command file and/or directory may be
incorrect. Read the FAQs on how to setup proper permissions.

An error occurred while attempting to commit your command for
processing.
-

sparky:/usr/local/nagios/var/rw# ll
total 0
prw-rw 1 nagios nagios 0 2008-05-18 10:38 nagios.cmd
sparky:/usr/local/nagios/var/rw# id nagios
uid=1001(nagios) gid=1001(nagios) groups=1001(nagios),1002(nagcmd)
sparky:/usr/local/nagios/var/rw# id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),1002(nagcmd)

The permissions are according to Ubuntu Quickstart. Changing the group
of nagios.cmd to nagcmd I get rid of the problem. But restarting Nagios,
the nagios.cmd permissions are reset to nagios:nagios. What can be the
problem?

Tnaks in advance.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lennt - Linux user #188.598


signature.asc
Description: Digital 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

[Nagios-users] Last check displayed

2008-05-18 Thread Daniel Bareiro
Hi!

I've noticed a sensible difference in the hosts displayed in the service
detail' Nagios interface for last check. In some host the hour is
consistent with the actual one, but in others I observe a differences of
one or more hours.

This can be due to some Nagios cache?

Thanks in advance

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598


signature.asc
Description: Digital 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] Could not open command file '/usr/local/nagios/var/rw/nagios.cmd'

2008-05-18 Thread Daniel Bareiro
On Sunday, 18 May 2008 17:34:31 +,
Morris, Patrick wrote:

  I've update the Nagios version from 3.0b5 to 3.0.1 stable. But
  re-scheduling a new check for a service I get:

  ---

  Error: Could not open command file
  '/usr/local/nagios/var/rw/nagios.cmd' for update!

  The permissions on the external command file and/or directory may be
  incorrect. Read the FAQs on how to setup proper permissions.

  An error occurred while attempting to commit your command for
  processing.
  ---

  sparky:/usr/local/nagios/var/rw# ll
  total 0
  prw-rw 1 nagios nagios 0 2008-05-18 10:38 nagios.cmd
  sparky:/usr/local/nagios/var/rw# id nagios
  uid=1001(nagios) gid=1001(nagios) groups=1001(nagios),1002(nagcmd)
  sparky:/usr/local/nagios/var/rw# id www-data
  uid=33(www-data) gid=33(www-data) groups=33(www-data),1002(nagcmd)

  The permissions are according to Ubuntu Quickstart. Changing the
  group of nagios.cmd to nagcmd I get rid of the problem. But
  restarting Nagios, the nagios.cmd permissions are reset to
  nagios:nagios. What can be the problem?
 
 Sounds like when you updated you compiled with a different user and/or
 group than your older version.

I upgrade follow this [1] guide, using:

./configure --with-command-group=nagcmd
make all
make install

Previously I did not make changes in the users or groups. These are:

sparky:/usr/local/nagios/var/rw# id nagios
uid=1001(nagios) gid=1001(nagios) groups=1001(nagios),1002(nagcmd)
sparky:/usr/local/nagios/var/rw# id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),1002(nagcmd)

In case it is of utility, after to run the 'configure', this is the
summary that I obtain:

*** Configuration summary for nagios 3.0.1 05-16-2008 ***:

 General Options:
 -
Nagios executable:  nagios
Nagios user/group:  nagios,nagios
   Command user/group:  nagios,nagcmd
Embedded Perl:  no
 Event Broker:  yes
Install ${prefix}:  /usr/local/nagios
Lock file:  ${prefix}/var/nagios.lock
   Check result directory:  ${prefix}/var/spool/checkresults
   Init directory:  /etc/init.d
  Apache conf.d directory:  /etc/apache2/conf.d
 Mail program:  /usr/bin/mail
  Host OS:  linux-gnu

 Web Interface Options:
 
 HTML URL:  http://localhost/nagios/
  CGI URL:  http://localhost/nagios/cgi-bin/
 Traceroute (used by WAP):  /usr/sbin/traceroute


Thanks for your reply, Patrick.

Regards,
Daniel

[1] http://nagios.sourceforge.net/docs/3_0/upgrading.html
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lenny - Linux user #188.598


signature.asc
Description: Digital 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

[no subject]

2008-05-13 Thread Daniel Bareiro
 : 1

 Rebuild Status : 43% complete

   UUID : 119bcdde:0ac351b2:d05e4382:e6def213
 Events : 0.10378

Number   Major   Minor   RaidDevice State
   0   820  active sync   /dev/sda2
   2   8   181  spare rebuilding   /dev/sdb2
/dev/md2:
Version : 00.90.03
  Creation Time : Thu Apr 10 17:46:25 2008
 Raid Level : raid1
 Array Size : 292053568 (278.52 GiB 299.06 GB)
Device Size : 292053568 (278.52 GiB 299.06 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Sun May  4 02:31:57 2008
  State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

   UUID : 8d954d13:82dabd5b:096fe691:7819c2d2
 Events : 0.10

Number   Major   Minor   RaidDevice State
   0   830  active sync   /dev/sda3
   1   8   191  active sync   /dev/sdb3

Perfect! Now it seems to works well. Was the problem related to the
output of mdadm?

Thanks for your reply and the new version of plugin! :-)

Regards,
Daniel
--=20
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lennt - Linux user #188.598

--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Digital signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIKe8rZpa/GxTmHTcRAthIAJ4s/fJ6q9CjnUQxrXmtowoM0pqQOACfUtk1
yYG9k3XIjdeJL/Xb6k9n3wA=
=5Foo
-END PGP SIGNATURE-

--RnlQjJ0d97Da+TV1--


--===1950325105==
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-
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/
--===1950325105==
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

___
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
--===1950325105==--



[Nagios-users] Monitoring software RAID in Debian GNU/Linux

2008-04-28 Thread Daniel Bareiro
Hi all!!

I'm testing the plugin check_md_raid.pl [1] on Debian GNU/Linux Etch and
I've removed a member of RAID device with the following commands:

mdadm --manage /dev/md2 --fail /dev/sdb3
mdadm --manage /dev/md2 --remove /dev/sdb3

But Executing by hand the plugin, it shows the RAID status in OK during
degraded and rebuilding modes:

xenhost7:/usr/local/nagios/libexec/non-std# ./check_md_raid.pl
RAID OK: All arrays OK

Is it correct to suppose the status would have to be CRITICAL and
WARNING, respectively?

Thanks in advance!

Regards,
Daniel

[1] http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2418.html;d=1



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
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] Host status information not found

2008-04-25 Thread Daniel Bareiro
Hi all!

I'm getting per moments this message in the statusmap for a single host.
With the rest I don't have problems. That it can cause this?

Thanks in advance.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Lennt - Linux user #188.598


signature.asc
Description: Digital signature
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
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_oracle fails executing with nrpe

2007-12-08 Thread Daniel Bareiro
On Monday, 03 December 2007 15:22:03 -0600,
Marc Powell wrote:

  I've some problems executing check_oracle plugin via check_nrpe.
 
  In the Oracle server:
 
  sdptest:/usr/local/nagios/etc# cat /usr/local/nagios/etc/nrpe.cfg | \
  grep check_sysaux
  command[check_sysaux]=/usr/local/nagios/libexec/check_oracle
  --tablespace x y z SYSAUX 90 80

  sdptest:/usr/local/nagios/etc# /usr/local/nagios/libexec/check_oracle \
  --tablespace x y z SYSAUX 90 80
 
  x : SYSAUX OK - 40.50% used [ 476 / 800 MB available
  ]|SYSAUX=40.50%;80;90;0;100

  Any idea to resolve this issue?
 
 Yes, try running the above test as the user that NRPE runs as. It's
 almost certainly not root and doesn't have root environment or privs.

NRPE run as nagios user. Since it hasn't a valid shell I can't try the
above test with this user. I put the nagios user in oinstall group and
check_oracle via check_nrpe works!

Thanks for your response, Marc.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
SF.Net email is sponsored by:
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] How to disable check-host-alive

2007-12-08 Thread Daniel Bareiro
On Monday, 03 December 2007 10:07:18 +0100,
Giles Coochey wrote:

  I try adding 'retain_status_information 0' in host definition for
  Nagios server. Now, its host status is 'pending' instead of 'down'.
  But the default host initial state shouldn't be 'up'?

 You could try sending a passive check result to put it back into an
 OK state.

Mmmm... I've read the Nagios documentation about passive check but yet I
do not know very clearly how to use it to put the status back into an OK
state. What is your suggestion?

Thanks for your response, Giles.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
SF.Net email is sponsored by:
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_oracle fails executing with nrpe

2007-12-03 Thread Daniel Bareiro
Hi all!

I've some problems executing check_oracle plugin via check_nrpe.

In the Oracle server:

sdptest:/usr/local/nagios/etc# cat /usr/local/nagios/etc/nrpe.cfg | \
grep check_sysaux
command[check_sysaux]=/usr/local/nagios/libexec/check_oracle
--tablespace x y z SYSAUX 90 80

sdptest:/usr/local/nagios/etc# /usr/local/nagios/libexec/check_oracle \
--tablespace x y z SYSAUX 90 80

x : SYSAUX OK - 40.50% used [ 476 / 800 MB available
]|SYSAUX=40.50%;80;90;0;100


In the nagios server:

sparky:~# /usr/local/nagios/libexec/check_nrpe -H 200.16.65.189 \
-p 5000 -c check_sysaux
x : SYSAUX OK - % used [  /  MB available ]|SYSAUX=%;80;90;0;100

Versions:

nagios-plugins 1.4.7
nagios 3.0b5

Any idea to resolve this issue?

Thanks in advance.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] How to disable check-host-alive

2007-12-02 Thread Daniel Bareiro
On Sunday, 02 December 2007 10:43:25 -0600,
Marc Powell wrote:

  check_command: [...] If you leave this argument blank, the host
  will not be checked - Nagios will always assume the host is up.
  This is useful if you are monitoring printers or other devices
  that are frequently turned off.

  I didn't get errors after Nagios restart, but it continue
  displaying the host in down state, yet.

  Well, Nagios didn't produce host notifications again. But, if Nagios
  will always assume the host is up, why it continues displaying the
  host in down state?
 
 I would guess that the template you were using had
 retain_status_information enabled. You removed it but nagios had
 already written out the down status to the retention file and used
 that on the restart. Try restarting nagios again. If that doesn't work
 you can probably stop nagios, edit the state retention file to remove
 the host stanza (making a backup first of course) and restart nagios.

I try adding 'retain_status_information 0' in host definition for Nagios
server. Now, its host status is 'pending' instead of 'down'. But the
default host initial state shouldn't be 'up'?

Thanks for your response, Marc.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] How to disable check-host-alive

2007-12-01 Thread Daniel Bareiro
On Saturday, 01 December 2007 17:07:45 -0600,
Marc Powell wrote:

  check_command: [...] If you leave this argument blank, the host will
  not be checked - Nagios will always assume the host is up. This is
  useful if you are monitoring printers or other devices that are
  frequently turned off.

  Error: Host check command '(null)' specified for host 'sparky' is
  not defined anywhere!

  I'm missing something from the documentation?
 
 No, it's just awkward wording. You need to leave the line out
 entirely; don't even specify the keyword 'check_command' within the
 host definition.

Oh, well. In addition to it, I've deleted the line use linux-server to
avoid to use the check-host-alive command in the template definition.
This is my host definition:

define host{
host_name   sparky
alias   nagios server
address 127.0.0.1
max_check_attempts  10
icon_image  base/sun40.gif
statusmap_image base/sun40.gd2
contact_groups  nagios admins
notification_period sysadmin_time
}

I didn't get errors after Nagios restart, but it continue displaying the
host in down state, yet.

Thanks for your response, Marc.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] Host object redefinition

2007-11-24 Thread Daniel Bareiro
On Thursday, 22 November 2007 08:14:54 -0600,
Marc Powell wrote:

  Then, I'd like to redefine the host object to include a port
  variable for call it in a general service definition.

  With nagios-3, yes, but not with nagios-2.

  I'm using Nagios 3. Could you give me an example? I was searching
  documentation about it, but I didn't found how to do it yet.
 
 See Custom Variable Macros at
 http://nagios.sourceforge.net/docs/3_0/macros.html 

Great! Thank you very much, Marc.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Host object redefinition

2007-11-21 Thread Daniel Bareiro
On Monday, 19 November 2007 23:25:52 -0600,
Marc Powell wrote:

  I've several hosts behind a firewall and I'd like to monitoring they
  with Nagios. These host haven't a public IP. Then, mi idea was to
  configure the firewall to redirect the Nagios server conection at
  specific port in the firewall ---one per host without public IP
  behind the firewall--- to remote NRPE listen port from the remote
  host.

  Then, I'd like to redefine the host object to include a port
  variable for call it in a general service definition.

 With nagios-3, yes, but not with nagios-2.

I'm using Nagios 3. Could you give me an example? I was searching
documentation about it, but I didn't found how to do it yet.

 With nagios-2, you could pass it as a $ARGx$ macro from each service
 definition or create an nrpe command{} definition per host.

Yes. It was first that I thought. But perhaps there would be a best form
to deal with it. :-)

Thanks for your answer, Marc.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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] Host object redefinition

2007-11-19 Thread Daniel Bareiro
Hi all!

This is my first post in the list/newsgroup.

I've several hosts behind a firewall and I'd like to monitoring they
with Nagios. These host haven't a public IP. Then, mi idea was to
configure the firewall to redirect the Nagios server conection at
specific port in the firewall ---one per host without public IP behind
the firewall--- to remote NRPE listen port from the remote host.

Then, I'd like to redefine the host object to include a port variable
for call it in a general service definition. Example:

define host {
  use linux-server-intranet
  host_name sdptest
  alias oracle server
  address a.b.c.d
  port 5000
  parents beta
  icon_image base/debian.gif
  statusmap_image base/debian.gd2
}

define service {
  use linux-server-intranet
  host_name apstest
  alias application server
  address x.y.z.t
  port 5001
  parents beta
  icon_image base/debian.gif
  statusmap_image base/debian.gd2
}

# 'check_nrpe-intranet' command definition
define command{
  command_namecheck_nrpe-intranet
  command_line$USER1$/check_nrpe -H ip.of.the.fw -p $PORT$ -c $ARG2$
}

define service {
  use generic-service
  host_name apstest,sdptest
  service_description Disk usage
  check_command check_nrpe!check_disk
  check_period  24x7
  normal_check_interval 5
  retry_check_interval  1
  max_check_attempts3
}


Is it possible?

Thanks in advance.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598


signature.asc
Description: Digital signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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