Re: [Nagios-users] FW: NSClient++ on windows machine
Palle Jensen wrote: Hej :=) Thanks Lars, still struggling in between, to get the ngraphs working for my Check_nt services. I tried what you said and i got the output data, but how to change it in the ngraph definition? That seems to be not all that easy. For example: check_nt -H ip.ad.dre.ss -v USEDDISKSPACE -l c -p 12489 -w 90 -c 95 Will give the output: c:\ - total: 3.95 Gb - used: 2.44 Gb (62%) - free 1.51 Gb (38%) | 'c:\ Used Space'=2.44Gb;3.55;3.75;0.00;3.95 If I understand it correct it's the code in graph_perf_regex ([0-9]+)MB that needs to match or read the output perf data from check_nt e.g | 'c:\ Used Space'=2.44Gb;3.55;3.75;0.00;3.95 define ngraph { graph_legend Used Space graph_perf_regex ([0-9]+)MB graph_perf_regex ([0-9]+)Gb would match the above output's first column. graph_value MBused hide yes rrd_color 00a000 rrd_plottype AREA service_name Filesystems } Another example is the Check_nt Memory used | 'Memory usage'=1367.25Mb;3588.48;4037.04;0.00;4485.60 Compared to output from Check_mem (native plugin) | /=2848MB;17278;17268;0;17358 /boot=16MB;18;8;0;98 /dev/shm=0MB;170;160;0;250 And the Ngraph definition for the native plugin looks like this: define ngraph { graph_legend Memory Used graph_perf_regex MemUsed=([0-9]+)% There's a '%' character in the expected regular expression, but there's no '%' character in the above output, hence it doesn't match. graph_value MemUsed hide yes rrd_color 00a000 rrd_plottype AREA service_name Memuse } What do you think, or are there anyone else that knows how to changes this so that I can get the perf data to be picked up by ngraph? I think you might need to read up on regular expression matching:) /Lars -Original Message- From: Lars Stavholm [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 4:23 PM To: Palle Jensen Cc: 'Nagios Users' Subject: Re: [Nagios-users] FW: NSClient++ on windows machine Palle Jensen wrote: Hi to all, Hej:) I have been trying to find out how you get the graphs for monitored service on Windows/Nsclient++. It is working fine for the locahost (FC9) Memory, load, procs and users. I added a windows machine with NSClient++, I added the service Ping to both localhost and the windows machine, and the graphs are showing up fine. But when I add Memory, procs, load service to the windows machine no graphs shows. How come it works with ping for both localhost and Windows machine? Even though I made sure that the service_description is the same as for the localhost I am about to go insain, please help? I know this belongs under NagiosGrapher mailinglist, and I posted there as well, but I got 0 answers there, hoping that someone can help me here. I'll just assume that you remembered to restart/reload both NagiosGrapher and nagios when adding stuff in config. There might be a difference in the performance data handed back by NSClient as compared to the native check plugins. The check_load, for instance, can be run manually. Now run the check_load for the Windows boxes (whatever it's called) and compare the output, especially the output to the righ of the '|' character, i.e. the performance data delimiter. If they are not the same, they wont fit the same graph definition. Min you, I have no experience with NSClient at all, but still. Cheers /Lars - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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-down notification can take 50 mins to be sent
Guys I'm trying the latest stable 2.x version (2.9) and on top of the 2 already existing default host templates I added a 3rd one since the documentation states that there is no limit. I added a host and started monitoring. When I took it down it took between 2 - 5 mins for the host down notification to come in. However, later on I rebooted again and this time nothing came in. The nagios log showed nothing about wanting to send a notification either. The box came back without any notification. I took it down again later and waited - after 50 minutes I got a host down notification. When I brought the host back I almost immediately got a host up notification. I removed one of the the templates to change the recursion level of the host templates from 3 to 2 and tried again. I did 3 tests and all came back fine this time. I always got the notification within 5 minutes max. Then I added the 3rd template back again to see whether it had to do with that but now I can't reproduce this. I did 2 tests and both were fine. I don't feel that I can trust nagios now though. I've been using it for a few years now since version 1.2 and I've never seen this behaviour before. However, I've also never used more than 1 host/service template. This time I wanted to make more use of the object inheritance logic to shorten my cfg but somehow I feel it causes problems. How deep is the template recursion for most of you folks ? Here are the templates I was using when the 50 min delay happened Hosts : # Host templates define host{ namegeneric-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 notification_period 24x7 register0 } define host{ namegeneric-linux use generic-host check_period24x7 max_check_attempts 10 check_command check-host-alive notification_interval 120 notification_optionsd,u,r register0 } define host{ nameprod use generic-linux contact_groups sysadmins,psst register0 } define host{ namenonprod use generic-linux contact_groups sysadmins register0 } Then I use either the prod or nonprod template for all my hosts. same with services : # Service templates define service{ namegeneric-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 is_volatile 0 register0 } define service{ namegeneric-checks use generic-service check_period24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval1 notification_optionsw,u,c,r notification_interval 60 notification_period 24x7 register0 } define service{ nameprod use generic-checks contact_groups sysadmins,psst register0 } define service{ namenonprod use generic-checks contact_groups sysadmins register0 } Here I also use prod or nonprod as templates for my services. I'm gonna test the more tomorrrow but I'm worried that if a host goes down I might not get notified again until 50 mins later or maybe never who knows ? It doesn't seem to behave the same way every time but as far as I see it the service checks are every 5 minutes so within that time frame I should get a notification. Parallel checks is turned on as well. Has anyone seen similar delays ? -- stucky
Re: [Nagios-users] How to set the sourceaddress for all checks?
You cannot. Your OS's TCP stack determines what source IP to use; the base IP on the interface used to reach the destination network. Thanks to all your clarifications and suggestions - actually there were redundant routes on this host which resulted in unpredictable source-addresses when running the checks. Thanks again, Ingo. -- Ingo Lantschner Vienna/Austria Mob (+43-664) 143 84 18 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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-down notification can take 50 mins to be sent
On 15/06/07, stucky [EMAIL PROTECTED] wrote: Guys I'm trying the latest stable 2.x version (2.9) and on top of the 2 already existing default host templates I added a 3rd one since the documentation states that there is no limit. I added a host and started monitoring. When I took it down it took between 2 - 5 mins for the host down notification to come in. However, later on I rebooted again and this time nothing came in. Nagios had probably decided the host was flapping. Specify notification_options d,u,f,r in your host definitions to make sure you get notification of flapping (or turn flap detection off). hth, Jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 inventory
Hi! i'm looking for some kind of Nagios plugin that allows to do inventory from a Nagios installation... is it possible? Thanks in advance! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Cancel Downtime?
On Jun 7, 2007, at 11:18 PM, Anthony Mendoza wrote: Click Downtime and then the Trash can icon to the right of the service/host you want to cancel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wil Schultz Sent: Thursday, June 07, 2007 11:11 PM To: nagios-users Subject: [Nagios-users] Cancel Downtime? IIRC, there used to be a Cancel Downtime link, am I blind or did this go away? How do you cancel scheduled downtime? I need to cancel scheduled downtime on a host and took the advise of Anthony Mendoza in this thread. Clicking on the Trash can icon certainly removes the Nagios generated comment but the period of scheduled downtime remains. Any ideas anyone? regards, Aidan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Cancel Downtime?
Aidan Anderson wrote: On Jun 7, 2007, at 11:18 PM, Anthony Mendoza wrote: Click Downtime and then the Trash can icon to the right of the service/host you want to cancel. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wil Schultz Sent: Thursday, June 07, 2007 11:11 PM To: nagios-users Subject: [Nagios-users] Cancel Downtime? IIRC, there used to be a Cancel Downtime link, am I blind or did this go away? How do you cancel scheduled downtime? I need to cancel scheduled downtime on a host and took the advise of Anthony Mendoza in this thread. Clicking on the Trash can icon certainly removes the Nagios generated comment but the period of scheduled downtime remains. Any ideas anyone? regards, Aidan Ignore last e-mail, I found it. You do it from the downtime link on the sidebar. :) cheers, Aidan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 nagios snmp with windows machines
Thanks Max for the how-to, i read it and is very easy, and works for me. How i can set all the snmp command with the correct syntax. For example: debian:/usr/lib/nagios/plugins# ./check_snmp_load.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand 1 CPU, load 6.0% 90% : OK and that works fine. but when do that: debian:/usr/lib/nagios/plugins# ./check_snmp_int.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand Unknown option: T Usage: ./check_snmp_int.pl [-v] -H host -C snmp_community [-2] | (-l login -x passwd [-X pass -L authp,privp) [-p port] -n name in desc_oid [-i] [-a] [-r] [-f[eSyY]] [-k[qBMGu] -g -wwarn levels -ccrit levels -ddelta] [-o octet_length] [-t timeout] [-s] --label [-V] debian:/usr/lib/nagios/plugins# whet i delete the T option the same error view: Do you had the correct syntaxt for all this command, and i don't know that all this command don't works monittoring on windows machines: check_snmp_boostedge.pl check_snmp_css.pl check_snmp_linkproof_nhr.pl check_snmp_nsbox.pl check_snmp_vrrp.pl check_snmp_cpfw.pl check_snmp_env.pl check_snmp_load.pl ./check_snmp_load.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand this is OK check_snmp_process.pl check_snmp_win.pl check_snmp_css_main.pl check_snmp_int.pl check_snmp_mem.pl check_snmp_storage.pl Thanks Max for the help Muchas gracias y perdoname por no saber tanto inglés. Saludos 2007/6/14, Max Hetrick [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 andres sarmiento wrote: Ok, look, i had problem settings the snmp-services. i want to check way snmp the windows machines but i don't know how implement it. I had read very documentation from internet but also i can't implement it. Can you helpme way how-to, how to implement monitoring with nagios way snmp to windows machines step-by-step . Well, to start, you have to make sure SNMP is installed on the Windows clients. If you don't already have that part done, you do can add the following through Add/Remove Windows Components in the Control Panel. Management and Monitoring Tools - SNMP If you want to change the community string from public to something else, and you want to change any settings go into Services and choose properties on SNMP Service on the Windows hosts. That said, you're going to have to read up a bit on some things. I don't know where there is a step-by-step guide for this, but it's not that hard to do. By making sure you installed SNMP on the clients, and then by using these plugins, you should be able to work your way through things. This implies you understand how Nagios works first. http://nagios.manubulon.com/ http://nagios.manubulon.com/snmp_windows.html Once you get them downloaded and installed, make sure you can get one of the plugins to execute from your libexec path. For example: # /usr/lib/nagios/plugins check_snmp_load.pl -H HOST -C COMMSTRING -w 90 - -c 100 -T stand 4 CPU, average load 0.5% 90% : OK If that works from the command line, you can go ahead and start working on configuring Nagios. If it doesn't work, then you need to check and make sure the scripts are executable, and owned by whomever is running them, etc. Create the service: # SNMP 'Doze CPU Load define service{ use basic-service namesnmp-doze-cpu notification_interval 0 contact_groups itdepartment notification_optionsc,r notification_period 24x7 service_description CPU Load check_command snmp_doze_cpu!90!100 host_name windowsclient1,windowsclient2 } Create the new check command: # 'snmp_doze_cpu' Windoze CPU load check define command{ command_namesnmp_doze_cpu command_line$USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C COMMSTRING -w $ARG1$ -c $ARG2$ } Verify Nagios likes it. # nagios -v nagios.cfg Fix any errors it complains about. Follow this method for all the other SNMP checks you want to use across these plugins from Manubulon. Again, this implies you understand Nagios. If you don't, then I suggest you take some time to try to read the docs about how the basics of Nagios work. This isn't any different than creating a regular service check, or a host check. It's just doing it across the SNMP protocol. Regards, Max -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFGcUaZHoeeepPau2ERAkKqAKCFxgf0CoDDnKmCLcMdLu43BLk8EwCfYiqJ /lq8hk+mf6RtgBihIMBbBf0= =ApjI -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Re: [Nagios-users] problem nagios snmp with windows machines
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 andres sarmiento wrote: debian:/usr/lib/nagios/plugins# ./check_snmp_int.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand Unknown option: T Usage: ./check_snmp_int.pl [-v] -H host -C snmp_community [-2] | (-l login -x passwd [-X pass -L authp,privp) [-p port] -n name in desc_oid [-i] [-a] [-r] [-f[eSyY]] [-k[qBMGu] -g -wwarn levels -ccrit levels -ddelta] [-o octet_length] [-t timeout] [-s] --label [-V] debian:/usr/lib/nagios/plugins# That was a typo on my part. The entire executable path is: /usr/lib/nagios/plugins/check_snmp_int.pl /usr/lib/nagios/plugins/check_snmp_load.pl I see that I had a typo in the path I showed you, sorry about that. :) If you want the help of each command, then just append --help ./check_snmp_int.pl --help That'll give you the syntax for using it. Each command is that way as well. Each command has different usage parameters. Regards, Max -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFGcpJdHoeeepPau2ERApc3AKCBR8xG4Km7yJYoLch84WaDXJV87QCgkOZa WDSM/BT3pDXtCrj37gg9SPI= =kM73 -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 set the sourceaddress for all checks?
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Michael Silver Sent: Thursday, June 14, 2007 5:32 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] How to set the sourceaddress for all checks? [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Ingo Lantschner Sent: Thursday, June 14, 2007 9:31 AM To: nagios-users nagios-users Subject: [Nagios-users] How to set the sourceaddress for all checks? Hi, if I am running Nagios on a host with more than one IP address on the same physical network (trough aliases like eth0:1): Can I set the IP-source-address used for running the network-related-checks in one point? If yes, where please :-) You cannot. Your OS's TCP stack determines what source IP to use; the base IP on the interface used to reach the destination network. Actually, some versions of ping do allow you to set the source address. The version in iputils package allows you to set the IP via -I address or interface name. I don't have a machine I can test the exact situation described, but I believe it will work as desired. That's nice but that doesn't help with the network based nagios-plugins any, which was the OP's goal. I didn't say it was impossible to do at all, just not with the standard nagios plugins. -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 nagios snmp with windows machines
Hi, All the syntax of all the scripts can also be found at the home page of the project : http://nagios.manubulon.com . And, as Max Hetrick said, you can always do a script -h to have some offline help. Some options are common to all scripts (hostame and snmp information), but that's only a small part of all available options. Patrick http://nagios.manubulon.com -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de andres sarmiento Envoyé : vendredi 15 juin 2007 15:15 À : nagios-users@lists.sourceforge.net Objet : Re: [Nagios-users] problem nagios snmp with windows machines Thanks Max for the how-to, i read it and is very easy, and works for me. How i can set all the snmp command with the correct syntax. For example: debian:/usr/lib/nagios/plugins# ./check_snmp_load.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand 1 CPU, load 6.0% 90% : OK and that works fine. but when do that: debian:/usr/lib/nagios/plugins# ./check_snmp_int.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand Unknown option: T Usage: ./check_snmp_int.pl [-v] -H host -C snmp_community [-2] | (-l login -x passwd [-X pass -L authp,privp) [-p port] -n name in desc_oid [-i] [-a] [-r] [-f[eSyY]] [-k[qBMGu] -g -wwarn levels -ccrit levels -ddelta] [-o octet_length] [-t timeout] [-s] --label [-V] debian:/usr/lib/nagios/plugins# whet i delete the T option the same error view: Do you had the correct syntaxt for all this command, and i don't know that all this command don't works monittoring on windows machines: check_snmp_boostedge.pl check_snmp_css.pl check_snmp_linkproof_nhr.pl check_snmp_nsbox.pl check_snmp_vrrp.pl check_snmp_cpfw.pl check_snmp_env.pl check_snmp_load.pl ./check_snmp_load.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand this is OK check_snmp_process.pl check_snmp_win.pl check_snmp_css_main.pl check_snmp_int.pl check_snmp_mem.pl check_snmp_storage.pl Thanks Max for the help Muchas gracias y perdoname por no saber tanto inglés. Saludos 2007/6/14, Max Hetrick [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 andres sarmiento wrote: Ok, look, i had problem settings the snmp-services. i want to check way snmp the windows machines but i don't know how implement it. I had read very documentation from internet but also i can't implement it. Can you helpme way how-to, how to implement monitoring with nagios way snmp to windows machines step-by-step . Well, to start, you have to make sure SNMP is installed on the Windows clients. If you don't already have that part done, you do can add the following through Add/Remove Windows Components in the Control Panel. Management and Monitoring Tools - SNMP If you want to change the community string from public to something else, and you want to change any settings go into Services and choose properties on SNMP Service on the Windows hosts. That said, you're going to have to read up a bit on some things. I don't know where there is a step-by-step guide for this, but it's not that hard to do. By making sure you installed SNMP on the clients, and then by using these plugins, you should be able to work your way through things. This implies you understand how Nagios works first. http://nagios.manubulon.com/ http://nagios.manubulon.com/snmp_windows.html Once you get them downloaded and installed, make sure you can get one of the plugins to execute from your libexec path. For example: # /usr/lib/nagios/plugins check_snmp_load.pl -H HOST -C COMMSTRING -w 90 - -c 100 -T stand 4 CPU, average load 0.5% 90% : OK If that works from the command line, you can go ahead and start working on configuring Nagios. If it doesn't work, then you need to check and make sure the scripts are executable, and owned by whomever is running them, etc. Create the service: # SNMP 'Doze CPU Load define service{ use basic-service namesnmp-doze-cpu notification_interval 0 contact_groups itdepartment notification_optionsc,r notification_period 24x7 service_description CPU Load check_command snmp_doze_cpu!90!100 host_name windowsclient1,windowsclient2 } Create the new check command: # 'snmp_doze_cpu' Windoze CPU load check define command{ command_namesnmp_doze_cpu command_line$USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C COMMSTRING -w $ARG1$ -c $ARG2$ } Verify Nagios likes it. # nagios -v nagios.cfg Fix any errors it complains about. Follow this method for all the other SNMP checks you want to use across these plugins from Manubulon. Again, this implies you understand Nagios. If you don't, then I suggest you take some time to try to read the docs about how the basics of Nagios work. This isn't any different
Re: [Nagios-users] problem nagios snmp with windows machines
Thanks Patrick and Max for the Help. Thanks from Chile Saludos 2007/6/15, Patrick Proy [EMAIL PROTECTED]: Hi, All the syntax of all the scripts can also be found at the home page of the project : http://nagios.manubulon.com . And, as Max Hetrick said, you can always do a script -h to have some offline help. Some options are common to all scripts (hostame and snmp information), but that's only a small part of all available options. Patrick http://nagios.manubulon.com -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de andres sarmiento Envoyé : vendredi 15 juin 2007 15:15 À : nagios-users@lists.sourceforge.net Objet : Re: [Nagios-users] problem nagios snmp with windows machines Thanks Max for the how-to, i read it and is very easy, and works for me. How i can set all the snmp command with the correct syntax. For example: debian:/usr/lib/nagios/plugins# ./check_snmp_load.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand 1 CPU, load 6.0% 90% : OK and that works fine. but when do that: debian:/usr/lib/nagios/plugins# ./check_snmp_int.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand Unknown option: T Usage: ./check_snmp_int.pl [-v] -H host -C snmp_community [-2] | (-l login -x passwd [-X pass -L authp,privp) [-p port] -n name in desc_oid [-i] [-a] [-r] [-f[eSyY]] [-k[qBMGu] -g -wwarn levels -ccrit levels -ddelta] [-o octet_length] [-t timeout] [-s] --label [-V] debian:/usr/lib/nagios/plugins# whet i delete the T option the same error view: Do you had the correct syntaxt for all this command, and i don't know that all this command don't works monittoring on windows machines: check_snmp_boostedge.pl check_snmp_css.pl check_snmp_linkproof_nhr.pl check_snmp_nsbox.pl check_snmp_vrrp.pl check_snmp_cpfw.pl check_snmp_env.pl check_snmp_load.pl ./check_snmp_load.pl -H 192.168.137.1 -C publica -w 90 --c 100 -T stand this is OK check_snmp_process.pl check_snmp_win.pl check_snmp_css_main.pl check_snmp_int.pl check_snmp_mem.pl check_snmp_storage.pl Thanks Max for the help Muchas gracias y perdoname por no saber tanto inglés. Saludos 2007/6/14, Max Hetrick [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 andres sarmiento wrote: Ok, look, i had problem settings the snmp-services. i want to check way snmp the windows machines but i don't know how implement it. I had read very documentation from internet but also i can't implement it. Can you helpme way how-to, how to implement monitoring with nagios way snmp to windows machines step-by-step . Well, to start, you have to make sure SNMP is installed on the Windows clients. If you don't already have that part done, you do can add the following through Add/Remove Windows Components in the Control Panel. Management and Monitoring Tools - SNMP If you want to change the community string from public to something else, and you want to change any settings go into Services and choose properties on SNMP Service on the Windows hosts. That said, you're going to have to read up a bit on some things. I don't know where there is a step-by-step guide for this, but it's not that hard to do. By making sure you installed SNMP on the clients, and then by using these plugins, you should be able to work your way through things. This implies you understand how Nagios works first. http://nagios.manubulon.com/ http://nagios.manubulon.com/snmp_windows.html Once you get them downloaded and installed, make sure you can get one of the plugins to execute from your libexec path. For example: # /usr/lib/nagios/plugins check_snmp_load.pl -H HOST -C COMMSTRING -w 90 - -c 100 -T stand 4 CPU, average load 0.5% 90% : OK If that works from the command line, you can go ahead and start working on configuring Nagios. If it doesn't work, then you need to check and make sure the scripts are executable, and owned by whomever is running them, etc. Create the service: # SNMP 'Doze CPU Load define service{ use basic-service namesnmp-doze-cpu notification_interval 0 contact_groups itdepartment notification_optionsc,r notification_period 24x7 service_description CPU Load check_command snmp_doze_cpu!90!100 host_name windowsclient1,windowsclient2 } Create the new check command: # 'snmp_doze_cpu' Windoze CPU load check define command{ command_namesnmp_doze_cpu command_line$USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C COMMSTRING -w $ARG1$ -c $ARG2$ } Verify Nagios likes it. # nagios -v nagios.cfg Fix any errors it complains about. Follow this method for all the other SNMP checks
Re: [Nagios-users] How to set the sourceaddress for all checks?
Howdy, Actually, some versions of ping do allow you to set the source address. The version in iputils package allows you to set the IP via -I address or interface name. I don't have a machine I can test the exact situation described, but I believe it will work as desired. That's nice but that doesn't help with the network based nagios-plugins any, which was the OP's goal. I didn't say it was impossible to do at all, just not with the standard nagios plugins. Duh. I was thinking you could define it as an additional parameter in the command config. And since check_ping is a C plugin instead of a script, modifying it is definitely outside my abilities! My apologies, and thanks for the pointer. Since I've learned something already, do you think the boss would let me go home now? (9 AM on a Friday my time) :-) Michael Michael Silver, Network Administrator Parkland Regional Library 5404 56 Avenue Lacombe, AB T4L 1G1 Phone: 403.782.3850Fax: 403.782.4650 http://www.prl.ab.ca/ [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] what do you use for pager?
(I wrote a long email yesterday but no response, so will ask differently:) What type of device and SMS network do you use for the target of your nagios pager? Is it easy to read and managed hundreds of SMS/phone messages? How reliable is your SMS network? And can you easily respond or resolve problem using the same device? Jeremy C. Reed - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] what do you use for pager?
We are using a Samba75 USB modem on the Cingular/ATT network. It seems to work just fine. I am writing our own scripts to control hosts/services (ack, schedule downtime, reset equipment, etc) by replying to the sms. Jeremy C. Reed wrote: (I wrote a long email yesterday but no response, so will ask differently:) What type of device and SMS network do you use for the target of your nagios pager? Is it easy to read and managed hundreds of SMS/phone messages? How reliable is your SMS network? And can you easily respond or resolve problem using the same device? Jeremy C. Reed - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 -- Adam Kennedy Network Administrator Cyberlink International Phone: 888-293-3693 x4352 Fax: 888-293-3995 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Help optimizing nagios for when things go wrong
Hi all, I'm having a big problem with nagios service check latencies. When the network is in normal operation, with few hosts or services in critical states, everything goes smoothly, however, today we had some problems and there were a large amount of nrpe checks timing out after 10 seconds. In this situation the service check latency sky rocketed to around 12 minutes! We have a grapher system, parsing perfomance data into RRD databases, and due to this latency the rrd databases weren't being updated. This happened for a few hours, not just while notiications were being sent, until I removed the services from the config files. Does anyone have any tip on how i can prevent this from happening? Below you can find the output of nagios -s and nagiostats. I don't have a nagiostats output when we had lots of critical services. But i can try and reproduce the conditions if it is of use. I'm very interested in keeping the latencies to a minimum, even if things go havoc! Thanks all. === /usr/nagios/bin/nagios -s /etc/nagios/nagios.cfg === Nagios 2.8 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-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: 433 Total scheduled hosts: 2 Host inter-check delay method: SMART Average host check interval: 86400.00 sec Host inter-check delay: 900.00 sec Max host check spread: 30 min First scheduled check: Fri Jun 15 16:23:29 2007 Last scheduled check:Fri Jun 15 16:38:29 2007 SERVICE SCHEDULING INFORMATION --- Total services: 2126 Total scheduled services: 2126 Service inter-check delay method: SMART Average service check interval: 300.00 sec Inter-check delay: 0.14 sec Interleave factor method: SMART Average services per host: 4.91 Service interleave factor: 5 Max service check spread: 30 min First scheduled check: Fri Jun 15 16:24:29 2007 Last scheduled check: Fri Jun 15 16:29:29 2007 CHECK PROCESSING INFORMATION Service check reaper interval: 10 sec Max concurrent service checks: Unlimited PERFORMANCE SUGGESTIONS --- I have no suggestions - things look okay. === /usr/nagios/bin/nagiostats === Nagios Stats 2.8 Copyright (c) 2003-2007 Ethan Galstad (www.nagios.org) Last Modified: 04-10-2007 License: GPL CURRENT STATUS DATA Status File: /var/nagios/status.log Status File Age: 0d 0h 0m 25s Status File Version: 2.8 Program Running Time: 0d 0h 16m 31s Nagios PID: 26886 Used/High/Total Command Buffers: 0 / 0 / 4096 Used/High/Total Check Result Buffers: 134 / 134 / 4096 Total Services: 2126 Services Checked: 2126 Services Scheduled: 2126 Active Service Checks:2126 Passive Service Checks: 0 Total Service State Change: 0.000 / 28.950 / 0.096 % Active Service Latency: 18.980 / 120.190 / 66.213 sec Active Service Execution Time:0.079 / 60.078 / 1.633 sec Active Service State Change: 0.000 / 28.950 / 0.096 % Active Services Last 1/5/15/60 min: 141 / 1621 / 2126 / 2126 Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min: 0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit:2101 / 2 / 0 / 23 Services Flapping:0 Services In Downtime: 0 Total Hosts: 433 Hosts Checked:433 Hosts Scheduled: 2 Active Host Checks: 433 Passive Host Checks: 0 Total Host State Change: 0.000 / 32.110 / 0.528 % Active Host Latency: 0.000 / 316.979 / 1.378 sec Active Host Execution Time: 0.070 / 2.638 / 2.585 sec Active Host State Change: 0.000 / 32.110 / 0.528 % Active Hosts Last 1/5/15/60 min: 0 / 15 / 31 / 120 Passive Host State Change:0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach:428 / 5 / 0 Hosts Flapping: 0 Hosts In Downtime:0 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
Re: [Nagios-users] what do you use for pager?
I work with a lot of different ways of contacting people, and they all have their ups and downs. My favorite is to have Nagios call me with the alert read via text-to-speech. I have it call my cell, which I sleep with, so it wakes me up, but not the wife and kids. I can then respond with the phone keypad. The downside is that the responses are simple acknowledge or pass, and I can't annotate the alert. My second favorite is pagers. USA Mobility sells very nice pagers, with a full qwerty keyboard. The Motorola pagers are very nice.Responding is super-simple, since you can just select the response from a drop-down, and you can add comments very easily. But, I've seen problems when you're in an area with sketchy coverage. The pager will work fine, until the battery gets low, then it won't have the power to get a signal. But it'll have enough power to service the normal case, so it doesn't complain. Most of the time, I'm in downtown Denver, so it's not a problem, but other people I work with are outside Omaha, and they run into this problem maybe 3 or 4 times a year. It's frustrating enough that I need to have a back-up. Email and SMS are just too high volume for me. I definitely use both, but I only pay attention to them when I'm awake. Otherwise, I'll be woke up 12 times a night to have someone tell me my loan has been approved (or worse, but this is a family-oriented mailing list). I also *LOVE* IM. I have a super-secret GMail account that only Nagios knows about. I have my Blackberry wake me when it gets a Google Talk message on that account. But, my software can't track which alert you're responding to when using IM, so you have to type in the alert ID, which in my case is a 7 digit number. That's pretty tedious at 2AM. True SMS requires that, too, but not if you're just using an SMS-to-email gateway. I read your email yesterday, but I don't have much to add re: smartphones. I love my crackberry. The Treo is very nice. The Windows Mobile stuff is also very nice. *shrug* If I can get phone calls, email, Google Talk, SSH and play a few dumb games while waiting for the bus, I'm happy. My 5 year old Blackberry can do that. -Dave Jeremy C. Reed wrote: (I wrote a long email yesterday but no response, so will ask differently:) What type of device and SMS network do you use for the target of your nagios pager? Is it easy to read and managed hundreds of SMS/phone messages? How reliable is your SMS network? And can you easily respond or resolve problem using the same device? Jeremy C. Reed - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 Looking Glass Creating Templates
Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric Ready for the edge of your seat? Check out tonight's top picks http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/ on Yahoo! TV. !DSPAM:37,4671b0d0343941989018197! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ !DSPAM:37,4671b0d0343941989018197! ___ 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 !DSPAM:37,4671b0d0343941989018197! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Problems Starting Nagios
The message could not get passwd entry for 'nagiosadmin' suggests the user nagiosadmin does not exist on the system. Check your config files for the directive that's telling Nagios to run as nagiosadmin instead of nagios. Andy. Morris, Patrick wrote: I'm still getting an error, even though i have the permissions: drwxrwxrwx 4 nagios nagios 4096 2007-06-13 16:17 . drwxr-xr-x 11 nagios nagios 4096 2007-05-10 11:26 .. drwxrwxr-x 2 nagios nagios 4096 2007-05-10 11:24 archives -rw-rw-r-- 1 nagios nagios238 2007-06-12 17:40 comments.dat -rw-rw-r-- 1 nagios nagios239 2007-06-12 17:40 downtime.dat -rw-r--r-- 1 nagios nagios 0 2007-06-13 16:17 nagios.lock -rwxrwxrwx 1 nagios nagios 14268 2007-06-13 16:56 nagios.log -rwxrwxrwx 1 nagios nagios 118664 2007-06-13 16:56 objects.cache -rw--- 1 nagios nagios 162982 2007-06-13 16:17 retention.dat drwxrwsr-x 2 nagios nagios 4096 2007-06-13 12:08 rw [EMAIL PROTECTED]:/var/log# /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg Nagios 2.7 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 01-19-2007 License: GPL Warning: Could not get passwd entry for 'nagiosadmin' Nagios 2.7 starting... (PID=13453) Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file. Bailing out due to errors encountered while trying to initialize the external command file... (PID=13453) It looks like you may have nagios running as nagiosadmin, but all the files are owned by nagios. The rw directory is not writeable by the nagiosadmin user unless it happens to be a member of the nagios group. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 !DSPAM:37,4670aa6e343941977064108! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 Looking Glass Creating Templates
I was setting this in the wrong place. I was doing it in the server not the client. It works great now. Thanks. Eric Hernandez [EMAIL PROTECTED] wrote: Andy, I added this to s3_filter.inc.php but it does not show up in the drop down menu. on the web page. $HostFilter[6] = new S3_NetworkFilter(); $HostFilter[6]-Create(test); $HostFilter[6]-SetType(host); $HostFilter[6]-AddHost(AA-CG-SW1); -eric Andy Shellam [EMAIL PROTECTED] wrote: Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. !DSPAM:37,4671b0d0343941989018197! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ !DSPAM:37,4671b0d0343941989018197! ___ 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 !DSPAM:37,4671b0d0343941989018197! - Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. - Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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 Looking Glass Creating Templates
Andy, I added this to s3_filter.inc.php but it does not show up in the drop down menu. on the web page. $HostFilter[6] = new S3_NetworkFilter(); $HostFilter[6]-Create(test); $HostFilter[6]-SetType(host); $HostFilter[6]-AddHost(AA-CG-SW1); -eric Andy Shellam [EMAIL PROTECTED] wrote: Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. !DSPAM:37,4671b0d0343941989018197! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ !DSPAM:37,4671b0d0343941989018197! ___ 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 !DSPAM:37,4671b0d0343941989018197! - Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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 Looking Glass Creating Templates
Hi Eric, Have you added it to the server-side, or client-side? It has to be in the server-side or it'll get overwritten the next time you open your client. I've copied and pasted the code into mine - works fine. http://looking-glass.andyshellam.eu Andy. Eric Hernandez wrote: Andy, I added this to s3_filter.inc.php but it does not show up in the drop down menu. on the web page. $HostFilter[6] = new S3_NetworkFilter(); $HostFilter[6]-Create(test); $HostFilter[6]-SetType(host); $HostFilter[6]-AddHost(AA-CG-SW1); -eric */Andy Shellam [EMAIL PROTECTED]/* wrote: Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ !DSPAM:37,4671b0d0343941989018197! ___ 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 !DSPAM:37,4671b0d0343941989018197! Get the Yahoo! toolbar and be alerted to new email http://us.rd.yahoo.com/evt=48225/*http://new.toolbar.yahoo.com/toolbar/features/mail/index.phpwherever you're surfing. !DSPAM:37,4672c1c5343941056075452! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] FW: NSClient++ on windows machine
Thanks Lars... I have done a lot of reading :=) but I still don't get it right, though I think I am very close. I made some changes, but for some reason it still doesn't match, where do I do wrong? Below are my settings, outputs and results. Is anyone able to see what is wrong? Service defenition: # Monitoring Memory Usage define service { use generic-service host_name server01,server02 service_description Memuse servicegroups load check_command check_ntmem!MEMUSE! -w 80 -c 90 } Snip Nagios.log : [1181921420] Warning: Service performance data command 'echo 'server01\tMemuse\tMemory usage: total:4485.60 Mb - used: 1452.13 Mb (32%) - free: 3033.47 Mb (68%)\tMemory usage=1452.13Mb;3588.48;4037.04;0.00;4485.60\n' | nc6 -u -w 3 localhost 5667' for service 'Memuse' on host 'server01' timed out after 5 seconds [1181921500] Warning: Service performance data command 'echo 'server02\tMemuse\tMemory usage: total:1280.03 Mb - used: 269.23 Mb (21%) - free: 1010.80 Mb (79%)\tMemory usage=269.23Mb;1024.02;1152.03;0.00;1280.03\n' | nc6 -u -w 3 localhost 5667' for service 'Memuse' on host 'server02' timed out after 5 seconds Snip ngraph.log: 2007-06-15 11:35:14 PIPE: server01 Memuse Memory usage: total:4485.60 Mb - used: 1502.13 Mb (33%) - free: 2983.46 Mb (67%)Memory usage=1502.13Mb;3588.48;4037.04;0.00;4485.60 2007-06-15 11:35:14 REGEX: 4 blocks for 'Memuse' found. 2007-06-15 11:35:14 REGEX: graph_value=Memory usage 2007-06-15 11:35:14 REGEX: output=perfdata 2007-06-15 11:35:14 REGEX: regex=m/Memory usage=([0-9]+)Mb/i 2007-06-15 11:35:14 REGEX: perfdata=Memory usage=1502.13Mb;3588.48;4037.04;0.00;4485.60 2007-06-15 11:35:14 REGEX: NO MATCH. 2007-06-15 11:35:14 VALUES: [server01][Memuse]:No matching perfdata values found... 2007-06-15 11:41:34 PIPE: server02 Memuse Memory usage: total:1280.03 Mb - used: 245.14 Mb (19%) - free: 1034.89 Mb (81%) Memory usage=245.14Mb;1024.02;1152.03;0.00;1280.03 2007-06-15 11:41:34 REGEX: 4 blocks for 'Memuse' found. 2007-06-15 11:41:34 REGEX: graph_value=Memory usage 2007-06-15 11:41:34 REGEX: output=perfdata 2007-06-15 11:41:34 REGEX: regex=m/Memory usage=([0-9]+)Mb/i 2007-06-15 11:41:34 REGEX: perfdata=Memory usage=245.14Mb;1024.02;1152.03;0.00;1280.03 2007-06-15 11:41:34 REGEX: NO MATCH. 2007-06-15 11:41:34 VALUES: [server02][Memuse]:No matching perfdata values found... Snip check_ntmem.ncfg: define ngraph { graph_legend Memory Used graph_perf_regex Memory usage=([0-9]+)Mb graph_value Memory usage hide yes rrd_color 00a000 rrd_plottype AREA service_name Memuse } define ngraph { graph_legend Warning graph_perf_regex Memory usage=[0-9]+Mb;([0-9]+); graph_value MemWarning hide yes rrd_color 00a000 rrd_plottype HRULE service_name Memuse } define ngraph { graph_legend Critical graph_perf_regex Memory usage=[0-9]+Mb;[0-9]+;([0-9]+) graph_value MemCritical hide yes rrd_color 00a000 rrd_plottype HRULE service_name Memuse } define ngraph { graph_legend Total Space graph_perf_regex ([0-9]+)$ graph_value MemTotal hide yes rrd_color 00ff00 rrd_plottype AREA service_name Memuse } define ngraph { graph_calc MemTotal,Memory usage,- graph_legend Free Space graph_value MemFree hide yes rrd_color ff rrd_plottype AREA service_name Memuse type CDEF } define ngraph { graph_calc Memory usage,100,*,MemTotal,/ graph_legend Used Space graph_units Percent (%) graph_value percentused hide yes rrd_color 1C2B53 rrd_plottype LINE service_name Memuse type CDEF } define ngraph { graph_calc MemWarning,100,*,MemTotal,/ graph_legend Warning graph_units Percent (%) graph_value percentwarning hide yes rrd_color FF7700 rrd_plottype LINE service_name Memuse type CDEF } define ngraph { graph_calc MemCritical,100,*,MemTotal,/ graph_legend Critical graph_units Percent (%) graph_value percentcritical hide yes rrd_color FF rrd_plottype LINE service_name Memuse type CDEF } define ngraph { graph_calc percentused,UN,0,percentused,percentwarning,GT,percentwarning,percentused,IF ,IF graph_legend Used Memory graph_value Regular hide no rrd_color AABBFF rrd_plottype AREA service_name Memuse type CDEF } define ngraph { graph_calc percentused,UN,0,percentused,percentwarning,-,0,LE,0,percentused,percentcrit ical,GE,100,percentcritical,-,percentused,percentwarning,-,IF,IF,IF graph_units Percent (%) graph_upper_limit 100 graph_value Warning hide no rrd_color FFDD66 rrd_plottype STACK service_name Memuse type CDEF } define ngraph { graph_calc percentused,UN,0,percentused,percentcritical,-,0,LE,0,percentused,percentcri tical,-,IF,IF graph_units Percent (%) graph_upper_limit 100 graph_value Critical hide no rrd_color FF rrd_plottype STACK service_name Memuse type CDEF } define ngraph { graph_calc
Re: [Nagios-users] Nagios Looking Glass Creating Templates
I changed it in the Client-Side, i tried first changing it in the Server Side but it would not work. I guess its not syncing. I change the password for nagiosadmin that i was using for the site. and now it doesnt work. I set the new password in the s3_config.inc.php in server/sync-files i get this error when i try to access the site. Nagios Looking Glass Error Report Sorry for the inconvenience, but Nagios Looking Glass could not retrieve the page you asked for. The error message below might hold more clues for the site administrator: Could not connect to the polling feed; the polling server may be down Generated by Nagios Looking Glass at 15/Jun/2007 10:08:35 Andy Shellam [EMAIL PROTECTED] wrote: Hi Eric, Have you added it to the server-side, or client-side? It has to be in the server-side or it'll get overwritten the next time you open your client. I've copied and pasted the code into mine - works fine. http://looking-glass.andyshellam.eu Andy. Eric Hernandez wrote: Andy, I added this to s3_filter.inc.php but it does not show up in the drop down menu. on the web page. $HostFilter[6] = new S3_NetworkFilter(); $HostFilter[6]-Create(test); $HostFilter[6]-SetType(host); $HostFilter[6]-AddHost(AA-CG-SW1); -eric */Andy Shellam /* wrote: Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ !DSPAM:37,4671b0d0343941989018197! ___ 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 !DSPAM:37,4671b0d0343941989018197! Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. !DSPAM:37,4672c1c5343941056075452! - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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-down notification can take 50 mins to be sent
On 15/06/07, stucky [EMAIL PROTECTED] wrote: Actually, flapping is turned off globally in nagios.cfg and although it's still turned on in the host template it shouldn't matter right ? No, my understanding is that the global setting overrides everything else (I've never turned it off globally myself though). I turned it off here as well. Might as well. 1. How can a host be flapping if it's down ? Flapping can be detected on any change of state down-up or up-down. How it works is documented here: http://nagios.sourceforge.net/docs/2_0/toc.html (look under advanced topics). Anyway, from what you're saying, it sounds like flapping isn't your problem. 2. Are most of you guys on here using flap detection and has it been causing this kind of problem for anyone ? Well I do, obviously. I guess lots of others do as it is important in preventing getting storms of notifications if a host or service is flapping. If you don't have the f notification option, it can sometimes be confusing to see the notification that a service has gone down, but not get one to show it's come up again. One problem with having flap notifications is that Nagios might detect that the host or service has stopped flapping at any odd hour - if your notifications are going to an on-call pager for example you can end up waking up your on-call engineer unnecessarily. As ever it's up to you to decide what your priorities are. 3. If it was flapping shouldn't I have seen this in the log? Yes. You'll see it in the alert history for that host (or service). Another thing to try when you get this kind of behaviour is to set check_for_orphaned_services to 1 in the main nagios config file. I've never tried having a template use another template. I'm not saying it shouldn't work, it's just not something I would feel comfortable doing. I'd be interested to hear a definitive answer as to whether that's a good thing to do or not myself as it would come in handy sometimes. cheers, Jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Help optimizing nagios for when things go wrong
On 15/06/07, George Bryan [EMAIL PROTECTED] wrote: Hi all, I'm having a big problem with nagios service check latencies. What do you use for your host check command? You want to use something which runs as quickly as possible. I use check_icmp with only one ping. I believe check_fping is also good. This should be less of a problem in Nagios 3. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Fwd: host-down notification can take 50 mins to be sent
-- Forwarded message -- From: stucky [EMAIL PROTECTED] Date: Jun 15, 2007 11:17 AM Subject: Re: [Nagios-users] host-down notification can take 50 mins to be sent To: Jim Avery [EMAIL PROTECTED] Jim I'm confused 1. Nagios 2.9 comes with flapping turned off globally by default : # Values: 1 = enable flap detection # 0 = disable flap detection (default) enable_flap_detection=0 2. It also comes with check_for_orphaned_services=1 3. Most importantly it comes with a localhost.cfg file that has 2 nested host templates from the start. One called 'generic-host' and one called 'linux-server' which uses 'generic-host' Then it has a host description that uses 'linux-host' so we have 3 levels of recursion right from the start. It does the same thing with service templates. I assume you must not have looked at the defaults at all or just changed it back to just one template. I never used more than one before either but since the default configs suggest it I figured it'd be ok. Anyone else here uses object inheritance with multi-level recursion ? On 6/15/07, Jim Avery [EMAIL PROTECTED] wrote: On 15/06/07, stucky [EMAIL PROTECTED] wrote: Actually, flapping is turned off globally in nagios.cfg and although it's still turned on in the host template it shouldn't matter right ? No, my understanding is that the global setting overrides everything else (I've never turned it off globally myself though). I turned it off here as well. Might as well. 1. How can a host be flapping if it's down ? Flapping can be detected on any change of state down-up or up-down. How it works is documented here: http://nagios.sourceforge.net/docs/2_0/toc.html (look under advanced topics). Anyway, from what you're saying, it sounds like flapping isn't your problem. 2. Are most of you guys on here using flap detection and has it been causing this kind of problem for anyone ? Well I do, obviously. I guess lots of others do as it is important in preventing getting storms of notifications if a host or service is flapping. If you don't have the f notification option, it can sometimes be confusing to see the notification that a service has gone down, but not get one to show it's come up again. One problem with having flap notifications is that Nagios might detect that the host or service has stopped flapping at any odd hour - if your notifications are going to an on-call pager for example you can end up waking up your on-call engineer unnecessarily. As ever it's up to you to decide what your priorities are. 3. If it was flapping shouldn't I have seen this in the log? Yes. You'll see it in the alert history for that host (or service). Another thing to try when you get this kind of behaviour is to set check_for_orphaned_services to 1 in the main nagios config file. I've never tried having a template use another template. I'm not saying it shouldn't work, it's just not something I would feel comfortable doing. I'd be interested to hear a definitive answer as to whether that's a good thing to do or not myself as it would come in handy sometimes. cheers, Jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 -- stucky -- stucky - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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 inventory
On 15/06/07, Jesús Oliván [EMAIL PROTECTED] wrote: Hi! i'm looking for some kind of Nagios plugin that allows to do inventory from a Nagios installation... is it possible? Thanks in advance! If you run ndoutils then you can query the MySQL database using SQL. Admittedly whenever I've tried I've found the SQL I need is rather complicated and I end up with each host being listed twice. I'm not very good with SQL though. hth, Jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 Looking Glass Creating Templates
Hi Eric, That error is the standard can't find the server, for one of the following reasons: - Access denied - Page not found (404) - Internal server error (503) For a guess, you haven't changed the password in the .htaccess file (or Apache's httpd.conf) that you're using to secure your NLG server. Try your old password again. Failing that, enable the debugging option in the client/s3_config_stub.inc.php file, (including setting display_errors to on) then run http://your_nlg_server/s3_client.php?debug=yes. That'll tell you the error. Andy. Eric Hernandez wrote: I changed it in the Client-Side, i tried first changing it in the Server Side but it would not work. I guess its not syncing. I change the password for nagiosadmin that i was using for the site. and now it doesnt work. I set the new password in the s3_config.inc.php in server/sync-files i get this error when i try to access the site. Nagios Looking Glass Error Report Sorry for the inconvenience, but Nagios Looking Glass could not retrieve the page you asked for. The error message below might hold more clues for the site administrator: Could not connect to the polling feed; the polling server may be down Generated by Nagios Looking Glass at 15/Jun/2007 10:08:35 */Andy Shellam [EMAIL PROTECTED]/* wrote: Hi Eric, Have you added it to the server-side, or client-side? It has to be in the server-side or it'll get overwritten the next time you open your client. I've copied and pasted the code into mine - works fine. http://looking-glass.andyshellam.eu Andy. Eric Hernandez wrote: Andy, I added this to s3_filter.inc.php but it does not show up in the drop down menu. on the web page. $HostFilter[6] = new S3_NetworkFilter(); $HostFilter[6]-Create(test); $HostFilter[6]-SetType(host); $HostFilter[6]-AddHost(AA-CG-SW1); -eric */Andy Shellam /* wrote: Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 !DSPAM:37,4671b0d0343941989018197! Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. !DSPAM:37,4672c1c5343941056075452! Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. http://us.rd.yahoo.com/evt=48246/*http://autos.yahoo.com/green_center/;_ylc=X3oDMTE5cDF2bXZzBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW4tY2VudGVy !DSPAM:37,4672c9f1343949989220130! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
Re: [Nagios-users] Help optimizing nagios for when things go wrong
http://nagios.sourceforge.net/docs/2_0/tuning.html I also just started playing with nagios.cfg: service_reaper_frequency reduced my service check latency from ~250 to ~30 seconds by changing the value from 15 to 5 On 6/15/07, Jim Avery [EMAIL PROTECTED] wrote: On 15/06/07, George Bryan [EMAIL PROTECTED] wrote: Hi all, I'm having a big problem with nagios service check latencies. What do you use for your host check command? You want to use something which runs as quickly as possible. I use check_icmp with only one ping. I believe check_fping is also good. This should be less of a problem in Nagios 3. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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_by_ssh
I noticed this list has a lot more activity on it and the plugin list next to none so please excuse me. I'm not sure if I found a bug or what but I can login to the remote system I'm trying to check with key based authentication I can even do a ssh -i ~/.ssh/id_dsa remotecomputer /usr/nagios/plugins/check_swap -w 50% -c 10% and it works just fine: [EMAIL PROTECTED] ~ $ ssh -i .ssh/id_dsa remotecomputer /usr/nagios/plugins/check_swap -w 50% -c 10% SWAP OK - 100% free (1996 MB out of 1996 MB) |swap=1996MB;998;199;0;1996 [EMAIL PROTECTED] ~ $ but when I use: [EMAIL PROTECTED] ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i ~/.ssh/id_dsa -C /usr/nagios/plugins/check_swap -w 50% -c 10% Enter passphrase for key '/home/nagios/.ssh/id_dsa': I get prompted for a passphrase and of course if I don't enter that I get prompted for a password which I can enter and I get the expected result. Another odd thing is if I don't enter anything after a short period of time it times out then that shell is basically done as all I can do is hit enter and get another shell prompt, nothing else shows up. Any ideas? I use nrpe on most of the systems but this system I'm trying to monitor is a RHEL 3 server and I can't update it or it won't be supported and I can't seem to find an old rpm of nrpe that will work, so I need another way to run check on it so I'm trying the check_by_ssh. Thanks, Robert - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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 Looking Glass Creating Templates
Andy, I will try to use the debugging in the future. What I have been doing to make LookingGlass work since I started using it Yesterday Was to run php index.php from the shell on the server in the client directory.' And than it works fine after that. I did this again since changing the password and it works now. I believe that my problem has to do with it not syncing from server to client. What permissions should my client directory have. Also if i create another filter in the server side it does not replicate to the client so again i think its an issue with syncing. How can i test syncing ? Andy Shellam [EMAIL PROTECTED] wrote: Hi Eric, That error is the standard can't find the server, for one of the following reasons: - Access denied - Page not found (404) - Internal server error (503) For a guess, you haven't changed the password in the .htaccess file (or Apache's httpd.conf) that you're using to secure your NLG server. Try your old password again. Failing that, enable the debugging option in the client/s3_config_stub.inc.php file, (including setting display_errors to on) then run http://your_nlg_server/s3_client.php?debug=yes. That'll tell you the error. Andy. Eric Hernandez wrote: I changed it in the Client-Side, i tried first changing it in the Server Side but it would not work. I guess its not syncing. I change the password for nagiosadmin that i was using for the site. and now it doesnt work. I set the new password in the s3_config.inc.php in server/sync-files i get this error when i try to access the site. Nagios Looking Glass Error Report Sorry for the inconvenience, but Nagios Looking Glass could not retrieve the page you asked for. The error message below might hold more clues for the site administrator: Could not connect to the polling feed; the polling server may be down Generated by Nagios Looking Glass at 15/Jun/2007 10:08:35 */Andy Shellam /* wrote: Hi Eric, Have you added it to the server-side, or client-side? It has to be in the server-side or it'll get overwritten the next time you open your client. I've copied and pasted the code into mine - works fine. http://looking-glass.andyshellam.eu Andy. Eric Hernandez wrote: Andy, I added this to s3_filter.inc.php but it does not show up in the drop down menu. on the web page. $HostFilter[6] = new S3_NetworkFilter(); $HostFilter[6]-Create(test); $HostFilter[6]-SetType(host); $HostFilter[6]-AddHost(AA-CG-SW1); -eric */Andy Shellam /* wrote: Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 !DSPAM:37,4671b0d0343941989018197! Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. !DSPAM:37,4672c1c5343941056075452! Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. !DSPAM:37,4672c9f1343949989220130! - Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it
Re: [Nagios-users] check_by_ssh
I tried the multiple v's: [EMAIL PROTECTED] ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i - ~/.ssh/id_dsa -C /usr/nagios/plugins/check_swap -w 50% -c 10% Enter passphrase for key '/home/nagios/.ssh/id_dsa': [EMAIL PROTECTED]'s password: Didn't give me anymore output but as I mentioned doing it via just ssh works: [EMAIL PROTECTED] ~ $ ssh -i .ssh/id_dsa remotecomputer /usr/nagios/plugins/check_swap -w 50% -c 10% SWAP OK - 100% free (1996 MB out of 1996 MB) |swap=1996MB;998;199;0;1996 [EMAIL PROTECTED] ~ $ -rw-r--r-- 1 nagios nagios 615 Jun 8 07:03 authorized_keys -rw--- 1 nagios nagios 736 Jun 8 05:12 id_dsa -rw-r--r-- 1 nagios nagios 614 Jun 8 05:12 id_dsa.pub -rw-r--r-- 1 nagios nagios 1270 Jun 15 10:21 known_hosts and I did try doing /home/nagios/.ssh/id_dsa and it didn't make a difference. It looks like a problem with check_by_ssh itself doesn't it? Luis Cerezo wrote: who is the owner of the .ssh/id_dsa? are you sure there is no pass on it? did you try the rsa versions of the keys? did you try to expand the ~ ? what is the output with multiple -v's -luis * Luis E. Cerezo 281.509.8397 GSS GlobalIT On Jun 15, 2007, at 1:39 PM, Robert Cole wrote: - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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-down notification can take 50 mins to be sent
On 15/06/07, stucky [EMAIL PROTECTED] wrote: Jim I'm confused 1. Nagios 2.9 comes with flapping turned off globally by default : # Values: 1 = enable flap detection # 0 = disable flap detection (default) enable_flap_detection=0 2. It also comes with check_for_orphaned_services=1 3. Most importantly it comes with a localhost.cfg file that has 2 nested host templates from the start. One called 'generic-host' and one called 'linux-server' which uses 'generic-host' Then it has a host description that uses 'linux-host' so we have 3 levels of recursion right from the start. It does the same thing with service templates. I assume you must not have looked at the defaults at all or just changed it back to just one template. I never used more than one before either but since the default configs suggest it I figured it'd be ok. I confess I don't use Nagios 2.9 yet. Maybe it's time I should! I'm hoping to buy a new server for Nagios soon, as the old one is creaking under the strain of all the active checks and rrd databases. When that arrives I'll drag myself back up to the cutting edge. I haven't looked at the defaults for 18 months or so. cheers, Jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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-down notification can take 50 mins to be sent
I suggest you wait since 3.x alpha is out now but I've had worse probs with this one so I reverted back to the latest stable release. I've also been running 2.0a for another site and have never had this problem with this version before. So I'd be interested to see your results with 2.9 or 3.x thx for your all help On 6/15/07, Jim Avery [EMAIL PROTECTED] wrote: On 15/06/07, stucky [EMAIL PROTECTED] wrote: Jim I'm confused 1. Nagios 2.9 comes with flapping turned off globally by default : # Values: 1 = enable flap detection # 0 = disable flap detection (default) enable_flap_detection=0 2. It also comes with check_for_orphaned_services=1 3. Most importantly it comes with a localhost.cfg file that has 2 nested host templates from the start. One called 'generic-host' and one called 'linux-server' which uses 'generic-host' Then it has a host description that uses 'linux-host' so we have 3 levels of recursion right from the start. It does the same thing with service templates. I assume you must not have looked at the defaults at all or just changed it back to just one template. I never used more than one before either but since the default configs suggest it I figured it'd be ok. I confess I don't use Nagios 2.9 yet. Maybe it's time I should! I'm hoping to buy a new server for Nagios soon, as the old one is creaking under the strain of all the active checks and rrd databases. When that arrives I'll drag myself back up to the cutting edge. I haven't looked at the defaults for 18 months or so. cheers, Jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 -- stucky - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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 Looking Glass Creating Templates
Hi Eric, You can check the sync'ing using the debugging feature - it will say file xxx out-of-date, sync'ing with server... OK etc. It's impossible to test properly through the shell - as there are a couple of views which are loaded through Ajax - which isn't supported by either a shell script or the Lynx browser. You also cannot debug it through a shell script as you need to be able to pass a variable into the request. As for permissions, you need the following for the user the web-server runs as (if you use NLG's client and server on the same machine, then both sets of permissions apply): on the server-side: - read access to the whole of the server/ directory - write access to the server/index directory - read access to the Nagios var/ directory on the client-side: - read access to the whole of the client/ directory - write access to the root of the client/ directory - write access to the client/sync-files directory Andy. Eric Hernandez wrote: Andy, I will try to use the debugging in the future. What I have been doing to make LookingGlass work since I started using it Yesterday Was to run php index.php from the shell on the server in the client directory.' And than it works fine after that. I did this again since changing the password and it works now. I believe that my problem has to do with it not syncing from server to client. What permissions should my client directory have. Also if i create another filter in the server side it does not replicate to the client so again i think its an issue with syncing. How can i test syncing ? */Andy Shellam [EMAIL PROTECTED]/* wrote: Hi Eric, That error is the standard can't find the server, for one of the following reasons: - Access denied - Page not found (404) - Internal server error (503) For a guess, you haven't changed the password in the .htaccess file (or Apache's httpd.conf) that you're using to secure your NLG server. Try your old password again. Failing that, enable the debugging option in the client/s3_config_stub.inc.php file, (including setting display_errors to on) then run http://your_nlg_server/s3_client.php?debug=yes. That'll tell you the error. Andy. Eric Hernandez wrote: I changed it in the Client-Side, i tried first changing it in the Server Side but it would not work. I guess its not syncing. I change the password for nagiosadmin that i was using for the site. and now it doesnt work. I set the new password in the s3_config.inc.php in server/sync-files i get this error when i try to access the site. Nagios Looking Glass Error Report Sorry for the inconvenience, but Nagios Looking Glass could not retrieve the page you asked for. The error message below might hold more clues for the site administrator: Could not connect to the polling feed; the polling server may be down Generated by Nagios Looking Glass at 15/Jun/2007 10:08:35 */Andy Shellam /* wrote: Hi Eric, Have you added it to the server-side, or client-side? It has to be in the server-side or it'll get overwritten the next time you open your client. I've copied and pasted the code into mine - works fine. http://looking-glass.andyshellam.eu Andy. Eric Hernandez wrote: Andy, I added this to s3_filter.inc.php but it does not show up in the drop down menu. on the web page. $HostFilter[6] = new S3_NetworkFilter(); $HostFilter[6]-Create(test); $HostFilter[6]-SetType(host); $HostFilter[6]-AddHost(AA-CG-SW1); -eric */Andy Shellam /* wrote: Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric Ready for the edge of your seat? Check out tonight's top picks
Re: [Nagios-users] Nagios inventory
On Fri, 15 Jun 2007 19:02:38 +0100 Jim Avery [EMAIL PROTECTED] wrote: On 15/06/07, Jesús Oliván [EMAIL PROTECTED] wrote: Hi! i'm looking for some kind of Nagios plugin that allows to do inventory from a Nagios installation... is it possible? Thanks in advance! If you run ndoutils then you can query the MySQL database using SQL. Admittedly whenever I've tried I've found the SQL I need is rather complicated and I end up with each host being listed twice. I'm not very good with SQL though. Maybe its not you, I'm having the same problem too, hosts and services listed twice. hth, Jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 -- Naim Abu Darwish [EMAIL PROTECTED] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 Looking Glass Creating Templates
Andy, I ran the debug and i noticed that it was always saying that filter was out of date. Synchronising s3_filter.inc.php with server ... out-of-date ... updating ... bytes written I chmod -R 774 the entire client directory, it did not help. I than deleted the s3_filter.inc.php in the client sync-files directory and it now works. Every time i make a change it updates correctly. Thanks for all your help. Best Regards, -Eric Andy Shellam [EMAIL PROTECTED] wrote: Hi Eric, You can check the sync'ing using the debugging feature - it will say file xxx out-of-date, sync'ing with server... OK etc. It's impossible to test properly through the shell - as there are a couple of views which are loaded through Ajax - which isn't supported by either a shell script or the Lynx browser. You also cannot debug it through a shell script as you need to be able to pass a variable into the request. As for permissions, you need the following for the user the web-server runs as (if you use NLG's client and server on the same machine, then both sets of permissions apply): on the server-side: - read access to the whole of the server/ directory - write access to the server/index directory - read access to the Nagios var/ directory on the client-side: - read access to the whole of the client/ directory - write access to the root of the client/ directory - write access to the client/sync-files directory Andy. Eric Hernandez wrote: Andy, I will try to use the debugging in the future. What I have been doing to make LookingGlass work since I started using it Yesterday Was to run php index.php from the shell on the server in the client directory.' And than it works fine after that. I did this again since changing the password and it works now. I believe that my problem has to do with it not syncing from server to client. What permissions should my client directory have. Also if i create another filter in the server side it does not replicate to the client so again i think its an issue with syncing. How can i test syncing ? */Andy Shellam /* wrote: Hi Eric, That error is the standard can't find the server, for one of the following reasons: - Access denied - Page not found (404) - Internal server error (503) For a guess, you haven't changed the password in the .htaccess file (or Apache's httpd.conf) that you're using to secure your NLG server. Try your old password again. Failing that, enable the debugging option in the client/s3_config_stub.inc.php file, (including setting display_errors to on) then run http://your_nlg_server/s3_client.php?debug=yes. That'll tell you the error. Andy. Eric Hernandez wrote: I changed it in the Client-Side, i tried first changing it in the Server Side but it would not work. I guess its not syncing. I change the password for nagiosadmin that i was using for the site. and now it doesnt work. I set the new password in the s3_config.inc.php in server/sync-files i get this error when i try to access the site. Nagios Looking Glass Error Report Sorry for the inconvenience, but Nagios Looking Glass could not retrieve the page you asked for. The error message below might hold more clues for the site administrator: Could not connect to the polling feed; the polling server may be down Generated by Nagios Looking Glass at 15/Jun/2007 10:08:35 */Andy Shellam /* wrote: Hi Eric, Have you added it to the server-side, or client-side? It has to be in the server-side or it'll get overwritten the next time you open your client. I've copied and pasted the code into mine - works fine. http://looking-glass.andyshellam.eu Andy. Eric Hernandez wrote: Andy, I added this to s3_filter.inc.php but it does not show up in the drop down menu. on the web page. $HostFilter[6] = new S3_NetworkFilter(); $HostFilter[6]-Create(test); $HostFilter[6]-SetType(host); $HostFilter[6]-AddHost(AA-CG-SW1); -eric */Andy Shellam /* wrote: Hi Eric, You don't need to create a separate template to only show specific hosts - what you're looking for is a custom filter (which will get added to the filter hosts drop-down, whichever template you're using.) First off I take it you're using the latest 1.0.6 version? If so, see the filters.txt file in the distribution - that's got some instructions and examples on the different types of filters you can create. You need to create a host-specific filter. If the instructions in this file do not help, please contact me back with where you're having difficulty. Andy. Eric Hernandez wrote: Hi I have installed Nagios-Looking Glass it works. However I cannot figure out how to create a template that will only show selected hosts. Please Advise Thx, -Eric
[Nagios-users] gcc4.2 and nagios-snmp-plugins
Hi, I'm running Nagios 2.9 on FreeBSD/amd64 7. The official FreeBSD port of nagios-snmp-plugins indicates that the software is broken with gcc 4.2. My attempts to compile it indicate that, yes, it's broken. While I could install compat6x and a FreeBSD 6.x package of nagios-snmp-plugins, and then brutalize it into working for me, I would really like my nice clean new server to at least start its production life without such a hack in place. Has anyone managed to build nagios-snmp-plugins with gcc2.9? Any pointers or suggestions? Thanks, ==ml -- Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED] http://www.BlackHelicopters.org/~mwlucas/ Coming Soon: Absolute FreeBSD -- http://www.AbsoluteFreeBSD.com On 5/4/2007, the TSA kept 3 pairs of my soiled undies for security reasons. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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_by_ssh
Well as you might notice from my message the keybased authentication is working well, no problem but I wasn't using sudo so I tried adding that line to my sudo config with no success. It still asks for a passphrase or password when I use check_by_ssh but if I ssh remotecomputer I go right in or if I scp so that seems to be working well but something about check_by_ssh isn't seeing the key exchange or something. I went ahead and generated an rsa key and tried that as well and still I can ssh or scp into the boxes passwordless but not with check_by_ssh Any ideas? James wrote: Robert Cole wrote: I tried the multiple v's: [EMAIL PROTECTED] ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i - ~/.ssh/id_dsa -C /usr/nagios/plugins/check_swap -w 50% -c 10% Enter passphrase for key '/home/nagios/.ssh/id_dsa': [EMAIL PROTECTED]'s password: Didn't give me anymore output but as I mentioned doing it via just ssh works: [EMAIL PROTECTED] ~ $ ssh -i .ssh/id_dsa remotecomputer /usr/nagios/plugins/check_swap -w 50% -c 10% SWAP OK - 100% free (1996 MB out of 1996 MB) |swap=1996MB;998;199;0;1996 [EMAIL PROTECTED] ~ $ -rw-r--r-- 1 nagios nagios 615 Jun 8 07:03 authorized_keys -rw--- 1 nagios nagios 736 Jun 8 05:12 id_dsa -rw-r--r-- 1 nagios nagios 614 Jun 8 05:12 id_dsa.pub -rw-r--r-- 1 nagios nagios 1270 Jun 15 10:21 known_hosts and I did try doing /home/nagios/.ssh/id_dsa and it didn't make a difference. It looks like a problem with check_by_ssh itself doesn't it? here's the exact procedure i use for check_by_ssh 1. As root user on nagios server: shell sudo -u nagios ssh-keygen create the rsa keys in /home/nagios/.ssh/id_rsa make sure when prompted to put a password to user you leave it blank 2. As root user on nagios server: shell sudo -u nagios ssh [EMAIL PROTECTED] This will give the remotehost the signature of the local nagios user in the machine. 3. As user on remote host: shell ssh-keygen create the ssh keys in /home/user/.ssh/id_rsa shell touch /home/user/.ssh/authorized_keys2 4. Copy identity key from nagios server to remote host: From nagios server: shell scp /home/nagios/id_rsa.pub [EMAIL PROTECTED]:/home/user/ mailto:[EMAIL PROTECTED]:/home/remotecmd/ From remote server: shell cat /home/user/id_rsa.pub /home/user/.ssh/authorized_keys2 As root on remote server: shell visudo Now enter the sudo line for user to the command you wish nagios to run: Example: user ALL = NOPASSWD: /usr/local/nagios/libexec/check_ping 5. Make a new Nagios command: /usr/local/nagios/libexec/check_by_ssh -H $HOSTADDRESS$ -l user -i '/home/nagios/.ssh/id_rsa' -C 'path of nagios plugin on remote host' Example: /usr/local/nagios/libexec/check_by_ssh -H $HOSTADDRESS$ -l user -i '/home/nagios/.ssh/id_rsa' -C \ '/usr/local/nagios/libexec/check_graph_uptime.pl -H $HOSTADDRESS$ -C $ARG1$ -g -f -w -S $ARG2$ -c $ARG3$' - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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_by_ssh
Hi Robert! On Fri, 15 Jun 2007, Robert Cole wrote: Well as you might notice from my message the keybased authentication is working well, no problem but I wasn't using sudo so I tried adding that line to my sudo config with no success. It still asks for a passphrase or password when I use check_by_ssh but if I ssh remotecomputer I go right in or if I scp so that seems to be working well but something about check_by_ssh isn't seeing the key exchange or something. I went ahead and generated an rsa key and tried that as well and still I can ssh or scp into the boxes passwordless but not with check_by_ssh Any ideas? The following command will definitely *not* work, because your key file must immediately folow the -i if you provide it (and I'd just leave it and the keyfile name out, since you're using a default key location, anyway). [EMAIL PROTECTED] ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i - ~/.ssh/id_dsa -C /usr/nagios/plugins/check_swap -w 50% -c 10% Enter passphrase for key '/home/nagios/.ssh/id_dsa': [EMAIL PROTECTED]'s password: Do you get the same thing with '/usr/nagios/libexec/check_by_ssh -H remotecomputer -C /usr/nagios/plugins/check_swap -w 50% -c 10%'? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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 inventory
On 15/06/07, Naim Abu Darwish [EMAIL PROTECTED] wrote: Maybe its not you, I'm having the same problem too, hosts and services listed twice. That's reassuring to know! fwiw, I cheat and pipe the output through sort -u to get rid of the duplicates. thanks, Jim - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ 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] Monitoring Windows XP Professional Machines
I got installed the nsclient++ on a Windows XP Professional but the system tray is not showing up in the taskbar. I'm telneting to the localhost on port 5666 to see if its l;istening and no answer. Is this the correct agetn for Windows XP? Thanks for the inputs. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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] Monitoring Windows XP Professional Machines
Richard, Having just gone through this myself, I feel qualified to answer :-) First off, I started trying to use NSClient++ with Nagios using the Nagios 3.0 documentation. After some experimentation I found that there are a number of places where that documentation is incorrect or leaves something important out. Consult the documentation on the NSClient++ site for accurate info on setting up NSClient++. NSClient++ will only listen on port 5666 (the NRPE port) if you have enabled the NRPE module by uncommenting it at the top of the nsc.ini file. If you've enabled the base nsclient module (also by uncommenting it at the top of the nsc.ini file) it will listen on port 12489. I found that the command for enable the system tray was wrong in the Nagios 3.0 documentation as well. At least it was wrong for the 2.7 version of NSClient++. I can't remember exactly what the string was to install it, but it's different from what the Nagios 3.0 docs say. I found that when I tried to install the system tray, it gave me odd errors. I really didn't need the system tray so I don't install it anymore. I think when you install the NSClient++ service and change the service to allow interaction with the desktop, you find that when checks are run you get brief command windows popping up then disappearing on your desktop which can be rather annoying. Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Solid Sent: Friday, June 15, 2007 7:23 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Monitoring Windows XP Professional Machines I got installed the nsclient++ on a Windows XP Professional but the system tray is not showing up in the taskbar. I'm telneting to the localhost on port 5666 to see if its l;istening and no answer. Is this the correct agetn for Windows XP? Thanks for the inputs. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ 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