From vadi.ksdba at gmail.com Tue Jan 1 15:10:04 2008 From: vadi.ksdba at gmail.com (vadi) Date: Tue, 1 Jan 2008 19:40:04 +0530 Subject: mysql database details In-Reply-To: <5f6b57ee0712242032w42b9a776gb82dddfdb36b17c6@mail.gmail.com> References: <5f6b57ee0712230610j47762a80qc4f932fe0f431d4b@mail.gmail.com> <5f6b57ee0712241315j65c8f3b0w9b2e3c97e81a920f@mail.gmail.com> <5f6b57ee0712242032w42b9a776gb82dddfdb36b17c6@mail.gmail.com> Message-ID: <5f6b57ee0801010610w379748b6o4d25505bc857bb3a@mail.gmail.com> Hi All, I want to attach queries output file to the nagios, so that I can download it whenever I need it( It's difficult to display high output on the nagios screen). Can any one help me please? Thanks, Vadiraj On Dec 25, 2007 10:02 AM, vadi wrote: > Hello Gary / Nagios team, > > Thank you Gary Sir, > > I got the answer and it's correct: > > SELECT s.schema_name,CONCAT(IFNULL(ROUND((SUM(t.data_length)+SUM( > t.index_length))/1024/1024,2),0.00),"Mb") > total_size,CONCAT(IFNULL(ROUND(((SUM( t.data_length)+SUM(t.index_length > ))-SUM(t.data_free))/1024/1024,2),0.00),"Mb") > data_used,CONCAT(IFNULL(ROUND(SUM(data_free)/1024/1024,2),0.00),"Mb") > data_free,IFNULL(ROUND((((SUM(t.data_length)+SUM(t.index_length ))-SUM( > t.data_free))/((SUM(t.data_length)+SUM(t.index_length)))*100),2),0) > pct_used,COUNT(table_name) total_tables FROM INFORMATION_SCHEMA.SCHEMATA s > LEFT JOIN INFORMATION_SCHEMA.TABLES t ON s.schema_name = t.table_schemaWHERE > s.schema_name = "nagios_objects" GROUP BY s.schema_name ORDER BY pct_used > DESC\G > > Thanks, > Vadiraj > > > > > > On Dec 25, 2007 3:07 AM, Gary Every < gevery at gmail.com> wrote: > > > check out mysqlshow --status -k from the command line, it''l > > give you a bunch of info - the "rows" and "data_length" columns are what > > you're looking for as far as sizes go. > > > > G.~ > > > > > > > > On Dec 24, 2007 2:15 PM, vadi wrote: > > > > > Hi Gary / Nagios Team, > > > > > > Thanks for all your supports. > > > > > > Irrespective of the engine (InnoDB, MyISAM), I am not able to > > > calculate table size and DB size > > > > > > Do you have any perl/bash script to do or please help me how to find > > > this information? > > > > > > Regards, > > > Vadiraj > > > > > > > > > On Dec 23, 2007 9:00 PM, Gary Every wrote: > > > > > > > You should be able to get all the information you need thusly: > > > > > > > > In your script grab all the databases: > > > > $sql = "SHOW DATABASES"; > > > > // or > > > > > > > > // Count the return rows > > > > // Iterate through them with info from the information_schema.tables > > > > table: > > > > > > > > SELECT * from information_schema WHERE TABLE_SCHEMA = 'db_name'; > > > > > > > > There are columns in there that will get you where you want to be : > > > > Specifically the ENGINE column, which tells you what type engine > > > > (innodb,myisam, etc) that table is > > > > > > > > information_schema is a great place to get info about all your > > > > tables - use it > > > > > > > > > > > > You could probably get all the info you need using the following > > > > SINGLE query: > > > > > > > > $sql = "select count(1), table_schema as Database_name, engine as > > > > Engine_Type from information_schema.tables where engine != 'MEMORY' group > > > > by table_schema,engine"; > > > > > > > > You'll get a return like this: (as you'll see the myisam and innodb > > > > table types are split out for you already, as in the ocsweb db) > > > > > > > > > > > > +----------+--------------------+-------------+ > > > > | count(1) | DB_Name | Engine_Type | > > > > +----------+--------------------+-------------+ > > > > | 58 | cacti | MyISAM | > > > > | 2 | events | InnoDB | > > > > | 4 | information_schema | MyISAM | > > > > | 15 | mysql | MyISAM | > > > > | 24 | ocsweb | InnoDB | > > > > | 12 | ocsweb | MyISAM | > > > > +----------+--------------------+-------------+ > > > > > > > > > > > > > > > > > > > > > > > > On Dec 23, 2007 7:10 AM, vadi < vadi.ksdba at gmail.com> wrote: > > > > > > > > > Dear All, > > > > > > > > > > Can any one help me for writing one bash script to find below > > > > > content. > > > > > 1> To find number of MySql database and there size. > > > > > 2> To find number of tables in there corresponding databases. > > > > > 3> To find number of InnoDB and MyISAM tables in each > > > > > databases. > > > > > > > > > > I want to display this in my nagios tool. > > > > > > > > > > Thanks in advance. > > > > > > > > > > Regards, > > > > > Vadiraj > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > > This SF.net email is sponsored by: Microsoft > > > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at 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 > > > > > > > > > > > > > > > > > > > > > -- > > > > Gary Every > > > > "Pay it Forward!" > > > > > > > > > > > > > > > > -- > > Gary Every > > "Pay it Forward!" > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From vadi.ksdba at gmail.com Tue Jan 1 15:11:59 2008 From: vadi.ksdba at gmail.com (vadi) Date: Tue, 1 Jan 2008 19:41:59 +0530 Subject: Displaying attached file in nagios Message-ID: <5f6b57ee0801010611v236b84aey30bf96ed0408c7ba@mail.gmail.com> Hi All, I want to attach Sql queries output file to the nagios, so that I can download it whenever I need it( It's difficult to display high output on the nagios screen). Can any one help me please? Thanks, Vadiraj -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hvdkooij at vanderkooij.org Tue Jan 1 17:02:14 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Tue, 01 Jan 2008 17:02:14 +0100 Subject: Displaying attached file in nagios In-Reply-To: <5f6b57ee0801010611v236b84aey30bf96ed0408c7ba@mail.gmail.com> References: <5f6b57ee0801010611v236b84aey30bf96ed0408c7ba@mail.gmail.com> Message-ID: <477A6406.1020404@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 vadi wrote: > Hi All, > > I want to attach Sql queries output file to the nagios, so that I can > download it whenever I need it( It's difficult to display high output on > the nagios screen). > > Can any one help me please? You are not clear in your request. I guess there it is a language issue here but please be clearer in your message on what you want to achieve exactly. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHemQEBvzDRVjxmYERAoV5AJ42GW1mrvGJzQYUV9ssivnhsF7IcACfa/E+ rPhfuFeOfdTzzyX35deZw+w= =TF6n -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From rcupardo at tnet.it Tue Jan 1 17:06:31 2008 From: rcupardo at tnet.it (rcupardo at tnet.it) Date: Tue, 1 Jan 2008 17:06:31 +0100 Subject: Autoreply: Re: Displaying attached file in nagios Message-ID: Salve, sono assente dall'ufficio e non torner? fino al 07/01/2008. Risponder? al messaggio al mio ritorno. Per eventuali comunicazioni urgenti potete contattare il numero verde 800.91.92.99 o inviare una email ad info at tnet.it specificando la natura del problema. Saluti -- Riccardo Cupardo Area Network mailto:rcupardo at tnet.it Tel: +39 095 37 83 111 Fax: +39 095 37 83 444 __________________ T. NET ________________ Sede T. net Italia S.r.l.: Viale Africa, 84 - 95129 Catania - Italy Tel: +39 095 37 83 111 - Fax: +39 095 37 83 444 P. I.V.A.: 03979950874 www.tnet.it www.lavocevola.it __________T. NET Telecommunication Company________ *************************************************************** Le informazioni in questa e-mail sono confidenziali e riservate esclusivamente al destinatario del messaggio. Information in this email is confidential and intended solely for the addressee; it may be legally privileged. -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mitch at metauser.net Tue Jan 1 18:31:28 2008 From: mitch at metauser.net (Mitch Anderson) Date: Tue, 1 Jan 2008 10:31:28 -0700 Subject: Service duration problems In-Reply-To: <989aee610712262312r3094f5c7vca08cff45bfa48f6@mail.gmail.com> References: <989aee610712262312r3094f5c7vca08cff45bfa48f6@mail.gmail.com> Message-ID: For example. I have service Ping on server. I see that it is "0d 0h > 10m 27s" in state OK in Service State Information. But when I look at > its avail.cgi I see: > "27-12-2007 00:00:00 27-12-2007 10:06:56 0d 10h 6m 56s+" > I want to mention that nothing happend with server 10 min ago!:(It is > wrong statistics. I could be wrong, but I believe the Service State information will update its time based on soft and hard errors, where as the availability graphs will only change based on hard state information. -Mitch -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dermoth at aei.ca Wed Jan 2 09:16:23 2008 From: dermoth at aei.ca (Thomas Guyot-Sionnest) Date: Wed, 02 Jan 2008 03:16:23 -0500 Subject: Displaying attached file in nagios In-Reply-To: <5f6b57ee0801010611v236b84aey30bf96ed0408c7ba@mail.gmail.com> References: <5f6b57ee0801010611v236b84aey30bf96ed0408c7ba@mail.gmail.com> Message-ID: <477B4857.8020803@aei.ca> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/01/08 09:11 AM, vadi wrote: > Hi All, > > I want to attach Sql queries output file to the nagios, so that I can > download it whenever I need it( It's difficult to display high output on > the nagios screen). So I guess you're running a hand-made check against a SQL database and want to optionally view the full output of the check Or something like this)? The easiest way I can think off is to create a place on your Nagios web server writable by the nagios user and dump the file there; then you can configure the service notes_url or action_url to point to that file via HTTP. Setting up notes_url or action_url will add a small icon next to the service and a bigger one the service detail page, and will also set the macros $NOTESURL$ and $ACTIONURL$ (p.s. double-check the macro names, my memory isn't 100% guaranteed) that you can use for example in the service notifications. Hope this helps, Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHe0hX6dZ+Kt5BchYRAhzaAJ9DdjYvkIKze8wbO3eKwQ8okEwyEQCgjOR3 CxAsRKuTkJrs9m0sVSCZOMo= =SFbh -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Wed Jan 2 09:45:24 2008 From: madunix at gmail.com (Mad Unix) Date: Wed, 2 Jan 2008 10:45:24 +0200 Subject: Connection refused or timed out Message-ID: <4d3f56c90801020045g4f7a48dg3826128a30c7f063@mail.gmail.com> the nagios shows Current Users CRITICAL 01-02-2008 11:35:13 0d 0h 47m 47s 4/4 Connection refused or timed out PING CRITICAL 01-02-2008 11:36:20 0d 0h 46m 40s 4/4 Connection refused or timed out Root Partition CRITICAL 01-02-2008 11:37:27 0d 0h 45m 33s 4/4 Connection refused or timed out Total Processes CRITICAL 01-02-2008 11:30:04 0d 0h 44m 27s 4/4 Connection refused or timed out on the monitor server i made this: define host{ use generic-host ; Name of host template to use host_name linux1 alias linux1 address 10.5.1.31 check_command check-host-alive max_check_attempts 10 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options d,r contact_groups admins } define service{ use generic-service ; Name of service template to use host_name linux1 service_description PING is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_nrpe!check_ping!100.0,20%!500.0,60% } define service{ use generic-service ; Name of service template to use host_name linux1 service_description Root Partition is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_nrpe!check_local_disk!20%!10%!/ } define service{ use generic-service ; Name of service template to use host_name linux1 service_description Current Users is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_nrpe!check_local_users!20!50 } define service{ use generic-service ; Name of service template to use host_name linux1 service_description Total Processes is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_nrpe!check_local_procs!100!125 } on the remote client agent i did this [root at linux1 nagiosinstall]# netstat -at | grep nrpe tcp 0 0 *:nrpe *:* LISTEN [root at linux1 nagiosinstall]# ps -ef | grep nrpe nagios 17326 1 0 10:56 ? 00:00:00 /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d root 17447 16952 0 11:38 pts/1 00:00:00 grep nrpe -- madunix ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Wed Jan 2 10:06:50 2008 From: madunix at gmail.com (Mad Unix) Date: Wed, 2 Jan 2008 11:06:50 +0200 Subject: Connection refused or timed out In-Reply-To: <4d3f56c90801020045g4f7a48dg3826128a30c7f063@mail.gmail.com> References: <4d3f56c90801020045g4f7a48dg3826128a30c7f063@mail.gmail.com> Message-ID: <4d3f56c90801020106t2d4708f5va8c548ec7129d991@mail.gmail.com> I have the foloowing error now on all item CHECK_NRPE: Error - Could not complete SSL handshake from the server I issued [root at linux2 etc]# telnet 10.5.1.31 5666 Trying 10.5.1.31... Connected to 10.5.1.31 (10.5.1.31). Escape character is '^]'. Connection closed by foreign host. On Jan 2, 2008 10:45 AM, Mad Unix wrote: > the nagios shows > > Current Users > CRITICAL 01-02-2008 11:35:13 0d 0h 47m 47s 4/4 Connection refused or > timed out > PING > > CRITICAL 01-02-2008 11:36:20 0d 0h 46m 40s 4/4 Connection refused or > timed out > Root Partition > > CRITICAL 01-02-2008 11:37:27 0d 0h 45m 33s 4/4 Connection refused or > timed out > Total Processes > > CRITICAL 01-02-2008 11:30:04 0d 0h 44m 27s 4/4 Connection refused or > timed out > > > on the monitor server i made this: > define host{ > use generic-host ; Name of host > template to use > host_name linux1 > alias linux1 > address 10.5.1.31 > check_command check-host-alive > max_check_attempts 10 > check_period 24x7 > notification_interval 120 > notification_period 24x7 > notification_options d,r > contact_groups admins > } > > > > define service{ > use generic-service ; Name > of service template to use > host_name linux1 > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command > check_nrpe!check_ping!100.0,20%!500.0,60% > } > > define service{ > use generic-service ; Name > of service template to use > host_name linux1 > service_description Root Partition > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command check_nrpe!check_local_disk!20%!10%!/ > } > > define service{ > use generic-service ; Name > of service template to use > host_name linux1 > service_description Current Users > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command check_nrpe!check_local_users!20!50 > } > > define service{ > use generic-service ; Name > of service template to use > host_name linux1 > service_description Total Processes > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command check_nrpe!check_local_procs!100!125 > } > > > > > on the remote client agent i did this > > [root at linux1 nagiosinstall]# netstat -at | grep nrpe > tcp 0 0 *:nrpe *:* > LISTEN > [root at linux1 nagiosinstall]# ps -ef | grep nrpe > nagios 17326 1 0 10:56 ? 00:00:00 /usr/local/nagios/nrpe > -c /usr/local/nagios/nrpe.cfg -d > root 17447 16952 0 11:38 pts/1 00:00:00 grep nrpe > > > > > -- > madunix > -- madunix ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stava at telcotec.se Wed Jan 2 10:13:35 2008 From: stava at telcotec.se (Lars Stavholm) Date: Wed, 02 Jan 2008 10:13:35 +0100 Subject: rrd gaps Message-ID: <477B55BF.3080602@telcotec.se> Hi All, we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. It all works very well, except for one annoying problem: I get gaps in the graphs, and I don't understand why. Any ideas appreciated, sample graph attached. R /Lars -------------- next part -------------- A non-text attachment was scrubbed... Name: sample.png Type: image/png Size: 29812 bytes Desc: not available URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gmueller at netways.de Wed Jan 2 10:32:22 2008 From: gmueller at netways.de (Gerd Mueller) Date: Wed, 02 Jan 2008 10:32:22 +0100 Subject: rrd gaps In-Reply-To: <477B55BF.3080602@telcotec.se> References: <477B55BF.3080602@telcotec.se> Message-ID: <1199266342.12087.3.camel@netl-gm-01.int.netways.de> Hi Lars, which interface are you using? And how big is your nagios' latency? Cheers, Gerd Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: > Hi All, > > we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. > > It all works very well, except for one annoying problem: > I get gaps in the graphs, and I don't understand why. > > Any ideas appreciated, sample graph attached. > > R > /Lars > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ Nagios-users mailing list Nagios-users at 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 -- Gerd Mueller Senior Consultant NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 N?rnberg Tel: +49 911 92885-0 | Fax: +49 911 92885-33 GF: Julian Hein | AG N?rnberg HRB18461 http://www.netways.de | gmueller at netways.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From beick at zib.de Wed Jan 2 10:34:29 2008 From: beick at zib.de (beick at zib.de) Date: Wed, 2 Jan 2008 10:34:29 +0100 (MET) Subject: check_by_ssh problem Message-ID: <12838.130.73.72.85.1199266469.squirrel@imap.zib.de> I want to do some checks on a remote host using check_by_ssh. Although user nagios can ssh to that host without being asked for a password the webinterface of my nagios is telling me: Unknown Remote command execution failed: Permission denied (publickey,keyboard-interactive) If I run nagios in the foreground I get prompts for password. Any idea what I might have missed? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stava at telcotec.se Wed Jan 2 11:01:14 2008 From: stava at telcotec.se (Lars Stavholm) Date: Wed, 02 Jan 2008 11:01:14 +0100 Subject: rrd gaps In-Reply-To: <1199266342.12087.3.camel@netl-gm-01.int.netways.de> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> Message-ID: <477B60EA.4000407@telcotec.se> Gerd Mueller wrote: > Hi Lars, > > which interface are you using? And how big is your nagios' latency? I don't quite understand the first question there? We use the Nagios web interface with the nuvola theme? We have only a few hosts and around a hundred service checks, i.e. no heavy load here: # nagiostats | grep -i latency Active Service Latency: 0.000 / 0.335 / 0.135 sec Passive Service Latency: 0.000 / 0.000 / 0.000 sec Active Host Latency: 0.000 / 0.284 / 0.152 sec Passive Host Latency: 0.000 / 0.000 / 0.000 sec # nagiostats | grep -i total Used/High/Total Command Buffers: 0 / 1 / 4096 Total Services: 114 Total Service State Change: 0.000 / 12.110 / 0.106 % Total Hosts: 19 Total Host State Change: 0.000 / 0.000 / 0.000 % /L > Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: >> Hi All, >> >> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. >> >> It all works very well, except for one annoying problem: >> I get gaps in the graphs, and I don't understand why. >> >> Any ideas appreciated, sample graph attached. >> >> R >> /Lars >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tr1719 at freemail.hu Wed Jan 2 11:17:32 2008 From: tr1719 at freemail.hu (tr1719) Date: Wed, 2 Jan 2008 11:17:32 +0100 (CET) Subject: Object sum Message-ID: <50162.10.0.0.1.1199269052.squirrel@localhost> Hi! I' m newbie to nagios, but i didn' t find solution to my problem in the archives. Is there any object where i can list more than one check command? So, if i have this check commands: check_disk_1 check_disk_2 check_disk_3 and i have this hosts: server1 server2 server3 and all the servers "has got" disk_1, disk_2, disk_3 then i can order servers into hostgroups, but can i do the same with the check commands? (and can i combine it with hostgroups)? Thanks for the answers. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.mohr at elaxy.com Wed Jan 2 12:43:00 2008 From: james.mohr at elaxy.com (Mohr James) Date: Wed, 2 Jan 2008 12:43:00 +0100 Subject: Propagating Service Changes Message-ID: Hi All! First off my apologies. Apparently I forget to stop the subscription while I was on vacation, so I would imagine that most everyone got a vacation notice from me. Sorry! We have a situation (using Nagios 2.5) we need to monitor/report services "conceptually". That is, we have several services that are monitored and only when all of these are not accessible do we report that the main service is not accessible. I couldn't find any information on propagating services, so I was thinking about using an event handler that would run whenever one of the low-level services changes state. The handler would then check the other services (perhaps using the Nagios-Object perl module) and if all of the other services are critical, the handler would use send_nsca to send a message to the master service. However, if there is some mechanism already built in (even Nagios 3.0) that would save me the work of re-inventing the wheel. I would be grateful for any input or ideas. Regards, Jim Mohr ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stava at telcotec.se Wed Jan 2 13:06:29 2008 From: stava at telcotec.se (Lars Stavholm) Date: Wed, 02 Jan 2008 13:06:29 +0100 Subject: rrd gaps In-Reply-To: <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> Message-ID: <477B7E45.3020808@telcotec.se> Mad Unix wrote: > Can you tell me how did you implement graph beside the nagios Let's keep this on the list, shall we? I used rpm packages from linadd.org. > Thanks You're welcome. /L > On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: >> Gerd Mueller wrote: >>> Hi Lars, >>> >>> which interface are you using? And how big is your nagios' latency? >> I don't quite understand the first question there? >> We use the Nagios web interface with the nuvola theme? >> >> We have only a few hosts and around a hundred service checks, >> i.e. no heavy load here: >> >> # nagiostats | grep -i latency >> Active Service Latency: 0.000 / 0.335 / 0.135 sec >> Passive Service Latency: 0.000 / 0.000 / 0.000 sec >> Active Host Latency: 0.000 / 0.284 / 0.152 sec >> Passive Host Latency: 0.000 / 0.000 / 0.000 sec >> >> # nagiostats | grep -i total >> Used/High/Total Command Buffers: 0 / 1 / 4096 >> Total Services: 114 >> Total Service State Change: 0.000 / 12.110 / 0.106 % >> Total Hosts: 19 >> Total Host State Change: 0.000 / 0.000 / 0.000 % >> >> /L >> >> >>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: >>>> Hi All, >>>> >>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. >>>> >>>> It all works very well, except for one annoying problem: >>>> I get gaps in the graphs, and I don't understand why. >>>> >>>> Any ideas appreciated, sample graph attached. >>>> >>>> R >>>> /Lars >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Wed Jan 2 13:13:59 2008 From: madunix at gmail.com (Mad Unix) Date: Wed, 2 Jan 2008 14:13:59 +0200 Subject: ping Message-ID: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> my nagios shows the following check_ping: %s: Warning threshold must be integer or percentage! on the server define service{ use generic-service ; Name of service template to use host_name linux1 service_description PING is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_options w,u,c,r notification_interval 960 notification_period 24x7 check_command check_nrpe!check_ping!100.0,20%!500.0,60% } on the client runnig nrpe command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tva at d-fi.fr Wed Jan 2 13:16:17 2008 From: tva at d-fi.fr (Thierry VALLIER) Date: Wed, 2 Jan 2008 13:16:17 +0100 Subject: ping In-Reply-To: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> Message-ID: <5336CE5F5C88EC4384BF375B40A8EC1E7C91D1@w2k-meu-exc.Exchange.d-fi.fr> Hi all I'm searching plugins for monitoring my storage IBM DS4000 and NetApp FAS2020. Can someone help me please ? Thanx in advance Bien cordialement, Best regards Thierry VALLIER Ing?nieur Avant-Vente Syst?mes & Stockage GROUPE D.FI * : 01 58 87 32 65 * : 06 03 17 07 44 * : thierry.vallier at d-fi.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ad at heapoverflow.com Wed Jan 2 13:27:23 2008 From: ad at heapoverflow.com (ad at heapoverflow.com) Date: Wed, 02 Jan 2008 13:27:23 +0100 Subject: ping In-Reply-To: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> Message-ID: <477B832B.4040202@heapoverflow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 not sure but I think your check_ping command has an error, try changing it to command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 Mad Unix wrote: > my nagios shows the following > > check_ping: %s: Warning threshold must be integer or percentage! > on the server > define service{ > use generic-service ; > Name of service template to use > host_name linux1 > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command > check_nrpe!check_ping!100.0,20%!500.0,60% > } > on the client runnig nrpe > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ > -w $ARG2$ -c $ARG3$ -p 5 > > -- > madunix > > ---------------------------------------------------------------------- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ---------------------------------------------------------------------- > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFHe4MrdS4H/t4eKFARAnGTAKDaWD6QEsbzyOJw2FhwH2ajViEgowCg5Z5q iZJQf2aT1SA/ncnkbLxwE1I= =FUdp -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hs at schlittermann.de Wed Jan 2 13:27:03 2008 From: hs at schlittermann.de (Heiko Schlittermann) Date: Wed, 2 Jan 2008 13:27:03 +0100 Subject: ping In-Reply-To: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> Message-ID: <20080102122703.GW10685@schlittermann.de> Mad Unix (Mi 02 Jan 2008 13:13:59 CET): > my nagios shows the following > > check_ping: %s: Warning threshold must be integer or percentage! > on the server ... > check_nrpe!check_ping!100.0,20%!500.0,60% > } > on the client runnig nrpe > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ > -c $ARG3$ -p 5 Shouldn't it be -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ ?? Best regards from Dresden Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ad at heapoverflow.com Wed Jan 2 13:29:41 2008 From: ad at heapoverflow.com (ad at heapoverflow.com) Date: Wed, 02 Jan 2008 13:29:41 +0100 Subject: ping In-Reply-To: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> Message-ID: <477B83B5.7080304@heapoverflow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 not sure but I think your check_ping command has an error, try changing it to //edit(based on your cfg): command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 Mad Unix wrote: > my nagios shows the following > > check_ping: %s: Warning threshold must be integer or percentage! > on the server > define service{ > use generic-service ; > Name of service template to use > host_name linux1 > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command > check_nrpe!check_ping!100.0,20%!500.0,60% > } > on the client runnig nrpe > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ > -w $ARG2$ -c $ARG3$ -p 5 > > -- > madunix > > ---------------------------------------------------------------------- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ---------------------------------------------------------------------- > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFHe4O1dS4H/t4eKFARAtK+AJ9R5VT5N9qILMNIwKkoREiSIdxzzACg5Vy0 ojI09Q7Saf64fhw+qfCwZ7k= =6szX -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Wed Jan 2 13:52:01 2008 From: madunix at gmail.com (Mad Unix) Date: Wed, 2 Jan 2008 14:52:01 +0200 Subject: ping In-Reply-To: <477B83B5.7080304@heapoverflow.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> <477B83B5.7080304@heapoverflow.com> Message-ID: <4d3f56c90801020452o6c5ff2ey37abf5b51fa834a0@mail.gmail.com> it gave now check_ping: Invalid hostname/address - $ other commands work, only the ping it gave eror i changed the ping the client to command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ command[check_local_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$ command[check_local_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$ command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 On Jan 2, 2008 2:29 PM, ad at heapoverflow.com wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > not sure but I think your check_ping command has an error, try > changing it to > > //edit(based on your cfg): > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 > > > Mad Unix wrote: > > my nagios shows the following > > > > check_ping: %s: Warning threshold must be integer or percentage! > > on the server > > define service{ > > use generic-service ; > > Name of service template to use > > host_name linux1 > > service_description PING > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 4 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups admins > > notification_options w,u,c,r > > notification_interval 960 > > notification_period 24x7 > > check_command > > check_nrpe!check_ping!100.0,20%!500.0,60% > > } > > on the client runnig nrpe > > > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ > > -w $ARG2$ -c $ARG3$ -p 5 > > > > -- > > madunix > > > > ---------------------------------------------------------------------- > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > ---------------------------------------------------------------------- > > > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > > iD8DBQFHe4O1dS4H/t4eKFARAtK+AJ9R5VT5N9qILMNIwKkoREiSIdxzzACg5Vy0 > ojI09Q7Saf64fhw+qfCwZ7k= > =6szX > -----END PGP SIGNATURE----- > -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ad at heapoverflow.com Wed Jan 2 14:03:43 2008 From: ad at heapoverflow.com (ad at heapoverflow.com) Date: Wed, 02 Jan 2008 14:03:43 +0100 Subject: ping In-Reply-To: <4d3f56c90801020452o6c5ff2ey37abf5b51fa834a0@mail.gmail.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> <477B83B5.7080304@heapoverflow.com> <4d3f56c90801020452o6c5ff2ey37abf5b51fa834a0@mail.gmail.com> Message-ID: <477B8BAF.9080002@heapoverflow.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Probably because the hostname you defined in the service host_name linux1 is unknown, try changing it to localhost or the correct local domain Mad Unix wrote: > it gave now check_ping: Invalid hostname/address - $ other commands > work, only the ping it gave eror > > i changed the ping the client to > command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w > $ARG1$ -c $ARG2$ -p $ARG3$ > command[check_local_users]=/usr/local/nagios/libexec/check_users -w > $ARG1$ -c $ARG2$ > command[check_local_load]=/usr/local/nagios/libexec/check_load -w > $ARG1$ -c $ARG2$ > command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w > $ARG1$ -c $ARG2$ > #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ > -w $ARG2$ -c $ARG3$ -p 5 > command[check_ping]=/usr/local/nagios/libexec/check_ping -H > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 > > On Jan 2, 2008 2:29 PM, ad at heapoverflow.com > > wrote: > > not sure but I think your check_ping command has an error, try > changing it to > > //edit(based on your cfg): > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 > > > Mad Unix wrote: >> my nagios shows the following > >> check_ping: %s: Warning threshold must be integer or percentage! >> on the server define service{ use >> generic-service ; Name of service template to use >> host_name linux1 service_description >> PING is_volatile 0 check_period >> 24x7 max_check_attempts 4 normal_check_interval >> 5 retry_check_interval 1 contact_groups >> admins notification_options w,u,c,r >> notification_interval 960 notification_period >> 24x7 check_command check_nrpe!check_ping!100.0,20%!500.0,60% } on >> the client runnig nrpe > >> command[check_ping]=/usr/local/nagios/libexec/check_ping -H >> $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 > >> -- madunix > >> ---------------------------------------------------------------------- >> > >> > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft Defy all challenges. >> Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> ---------------------------------------------------------------------- >> > >> _______________________________________________ Nagios-users >> mailing list Nagios-users at 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 > > -- madunix -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFHe4uudS4H/t4eKFARAs2AAJ96P7cFl6FbjfyyziCteVC1f6jjzQCeOUsD lPm5a/zsumegOtL//METaRI= =5Tau -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon-gM/Ye1E23mwN+BqQ9rBEUg at public.gmane.org Wed Jan 2 14:12:30 2008 From: hpsekhon-gM/Ye1E23mwN+BqQ9rBEUg at public.gmane.org (Hari Sekhon) Date: Wed, 02 Jan 2008 13:12:30 +0000 Subject: Licensing of Official and 3rd Party Plugins Message-ID: <477B8DBE.7020207@googlemail.com> Hi, I was wondering if anyone had any views on the licensing of plugins, I have looked at GPL version 3 and it looks good, really just an update to GPL version 2. So the question is, why not license plugins as GPL version 3 now? I am really asking this in 2 respects: 1. for the Official Plugins 2. for custom plugins released to Nagios Exchange. Basically it comes down to GPLv2 vs GPLv3. Has anyone considered upgrading to the official Nagios code base to the newer GPL? Should I license plugins I write as GPLv3 now instead of GPLv2? Are there any detractions in doing this? -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________________ Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthias.Flacke at gmx.de Wed Jan 2 14:20:54 2008 From: Matthias.Flacke at gmx.de (Matthias.Flacke at gmx.de) Date: Wed, 2 Jan 2008 14:20:54 +0100 (MET) Subject: Propagating Service Changes Message-ID: <200801021320.m02DKsC1022803@post.webmailer.de> Maybe you can solve your issue already on the plugin level: - If you want to evaluate the state of existing Nagios services take a look onto check_cluster. - If you want to cover more sophisticated setups and be able to do a fine granulated evaluation of the results of your child checks you can also take check_multi (http://www.my-plugin.de/wiki/projects/check_multi/start) , which is mainly written for Nagios 3, but also works with Nagios 2. The state evaluation topic is handled in the 'Process Views' page (http://www.my-plugin.de/wiki/projects/check_multi/process_views) HTH - Matthias Flacke ----- original message -------- Subject: [Nagios-users] Propagating Service Changes Sent: Wed, 02 Jan 2008 From: Mohr James > Hi All! > > First off my apologies. Apparently I forget to stop the subscription > while I was on vacation, so I would imagine that most everyone got a > vacation notice from me. Sorry! > > We have a situation (using Nagios 2.5) we need to monitor/report > services "conceptually". That is, we have several services that are > monitored and only when all of these are not accessible do we report > that the main service is not accessible. I couldn't find any information > on propagating services, so I was thinking about using an event handler > that would run whenever one of the low-level services changes state. The > handler would then check the other services (perhaps using the > Nagios-Object perl module) and if all of the other services are > critical, the handler would use send_nsca to send a message to the > master service. However, if there is some mechanism already built in > (even Nagios 3.0) that would save me the work of re-inventing the wheel. > > I would be grateful for any input or ideas. > > Regards, > > Jim Mohr > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > --- original message end ---- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Jan 2 14:26:21 2008 From: marc at ena.com (Marc Powell) Date: Wed, 2 Jan 2008 07:26:21 -0600 Subject: check_by_ssh problem In-Reply-To: <12838.130.73.72.85.1199266469.squirrel@imap.zib.de> References: <12838.130.73.72.85.1199266469.squirrel@imap.zib.de> Message-ID: <229A5203-4813-4C88-A0BF-7F6300613970@ena.com> On Jan 2, 2008, at 3:34 AM, beick at zib.de wrote: > I want to do some checks on a remote host using check_by_ssh. Although > user nagios can ssh to that host without being asked for a password > the > webinterface of my nagios is telling me: > > Unknown > Remote command execution failed: Permission denied > (publickey,keyboard-interactive) > > If I run nagios in the foreground I get prompts for password. > > Any idea what I might have missed? Are you using the exact same hostname/IP address for your command line test as the nagios user that you have in your configuration? -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Wed Jan 2 14:52:07 2008 From: madunix at gmail.com (Mad Unix) Date: Wed, 2 Jan 2008 15:52:07 +0200 Subject: ping In-Reply-To: <477B8BAF.9080002@heapoverflow.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> <477B83B5.7080304@heapoverflow.com> <4d3f56c90801020452o6c5ff2ey37abf5b51fa834a0@mail.gmail.com> <477B8BAF.9080002@heapoverflow.com> Message-ID: <4d3f56c90801020552i5a2fa041i48c51c142d6dc0f5@mail.gmail.com> i can ping the server with a name [root at linux2 etc]# ping linux1 PING linux1.sdc.lan (10.5.1.31) 56(84) bytes of data. 64 bytes from 10.5.1.31: icmp_seq=1 ttl=64 time=0.147 ms 64 bytes from 10.5.1.31: icmp_seq=2 ttl=64 time=0.132 ms the error is starnge check_ping: %s: Warning threshold must be integer or percentage On Jan 2, 2008 3:03 PM, ad at heapoverflow.com wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Probably because the hostname you defined in the service > > host_name linux1 > > is unknown, try changing it to localhost or the correct local domain > > Mad Unix wrote: > > it gave now check_ping: Invalid hostname/address - $ other commands > > work, only the ping it gave eror > > > > i changed the ping the client to > > command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w > > $ARG1$ -c $ARG2$ -p $ARG3$ > > command[check_local_users]=/usr/local/nagios/libexec/check_users -w > > $ARG1$ -c $ARG2$ > > command[check_local_load]=/usr/local/nagios/libexec/check_load -w > > $ARG1$ -c $ARG2$ > > command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w > > $ARG1$ -c $ARG2$ > > #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ > > -w $ARG2$ -c $ARG3$ -p 5 > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H > > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 > > > > On Jan 2, 2008 2:29 PM, ad at heapoverflow.com > > > > wrote: > > > > not sure but I think your check_ping command has an error, try > > changing it to > > > > //edit(based on your cfg): > > > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H > > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 > > > > > > Mad Unix wrote: > >> my nagios shows the following > > > >> check_ping: %s: Warning threshold must be integer or percentage! > >> on the server define service{ use > >> generic-service ; Name of service template to use > >> host_name linux1 service_description > >> PING is_volatile 0 check_period > >> 24x7 max_check_attempts 4 normal_check_interval > >> 5 retry_check_interval 1 contact_groups > >> admins notification_options w,u,c,r > >> notification_interval 960 notification_period > >> 24x7 check_command check_nrpe!check_ping!100.0,20%!500.0,60% } on > >> the client runnig nrpe > > > >> command[check_ping]=/usr/local/nagios/libexec/check_ping -H > >> $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 > > > >> -- madunix > > > >> ---------------------------------------------------------------------- > >> > > > >> > > > ------------------------------------------------------------------------- > > > >> This SF.net email is sponsored by: Microsoft Defy all challenges. > >> Microsoft(R) Visual Studio 2005. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > >> ---------------------------------------------------------------------- > >> > > > >> _______________________________________________ Nagios-users > >> mailing list Nagios-users at 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 > > > > > -- madunix > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > > iD8DBQFHe4uudS4H/t4eKFARAs2AAJ96P7cFl6FbjfyyziCteVC1f6jjzQCeOUsD > lPm5a/zsumegOtL//METaRI= > =5Tau > -----END PGP SIGNATURE----- > > -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Jan 2 15:53:43 2008 From: marc at ena.com (Marc Powell) Date: Wed, 2 Jan 2008 08:53:43 -0600 Subject: ping In-Reply-To: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mad Unix > Sent: Wednesday, January 02, 2008 6:14 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] ping > > my nagios shows the following > > check_ping: %s: Warning threshold must be integer or percentage! > on the server > define service{ > use generic-service ; Name of > service template to use > host_name linux1 > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_options w,u,c,r > notification_interval 960 > notification_period 24x7 > check_command > check_nrpe!check_ping!100.0,20%!500.0,60% > } > on the client runnig nrpe > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w > $ARG2$ -c $ARG3$ -p 5 Looks like your check_nrpe command on your nagios machine isn't properly passing the command line arguments to NRPE on the remote machine. That could be due to your check_nrpe command definition not being configured properly, you didn't compile NRPE with command line arguments option enabled or you haven't set dont_blame_nrpe in nrpe.cfg on the remote machine. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Jan 2 15:56:28 2008 From: marc at ena.com (Marc Powell) Date: Wed, 2 Jan 2008 08:56:28 -0600 Subject: ping In-Reply-To: <4d3f56c90801020552i5a2fa041i48c51c142d6dc0f5@mail.gmail.com> References: <4d3f56c90801020552i5a2fa041i48c51c142d6dc0f5@mail.gmail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mad Unix > Sent: Wednesday, January 02, 2008 7:52 AM > To: ad at heapoverflow.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] ping > the error is starnge > check_ping: %s: Warning threshold must be integer or percentage It means that the argument to -w on the machine running check_ping is blank or not an integer or percentage. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Wed Jan 2 16:12:47 2008 From: madunix at gmail.com (Mad Unix) Date: Wed, 2 Jan 2008 17:12:47 +0200 Subject: ping In-Reply-To: References: <4d3f56c90801020552i5a2fa041i48c51c142d6dc0f5@mail.gmail.com> Message-ID: <4d3f56c90801020712s59bd516bmb729083ce574945d@mail.gmail.com> my nrpe.cfg [root at linux1 nagios]# vi nrpe.cfg ############################################################################# # Sample NRPE Config File # Written by: Ethan Galstad (nagios at nagios.org) # # Last Modified: 11-23-2007 # # NOTES: # This is a sample configuration file for the NRPE daemon. It needs to be # located on the remote host that is running the NRPE daemon, not the host # from which the check_nrpe client is being executed. ############################################################################# # LOG FACILITY # The syslog facility that should be used for logging purposes. log_facility=daemon # PID FILE # The name of the file in which the NRPE daemon should write it's process ID # number. The file is only written if the NRPE daemon is started by the root # user and is running in standalone mode. pid_file=/var/run/nrpe.pid # PORT NUMBER # Port number we should wait for connections on. # NOTE: This must be a non-priviledged port (i.e. > 1024). # NOTE: This option is ignored if NRPE is running under either inetd or xinetd server_port=5666 # SERVER ADDRESS /dont # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd allowed_hosts=127.0.0.1, 10.5.1.32 # COMMAND ARGUMENT PROCESSING # This option determines whether or not the NRPE daemon will allow clients # to specify arguments to commands that are executed. This option only works # if the daemon was configured with the --enable-command-args configure script # option. # # *** ENABLING THIS OPTION IS A SECURITY RISK! *** # Read the SECURITY file for information on some of the security implications # of enabling this variable. # # Values: 0=do not allow arguments, 1=allow command arguments dont_blame_nrpe=1 # COMMAND PREFIX # This option allows you to prefix all commands with a user-defined string. # A space is automatically added between the specified prefix string and the # command line from the command definition. # # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH CAUTION! *** # Usage scenario: # Execute restricted commmands using sudo. For this to work, you need to add # the nagios user to your /etc/sudoers. An example entry for alllowing # execution of the plugins from might be: # # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ # # This lets the nagios user run all commands in that directory (and only them) # without asking for a password. If you do this, make sure you don't give # random users write access to that directory or its contents! ############################################################################# # Sample NRPE Config File # Written by: Ethan Galstad (nagios at nagios.org) # # Last Modified: 11-23-2007 # # NOTES: # This is a sample configuration file for the NRPE daemon. It needs to be # located on the remote host that is running the NRPE daemon, not the host # from which the check_nrpe client is being executed. ############################################################################# # LOG FACILITY # The syslog facility that should be used for logging purposes. log_facility=daemon # PID FILE # The name of the file in which the NRPE daemon should write it's process ID # number. The file is only written if the NRPE daemon is started by the root # user and is running in standalone mode. pid_file=/var/run/nrpe.pid # PORT NUMBER # Port number we should wait for connections on. # NOTE: This must be a non-priviledged port (i.e. > 1024). # NOTE: This option is ignored if NRPE is running under either inetd or xinetd server_port=5666 # SERVER ADDRESS # Address that nrpe should bind to in case there are more than one interface # and you do not want nrpe to bind on all interfaces. # NOTE: This option is ignored if NRPE is running under either inetd or xinetd #server_address=127.0.0.1 # NRPE USER # This determines the effective user that the NRPE daemon should run as. # You can either supply a username or a UID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd nrpe_user=nagios # NRPE GROUP # This determines the effective group that the NRPE daemon should run as. # You can either supply a group name or a GID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd nrpe_group=nagios # ALLOWED HOST ADDRESSES # This is an optional comma-delimited list of IP address or hostnames # that are allowed to talk to the NRPE daemon. # # Note: The daemon only does rudimentary checking of the client's IP # address. I would highly recommend adding entries in your /etc/hosts.allow # file to allow only the specified host to connect to the port # you are running this daemon on. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd allowed_hosts=127.0.0.1, 10.5.1.32 # COMMAND ARGUMENT PROCESSING # This option determines whether or not the NRPE daemon will allow clients # to specify arguments to commands that are executed. This option only works # if the daemon was configured with the --enable-command-args configure script # option. # # *** ENABLING THIS OPTION IS A SECURITY RISK! *** # Read the SECURITY file for information on some of the security implications # of enabling this variable. # # Values: 0=do not allow arguments, 1=allow command arguments dont_blame_nrpe=1 # COMMAND PREFIX # This option allows you to prefix all commands with a user-defined string. # A space is automatically added between the specified prefix string and the # command line from the command definition. # # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH CAUTION! *** # Usage scenario: # Execute restricted commmands using sudo. For this to work, you need to add # the nagios user to your /etc/sudoers. An example entry for alllowing # execution of the plugins from might be: # # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ # # This lets the nagios user run all commands in that directory (and only them) # without asking for a password. If you do this, make sure you don't give # random users write access to that directory or its contents! # command_prefix=/usr/bin/sudo # DEBUGGING OPTION # This option determines whether or not debugging messages are logged to the # syslog facility. # Values: 0=debugging off, 1=debugging on debug=0 # COMMAND TIMEOUT # This specifies the maximum number of seconds that the NRPE daemon will # allow plugins to finish executing before killing them off. command_timeout=60 # CONNECTION TIMEOUT # This specifies the maximum number of seconds that the NRPE daemon will # wait for a connection to be established before exiting. This is sometimes # seen where a network problem stops the SSL being established even though # all network sessions are connected. This causes the nrpe daemons to # accumulate, eating system resources. Do not set this too low. connection_timeout=300 # WEEK RANDOM SEED OPTION # This directive allows you to use SSL even if your system does not have # a /dev/random or /dev/urandom (on purpose or because the necessary patches # were not applied). The random number generator will be seeded from a file # which is either a file pointed to by the environment valiable $RANDFILE # or $HOME/.rnd. If neither exists, the pseudo random number generator will # be initialized and a warning will be issued. # Values: 0=only seed from /dev/[u]random, 1=also seed from weak randomness #allow_weak_random_seed=1 # INCLUDE CONFIG FILE # This directive allows you to include definitions from an external config file. #include= # INCLUDE CONFIG DIRECTORY # This directive allows you to include definitions from config files (with a # .cfg extension) in one or more directories (with recursion). #include_dir= #include_dir= # COMMAND DEFINITIONS # Command definitions that this daemon will run. Definitions # are in the following format: # # command[]= # # When the daemon receives a request to return the results of # it will execute the command specified by the argument. # # Unlike Nagios, the command line cannot contain macros - it must be # typed exactly as it should be executed. # # Note: Any plugins that are used in the command lines must reside # on the machine that this daemon is running on! The examples below # assume that you have plugins installed in a /usr/local/nagios/libexec # directory. Also note that you will have to modify the definitions below # to match the argument format the plugins expect. Remember, these are # examples only! # The following examples use hardcoded command arguments... #command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 #command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 #command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1 #command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z #command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 # The following examples allow user-supplied arguments and can # only be used if the NRPE daemon was compiled with support for # command arguments *AND* the dont_blame_nrpe directive in this # config file is set to '1'. This poses a potential security risk, so # make sure you read the SECURITY file before doing this. #command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$ #command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$ #command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ #command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ command[check_local_load]=/usr/local/nagios/libexec/check_ftp -w $ARG1$ -c $ARG2$ command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ command[check_local_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$ command[check_local_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$ command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ On Jan 2, 2008 4:56 PM, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Mad Unix > > Sent: Wednesday, January 02, 2008 7:52 AM > > To: ad at heapoverflow.com > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] ping > > > > the error is starnge > > check_ping: %s: Warning threshold must be integer or percentage > > It means that the argument to -w on the machine running check_ping is > blank or not an integer or percentage. > > -- > Marc > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tim at tany.com Wed Jan 2 16:13:32 2008 From: tim at tany.com (Tim Palmer) Date: Wed, 02 Jan 2008 10:13:32 -0500 Subject: ping In-Reply-To: <4d3f56c90801020552i5a2fa041i48c51c142d6dc0f5@mail.gmail.com> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> <477B83B5.7080304@heapoverflow.com> <4d3f56c90801020452o6c5ff2ey37abf5b51fa834a0@mail.gmail.com> <477B8BAF.9080002@heapoverflow.com> <4d3f56c90801020552i5a2fa041i48c51c142d6dc0f5@mail.gmail.com> Message-ID: <477BAA1C.7070702@tany.com> [list protocol note? - I suppose, since people *will* top post, a thread that is top posted should remain top posted] A quick Google search shows you are by no means the first to run into this. What is the ping check for? Do you want to check if linux1 is up from the Nagios server, or check something else from linux1? If the former, there's no need for it to be an nrpe check, if the later, google "nrpe check_ping" will bring up lots of clues, hints and discussions. tim Mad Unix wrote: > i can ping the server with a name > [root at linux2 etc]# ping linux1 > PING linux1.sdc.lan (10.5.1.31 ) 56(84) bytes of data. > 64 bytes from 10.5.1.31 : icmp_seq=1 ttl=64 time= > 0.147 ms > 64 bytes from 10.5.1.31 : icmp_seq=2 ttl=64 > time=0.132 ms > > the error is starnge > check_ping: %s: Warning threshold must be integer or percentage > > > > On Jan 2, 2008 3:03 PM, ad at heapoverflow.com > > wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Probably because the hostname you defined in the service > > host_name linux1 > > is unknown, try changing it to localhost or the correct local domain > > Mad Unix wrote: > > it gave now check_ping: Invalid hostname/address - $ other commands > > work, only the ping it gave eror > > > > i changed the ping the client to > > command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w > > $ARG1$ -c $ARG2$ -p $ARG3$ > > command[check_local_users]=/usr/local/nagios/libexec/check_users -w > > $ARG1$ -c $ARG2$ > > command[check_local_load]=/usr/local/nagios/libexec/check_load -w > > $ARG1$ -c $ARG2$ > > command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w > > $ARG1$ -c $ARG2$ > > #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ > > -w $ARG2$ -c $ARG3$ -p 5 > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H > > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 > > > > On Jan 2, 2008 2:29 PM, ad at heapoverflow.com > > > > > > > >> wrote: > > > > not sure but I think your check_ping command has an error, try > > changing it to > > > > //edit(based on your cfg): > > > > command[check_ping]=/usr/local/nagios/libexec/check_ping -H > > $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 > > > > > > Mad Unix wrote: > >> my nagios shows the following > > > >> check_ping: %s: Warning threshold must be integer or percentage! > >> on the server define service{ use > >> generic-service ; Name of service template to use > >> host_name linux1 service_description > >> PING is_volatile 0 check_period > >> 24x7 max_check_attempts 4 normal_check_interval > >> 5 retry_check_interval 1 contact_groups > >> admins notification_options w,u,c,r > >> notification_interval 960 notification_period > >> 24x7 check_command check_nrpe!check_ping!100.0,20%!500.0,60% } on > >> the client runnig nrpe > > > >> command[check_ping]=/usr/local/nagios/libexec/check_ping -H > >> $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 > > > >> -- madunix > > > >> > ---------------------------------------------------------------------- > > >> > > > >> > > > ------------------------------------------------------------------------- > > > >> This SF.net email is sponsored by: Microsoft Defy all challenges. > >> Microsoft(R) Visual Studio 2005. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > >> > ---------------------------------------------------------------------- > > >> > > > >> _______________________________________________ Nagios-users > >> mailing list Nagios-users at 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 > > > > > -- madunix > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > > iD8DBQFHe4uudS4H/t4eKFARAs2AAJ96P7cFl6FbjfyyziCteVC1f6jjzQCeOUsD > lPm5a/zsumegOtL//METaRI= > =5Tau > -----END PGP SIGNATURE----- > > > > > -- > madunix > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Wed Jan 2 17:14:58 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 02 Jan 2008 16:14:58 +0000 Subject: NRPE Logging. Documentation? Message-ID: <477BB882.3020302@googlemail.com> I want to log every nrpe call that is made including the command it ran, source, username the command is running as etc so I have a more full audit trail. I have googled and read http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf but this seems very basic, for beginners really. There is only a brief mention of nrpe.cfg and how to added a remote check. What I want is a complete nrpe.cfg reference, I found a site one but there was no mention of any logging facility, I suspect there is none. I was hoping that there was a config file parameter to activate some kind of logging but I cannot find anything like this. I am calling nrpe through xinetd to get host restrictions. Does anyone know of any workarounds or if I am just missing something? -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gregor at hostgis.com Wed Jan 2 17:25:08 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 02 Jan 2008 09:25:08 -0700 Subject: NRPE Logging. Documentation? In-Reply-To: <477BB882.3020302@googlemail.com> References: <477BB882.3020302@googlemail.com> Message-ID: <477BBAE4.8050307@hostgis.com> Hari Sekhon wrote: > I am calling nrpe through xinetd to get host restrictions. Does anyone > know of any workarounds or if I am just missing something? That's what we do. I love xinetd. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lavalamp at spiritual-machines.org Wed Jan 2 17:28:48 2008 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 02 Jan 2008 11:28:48 -0500 Subject: NRPE Logging. Documentation? In-Reply-To: <477BB882.3020302@googlemail.com> References: <477BB882.3020302@googlemail.com> Message-ID: <1199291328.2774.16.camel@soundwave.pitbpa0.priv.collaborativefusion.com> On Wed, 2008-01-02 at 16:14 +0000, Hari Sekhon wrote: > I want to log every nrpe call that is made including the command it ran, > source, username the command is running as etc so I have a more full > audit trail. > > I have googled and read http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf > but this seems very basic, for beginners really. > There is only a brief mention of nrpe.cfg and how to added a remote check. > What I Set values: debug=1 in nrpe.conf As for logging, it logs to static facility hard-coded into the code (which you cannot change during runtime -- this is a NFS/Bug issue). Google: nagios+seklecki+nrpe+nsca+syslog You can work around it by routing message to a custom destination in syslog-ng(8) using a program{} filter. ~BAS Here's an example output on a client system: 2008 Jan 2 13:59:50 +00:00 bdb00 [nrpe][13202] [daemon] [debug] nrpe[13202]: Connection from 192.168.x.x port 53479 2008 Jan 2 13:59:50 +00:00 bdb00 [nrpe][13202] [daemon] [debug] nrpe[13202]: Host address is in allowed_hosts 2008 Jan 2 13:59:50 +00:00 bdb00 [nrpe][13202] [daemon] [debug] nrpe[13202]: Handling the connection... 2008 Jan 2 13:59:50 +00:00 hostname [nrpe][13202] [daemon] [debug] nrpe[13202]: Host is asking for command 'check_bsdlabel' to be run... 2008 Jan 2 13:59:50 +00:00 hostname [nrpe][13202] [daemon] [debug] nrpe[13202]: Running command: /usr/local/bin/sudo /usr/local/libexec/nagios/check_file_age -w 175000 -c 350000 /var/backups/disklabel.mfid0s1.bak 2008 Jan 2 13:59:50 +00:00 hostname [nrpe][13202] [daemon] [debug] nrpe[13202]: Command completed with return code 0 and output: FILE_AGE OK: /var/backups/disklabel.mfid0s1.bak is 39527 seconds old and 496 bytes 2008 Jan 2 13:59:50 +00:00 hostname [nrpe][13202] [daemon] [debug] nrpe[13202]: Return Code: 0, Output: FILE_AGE OK: /var/backups/disklabel.mfid0s1.bak is 39527 seconds old and 496 bytes 2008 Jan 2 13:59:50 +00:00 hostname [nrpe][13202] [daemon] [debug] nrpe[13202]: Connection from 192.168.x.x closed. > want is a complete nrpe.cfg reference, I found a site one but > there was no mention of any logging facility, I suspect there is none. > I was hoping that there was a config file parameter to activate some > kind of logging but I cannot find anything like this. > > I am calling nrpe through xinetd to get host restrictions. Does anyone > know of any workarounds or if I am just missing something? > > -h ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Wed Jan 2 17:28:56 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 02 Jan 2008 16:28:56 +0000 Subject: NRPE Logging. Documentation? In-Reply-To: <477BBAE4.8050307@hostgis.com> References: <477BB882.3020302@googlemail.com> <477BBAE4.8050307@hostgis.com> Message-ID: <477BBBC8.5010400@googlemail.com> Gregor Mosheh wrote: > Hari Sekhon wrote: >> I am calling nrpe through xinetd to get host restrictions. Does >> anyone know of any workarounds or if I am just missing something? > > That's what we do. I love xinetd. > Yes it's ok, but this doesn't really address the issue: I want full logging of nrpe calls. Xinetd can only log the ip address and the program initiated which is always just "nrpe". It has to be nrpe itself that logs to syslog as only nrpe know what's it's doing after xinetd hands off the connection to it. Does anyone know if nrpe can log to syslog and preferably record all nrpe commands called? -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Jan 2 17:32:16 2008 From: marc at ena.com (Marc Powell) Date: Wed, 2 Jan 2008 10:32:16 -0600 Subject: NRPE Logging. Documentation? In-Reply-To: <477BB882.3020302@googlemail.com> References: <477BB882.3020302@googlemail.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon > Sent: Wednesday, January 02, 2008 10:15 AM > To: Nagios Users mailinglist > Subject: [Nagios-users] NRPE Logging. Documentation? > > I want to log every nrpe call that is made including the command it ran, > source, username the command is running as etc so I have a more full > audit trail. > > I have googled and read http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf > but this seems very basic, for beginners really. See the last paragraph of the documentation above. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Wed Jan 2 17:49:04 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 02 Jan 2008 16:49:04 +0000 Subject: NRPE Logging. Documentation? In-Reply-To: <1199291328.2774.16.camel@soundwave.pitbpa0.priv.collaborativefusion.com> References: <477BB882.3020302@googlemail.com> <1199291328.2774.16.camel@soundwave.pitbpa0.priv.collaborativefusion.com> Message-ID: <477BC080.5000004@googlemail.com> Brian A. Seklecki wrote: > On Wed, 2008-01-02 at 16:14 +0000, Hari Sekhon wrote: > >> I want to log every nrpe call that is made including the command it ran, >> source, username the command is running as etc so I have a more full >> audit trail. >> >> I have googled and read http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf >> but this seems very basic, for beginners really. >> There is only a brief mention of nrpe.cfg and how to added a remote check. >> What I >> > > Set values: > > debug=1 in nrpe.conf > > > As for logging, it logs to static facility hard-coded into the code > (which you cannot change during runtime -- this is a NFS/Bug issue). > Google: nagios+seklecki+nrpe+nsca+syslog > > You can work around it by routing message to a custom destination in > syslog-ng(8) using a program{} filter. > Yes syslog-ng is excellent I know. I have tried the workaround of using debug but this produces a massive amount of logging, it lists every single command defined in nrpe every single time an nrpe call is made. This means I could be getting 100 lines of logging for every command I call every time. This is completely over the top and might just harm my logging infrastructure. While syslog-ng could be used to filter all this out, I am hesitant to do this as it really feels like a hack... I think I might live without this until someone comes up with a way to do it properly within nrpe, or until I get some time to try to do this and submit a patch (which will definitely not be any time soon). Unless anyone else has any better ideas? -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lavalamp at spiritual-machines.org Wed Jan 2 17:52:46 2008 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 2 Jan 2008 11:52:46 -0500 (EST) Subject: NRPE Logging. Documentation? In-Reply-To: <477BC080.5000004@googlemail.com> References: <477BB882.3020302@googlemail.com> <1199291328.2774.16.camel@soundwave.pitbpa0.priv.collaborativefusion.com> <477BC080.5000004@googlemail.com> Message-ID: <20080102115203.X25793@arbitor.digitalfreaks.org> On Wed, 2 Jan 2008, Hari Sekhon wrote: > properly within nrpe, or until I get some time to try to do this and submit a > patch (which will definitely not be any time soon). > Do you propose an intermediary log level that, on a single line, logs the remote host, command executed, and result code w/o displaying all of stdout/stderr? ~BAS ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Wed Jan 2 18:03:45 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 02 Jan 2008 17:03:45 +0000 Subject: NRPE Logging. Documentation? In-Reply-To: References: Message-ID: <477BC3F1.1000203@googlemail.com> Marc Powell wrote: > See the last paragraph of the documentation above Yes but the reason I didn't do debug is that I don't want debug logging really, I want security logging. The debug makes a massive amount of logging and would place a heavy burden on my logging systems. Filtering out some regex on all the systems via syslog-ng is kind of hackish so I'm resisting doing this. I'll wait for a proper security logging option rather than starting to make exceptions everywhere and end up with a big mess. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Wed Jan 2 18:10:04 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Wed, 02 Jan 2008 17:10:04 +0000 Subject: NRPE Logging. Documentation? In-Reply-To: <20080102115203.X25793@arbitor.digitalfreaks.org> References: <477BB882.3020302@googlemail.com> <1199291328.2774.16.camel@soundwave.pitbpa0.priv.collaborativefusion.com> <477BC080.5000004@googlemail.com> <20080102115203.X25793@arbitor.digitalfreaks.org> Message-ID: <477BC56C.8050203@googlemail.com> Brian A. Seklecki wrote: > On Wed, 2 Jan 2008, Hari Sekhon wrote: >> properly within nrpe, or until I get some time to try to do this and >> submit a patch (which will definitely not be any time soon). >> > > Do you propose an intermediary log level that, on a single line, logs > the remote host, command executed, and result code w/o displaying all > of stdout/stderr? > > ~BAS > I think that is an excellent idea and would significantly improve nrpe as a program and raise the bar for auditing purposes. A single line is all that is needed really - who called what, what was run in what security context from what ip address etc. In fact, there could be a second line of logging with the results, the exit code and the stdout/stderr.... but these should be 2 different logging levels so that you have the choice in nrpe.cfg... -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pennojj at upmc.edu Wed Jan 2 18:10:52 2008 From: pennojj at upmc.edu (Penno, Jeff J) Date: Wed, 2 Jan 2008 12:10:52 -0500 Subject: ping In-Reply-To: <4d3f56c90801020712s59bd516bmb729083ce574945d@mail.gmail.com> References: <4d3f56c90801020552i5a2fa041i48c51c142d6dc0f5@mail.gmail.com> <4d3f56c90801020712s59bd516bmb729083ce574945d@mail.gmail.com> Message-ID: This is probably either a firewall issue or you haven?t configured xinetd properly for your nagios server: Try: cat /etc/xinetd.d/nrpe # default: on # description: NRPE (Nagios Remote Plugin Executor) service nrpe { flags = REUSE socket_type = stream port = 5666 wait = no user = nagios group = nagios server = /usr/local/nagios/bin/nrpe server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 127.0.0.1 10.5.1.32 ? You need to make sure your server IP is listed here ? just need a space between the IPs (no comma, quotes etc). } IP restrictions in nrpe.cfg aren?t used if you are using xinetd From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Mad Unix Sent: Wednesday, January 02, 2008 10:13 AM To: Marc Powell Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] ping my nrpe.cfg [root at linux1 nagios]# vi nrpe.cfg ############################################################################# # Sample NRPE Config File # Written by: Ethan Galstad ( nagios at nagios.org ) # # Last Modified: 11-23-2007 # # NOTES: # This is a sample configuration file for the NRPE daemon. It needs to be # located on the remote host that is running the NRPE daemon, not the host # from which the check_nrpe client is being executed. ############################################################################# # LOG FACILITY # The syslog facility that should be used for logging purposes. log_facility=daemon # PID FILE # The name of the file in which the NRPE daemon should write it's process ID # number. The file is only written if the NRPE daemon is started by the root # user and is running in standalone mode. pid_file=/var/run/nrpe.pid # PORT NUMBER # Port number we should wait for connections on. # NOTE: This must be a non-priviledged port (i.e. > 1024). # NOTE: This option is ignored if NRPE is running under either inetd or xinetd server_port=5666 # SERVER ADDRESS /dont # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd allowed_hosts=127.0.0.1, 10.5.1.32 # COMMAND ARGUMENT PROCESSING # This option determines whether or not the NRPE daemon will allow clients # to specify arguments to commands that are executed. This option only works # if the daemon was configured with the --enable-command-args configure script # option. # # *** ENABLING THIS OPTION IS A SECURITY RISK! *** # Read the SECURITY file for information on some of the security implications # of enabling this variable. # # Values: 0=do not allow arguments, 1=allow command arguments dont_blame_nrpe=1 # COMMAND PREFIX # This option allows you to prefix all commands with a user-defined string. # A space is automatically added between the specified prefix string and the # command line from the command definition. # # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH CAUTION! *** # Usage scenario: # Execute restricted commmands using sudo. For this to work, you need to add # the nagios user to your /etc/sudoers. An example entry for alllowing # execution of the plugins from might be: # # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ # # This lets the nagios user run all commands in that directory (and only them) # without asking for a password. If you do this, make sure you don't give # random users write access to that directory or its contents! ############################################################################# # Sample NRPE Config File # Written by: Ethan Galstad ( nagios at nagios.org ) # # Last Modified: 11-23-2007 # # NOTES: # This is a sample configuration file for the NRPE daemon. It needs to be # located on the remote host that is running the NRPE daemon, not the host # from which the check_nrpe client is being executed. ############################################################################# # LOG FACILITY # The syslog facility that should be used for logging purposes. log_facility=daemon # PID FILE # The name of the file in which the NRPE daemon should write it's process ID # number. The file is only written if the NRPE daemon is started by the root # user and is running in standalone mode. pid_file=/var/run/nrpe.pid # PORT NUMBER # Port number we should wait for connections on. # NOTE: This must be a non-priviledged port (i.e. > 1024). # NOTE: This option is ignored if NRPE is running under either inetd or xinetd server_port=5666 # SERVER ADDRESS # Address that nrpe should bind to in case there are more than one interface # and you do not want nrpe to bind on all interfaces. # NOTE: This option is ignored if NRPE is running under either inetd or xinetd #server_address=127.0.0.1 # NRPE USER # This determines the effective user that the NRPE daemon should run as. # You can either supply a username or a UID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd nrpe_user=nagios # NRPE GROUP # This determines the effective group that the NRPE daemon should run as. # You can either supply a group name or a GID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd nrpe_group=nagios # ALLOWED HOST ADDRESSES # This is an optional comma-delimited list of IP address or hostnames # that are allowed to talk to the NRPE daemon. # # Note: The daemon only does rudimentary checking of the client's IP # address. I would highly recommend adding entries in your /etc/hosts.allow # file to allow only the specified host to connect to the port # you are running this daemon on. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd allowed_hosts=127.0.0.1, 10.5.1.32 # COMMAND ARGUMENT PROCESSING # This option determines whether or not the NRPE daemon will allow clients # to specify arguments to commands that are executed. This option only works # if the daemon was configured with the --enable-command-args configure script # option. # # *** ENABLING THIS OPTION IS A SECURITY RISK! *** # Read the SECURITY file for information on some of the security implications # of enabling this variable. # # Values: 0=do not allow arguments, 1=allow command arguments dont_blame_nrpe=1 # COMMAND PREFIX # This option allows you to prefix all commands with a user-defined string. # A space is automatically added between the specified prefix string and the # command line from the command definition. # # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH CAUTION! *** # Usage scenario: # Execute restricted commmands using sudo. For this to work, you need to add # the nagios user to your /etc/sudoers. An example entry for alllowing # execution of the plugins from might be: # # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ # # This lets the nagios user run all commands in that directory (and only them) # without asking for a password. If you do this, make sure you don't give # random users write access to that directory or its contents! # command_prefix=/usr/bin/sudo # DEBUGGING OPTION # This option determines whether or not debugging messages are logged to the # syslog facility. # Values: 0=debugging off, 1=debugging on debug=0 # COMMAND TIMEOUT # This specifies the maximum number of seconds that the NRPE daemon will # allow plugins to finish executing before killing them off. command_timeout=60 # CONNECTION TIMEOUT # This specifies the maximum number of seconds that the NRPE daemon will # wait for a connection to be established before exiting. This is sometimes # seen where a network problem stops the SSL being established even though # all network sessions are connected. This causes the nrpe daemons to # accumulate, eating system resources. Do not set this too low. connection_timeout=300 # WEEK RANDOM SEED OPTION # This directive allows you to use SSL even if your system does not have # a /dev/random or /dev/urandom (on purpose or because the necessary patches # were not applied). The random number generator will be seeded from a file # which is either a file pointed to by the environment valiable $RANDFILE # or $HOME/.rnd. If neither exists, the pseudo random number generator will # be initialized and a warning will be issued. # Values: 0=only seed from /dev/[u]random, 1=also seed from weak randomness #allow_weak_random_seed=1 # INCLUDE CONFIG FILE # This directive allows you to include definitions from an external config file. #include= # INCLUDE CONFIG DIRECTORY # This directive allows you to include definitions from config files (with a # .cfg extension) in one or more directories (with recursion). #include_dir= #include_dir= # COMMAND DEFINITIONS # Command definitions that this daemon will run. Definitions # are in the following format: # # command[]= # # When the daemon receives a request to return the results of # it will execute the command specified by the argument. # # Unlike Nagios, the command line cannot contain macros - it must be # typed exactly as it should be executed. # # Note: Any plugins that are used in the command lines must reside # on the machine that this daemon is running on! The examples below # assume that you have plugins installed in a /usr/local/nagios/libexec # directory. Also note that you will have to modify the definitions below # to match the argument format the plugins expect. Remember, these are # examples only! # The following examples use hardcoded command arguments... #command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 #command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 #command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1 #command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z #command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 # The following examples allow user-supplied arguments and can # only be used if the NRPE daemon was compiled with support for # command arguments *AND* the dont_blame_nrpe directive in this # config file is set to '1'. This poses a potential security risk, so # make sure you read the SECURITY file before doing this. #command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$ #command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$ #command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ #command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ command[check_local_load]=/usr/local/nagios/libexec/check_ftp -w $ARG1$ -c $ARG2$ command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ command[check_local_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c $ARG2$ command[check_local_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$ command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ On Jan 2, 2008 4:56 PM, Marc Powell wrote: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Mad Unix > Sent: Wednesday, January 02, 2008 7:52 AM > To: ad at heapoverflow.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] ping > the error is starnge > check_ping: %s: Warning threshold must be integer or percentage It means that the argument to -w on the machine running check_ping is blank or not an integer or percentage. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Wed Jan 2 18:19:53 2008 From: madunix at gmail.com (Mad Unix) Date: Wed, 2 Jan 2008 19:19:53 +0200 Subject: ping In-Reply-To: References: <4d3f56c90801020552i5a2fa041i48c51c142d6dc0f5@mail.gmail.com> <4d3f56c90801020712s59bd516bmb729083ce574945d@mail.gmail.com> Message-ID: <4d3f56c90801020919q6a6973dcm61ce3366f8aa2ed7@mail.gmail.com> Thanks , I ll check it , when i get back to my office .... On 1/2/08, Penno, Jeff J wrote: > > This is probably either a firewall issue or you haven't configured xinetd > properly for your nagios server: > > > > Try: cat /etc/xinetd.d/nrpe > > > > # default: on > > # description: NRPE (Nagios Remote Plugin Executor) > > service nrpe > > { > > flags = REUSE > > socket_type = stream > > port = 5666 > > wait = no > > user = nagios > > group = nagios > > server = /usr/local/nagios/bin/nrpe > > server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd > > log_on_failure += USERID > > disable = no > > only_from = 127.0.0.1 10.5.1.32 ? You need to make > sure your server IP is listed here ? just need a space between the IPs (no > comma, quotes etc). > > } > > > > IP restrictions in nrpe.cfg aren't used if you are using xinetd > > > > > > *From:* nagios-users-bounces at lists.sourceforge.net [mailto: > nagios-users-bounces at lists.sourceforge.net] *On Behalf Of *Mad Unix > *Sent:* Wednesday, January 02, 2008 10:13 AM > *To:* Marc Powell > *Cc:* nagios-users at lists.sourceforge.net > *Subject:* Re: [Nagios-users] ping > > > > my nrpe.cfg > > [root at linux1 nagios]# vi nrpe.cfg > > > ############################################################################# > # Sample NRPE Config File > # Written by: Ethan Galstad ( nagios at nagios.org) > # > # Last Modified: 11-23-2007 > # > # NOTES: > # This is a sample configuration file for the NRPE daemon. It needs to be > # located on the remote host that is running the NRPE daemon, not the host > > # from which the check_nrpe client is being executed. > > ############################################################################# > > > # LOG FACILITY > # The syslog facility that should be used for logging purposes. > > log_facility=daemon > > > > # PID FILE > # The name of the file in which the NRPE daemon should write it's process > ID > # number. The file is only written if the NRPE daemon is started by the > root > # user and is running in standalone mode. > > pid_file=/var/run/nrpe.pid > > > > # PORT NUMBER > # Port number we should wait for connections on. > # NOTE: This must be a non-priviledged port (i.e. > 1024). > # NOTE: This option is ignored if NRPE is running under either inetd or > xinetd > > server_port=5666 > > > > # SERVER ADDRESS > /dont > # > # NOTE: This option is ignored if NRPE is running under either inetd or > xinetd > > allowed_hosts=127.0.0.1, 10.5.1.32 > > > > # COMMAND ARGUMENT PROCESSING > # This option determines whether or not the NRPE daemon will allow clients > > # to specify arguments to commands that are executed. This option only > works > # if the daemon was configured with the --enable-command-args configure > script > # option. > # > # *** ENABLING THIS OPTION IS A SECURITY RISK! *** > # Read the SECURITY file for information on some of the security > implications > # of enabling this variable. > # > # Values: 0=do not allow arguments, 1=allow command arguments > > dont_blame_nrpe=1 > > > > # COMMAND PREFIX > # This option allows you to prefix all commands with a user-defined > string. > # A space is automatically added between the specified prefix string and > the > # command line from the command definition. > # > # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH > CAUTION! *** > # Usage scenario: > # Execute restricted commmands using sudo. For this to work, you need to > add > # the nagios user to your /etc/sudoers. An example entry for alllowing > # execution of the plugins from might be: > # > # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ > # > # This lets the nagios user run all commands in that directory (and only > them) > # without asking for a password. If you do this, make sure you don't give > > # random users write access to that directory or its contents! > > > ############################################################################# > # Sample NRPE Config File > # Written by: Ethan Galstad ( nagios at nagios.org) > # > # Last Modified: 11-23-2007 > # > # NOTES: > # This is a sample configuration file for the NRPE daemon. It needs to be > # located on the remote host that is running the NRPE daemon, not the host > > # from which the check_nrpe client is being executed. > > ############################################################################# > > > # LOG FACILITY > # The syslog facility that should be used for logging purposes. > > log_facility=daemon > > > > # PID FILE > # The name of the file in which the NRPE daemon should write it's process > ID > # number. The file is only written if the NRPE daemon is started by the > root > # user and is running in standalone mode. > > pid_file=/var/run/nrpe.pid > > > > # PORT NUMBER > # Port number we should wait for connections on. > # NOTE: This must be a non-priviledged port (i.e. > 1024). > # NOTE: This option is ignored if NRPE is running under either inetd or > xinetd > > server_port=5666 > > > > # SERVER ADDRESS > # Address that nrpe should bind to in case there are more than one > interface > # and you do not want nrpe to bind on all interfaces. > # NOTE: This option is ignored if NRPE is running under either inetd or > xinetd > > #server_address=127.0.0.1 > > > > # NRPE USER > # This determines the effective user that the NRPE daemon should run as. > # You can either supply a username or a UID. > # > # NOTE: This option is ignored if NRPE is running under either inetd or > xinetd > > nrpe_user=nagios > > > > # NRPE GROUP > # This determines the effective group that the NRPE daemon should run as. > # You can either supply a group name or a GID. > # > # NOTE: This option is ignored if NRPE is running under either inetd or > xinetd > > nrpe_group=nagios > > > > # ALLOWED HOST ADDRESSES > # This is an optional comma-delimited list of IP address or hostnames > # that are allowed to talk to the NRPE daemon. > # > # Note: The daemon only does rudimentary checking of the client's IP > # address. I would highly recommend adding entries in your > /etc/hosts.allow > # file to allow only the specified host to connect to the port > # you are running this daemon on. > # > # NOTE: This option is ignored if NRPE is running under either inetd or > xinetd > > allowed_hosts=127.0.0.1, 10.5.1.32 > > > > # COMMAND ARGUMENT PROCESSING > # This option determines whether or not the NRPE daemon will allow clients > > # to specify arguments to commands that are executed. This option only > works > # if the daemon was configured with the --enable-command-args configure > script > # option. > # > # *** ENABLING THIS OPTION IS A SECURITY RISK! *** > # Read the SECURITY file for information on some of the security > implications > # of enabling this variable. > # > # Values: 0=do not allow arguments, 1=allow command arguments > > dont_blame_nrpe=1 > > > > # COMMAND PREFIX > # This option allows you to prefix all commands with a user-defined > string. > # A space is automatically added between the specified prefix string and > the > # command line from the command definition. > # > # *** THIS EXAMPLE MAY POSE A POTENTIAL SECURITY RISK, SO USE WITH > CAUTION! *** > # Usage scenario: > # Execute restricted commmands using sudo. For this to work, you need to > add > # the nagios user to your /etc/sudoers. An example entry for alllowing > # execution of the plugins from might be: > # > # nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/ > # > # This lets the nagios user run all commands in that directory (and only > them) > # without asking for a password. If you do this, make sure you don't give > > # random users write access to that directory or its contents! > > # command_prefix=/usr/bin/sudo > > > > # DEBUGGING OPTION > # This option determines whether or not debugging messages are logged to > the > # syslog facility. > # Values: 0=debugging off, 1=debugging on > > debug=0 > > > > # COMMAND TIMEOUT > # This specifies the maximum number of seconds that the NRPE daemon will > # allow plugins to finish executing before killing them off. > > command_timeout=60 > > > > # CONNECTION TIMEOUT > # This specifies the maximum number of seconds that the NRPE daemon will > # wait for a connection to be established before exiting. This is > sometimes > # seen where a network problem stops the SSL being established even though > # all network sessions are connected. This causes the nrpe daemons to > # accumulate, eating system resources. Do not set this too low. > > connection_timeout=300 > > > > # WEEK RANDOM SEED OPTION > # This directive allows you to use SSL even if your system does not have > # a /dev/random or /dev/urandom (on purpose or because the necessary > patches > # were not applied). The random number generator will be seeded from a > file > # which is either a file pointed to by the environment valiable $RANDFILE > # or $HOME/.rnd. If neither exists, the pseudo random number generator > will > # be initialized and a warning will be issued. > # Values: 0=only seed from /dev/[u]random, 1=also seed from weak > randomness > > #allow_weak_random_seed=1 > > > > # INCLUDE CONFIG FILE > # This directive allows you to include definitions from an external config > file. > > #include= > > > > # INCLUDE CONFIG DIRECTORY > # This directive allows you to include definitions from config files (with > a > # .cfg extension) in one or more directories (with recursion). > > #include_dir= > #include_dir= > > > > # COMMAND DEFINITIONS > # Command definitions that this daemon will run. Definitions > # are in the following format: > # > # command[]= > # > # When the daemon receives a request to return the results of > > # it will execute the command specified by the argument. > # > # Unlike Nagios, the command line cannot contain macros - it must be > # typed exactly as it should be executed. > # > # Note: Any plugins that are used in the command lines must reside > # on the machine that this daemon is running on! The examples below > # assume that you have plugins installed in a /usr/local/nagios/libexec > # directory. Also note that you will have to modify the definitions below > # to match the argument format the plugins expect. Remember, these are > # examples only! > > > # The following examples use hardcoded command arguments... > > #command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 > #command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c > 30,25,20 > #command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p > /dev/hda1 > #command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c > 10 -s Z > #command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 > -c 200 > > > # The following examples allow user-supplied arguments and can > # only be used if the NRPE daemon was compiled with support for > # command arguments *AND* the dont_blame_nrpe directive in this > # config file is set to '1'. This poses a potential security risk, so > # make sure you read the SECURITY file before doing this. > > #command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c > $ARG2$ > #command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c > $ARG2$ > #command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c > $ARG2$ -p $ARG3$ > #command[check_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c > $ARG2$ -s $ARG3$ > > > command[check_local_load]=/usr/local/nagios/libexec/check_ftp -w $ARG1$ -c > $ARG2$ > command[check_local_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ > -c $ARG2$ -p $ARG3$ > command[check_local_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ > -c $ARG2$ > command[check_local_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ > -c $ARG2$ > command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w $ARG1$ > -c $ARG2$ > command[check_ping]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w > $ARG2$ -c $ARG3$ -p 5 > #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ > -w $ARG1$ -c $ARG2$ -p 5 > #command[check_ping]=/usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ > -w $ARG1$ -c $ARG2$ > > On Jan 2, 2008 4:56 PM, Marc Powell wrote: > > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > > bounces at lists.sourceforge.net] On Behalf Of Mad Unix > > > Sent: Wednesday, January 02, 2008 7:52 AM > > To: ad at heapoverflow.com > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] ping > > > > the error is starnge > > check_ping: %s: Warning threshold must be integer or percentage > > It means that the argument to -w on the machine running check_ping is > blank or not an integer or percentage. > > -- > Marc > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 > > > > > -- > madunix > -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From aaron.segura at cabelas.com Wed Jan 2 18:24:18 2008 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Wed, 02 Jan 2008 10:24:18 -0700 Subject: NRPE Logging. Documentation? In-Reply-To: <477BC56C.8050203@googlemail.com> References: <477BB882.3020302@googlemail.com> <1199291328.2774.16.camel@soundwave.pitbpa0.priv.collaborativefusion.com> <477BC080.5000004@googlemail.com> <20080102115203.X25793@arbitor.digitalfreaks.org> <477BC56C.8050203@googlemail.com> Message-ID: <1199294659.7925.6.camel@sidhqmis4grdv91> > > > > Do you propose an intermediary log level that, on a single line, logs > > the remote host, command executed, and result code w/o displaying all > > of stdout/stderr? > > > > ~BAS > > > I think that is an excellent idea and would significantly improve nrpe > as a program and raise the bar for auditing purposes. A single line is > all that is needed really - who called what, what was run in what > security context from what ip address etc. In fact, there could be a > second line of logging with the results, the exit code and the > stdout/stderr.... but these should be 2 different logging levels so that > you have the choice in nrpe.cfg... +1 to Good Idea ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gregor at hostgis.com Wed Jan 2 18:35:15 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 02 Jan 2008 10:35:15 -0700 Subject: NRPE Logging. Documentation? In-Reply-To: <1199294659.7925.6.camel@sidhqmis4grdv91> References: <477BB882.3020302@googlemail.com> <1199291328.2774.16.camel@soundwave.pitbpa0.priv.collaborativefusion.com> <477BC080.5000004@googlemail.com> <20080102115203.X25793@arbitor.digitalfreaks.org> <477BC56C.8050203@googlemail.com> <1199294659.7925.6.camel@sidhqmis4grdv91> Message-ID: <477BCB53.3020404@hostgis.com> Aaron M. Segura wrote: >>> Do you propose an intermediary log level that, on a single line, logs >>> the remote host, command executed, and result code w/o displaying all >>> of stdout/stderr? I also agree with the idea, though I'd want to build on the ideas used in Apache, or an access log and an error/debug log. That is, the exit code could be part of the access_log standard, and the stderr could be sent to a separate error_log file. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From palleje at gmail.com Wed Jan 2 19:29:24 2008 From: palleje at gmail.com (Palle L Jensen) Date: Wed, 2 Jan 2008 13:29:24 -0500 Subject: rrd gaps In-Reply-To: <477B7E45.3020808@telcotec.se> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se><4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> Message-ID: <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> Lars and Gerd, I am having a similar problem with rrd gaps. It was doing fine until I added 3 more hosts and 8 more services and then suddenly I get the rrd gaps, some graphs are even blank. My latency are as below (they seem pretty high compared to yours?): # nagiostats | grep -i latency Active Service Latency: 6.804 / 330.675 / 238.562 sec Active Host Latency: 0.000 / 0.000 / 0.000 sec nagiostats | grep -i total Used/High/Total Command Buffers: 0 / 8 / 4096 Used/High/Total Check Result Buffers: 85 / 106 / 4096 Total Services: 106 Total Service State Change: 0.000 / 0.000 / 0.000 % Total Hosts: 36 Total Host State Change: 0.000 / 0.000 / 0.000 % I also use the rpm package from linadd.org. nagios-2.9-1.i586.rpm, nagios-web-2.9-1.i586.rpm, nagios-plugins-1.4.9-1.i586.rpm, nagios-plugins-extras-1.4.9-1.i586.rpm nagios-graph-1.6.1-rc3.i586.rpm If you find any solution for this I would be more than happy :) Thanks, - Palle -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars Stavholm Sent: Wednesday, January 02, 2008 7:06 AM To: Mad Unix Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] rrd gaps Mad Unix wrote: > Can you tell me how did you implement graph beside the nagios Let's keep this on the list, shall we? I used rpm packages from linadd.org. > Thanks You're welcome. /L > On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: >> Gerd Mueller wrote: >>> Hi Lars, >>> >>> which interface are you using? And how big is your nagios' latency? >> I don't quite understand the first question there? >> We use the Nagios web interface with the nuvola theme? >> >> We have only a few hosts and around a hundred service checks, >> i.e. no heavy load here: >> >> # nagiostats | grep -i latency >> Active Service Latency: 0.000 / 0.335 / 0.135 sec >> Passive Service Latency: 0.000 / 0.000 / 0.000 sec >> Active Host Latency: 0.000 / 0.284 / 0.152 sec >> Passive Host Latency: 0.000 / 0.000 / 0.000 sec >> >> # nagiostats | grep -i total >> Used/High/Total Command Buffers: 0 / 1 / 4096 >> Total Services: 114 >> Total Service State Change: 0.000 / 12.110 / 0.106 % >> Total Hosts: 19 >> Total Host State Change: 0.000 / 0.000 / 0.000 % >> >> /L >> >> >>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: >>>> Hi All, >>>> >>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. >>>> >>>> It all works very well, except for one annoying problem: >>>> I get gaps in the graphs, and I don't understand why. >>>> >>>> Any ideas appreciated, sample graph attached. >>>> >>>> R >>>> /Lars >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From ecrist at secure-computing.net Wed Jan 2 20:20:33 2008 From: ecrist at secure-computing.net (Eric F Crist) Date: Wed, 2 Jan 2008 13:20:33 -0600 Subject: Licensing of Official and 3rd Party Plugins In-Reply-To: <477B8DBE.7020207@googlemail.com> References: <477B8DBE.7020207@googlemail.com> Message-ID: <951D2145-FCA9-47DF-AF69-B52BB7E05DF5@secure-computing.net> You can license your plugin however you choose. The plugins I write are BSD, for instance. On Jan 2, 2008, at 7:12 AM, Hari Sekhon wrote: > Hi, > > I was wondering if anyone had any views on the licensing of plugins, > I have looked at GPL version 3 and it looks good, really just an > update > to GPL version 2. > > So the question is, why not license plugins as GPL version 3 now? > I am really asking this in 2 respects: > > 1. for the Official Plugins > 2. for custom plugins released to Nagios Exchange. > > Basically it comes down to GPLv2 vs GPLv3. > > Has anyone considered upgrading to the official Nagios code base to > the > newer GPL? > > Should I license plugins I write as GPLv3 now instead of GPLv2? Are > there any detractions in doing this? > > > -h > > -- > Hari Sekhon > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 ----- Eric F Crist Secure Computing Networks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From robert.ferguson at replacements.com Wed Jan 2 20:33:08 2008 From: robert.ferguson at replacements.com (Robert Ferguson) Date: Wed, 2 Jan 2008 14:33:08 -0500 Subject: On-Call Rotation References: <7156d5f20710150830s31d58f76g229174e867ba4c4c@mail.gmail.com><1192468960.2573.33.camel@localhost.localdomain><1DBAECAF1663DF4B97779F24ABABE24A014A2954@RL03EXCH1.replacements.com><54B7F7DBCA12D94CA3FE17B68F1461A7044C14F6@LVNJEVS205.UCCORG.org><1DBAECAF1663DF4B97779F24ABABE24A014A2959@RL03EXCH1.replacements.com> <1DBAECAF1663DF4B97779F24ABABE24A014A295A@RL03EXCH1.replacements.com> Message-ID: <1DBAECAF1663DF4B97779F24ABABE24A014A2975@RL03EXCH1.replacements.com> You know, the only improvement I could see with this aspect is the ability to over-ride the on-call rotation through the front end. This would be helpful for other departments and their on-call rotation exception. (example: Joe Smith is suppose to be on call be had to leave town all of a sudden. John Jinglehammer is taking his on-call rotation.) Any suggestions? Thanks, Robert -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Robert Ferguson Sent: Wednesday, December 26, 2007 11:14 AM To: Petersen, Mark; Nagios Users mailinglist Subject: Re: [Nagios-users] On-Call Rotation After reading your post and thinking about it, I decided to backup and then upgrade to the latest release which is 3.0rc1. (I was on 3.0b4.) I read the release notes and didn't see anything except where they added the "exclude" option in version 3.0b1 but I was already on a version after that. After the upgrade, the new directives seem to be working. At least when I verify the cfg files, no errors come up. Thanks for your help. Robert -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Robert Ferguson Sent: Wednesday, December 26, 2007 10:27 AM To: Petersen, Mark; Nagios Users mailinglist Subject: Re: [Nagios-users] On-Call Rotation Yes, I am using 3 and it could very well be a bug. If I am reading the documentation correctly, specifically starting on page 231 of the Nagios 3 doc, with this setup, it will rotate every 14 days or 21 days or what every you set. Say I am on call this week on Monday, 14 days later it will start again. Anyway, how would I report this as a bug or is there a syntax error I am missing? Thanks Robert -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Petersen, Mark Sent: Friday, December 21, 2007 2:50 PM To: Nagios Users mailinglist Subject: Re: [Nagios-users] On-Call Rotation This pretty useful, I didn't know once could do this and would like to. However, I run nagios 2 and it appears this is only available on nagios 3, are you using nagios 3? If so, maybe it's a bug in this new feature? Also, this looks like it would only do Dec 24, 25, then Jan 7,8, then Jan 14,15 (what you want?) but I may be misreading the documentation. > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Robert Ferguson > Sent: Friday, December 21, 2007 12:57 PM > To: donnell.lewis at icoretechnology.com; Steve T > Cc: Nathan Blackham; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] On-Call Rotation > > Kind of on the same subject, I am trying to setup a rotation and nagios > doesn't like the date setup. I have set it up just as the book says for > alternating week rotation for 2 people. I am coping in a portion of my > directives to assist in illustrating. > > # "Robert On-Call" timeperiod definition > define timeperiod{ > timeperiod_name robert-on-call > alias Robert On Call > 2007-12-24 / 14 08:00-2400 > 2007-12-25 / 14 00:00-2400 > > } > > Of course this goes on for a week and the second person has a similar > schedule one week later. The error I am getting when doing my cfg check > is: > Error: Invalid timeperiod object directive '2007-12-24' > Error: Could not add object property in > file'/usr/local/nagios/etc/timeperiods.cfg' on line 187 > > Line 187 is the first place this time shows up. Any thoughts? > > > Thanks, > > Robert ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From rup001 at yahoo.com Wed Jan 2 20:56:25 2008 From: rup001 at yahoo.com (Vuppala) Date: Wed, 2 Jan 2008 11:56:25 -0800 (PST) Subject: Running Nagios on Linux Message-ID: <233749.29534.qm@web54607.mail.re2.yahoo.com> Hi I have nagios running on Linux box since one year and i want to move it to solaris, how do i approach for this. Thanks rup ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cmoody at qualcomm.com Wed Jan 2 21:03:02 2008 From: cmoody at qualcomm.com (Chris Moody) Date: Wed, 02 Jan 2008 12:03:02 -0800 Subject: Running Nagios on Linux In-Reply-To: <233749.29534.qm@web54607.mail.re2.yahoo.com> References: <233749.29534.qm@web54607.mail.re2.yahoo.com> Message-ID: <477BEDF6.60606@qualcomm.com> First, I would start by installing the Nagios suite on Solaris. [ http://www.nagios.org/docs/ ] Then, once you have the software installed, copy over your configuration file(s) and start the daemon. Cheers, -Chris Vuppala wrote: > Hi > > I have nagios running on Linux box since one year and i want to move > it to solaris, how do i approach for this. > > > > Thanks > > rup > > > ------------------------------------------------------------------------ > Never miss a thing. Make Yahoo your homepage. > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Jeff.Chapin at t8design.com Wed Jan 2 21:04:47 2008 From: Jeff.Chapin at t8design.com (Jeff Chapin) Date: Wed, 2 Jan 2008 14:04:47 -0600 Subject: Running Nagios on Linux In-Reply-To: <233749.29534.qm@web54607.mail.re2.yahoo.com> References: <233749.29534.qm@web54607.mail.re2.yahoo.com> Message-ID: <9A53DDE1FE082F4D952FDF20AC87E21F4A3435@exchange2.t8design.com> Ought to be as simple as installing Nagios on your solaris box and rsyncing over the config files, and make the few modifications to the main config files. JEFF CHAPIN SYSTEM ADMINISTRATOR T8DESIGN.COM | P 319.266.7574 - x267 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Vuppala Sent: Wednesday, January 02, 2008 1:56 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Running Nagios on Linux Hi I have nagios running on Linux box since one year and i want to move it to solaris, how do i approach for this. Thanks rup ________________________________ Never miss a thing. Make Yahoo your homepage. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3141 bytes Desc: image001.jpg URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From lavalamp at spiritual-machines.org Wed Jan 2 21:06:43 2008 From: lavalamp at spiritual-machines.org (Brian A. Seklecki) Date: Wed, 02 Jan 2008 15:06:43 -0500 Subject: Failing event_handlers and ocsp/ochp_command not logged? Message-ID: <1199304403.2774.31.camel@soundwave.pitbpa0.priv.collaborativefusion.com> What happens if ocsp/ohcp commands return non-zero status? # send_nsca -H doesnt.fucking.exist -c foo/etc/nagios/send_nsca.cfg Invalid host name 'doesnt.fucking.exist' Error: Could not connect to host doesnt.fucking.exist on port 5667 # echo $? 2 When this happens, its a very serious problem. Nothing is logged. This results in a silent failure. Obviously, send_nsca should transmit to a hostname in hosts(5) and/or to an IP address that is highly available resolving any dependency on DNS. But even with that in mind, this exec()/fork() model behavior is pragmatically incorrect. The code should be checking result code for return values != 0, and printing a critical error to the logs. Moreover, even with debug_level=99999999999999999999999999 No warning / error / notice occurs: [1199302511.076169] [001.0] [pid=75615] handle_host_state() [1199302511.076189] [001.0] [pid=75615] obsessive_compulsive_host_check_processor() [1199302511.076229] [001.0] [pid=75615] get_raw_command_line() [1199302511.076261] [2320.2] [pid=75615] Raw Command Input: /bin/echo $HOSTNAME$//$HOSTSTATEID$//'$HOSTOUTPUT$' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//" [1199302511.076284] [2320.2] [pid=75615] Expanded Command Output: /bin/echo $HOSTNAME$//$HOSTSTATEID$//'$HOSTOUTPUT$' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//" [1199302511.076289] [016.2] [pid=75615] Raw obsessive compulsive host processor command line: /bin/echo $HOSTNAME$//$HOSTSTATEID $//'$HOSTOUTPUT$' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//" [1199302511.076664] [001.0] [pid=75615] process_macros() [1199302511.076683] [2048.1] [pid=75615] **** BEGIN MACRO PROCESSING *********** [1199302511.076700] [2048.1] [pid=75615] Processing: '/bin/echo $HOSTNAME$//$HOSTSTATEID$//'$HOSTOUTPUT$' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//"' [1199302511.076720] [2048.2] [pid=75615] Processing part: '/bin/echo ' [1199302511.076739] [2048.2] [pid=75615] Not currently in macro. Running output (10): '/bin/echo ' [1199302511.076758] [2048.2] [pid=75615] Processing part: 'HOSTNAME' [1199302511.076780] [2048.2] [pid=75615] Uncleaned macro. Running output (16): '/bin/echo fbsd01' [1199302511.077138] [2048.2] [pid=75615] Just finished macro. Running output (16): '/bin/echo fbsd01' [1199302511.077157] [2048.2] [pid=75615] Processing part: '//' [1199302511.077176] [2048.2] [pid=75615] Not currently in macro. Running output (18): '/bin/echo fbsd01//' [1199302511.077194] [2048.2] [pid=75615] Processing part: 'HOSTSTATEID' [1199302511.077216] [2048.2] [pid=75615] Uncleaned macro. Running output (19): '/bin/echo fbsd01//0' [1199302511.077235] [2048.2] [pid=75615] Just finished macro. Running output (19): '/bin/echo fbsd01//0' [1199302511.077254] [2048.2] [pid=75615] Processing part: '//'' [1199302511.077273] [2048.2] [pid=75615] Not currently in macro. Running output (22): '/bin/echo fbsd01//0//'' [1199302511.077291] [2048.2] [pid=75615] Processing part: 'HOSTOUTPUT' [1199302511.079235] [2048.2] [pid=75615] Uncleaned macro. Running output (63): '/bin/echo fbsd01//0//'PING OK - Packet loss = 0%, RTA = 0.97 ms' [1199302511.079337] [2048.2] [pid=75615] Just finished macro. Running output (63): '/bin/echo fbsd01//0//'PING OK - Packet loss = 0%, RTA = 0.97 ms' [1199302511.079805] [2048.2] [pid=75615] Processing part: '' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//"' [1199302511.080427] [2048.2] [pid=75615] Not currently in macro. Running output (157): '/bin/echo fbsd01//0//'PING OK - Packet loss = 0%, RTA = 0.97 ms' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//"' [1199302511.081348] [2048.1] [pid=75615] Done. Final output: '/bin/echo fbsd01//0//'PING OK - Packet loss = 0%, RTA = 0.97 ms' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//"' [1199302511.081823] [2048.1] [pid=75615] **** END MACRO PROCESSING ************* [1199302511.082308] [016.2] [pid=75615] Processed obsessive compulsive host processor command line: /bin/echo fbsd01//0//'PING OK - Packet loss = 0%, RTA = 0.97 ms' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//" [1199302511.083217] [001.0] [pid=75615] my_system() [1199302511.084280] [256.1] [pid=75615] Running command '/bin/echo fbsd01//0//'PING OK - Packet loss = 0%, RTA = 0.97 ms' | /usr/local/sbin/send_nsca -H fbsd01.cfi.biz -c /usr/local/etc/nagios/send_nsca.cfg -d "//"'... [1199302511.091760] [001.0] [pid=80369] process_macros() [1199302511.092248] [001.0] [pid=80369] process_macros() [1199302511.093349] [001.0] [pid=80369] process_macros() [1199302511.094769] [001.0] [pid=80369] process_macros() [1199302511.095734] [001.0] [pid=80369] process_macros() [1199302511.096702] [001.0] [pid=80369] process_macros() ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Wed Jan 2 21:12:20 2008 From: marc at ena.com (Marc Powell) Date: Wed, 2 Jan 2008 14:12:20 -0600 Subject: Running Nagios on Linux In-Reply-To: <233749.29534.qm@web54607.mail.re2.yahoo.com> References: <233749.29534.qm@web54607.mail.re2.yahoo.com> Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Vuppala > Sent: Wednesday, January 02, 2008 1:56 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Running Nagios on Linux > > Hi > > I have nagios running on Linux box since one year and i want to move it > to solaris, how do i approach for this. It should be pretty straightforward assuming you're using comparable versions of nagios on both machines. - compile and install nagios on solaris (package may be available). - compile and install nagios-plugins on solaris (package may be available) - stop nagios on your current box - copy over ~nagios/etc/* and ~nagios/var/* - restart nagios on your current box - edit paths in nagios.cfg, cgi.cfg and resource.cfg as appropriate on solaris - verify config on solaris (~nagios/bin/nagios -v ~nagios/etc/nagios.cfg) - start nagios on solaris. - verify results are the same as your current box - stop nagios on your current box - Profit! If you're using check_nrpe, check_by_ssh or any other plugins that might have restricted access to remote hosts, verify that your new solaris box is permitted. If you're using NSCA, make sure that send_nsca on your remote machines is sending to your new box. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From beick at zib.de Wed Jan 2 21:56:10 2008 From: beick at zib.de (beick at zib.de) Date: Wed, 2 Jan 2008 21:56:10 +0100 (MET) Subject: check_by_ssh problem In-Reply-To: <229A5203-4813-4C88-A0BF-7F6300613970@ena.com> References: <12838.130.73.72.85.1199266469.squirrel@imap.zib.de> <229A5203-4813-4C88-A0BF-7F6300613970@ena.com> Message-ID: <61331.84.189.15.70.1199307370.squirrel@imap.zib.de> > > On Jan 2, 2008, at 3:34 AM, beick at zib.de wrote: > >> I want to do some checks on a remote host using check_by_ssh. Although >> user nagios can ssh to that host without being asked for a password >> the >> webinterface of my nagios is telling me: >> >> Unknown >> Remote command execution failed: Permission denied >> (publickey,keyboard-interactive) >> >> If I run nagios in the foreground I get prompts for password. >> >> Any idea what I might have missed? > > Are you using the exact same hostname/IP address for your command line > test as the nagios user that you have in your configuration? > > -- > Marc > Yes, I think so. Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From low at modog.com Wed Jan 2 22:41:50 2008 From: low at modog.com (Seth P. Low) Date: Wed, 2 Jan 2008 16:41:50 -0500 Subject: Weird request - Want a service in an OK state to appear on the service problems page Message-ID: <15DE1A7F91855E49A18A487C43846C8B34E4971A7B@modog2.modog.com> Hi, I know this is a weird request but ..... I have a NOC where the service problems page is always up on a large plasma display. While this isn't all that useful, it makes for some great eye candy for clients ,prospective clients and management types that like blinky lights. However, I have a single key check that shows the total number of active uses in our system at any given time. This check is always in an OK state (although if the number ever was huge we could have it go to a warning to critical state). So I want that check to be displayed on the service problem page as well. I know that this is not a normal request but I was trying to see if there was a way to manipulate the display filters or concoct a string to add into the status.cgi uri to get this to work. Anyone have any sugge stions? Thanks, -Seth ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From CWaters at jeld-wen.com Wed Jan 2 23:02:51 2008 From: CWaters at jeld-wen.com (Chris Waters) Date: Wed, 2 Jan 2008 14:02:51 -0800 Subject: Weird request - Want a service in an OK state to appear on the service problems page In-Reply-To: <15DE1A7F91855E49A18A487C43846C8B34E4971A7B@modog2.modog.com> References: <15DE1A7F91855E49A18A487C43846C8B34E4971A7B@modog2.modog.com> Message-ID: <30D62F21FD4BE1448C156D2A3E3003970294E432@jwmail01.jeld-wen.com> I think you can accomplish what you want by using the negate plugin. It pretty much inverts your results. Negates the status of a plugin (returns OK for CRITICAL, and vice-versa). Usage: negate [-t timeout] Chris Waters Technology Services - Network Group JELD-WEN, Inc. Information Systems cwaters at jeld-wen.com -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Seth P. Low Sent: Wednesday, January 02, 2008 1:42 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Weird request - Want a service in an OK state to appear on the service problems page Hi, I know this is a weird request but ..... I have a NOC where the service problems page is always up on a large plasma display. While this isn't all that useful, it makes for some great eye candy for clients ,prospective clients and management types that like blinky lights. However, I have a single key check that shows the total number of active uses in our system at any given time. This check is always in an OK state (although if the number ever was huge we could have it go to a warning to critical state). So I want that check to be displayed on the service problem page as well. I know that this is not a normal request but I was trying to see if there was a way to manipulate the display filters or concoct a string to add into the status.cgi uri to get this to work. Anyone have any suggestions? Thanks, -Seth ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From holger at CIS.FU-Berlin.DE Wed Jan 2 23:14:49 2008 From: holger at CIS.FU-Berlin.DE (Holger Weiss) Date: Wed, 2 Jan 2008 23:14:49 +0100 Subject: check_by_ssh problem In-Reply-To: <61331.84.189.15.70.1199307370.squirrel@imap.zib.de> References: <12838.130.73.72.85.1199266469.squirrel@imap.zib.de> <229A5203-4813-4C88-A0BF-7F6300613970@ena.com> <61331.84.189.15.70.1199307370.squirrel@imap.zib.de> Message-ID: <20080102221449.GR28313306@CIS.FU-Berlin.DE> * beick at zib.de [2008-01-02 21:56]: > > On Jan 2, 2008, at 3:34 AM, beick at zib.de wrote: > >> I want to do some checks on a remote host using check_by_ssh. Although > >> user nagios can ssh to that host without being asked for a password > >> the webinterface of my nagios is telling me: > >> > >> Unknown > >> Remote command execution failed: Permission denied > >> (publickey,keyboard-interactive) > >> > >> If I run nagios in the foreground I get prompts for password. > >> > >> Any idea what I might have missed? > > > > Are you using the exact same hostname/IP address for your command line > > test as the nagios user that you have in your configuration? > > Yes, I think so. "I think so" doesn't sound very convincing :-) Anyway, there's no ssh-agent(1) involved? Does it work on the command line if you use "env -i /path/to/check_by_ssh [...]"? Holger ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From low at modog.com Wed Jan 2 23:30:25 2008 From: low at modog.com (Seth P. Low) Date: Wed, 2 Jan 2008 17:30:25 -0500 Subject: Weird request - Want a service in an OK state to appear on the service problems page In-Reply-To: <30D62F21FD4BE1448C156D2A3E3003970294E432@jwmail01.jeld-wen.com> References: <15DE1A7F91855E49A18A487C43846C8B34E4971A7B@modog2.modog.com>, <30D62F21FD4BE1448C156D2A3E3003970294E432@jwmail01.jeld-wen.com> Message-ID: <15DE1A7F91855E49A18A487C43846C8B34E4971A7C@modog2.modog.com> I love the negate plugin and have used it often. However, I want this single check (which is always in an OK state to show up on our default display page (as OK) which is the service problem page. The end result would be all of our service problems in their warning or critical state along with this one check which is in an OK state. I don't know if I can create a custom page somehow to do this or modify the URI that is used. I have tried the later with no luck but I am no CGI whiz. As I said, it is a strange request but makes some sense when you understand the purpose. Thanks for the help. Any other suggestions? Thanks. -Seth P.S. Right now, I have it set the check be in a warning state but the end result is that I get more questions about why the logged in / active user count is warning than it is worth. ________________________________________ From: Chris Waters [CWaters at jeld-wen.com] Sent: Wednesday, January 02, 2008 5:02 PM To: Seth P. Low; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Weird request - Want a service in an OK state to appear on the service problems page I think you can accomplish what you want by using the negate plugin. It pretty much inverts your results. Negates the status of a plugin (returns OK for CRITICAL, and vice-versa). Usage: negate [-t timeout] Chris Waters Technology Services - Network Group JELD-WEN, Inc. Information Systems cwaters at jeld-wen.com -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Seth P. Low Sent: Wednesday, January 02, 2008 1:42 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Weird request - Want a service in an OK state to appear on the service problems page Hi, I know this is a weird request but ..... I have a NOC where the service problems page is always up on a large plasma display. While this isn't all that useful, it makes for some great eye candy for clients ,prospective clients and management types that like blinky lights. However, I have a single key check that shows the total number of active uses in our system at any given time. This check is always in an OK state (although if the number ever was huge we could have it go to a warning to critical state). So I want that check to be displayed on the service problem page as well. I know that this is not a normal request but I was trying to see if there was a way to manipulate the display filters or concoct a string to add into the status.cgi uri to get this to work. Anyone have any suggestions? Thanks, -Seth ------------------------------------------------------------------------ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From yogi182 at gmail.com Thu Jan 3 03:19:50 2008 From: yogi182 at gmail.com (Nate Tompkins) Date: Wed, 2 Jan 2008 21:19:50 -0500 Subject: nagios.cmd command failure Message-ID: When trying to update anything on the website i get this error message: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. An error occurred while attempting to commit your command for processing. Return from whence you came I have tried everything with the permissions, restarted the service and web service.. From what i read the nagios.cmd is made upon start up. Is there away to create a new nagios.cmd or copy and past one in? Thanks in advance -Tmpky -- Nate Tompkins->Med-Media->Technical Support Representative -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Thu Jan 3 03:34:58 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Wed, 2 Jan 2008 18:34:58 -0800 Subject: nagios.cmd command failure In-Reply-To: References: Message-ID: <20080103023458.GV8781@pmorris.usa.hp.com> On Thu, 03 Jan 2008, Nate Tompkins wrote: > When trying to update anything on the website i get this error message: > > Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! > The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. > An error occurred while attempting to commit your command for processing. > > Return from whence you came > > I have tried everything with the permissions, restarted the service and web service.. From what i read the nagios.cmd is made upon start up. Is there away to create a new nagios.cmd or copy and past one in? Nope... though the good news is that if the permissions on /usr/local/nagios/var/rw are correct, Nagios *will* create the pipe for you when it starts. You just need to make sure that the file it creates is writeable by the user your webserver runs as. If it's not, chances are you compiled Nagios yourself and used incorrect configure flags for how your webserver is configured. At that point your options are to either recompile with the correct flags, or to modify the user your webserver runs as so that it has write privileges to that file. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Thu Jan 3 04:47:54 2008 From: marc at ena.com (Marc Powell) Date: Wed, 2 Jan 2008 21:47:54 -0600 Subject: Weird request - Want a service in an OK state to appear on the service problems page In-Reply-To: <15DE1A7F91855E49A18A487C43846C8B34E4971A7B@modog2.modog.com> References: <15DE1A7F91855E49A18A487C43846C8B34E4971A7B@modog2.modog.com> Message-ID: <05285FE8-1FBC-4C68-9ED1-14C1241463E8@ena.com> On Jan 2, 2008, at 3:41 PM, Seth P. Low wrote: > Hi, > I know this is a weird request but ..... I have a NOC where the > service problems page is always up on a large plasma display. While > this isn't all that useful, it makes for some great eye candy for > clients ,prospective clients and management types that like blinky > lights. However, I have a single key check that shows the total > number of active uses in our system at any given time. This check is > always in an OK state (although if the number ever was huge we could > have it go to a warning to critical state). So I want that check to > be displayed on the service problem page as well. I know that this > is not a normal request but I was trying to see if there was a way > to manipulate the display filters or concoct a string to add into > the status.cgi uri to get this to work. Anyone have any suggestions? > Thanks, -Seth There's no way to manipulate the filters to do that. AFAIK, the only way to accomplish it would be to modify status.c to always show that host or service in the Service Status Details view regardless of the filters. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sukesh.v at jigrahak.com Thu Jan 3 06:25:53 2008 From: sukesh.v at jigrahak.com (Sukesh /IT/BLR/JIG/IN) Date: Thu, 3 Jan 2008 10:55:53 +0530 Subject: monitor server temparature Message-ID: Hi Need to monitor CPU temparature or server temparature using nagios.how we can do the monitoring using nagios 3.0a4 . Thanks, Sukesh V -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sukesh.v at jigrahak.com Thu Jan 3 06:25:53 2008 From: sukesh.v at jigrahak.com (Sukesh /IT/BLR/JIG/IN) Date: Thu, 3 Jan 2008 10:55:53 +0530 Subject: monitor server temparature Message-ID: Hi Need to monitor CPU temparature or server temparature using nagios.how we can do the monitoring using nagios 3.0a4 . Thanks, Sukesh V -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From narendran.neelamegam at wipro.com Thu Jan 3 07:52:39 2008 From: narendran.neelamegam at wipro.com (narendran.neelamegam at wipro.com) Date: Thu, 3 Jan 2008 12:22:39 +0530 Subject: monitor server temparature In-Reply-To: References: Message-ID: When you send a one line? You will get online answer (SSH, SNMP, Nagios Agent - Script - Threshold) Narendran Neelamegam ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Sukesh /IT/BLR/JIG/IN Sent: Thursday, January 03, 2008 10:56 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] monitor server temparature Hi Need to monitor CPU temparature or server temparature using nagios.how we can do the monitoring using nagios 3.0a4 . Thanks, Sukesh V -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hvdkooij at vanderkooij.org Thu Jan 3 07:54:13 2008 From: hvdkooij at vanderkooij.org (Hugo van der Kooij) Date: Thu, 03 Jan 2008 07:54:13 +0100 Subject: monitor server temparature In-Reply-To: References: Message-ID: <477C8695.7080108@vanderkooij.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sukesh /IT/BLR/JIG/IN wrote: > Hi > Need to monitor CPU temparature or server temparature using nagios.how > we can do the monitoring using nagios 3.0a4 . How would you monitor it at all? What options did you explore? I think it would be wise if you spend some time going over the mailinglist archives for existing solutions. Hugo. - -- hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHfIaUBvzDRVjxmYERAmZkAJ9Pp6wtyuQFMhyeeQN0AfvDVXd83wCgpAP2 R0QRdGCBi5aktOGozBxlK3c= =XIsv -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Thu Jan 3 09:54:59 2008 From: madunix at gmail.com (Mad Unix) Date: Thu, 3 Jan 2008 10:54:59 +0200 Subject: SMS gateway Message-ID: <4d3f56c90801030054m30d7dae6w3feaf7affda55985@mail.gmail.com> *I am trying to connect 2N Analog GSM Gateways* to my Linux Server in order to send SMS messages to my admins through nagios. 1. any one installed this device before on RHEL5 server if yes your help appreciated. 2. how can modify the nagios config in order to send SMS messages -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dennis at huenseler.net Thu Jan 3 10:14:59 2008 From: dennis at huenseler.net (=?UTF-8?Q?Dennis_H=C3=BCnseler?=) Date: Thu, 03 Jan 2008 10:14:59 +0100 Subject: SMS gateway In-Reply-To: <4d3f56c90801030054m30d7dae6w3feaf7affda55985@mail.gmail.com> References: <4d3f56c90801030054m30d7dae6w3feaf7affda55985@mail.gmail.com> Message-ID: Hi, please take a look at this postings first: http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.net&forum_name=nagios-users Thanks. On Thu, 3 Jan 2008 10:54:59 +0200, "Mad Unix" wrote: I am trying to connect 2N Analog GSM Gateways to my Linux Server in order to send SMS messages to my admins through nagios. 1. any one installed this device before on RHEL5 server if yes your help appreciated. 2. how can modify the nagios config in order to send SMS messages -- madunix kind regards,Dennis Hünseler -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Thu Jan 3 10:47:46 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 03 Jan 2008 09:47:46 +0000 Subject: Licensing of Official and 3rd Party Plugins In-Reply-To: <951D2145-FCA9-47DF-AF69-B52BB7E05DF5@secure-computing.net> References: <477B8DBE.7020207@googlemail.com> <951D2145-FCA9-47DF-AF69-B52BB7E05DF5@secure-computing.net> Message-ID: <477CAF42.5050004@googlemail.com> Eric F Crist wrote: > You can license your plugin however you choose. The plugins I write > are BSD, for instance. Thanks for the reply Eric, but this wasn't really the question. Of course I license my plugins how I want, but the question is really one of GPLv2 and GPLv3. Are there any plans to upgrade the official plugin distribution to GPLv3? Are there any advantages/disadvantages to doing so? Does anyone have any opinions in licensing of 3rd party plugins as GPLv3 instead of GPLv2? -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gmueller at netways.de Thu Jan 3 10:52:44 2008 From: gmueller at netways.de (Gerd Mueller) Date: Thu, 03 Jan 2008 10:52:44 +0100 Subject: rrd gaps In-Reply-To: <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> Message-ID: <1199353964.15132.11.camel@netl-gm-01.int.netways.de> Hi, the old NagiosGrapher interfaces (network/pipe) can cause huge latency :-(. Thanks to a patch we got there is a new interface type "file". The main advantages of this new interface are: * no gaps any more * no latency caused by NagiosGrapher * restarting NagiosGrapher does not cause any gaps I am sorry but the documentation totally lacks this interface. But below is all you need. Cheers, Gerd ngraph.ncfg: interface file perffile_path /dev/shm nagios.cfg: process_performance_data=1 service_perfdata_file=/dev//shm/service-perfdata service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ service_perfdata_file_mode=a service_perfdata_file_processing_interval=60 service_perfdata_file_processing_command=process-service-perfdata-file commands.cfg: define command{ command_name process-service-perfdata-file command_line mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ } Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: > Lars and Gerd, > > I am having a similar problem with rrd gaps. > It was doing fine until I added 3 more hosts and 8 more services and then > suddenly I get the rrd gaps, some graphs are even blank. > > My latency are as below (they seem pretty high compared to yours?): > > # nagiostats | grep -i latency > Active Service Latency: 6.804 / 330.675 / 238.562 sec > Active Host Latency: 0.000 / 0.000 / 0.000 sec > > > nagiostats | grep -i total > Used/High/Total Command Buffers: 0 / 8 / 4096 > Used/High/Total Check Result Buffers: 85 / 106 / 4096 > Total Services: 106 > Total Service State Change: 0.000 / 0.000 / 0.000 % > Total Hosts: 36 > Total Host State Change: 0.000 / 0.000 / 0.000 % > > > I also use the rpm package from linadd.org. > nagios-2.9-1.i586.rpm, > nagios-web-2.9-1.i586.rpm, > nagios-plugins-1.4.9-1.i586.rpm, > nagios-plugins-extras-1.4.9-1.i586.rpm > nagios-graph-1.6.1-rc3.i586.rpm > > If you find any solution for this I would be more than happy :) > > Thanks, > - Palle > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars > Stavholm > Sent: Wednesday, January 02, 2008 7:06 AM > To: Mad Unix > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] rrd gaps > > Mad Unix wrote: > > Can you tell me how did you implement graph beside the nagios > > Let's keep this on the list, shall we? > > I used rpm packages from linadd.org. > > > Thanks > > You're welcome. > /L > > > On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: > >> Gerd Mueller wrote: > >>> Hi Lars, > >>> > >>> which interface are you using? And how big is your nagios' latency? > >> I don't quite understand the first question there? > >> We use the Nagios web interface with the nuvola theme? > >> > >> We have only a few hosts and around a hundred service checks, > >> i.e. no heavy load here: > >> > >> # nagiostats | grep -i latency > >> Active Service Latency: 0.000 / 0.335 / 0.135 sec > >> Passive Service Latency: 0.000 / 0.000 / 0.000 sec > >> Active Host Latency: 0.000 / 0.284 / 0.152 sec > >> Passive Host Latency: 0.000 / 0.000 / 0.000 sec > >> > >> # nagiostats | grep -i total > >> Used/High/Total Command Buffers: 0 / 1 / 4096 > >> Total Services: 114 > >> Total Service State Change: 0.000 / 12.110 / 0.106 % > >> Total Hosts: 19 > >> Total Host State Change: 0.000 / 0.000 / 0.000 % > >> > >> /L > >> > >> > >>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: > >>>> Hi All, > >>>> > >>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. > >>>> > >>>> It all works very well, except for one annoying problem: > >>>> I get gaps in the graphs, and I don't understand why. > >>>> > >>>> Any ideas appreciated, sample graph attached. > >>>> > >>>> R > >>>> /Lars > >>>> > ------------------------------------------------------------------------- > >>>> This SF.net email is sponsored by: Microsoft > >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>> _______________________________________________ Nagios-users mailing > list Nagios-users at 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: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2005. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -- Gerd Mueller Senior Consultant NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 N?rnberg Tel: +49 911 92885-0 | Fax: +49 911 92885-33 GF: Julian Hein | AG N?rnberg HRB18461 http://www.netways.de | gmueller at netways.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.mohr at elaxy.com Thu Jan 3 10:59:19 2008 From: james.mohr at elaxy.com (Mohr James) Date: Thu, 3 Jan 2008 10:59:19 +0100 Subject: Propagating Service Changes In-Reply-To: <200801021320.m02DKsC1022803@post.webmailer.de> References: <200801021320.m02DKsC1022803@post.webmailer.de> Message-ID: Servus Matthias! Thanks for that tip. It looks really interesting and exciting. We currently have Nagios 2, but have 3 on a test system and probably won't be making any major changes until we have 3 up and running. I'll get it going on the test system and see how it works. Thanks again! Gru? aus Coburg, Jim Mohr > -----Urspr?ngliche Nachricht----- > Von: Matthias.Flacke at gmx.de [mailto:Matthias.Flacke at gmx.de] > Gesendet: Mittwoch, 2. Januar 2008 14:21 > An: Mohr James; nagios-users at lists.sourceforge.net > Betreff: Re: [Nagios-users] Propagating Service Changes > > > Maybe you can solve your issue already on the plugin level: > > - If you want to evaluate the state of existing Nagios > services take a look onto check_cluster. > > - If you want to cover more sophisticated setups and be able > to do a fine granulated evaluation of the results of your > child checks you can also take check_multi > (http://www.my-plugin.de/wiki/projects/check_multi/start) , > which is mainly written for Nagios 3, but also works with Nagios 2. > The state evaluation topic is handled in the 'Process Views' > page (http://www.my-plugin.de/wiki/projects/check_multi/process_views) > > HTH - Matthias Flacke > > ----- original message -------- > > Subject: [Nagios-users] Propagating Service Changes > Sent: Wed, 02 Jan 2008 > From: Mohr James > > > Hi All! > > > > First off my apologies. Apparently I forget to stop the > subscription > > while I was on vacation, so I would imagine that most > everyone got a > > vacation notice from me. Sorry! > > > > We have a situation (using Nagios 2.5) we need to monitor/report > > services "conceptually". That is, we have several services that are > > monitored and only when all of these are not accessible do > we report > > that the main service is not accessible. I couldn't find any > > information on propagating services, so I was thinking > about using an > > event handler that would run whenever one of the low-level services > > changes state. The handler would then check the other services > > (perhaps using the Nagios-Object perl module) and if all of > the other > > services are critical, the handler would use send_nsca to send a > > message to the master service. However, if there is some mechanism > > already built in (even Nagios 3.0) that would save me the > work of re-inventing the wheel. > > > > I would be grateful for any input or ideas. > > > > Regards, > > > > Jim Mohr > > > > > ---------------------------------------------------------------------- > > --- This SF.net email is sponsored by: Microsoft Defy all > challenges. > > Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 > > > > > > --- original message end ---- > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From frederic.schaer at cea.fr Thu Jan 3 11:17:51 2008 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Thu, 3 Jan 2008 11:17:51 +0100 Subject: nagios.cmd command failure In-Reply-To: <20080103023458.GV8781@pmorris.usa.hp.com> References: <20080103023458.GV8781@pmorris.usa.hp.com> Message-ID: Or : you may be running SElinux... In any way, nagios is happy if you provide it with an already created pipe, which correct rights. I've been getting hard time having nagios running on a SElinux server, because at each beta/RC update file and directories permissions had to be added again so that SELinux allows apache to read/write files. So if this is an SELinux problem (check /var/log/messages for weird errors about context things), you can try what follows. In my case, I'm running a Scientific Linux box (RHEL), which already has SELinux policies for httpd - you can try : man httpd_selinux (man page was installed with selinux-policy-targeted rpm) In my case again, I have to do such things in order to get write access granted to httpd (I added this in the %post specfile macro): if [ -x /usr/bin/chcon ]; then [ -d /var/spool/nagios ] && /usr/bin/chcon -R -t httpd_sys_content_t /var/spool/nagios [ -d /var/log/nagios ] && /usr/bin/chcon -R -t httpd_sys_content_t /var/log/nagios FIFO=/var/spool/nagios/nagios.cmd [ ! -p $FIFO ] && mkfifo -m 660 $FIFO && chown %{nsusr}:%{cmdgrp} $FIFO [ -p $FIFO ] && /usr/bin/chcon -t httpd_sys_script_rw_t $FIFO fi (following goes in the %post www) if [ -x /usr/bin/chcon ]; then [ -d /usr/lib/nagios/cgi ] && /usr/bin/chcon -R -t httpd_sys_script_exec_t /usr/lib/nagios/cgi fi Magic command is chcon, but it's hard to find about the httpd_sys_blahblah stuff... Regards P.S : to check existing SELinux rights, try ls -lZ ;) > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Patrick Morris > Sent: Thursday, January 03, 2008 3:35 AM > To: Nate Tompkins > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] nagios.cmd command failure > > On Thu, 03 Jan 2008, Nate Tompkins wrote: > > > When trying to update anything on the website i get this error message: > > > > Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! > > The permissions on the external command file and/or directory may be incorrect. Read the FAQs on > how to setup proper permissions. > > An error occurred while attempting to commit your command for processing. > > > > Return from whence you came > > > > I have tried everything with the permissions, restarted the service and web service.. From what i > read the nagios.cmd is made upon start up. Is there away to create a new nagios.cmd or copy and > past one in? > > Nope... though the good news is that if the permissions on > /usr/local/nagios/var/rw are correct, Nagios *will* create the pipe for > you when it starts. > > You just need to make sure that the file it creates is writeable by the > user your webserver runs as. If it's not, chances are you compiled > Nagios yourself and used incorrect configure flags for how your > webserver is configured. At that point your options are to either > recompile with the correct flags, or to modify the user your webserver > runs as so that it has write privileges to that file. > > ------------------------------------------------------------------------ - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From frederic.schaer at cea.fr Thu Jan 3 11:25:27 2008 From: frederic.schaer at cea.fr (SCHAER Frederic) Date: Thu, 3 Jan 2008 11:25:27 +0100 Subject: [Nagios-devel] nrpe RPM spec file bug(s) In-Reply-To: References: Message-ID: Hi lists, I just checked in the CVS tree, and nagios/nrpe spec files still contains the non-system groupadds ... It's not that I'm willing to see this changes at all costs in the official spec files since I have patched ones for now, but I guess I'm not the only one this kind of update will help... am I ? Regards ________________________________ From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-bounces at lists.sourceforge.net] On Behalf Of SCHAER Frederic Sent: Friday, December 21, 2007 4:26 PM To: Nagios Developers List Subject: Re: [Nagios-devel] nrpe RPM spec file bug(s) Hmmm... by the way, the nagios.spec file has the same defect : it's using "groupadd" whereas it's using "useradd -r" ... if this could also be corrected... Regards ________________________________ From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-bounces at lists.sourceforge.net] On Behalf Of SCHAER Frederic Sent: Friday, December 21, 2007 2:06 PM To: nagios-devel at lists.sourceforge.net Subject: [Nagios-devel] nrpe RPM spec file bug(s) Hi, In the nagios spec file, the nagios user is added with command < useradd -r > which creates a system account + system group. In the nrpe spec file, there is first a standard groupadd on the Nagios group, and then a useradd with the -r option for the user. It looks to me that the first groupadd is then useless, isn't it ? By the way : when the groupadd is run, there's a grep on the hardcoded "nagios" value, while just after the %{nsgrp} is used to add the group, which is also a bug I think... Nevertheless, if the groupadd has to be kept, would it be possible to use it also with the "-r" option ? This way, a system group would be created. This would avoid conflicts with standard users/groups, and this would also make things more consistent. I can easily patch the spec file, but I'm using nrpe on a few hundred machines, and I guess other people managing clusters may face the same problem of GID conflicts that I just did, which could probably be easily be avoided.... so here I'm sharing the problem and potential solution. Thanks for patching && regards && merry Christmas ! :] Frederic -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From alexdehaini at gmail.com Thu Jan 3 13:33:56 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Thu, 3 Jan 2008 12:33:56 +0000 Subject: graphical mapping tool Message-ID: <4b008f7d0801030433u53303f7t279bca4bf717ea31@mail.gmail.com> Hi Guys, Nagios is a wonderful tool but it's status map is not the prettiest. Any tool out there that I can integrate with nagios to produce nice maps. I will love something that I can use to create multiple maps that are all connected to a general map? -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tva at d-fi.fr Thu Jan 3 13:35:33 2008 From: tva at d-fi.fr (Thierry VALLIER) Date: Thu, 3 Jan 2008 13:35:33 +0100 Subject: ping In-Reply-To: <5336CE5F5C88EC4384BF375B40A8EC1E528AA3@w2k-meu-exc.Exchange.d-fi.fr> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> <5336CE5F5C88EC4384BF375B40A8EC1E528AA3@w2k-meu-exc.Exchange.d-fi.fr> Message-ID: <5336CE5F5C88EC4384BF375B40A8EC1E7C92B5@w2k-meu-exc.Exchange.d-fi.fr> Hi guys I'm always searching plugins for monitoring my storage IBM DS4000 and NetApp FAS2020. Can someone help me please ? Thanx in advance Bien cordialement, Best regards Thierry -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From alexdehaini at gmail.com Thu Jan 3 13:58:26 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Thu, 3 Jan 2008 12:58:26 +0000 Subject: graphical mapping tool In-Reply-To: References: Message-ID: <4b008f7d0801030458t7ab8634cxe337ce176af502c7@mail.gmail.com> Stephen, nagvis is good but it lacks a very important feature that is present in most NMS. It can't tell you if any host if down within a site. Take for instance, I have 4 sites Site 1 - router1, server1, switch, access point1 Site 2 - router2, workstation1, workstation2, server3, access point2 Site 3 - router3, workstation3, workstation4, accesspoint3 Site 4 - access point4, workstation5 Now, you can have a default map that link these 4 sites. With nagvis you have to monitor all the devices at each site and show them on the map. I don't want a map that will show all my devices on one cluttered map. I want a map that will add the four sites above and each site will be able to show (problem, on or off) on the main map if any device on any 4 sites has a problem. I sent several emails asking the nagvis developers if this is possible but I got no reply. If nagvis can do this, I will use it without hesitation. On Jan 3, 2008 12:42 PM, Valdinger, Stephen (DOV, MSX) < svalding at doverchem.com> wrote: > I recently implemented NagVis in our Nagios installation. Seems to work > out great for us. Check them out and www.nagvis.org > > > > Stephen Valdinger > > Dover Chemical Corporation > > MIS Helpdesk Guru > > 330.365.3622 > > stephen.valdinger at doverchem.com > > > > "If a man says something in the woods and no woman hears him, is he still > wrong?" > > > > *From:* Alex Dehaini [mailto:alexdehaini at gmail.com] > *Sent:* Thursday, January 03, 2008 7:34 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] graphical mapping tool > > > > Hi Guys, > > Nagios is a wonderful tool but it's status map is not the prettiest. Any > tool out there that I can integrate with nagios to produce nice maps. I will > love something that I can use to create multiple maps that are all connected > to a general map? > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From fvanhee at gmail.com Thu Jan 3 14:08:13 2008 From: fvanhee at gmail.com (Vanhee Frederik) Date: Thu, 03 Jan 2008 14:08:13 +0100 Subject: graphical mapping tool In-Reply-To: <4b008f7d0801030458t7ab8634cxe337ce176af502c7@mail.gmail.com> References: <4b008f7d0801030458t7ab8634cxe337ce176af502c7@mail.gmail.com> Message-ID: <477CDE3D.7050504@gmail.com> Alex Dehaini wrote: > Stephen, > > nagvis is good but it lacks a very important feature that is present > in most NMS. It can't tell you if any host if down within a site. > > Take for instance, I have 4 sites > > Site 1 - router1, server1, switch, access point1 > Site 2 - router2, workstation1, workstation2, server3, access point2 > Site 3 - router3, workstation3, workstation4, accesspoint3 > Site 4 - access point4, workstation5 > > Now, you can have a default map that link these 4 sites. With nagvis > you have to monitor all the devices at each site and show them on the > map. I don't want a map that will show all my devices on one cluttered > map. I want a map that will add the four sites above and each site > will be able to show (problem, on or off) on the main map if any > device on any 4 sites has a problem. > > I sent several emails asking the nagvis developers if this is possible > but I got no reply. If nagvis can do this, I will use it without > hesitation. > > > > On Jan 3, 2008 12:42 PM, Valdinger, Stephen (DOV, MSX) < > svalding at doverchem.com > wrote: > > I recently implemented NagVis in our Nagios installation. Seems to > work out great for us. Check them out and www.nagvis.org > > > > > Stephen Valdinger > > Dover Chemical Corporation > > MIS Helpdesk Guru > > 330.365.3622 > > stephen.valdinger at doverchem.com > > > > > "If a man says something in the woods and no woman hears him, is > he still wrong?" > > > > *From:* Alex Dehaini [mailto:alexdehaini at gmail.com > ] > *Sent:* Thursday, January 03, 2008 7:34 AM > *To:* nagios-users at lists.sourceforge.net > > *Subject:* [Nagios-users] graphical mapping tool > > > > Hi Guys, > > Nagios is a wonderful tool but it's status map is not the > prettiest. Any tool out there that I can integrate with nagios to > produce nice maps. I will love something that I can use to create > multiple maps that are all connected to a general map? > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > > > > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 Alex, I hope I understand what you want to tell us. Nagvis can make a distinction between a host/service, a hostgroup, a servicegroup OR a map. So, if you want a general map with one symbol representing the 4 sites, you can make a general map with on that general map, one symbol, respresenting a sub-map (I can't remember the Nagvis nomination by heart). Then you create the submap and on that submap you can put 4 symbols, one for each site (considered your site is hostgroup in Nagios). To make things more clear, before you can represent the status of a sub-map (or child-map) on a general map, the child-map has to be created first in Nagvis. Hope this helps. Don't hesitate to contact me if this explanation isn't clear enough, Frederik ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From beick at zib.de Thu Jan 3 14:31:26 2008 From: beick at zib.de (beick at zib.de) Date: Thu, 3 Jan 2008 14:31:26 +0100 (MET) Subject: check_by_ssh problem In-Reply-To: <20080102221449.GR28313306@CIS.FU-Berlin.DE> References: <12838.130.73.72.85.1199266469.squirrel@imap.zib.de> <229A5203-4813-4C88-A0BF-7F6300613970@ena.com> <61331.84.189.15.70.1199307370.squirrel@imap.zib.de> <20080102221449.GR28313306@CIS.FU-Berlin.DE> Message-ID: <61042.84.189.37.56.1199367086.squirrel@imap.zib.de> > * beick at zib.de [2008-01-02 21:56]: >> > On Jan 2, 2008, at 3:34 AM, beick at zib.de wrote: >> >> I want to do some checks on a remote host using check_by_ssh. >> Although >> >> user nagios can ssh to that host without being asked for a password >> >> the webinterface of my nagios is telling me: >> >> >> >> Unknown >> >> Remote command execution failed: Permission denied >> >> (publickey,keyboard-interactive) >> >> >> >> If I run nagios in the foreground I get prompts for password. >> >> >> >> Any idea what I might have missed? >> > >> > Are you using the exact same hostname/IP address for your command line >> > test as the nagios user that you have in your configuration? >> >> Yes, I think so. > > "I think so" doesn't sound very convincing :-) > > Anyway, there's no ssh-agent(1) involved? Does it work on the command > line if you use "env -i /path/to/check_by_ssh [...]"? > > Holger > Yes it does work. Does it matter if I do not login as nagios to the webinterface? Matthias ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From james.mohr at elaxy.com Thu Jan 3 14:55:02 2008 From: james.mohr at elaxy.com (Mohr James) Date: Thu, 3 Jan 2008 14:55:02 +0100 Subject: Exception to services defined for all hosts Message-ID: Hi All! I have a couple of services that I have defined for all hosts with "host_name *". However, there are a couple of hosts which have different notification periods. So, I was wondering if there was anyway of defining exceptions. I see that in Nagios 3 you can assign a hostgroup_name to a service. This would definitely save a lot of work, but the case where we have 100 nodes and only two exceptions, it still seems to be a fair bit of work. So I would still like to be able to define exceptions. Is that possible? Any info is appreciated. Regards, Jim Mohr ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Thu Jan 3 15:08:53 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 03 Jan 2008 14:08:53 +0000 Subject: Exception to services defined for all hosts In-Reply-To: References: Message-ID: <477CEC75.7080800@googlemail.com> Mohr James wrote: > Hi All! > > I have a couple of services that I have defined for all hosts with > "host_name *". However, there are a couple of hosts which have > different notification periods. So, I was wondering if there was anyway > of defining exceptions. I see that in Nagios 3 you can assign a > hostgroup_name to a service. This would definitely save a lot of work, > but the case where we have 100 nodes and only two exceptions, it still > seems to be a fair bit of work. So I would still like to be able to > define exceptions. Is that possible? Any info is appreciated It's not documented but you can use hostgroups in Nagios 2.X, I do. You can usually try to do something like host_name !hostname1, !hostname2 etc... This works when using a hostgroup_name in the service definition but I haven't tried it with things like *... -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From alexdehaini at gmail.com Thu Jan 3 15:19:52 2008 From: alexdehaini at gmail.com (Alex Dehaini) Date: Thu, 3 Jan 2008 14:19:52 +0000 Subject: graphical mapping tool In-Reply-To: References: Message-ID: <4b008f7d0801030619q342b8f92ib117dc795a6b0f58@mail.gmail.com> Thanks Stephen, You will have to show me how to use the overall status info from tac.cgi. I just thought about it, since nagvis can monitor hostgroups, I will create a hostgroup for each site and place the icons on the main map. I think that should solve it. Silly of me - what didn't I think about this earlier Thanks Stephen On Jan 3, 2008 1:01 PM, Valdinger, Stephen (DOV, MSX) < svalding at doverchem.com> wrote: > Why not use Nagvis, create one map with four site images and use the > overall status informations from tac.cgi as your basis for if each site > has a problem somewhere in it? I have that implemented in an Overall Network > Health Page for my 2 locations. If a service or host at one of the sites is > in warning, then my little image turns yellow to reflect a warning state at > one of the sites. It's not too very intuitive, and may not work at all for > your, but my 2 locations only produce about 100 checks. It's very small. > Nagvis may not be quite as scalable for an installation as large as yours. > > > > Stephen Valdinger > > Dover Chemical Corporation > > MIS Helpdesk Guru > > 330.365.3622 > > stephen.valdinger at doverchem.com > > > > "If a man says something in the woods and no woman hears him, is he still > wrong?" > > > > *From:* Alex Dehaini [mailto:alexdehaini at gmail.com] > *Sent:* Thursday, January 03, 2008 7:58 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* Re: [Nagios-users] graphical mapping tool > > > > Stephen, > > nagvis is good but it lacks a very important feature that is present in > most NMS. It can't tell you if any host if down within a site. > > Take for instance, I have 4 sites > > Site 1 - router1, server1, switch, access point1 > Site 2 - router2, workstation1, workstation2, server3, access point2 > Site 3 - router3, workstation3, workstation4, accesspoint3 > Site 4 - access point4, workstation5 > > Now, you can have a default map that link these 4 sites. With nagvis you > have to monitor all the devices at each site and show them on the map. I > don't want a map that will show all my devices on one cluttered map. I want > a map that will add the four sites above and each site will be able to show > (problem, on or off) on the main map if any device on any 4 sites has a > problem. > > I sent several emails asking the nagvis developers if this is possible but > I got no reply. If nagvis can do this, I will use it without hesitation. > > > On Jan 3, 2008 12:42 PM, Valdinger, Stephen (DOV, MSX) < > svalding at doverchem.com> wrote: > > I recently implemented NagVis in our Nagios installation. Seems to work > out great for us. Check them out and www.nagvis.org > > > > Stephen Valdinger > > Dover Chemical Corporation > > MIS Helpdesk Guru > > 330.365.3622 > > stephen.valdinger at doverchem.com > > > > "If a man says something in the woods and no woman hears him, is he still > wrong?" > > > > *From:* Alex Dehaini [mailto:alexdehaini at gmail.com] > *Sent:* Thursday, January 03, 2008 7:34 AM > *To:* nagios-users at lists.sourceforge.net > *Subject:* [Nagios-users] graphical mapping tool > > > > Hi Guys, > > Nagios is a wonderful tool but it's status map is not the prettiest. Any > tool out there that I can integrate with nagios to produce nice maps. I will > love something that I can use to create multiple maps that are all connected > to a general map? > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > > > > > -- > Alex Dehaini > Developer > Site - www.alexdehaini.com > Email - alexdehaini at gmail.com > -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From palleje at gmail.com Thu Jan 3 15:20:03 2008 From: palleje at gmail.com (Palle L Jensen) Date: Thu, 3 Jan 2008 09:20:03 -0500 Subject: rrd gaps In-Reply-To: <1199353964.15132.11.camel@netl-gm-01.int.netways.de> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> <1199353964.15132.11.camel@netl-gm-01.int.netways.de> Message-ID: <006901c84e13$bceea240$98ad38a6@na.dsmain.com> Gerd, After making below changes as you suggested, I did a "pre-flight" # nagios -v /etc/nagios/nagios.cfg Nagios 2.9 Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: 04-10-2007 License: GPL Reading configuration data... Running pre-flight check on configuration data... Checking services... Checked 101 services. Checking hosts... Checked 36 hosts. Checking host groups... Checked 6 host groups. Checking service groups... Checked 5 service groups. Checking contacts... Checked 1 contacts. Checking contact groups... Checked 1 contact groups. Checking service escalations... Checked 0 service escalations. Checking service dependencies... Checked 0 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 61 commands. Checking time periods... Checked 3 time periods. Checking extended host info definitions... Checked 36 extended host info definitions. Checking extended service info definitions... Checked 92 extended service info definitions. Checking for circular paths between hosts... Checking for circular host and service dependencies... Checking global event handlers... Checking obsessive compulsive processor commands... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check And then a restart of Nagios and Nagiosgrapher, were Nagiosgrapher failed, [root at laknagios /]# /etc/init.d/nagios restart /etc/init.d/nagios: warning: nagios is not running Shutting down nagios: [ OK ] Starting nagios: [ OK ] [root at laknagios /]# /etc/init.d/nagios restart Shutting down nagios: [ OK ] Starting nagios: [ OK ] [root at laknagios /]# /etc/init.d/ngraph restart Shutting down ngraph: [ OK ] Starting ngraph: Use of uninitialized value in bitwise and (&) at /usr/sbin/ngraph line 670. No such signal: SIGfileparse(): need a valid pathname at /usr/lib/perl5/vendor_perl/NagiosGrapher.pm line 1158 fileparse(): need a valid pathname at /usr/lib/perl5/vendor_perl/NagiosGrapher.pm line 1158 [FAILED] Do you have any advice? Thanks, Palle -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Gerd Mueller Sent: Thursday, January 03, 2008 4:53 AM To: Nagios Users Mailinglist Subject: Re: [Nagios-users] rrd gaps Hi, the old NagiosGrapher interfaces (network/pipe) can cause huge latency :-(. Thanks to a patch we got there is a new interface type "file". The main advantages of this new interface are: * no gaps any more * no latency caused by NagiosGrapher * restarting NagiosGrapher does not cause any gaps I am sorry but the documentation totally lacks this interface. But below is all you need. Cheers, Gerd ngraph.ncfg: interface file perffile_path /dev/shm nagios.cfg: process_performance_data=1 service_perfdata_file=/dev//shm/service-perfdata service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ service_perfdata_file_mode=a service_perfdata_file_processing_interval=60 service_perfdata_file_processing_command=process-service-perfdata-file commands.cfg: define command{ command_name process-service-perfdata-file command_line mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ } Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: > Lars and Gerd, > > I am having a similar problem with rrd gaps. > It was doing fine until I added 3 more hosts and 8 more services and then > suddenly I get the rrd gaps, some graphs are even blank. > > My latency are as below (they seem pretty high compared to yours?): > > # nagiostats | grep -i latency > Active Service Latency: 6.804 / 330.675 / 238.562 sec > Active Host Latency: 0.000 / 0.000 / 0.000 sec > > > nagiostats | grep -i total > Used/High/Total Command Buffers: 0 / 8 / 4096 > Used/High/Total Check Result Buffers: 85 / 106 / 4096 > Total Services: 106 > Total Service State Change: 0.000 / 0.000 / 0.000 % > Total Hosts: 36 > Total Host State Change: 0.000 / 0.000 / 0.000 % > > > I also use the rpm package from linadd.org. > nagios-2.9-1.i586.rpm, > nagios-web-2.9-1.i586.rpm, > nagios-plugins-1.4.9-1.i586.rpm, > nagios-plugins-extras-1.4.9-1.i586.rpm > nagios-graph-1.6.1-rc3.i586.rpm > > If you find any solution for this I would be more than happy :) > > Thanks, > - Palle > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars > Stavholm > Sent: Wednesday, January 02, 2008 7:06 AM > To: Mad Unix > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] rrd gaps > > Mad Unix wrote: > > Can you tell me how did you implement graph beside the nagios > > Let's keep this on the list, shall we? > > I used rpm packages from linadd.org. > > > Thanks > > You're welcome. > /L > > > On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: > >> Gerd Mueller wrote: > >>> Hi Lars, > >>> > >>> which interface are you using? And how big is your nagios' latency? > >> I don't quite understand the first question there? > >> We use the Nagios web interface with the nuvola theme? > >> > >> We have only a few hosts and around a hundred service checks, > >> i.e. no heavy load here: > >> > >> # nagiostats | grep -i latency > >> Active Service Latency: 0.000 / 0.335 / 0.135 sec > >> Passive Service Latency: 0.000 / 0.000 / 0.000 sec > >> Active Host Latency: 0.000 / 0.284 / 0.152 sec > >> Passive Host Latency: 0.000 / 0.000 / 0.000 sec > >> > >> # nagiostats | grep -i total > >> Used/High/Total Command Buffers: 0 / 1 / 4096 > >> Total Services: 114 > >> Total Service State Change: 0.000 / 12.110 / 0.106 % > >> Total Hosts: 19 > >> Total Host State Change: 0.000 / 0.000 / 0.000 % > >> > >> /L > >> > >> > >>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: > >>>> Hi All, > >>>> > >>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. > >>>> > >>>> It all works very well, except for one annoying problem: > >>>> I get gaps in the graphs, and I don't understand why. > >>>> > >>>> Any ideas appreciated, sample graph attached. > >>>> > >>>> R > >>>> /Lars > >>>> > ------------------------------------------------------------------------- > >>>> This SF.net email is sponsored by: Microsoft > >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>> _______________________________________________ Nagios-users mailing > list Nagios-users at 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: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2005. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -- Gerd Mueller Senior Consultant NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 N?rnberg Tel: +49 911 92885-0 | Fax: +49 911 92885-33 GF: Julian Hein | AG N?rnberg HRB18461 http://www.netways.de | gmueller at netways.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Gerhard.Lausser at consol.de Thu Jan 3 15:32:44 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Thu, 3 Jan 2008 15:32:44 +0100 Subject: Announce: check_mysql_perf Message-ID: <016101c84e15$812cb650$a601000a@int.consol.de> Hi Nagios users, allow me to offer you my plugin check_mysql_perf. It was written to monitor (primarily) performance related characteristics of a MySQL database. The -m option tells the plugin the desired mode. Possible keywords are: threads-connected (Check 'Threads connected') qcache-hitrate (Check 'Query cache hitrate') keycache-hitrate (Check 'Key cache hitrate') connection-time (Check 'Seconds to get a connection') tmp-disk-tables (Check 'Percent of temp tables created on disk') slave-lag (Check 'Seconds behind master') slave-io-running (Check for 'Slave io running: Yes') slave-sql-running (Check for 'Slave sql running: Yes') Example: check_mysql_perf -m qcache-hitrate OK - Query Cache Hitrate at 93.93%|qcache_hitrate=93.93%;90:;80: check_mysql_perf -m qcache-hitrate -w 95: -c 90: WARNING - Query Cache Hitrate at 93.93%|qcache_hitrate=93.93%;95:;90: Please take into account that you need also the nagios-plugins package (i recommend 1.4.11) for a successful build. The steps are: - tar zxvf nagios-plugins-1.4.11.tar.gz - cd nagios-plugins-1.4.11; ./configure; make - cd .. - tar zxvf check_mysql-perf-1.1.tar.gz - cd check_mysql-perf-1.1 - ./configure --with-officialplugins=/absolute/path/to/nagios-plugins-1.4.11 - make Of course a mysql-dev installation has to be found (or provided with --with-mysql) either in step 2 or step 6. You can find more documentation and the download link at http://www.consol.com/opensource/nagios/check-mysql-perf Greetings from Munich, Gerhard ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gmueller at netways.de Thu Jan 3 15:31:54 2008 From: gmueller at netways.de (=?utf-8?B?R2VyZCBNw7xsbGVy?=) Date: Thu, 3 Jan 2008 15:31:54 +0100 Subject: rrd gaps In-Reply-To: <006901c84e13$bceea240$98ad38a6@na.dsmain.com> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> <1199353964.15132.11.camel@netl-gm-01.int.netways.de> <006901c84e13$bceea240$98ad38a6@na.dsmain.com> Message-ID: <1199370714.24284.8.camel@netl-gm-01.int.netways.de> Which version of NagiosGrapher are you using? The file interface exists only in the newest version. Gerd Am Donnerstag, den 03.01.2008, 09:20 -0500 schrieb Palle L Jensen: > Gerd, > > After making below changes as you suggested, I did a "pre-flight" > > # nagios -v /etc/nagios/nagios.cfg > > Nagios 2.9 > Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: > 04-10-2007 > License: GPL > > Reading configuration data... > > Running pre-flight check on configuration data... > > Checking services... > Checked 101 services. > Checking hosts... > Checked 36 hosts. > Checking host groups... > Checked 6 host groups. > Checking service groups... > Checked 5 service groups. > Checking contacts... > Checked 1 contacts. > Checking contact groups... > Checked 1 contact groups. > Checking service escalations... > Checked 0 service escalations. > Checking service dependencies... > Checked 0 service dependencies. > Checking host escalations... > Checked 0 host escalations. > Checking host dependencies... > Checked 0 host dependencies. > Checking commands... > Checked 61 commands. > Checking time periods... > Checked 3 time periods. > Checking extended host info definitions... > Checked 36 extended host info definitions. > Checking extended service info definitions... > Checked 92 extended service info definitions. > Checking for circular paths between hosts... > Checking for circular host and service dependencies... > Checking global event handlers... > Checking obsessive compulsive processor commands... > Checking misc settings... > > Total Warnings: 0 > Total Errors: 0 > > Things look okay - No serious problems were detected during the pre-flight > check > > And then a restart of Nagios and Nagiosgrapher, were Nagiosgrapher failed, > > [root at laknagios /]# /etc/init.d/nagios restart > /etc/init.d/nagios: warning: nagios is not running > Shutting down nagios: [ OK ] > Starting nagios: [ OK ] > [root at laknagios /]# /etc/init.d/nagios restart > Shutting down nagios: [ OK ] > Starting nagios: [ OK ] > [root at laknagios /]# /etc/init.d/ngraph restart > Shutting down ngraph: [ OK ] > Starting ngraph: Use of uninitialized value in bitwise and (&) at > /usr/sbin/ngraph line 670. > No such signal: SIGfileparse(): need a valid pathname at > /usr/lib/perl5/vendor_perl/NagiosGrapher.pm line 1158 > fileparse(): need a valid pathname at > /usr/lib/perl5/vendor_perl/NagiosGrapher.pm line 1158 > [FAILED] > > Do you have any advice? > > Thanks, > Palle > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Gerd > Mueller > Sent: Thursday, January 03, 2008 4:53 AM > To: Nagios Users Mailinglist > Subject: Re: [Nagios-users] rrd gaps > > Hi, > > the old NagiosGrapher interfaces (network/pipe) can cause huge > latency :-(. Thanks to a patch we got there is a new interface type > "file". The main advantages of this new interface are: > * no gaps any more > * no latency caused by NagiosGrapher > * restarting NagiosGrapher does not cause any gaps > > I am sorry but the documentation totally lacks this interface. But below > is all you need. > > Cheers, > > Gerd > > > > > > ngraph.ncfg: > > interface file > perffile_path /dev/shm > > nagios.cfg: > > process_performance_data=1 > service_perfdata_file=/dev//shm/service-perfdata > service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t > $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ > service_perfdata_file_mode=a > service_perfdata_file_processing_interval=60 > > service_perfdata_file_processing_command=process-service-perfdata-file > > > commands.cfg: > define command{ > command_name process-service-perfdata-file > command_line > mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ > } > > > > Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: > > Lars and Gerd, > > > > I am having a similar problem with rrd gaps. > > It was doing fine until I added 3 more hosts and 8 more services and then > > suddenly I get the rrd gaps, some graphs are even blank. > > > > My latency are as below (they seem pretty high compared to yours?): > > > > # nagiostats | grep -i latency > > Active Service Latency: 6.804 / 330.675 / 238.562 sec > > Active Host Latency: 0.000 / 0.000 / 0.000 sec > > > > > > nagiostats | grep -i total > > Used/High/Total Command Buffers: 0 / 8 / 4096 > > Used/High/Total Check Result Buffers: 85 / 106 / 4096 > > Total Services: 106 > > Total Service State Change: 0.000 / 0.000 / 0.000 % > > Total Hosts: 36 > > Total Host State Change: 0.000 / 0.000 / 0.000 % > > > > > > I also use the rpm package from linadd.org. > > nagios-2.9-1.i586.rpm, > > nagios-web-2.9-1.i586.rpm, > > nagios-plugins-1.4.9-1.i586.rpm, > > nagios-plugins-extras-1.4.9-1.i586.rpm > > nagios-graph-1.6.1-rc3.i586.rpm > > > > If you find any solution for this I would be more than happy :) > > > > Thanks, > > - Palle > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars > > Stavholm > > Sent: Wednesday, January 02, 2008 7:06 AM > > To: Mad Unix > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] rrd gaps > > > > Mad Unix wrote: > > > Can you tell me how did you implement graph beside the nagios > > > > Let's keep this on the list, shall we? > > > > I used rpm packages from linadd.org. > > > > > Thanks > > > > You're welcome. > > /L > > > > > On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: > > >> Gerd Mueller wrote: > > >>> Hi Lars, > > >>> > > >>> which interface are you using? And how big is your nagios' latency? > > >> I don't quite understand the first question there? > > >> We use the Nagios web interface with the nuvola theme? > > >> > > >> We have only a few hosts and around a hundred service checks, > > >> i.e. no heavy load here: > > >> > > >> # nagiostats | grep -i latency > > >> Active Service Latency: 0.000 / 0.335 / 0.135 sec > > >> Passive Service Latency: 0.000 / 0.000 / 0.000 sec > > >> Active Host Latency: 0.000 / 0.284 / 0.152 sec > > >> Passive Host Latency: 0.000 / 0.000 / 0.000 sec > > >> > > >> # nagiostats | grep -i total > > >> Used/High/Total Command Buffers: 0 / 1 / 4096 > > >> Total Services: 114 > > >> Total Service State Change: 0.000 / 12.110 / 0.106 % > > >> Total Hosts: 19 > > >> Total Host State Change: 0.000 / 0.000 / 0.000 % > > >> > > >> /L > > >> > > >> > > >>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: > > >>>> Hi All, > > >>>> > > >>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. > > >>>> > > >>>> It all works very well, except for one annoying problem: > > >>>> I get gaps in the graphs, and I don't understand why. > > >>>> > > >>>> Any ideas appreciated, sample graph attached. > > >>>> > > >>>> R > > >>>> /Lars > > >>>> > > ------------------------------------------------------------------------- > > >>>> This SF.net email is sponsored by: Microsoft > > >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. > > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > >>>> _______________________________________________ Nagios-users mailing > > list Nagios-users at 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: Microsoft > > >> Defy all challenges. Microsoft(R) Visual Studio 2005. > > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > >> _______________________________________________ > > >> Nagios-users mailing list > > >> Nagios-users at 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: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 -- Gerd Mueller Senior Consultant NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 N?rnberg Tel: +49 911 92885-0 | Fax: +49 911 92885-33 GF: Julian Hein | AG N?rnberg HRB18461 http://www.netways.de | gmueller at netways.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marcus.fleige at de.rhenus.com Thu Jan 3 15:57:45 2008 From: marcus.fleige at de.rhenus.com (Marcus Fleige) Date: Thu, 3 Jan 2008 15:57:45 +0100 Subject: rrd gaps In-Reply-To: <477B55BF.3080602@telcotec.se> References: <477B55BF.3080602@telcotec.se> Message-ID: <477CF7E9.6080900@de.rhenus.com> Hi there, here's my 2 cents about the gaps: From my experience, gaps are normally caused by missing datasets over a period of time. RRD expects data within a time window defined in the "step" and "heartbeat" variables. If data doesn't arrive in this window, the value for the defined time frame is set to "NaN" (Not a number), resulting in not being displayed in the generated image. Missing datasets are often caused by: - Huge service latencies, e.g. if you got lots of services to be checked in a rather short period of time. (Got this with 3k services, which should be checked in a period of 2 minutes -> 25 Checks/second is quite a lot...) - non-fitting service check intervals. If you check your services in a 15 minute interval, but your rrd files expect data every 5 minutes, only every third time frame will be filled, resulting in gaps. Maybe this is of some use. Regards, Marcus Fleige ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Thu Jan 3 15:55:19 2008 From: marc at ena.com (Marc Powell) Date: Thu, 3 Jan 2008 08:55:19 -0600 Subject: monitor server temparature In-Reply-To: References: Message-ID: > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users- > bounces at lists.sourceforge.net] On Behalf Of Sukesh /IT/BLR/JIG/IN > Sent: Wednesday, January 02, 2008 11:26 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] monitor server temparature > > Hi > Need to monitor CPU temparature or server temparature using nagios.how we > can do the monitoring using nagios 3.0a4 . http://www.google.com/search?q=nagios+lm_sensors -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From jorg.schulz at telia.com Thu Jan 3 16:43:49 2008 From: jorg.schulz at telia.com (jorg) Date: Thu, 3 Jan 2008 16:43:49 +0100 Subject: graphical mapping tool In-Reply-To: <4b008f7d0801030433u53303f7t279bca4bf717ea31@mail.gmail.com> References: <4b008f7d0801030433u53303f7t279bca4bf717ea31@mail.gmail.com> Message-ID: <35787.3260895305$1199375079@news.gmane.org> Hi Try www.nagvis.org or http://www.andyshellam.eu/nlg The first one is what u need J /J Fr?n: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] F?r Alex Dehaini Skickat: den 3 januari 2008 13:34 Till: nagios-users at lists.sourceforge.net ?mne: [Nagios-users] graphical mapping tool Hi Guys, Nagios is a wonderful tool but it's status map is not the prettiest. Any tool out there that I can integrate with nagios to produce nice maps. I will love something that I can use to create multiple maps that are all connected to a general map? -- Alex Dehaini Developer Site - www.alexdehaini.com Email - alexdehaini at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From palleje at gmail.com Thu Jan 3 16:50:01 2008 From: palleje at gmail.com (Palle L Jensen) Date: Thu, 3 Jan 2008 10:50:01 -0500 Subject: rrd gaps In-Reply-To: <1199370714.24284.8.camel@netl-gm-01.int.netways.de> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> <1199353964.15132.11.camel@netl-gm-01.int.netways.de> <006901c84e13$bceea240$98ad38a6@na.dsmain.com> <1199370714.24284.8.camel@netl-gm-01.int.netways.de> Message-ID: <007301c84e20$4def0850$98ad38a6@na.dsmain.com> I am not using the most current version of Nagiosgrapher; I am using Nagiosgrapher 1.6.1-rc3. How hard is it to upgrade to the newest version? Currently I am running below versions and packages from linadd.org, on Linux distro - Fedora Core 6. - nagios-2.9-1.i586.rpm, - nagios-web-2.9-1.i586.rpm, - nagios-plugins-1.4.9-1.i586.rpm, - nagios-plugins-extras-1.4.9-1.i586.rpm - nagios-graph-1.6.1-rc3.i586.rpm Thanks, Palle -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Gerd M?ller Sent: Thursday, January 03, 2008 9:32 AM To: Palle L Jensen Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] rrd gaps Which version of NagiosGrapher are you using? The file interface exists only in the newest version. Gerd Am Donnerstag, den 03.01.2008, 09:20 -0500 schrieb Palle L Jensen: > Gerd, > > After making below changes as you suggested, I did a "pre-flight" > > # nagios -v /etc/nagios/nagios.cfg > > Nagios 2.9 > Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last Modified: > 04-10-2007 > License: GPL > > Reading configuration data... > > Running pre-flight check on configuration data... > > Checking services... > Checked 101 services. > Checking hosts... > Checked 36 hosts. > Checking host groups... > Checked 6 host groups. > Checking service groups... > Checked 5 service groups. > Checking contacts... > Checked 1 contacts. > Checking contact groups... > Checked 1 contact groups. > Checking service escalations... > Checked 0 service escalations. > Checking service dependencies... > Checked 0 service dependencies. > Checking host escalations... > Checked 0 host escalations. > Checking host dependencies... > Checked 0 host dependencies. > Checking commands... > Checked 61 commands. > Checking time periods... > Checked 3 time periods. > Checking extended host info definitions... > Checked 36 extended host info definitions. > Checking extended service info definitions... > Checked 92 extended service info definitions. > Checking for circular paths between hosts... > Checking for circular host and service dependencies... > Checking global event handlers... > Checking obsessive compulsive processor commands... > Checking misc settings... > > Total Warnings: 0 > Total Errors: 0 > > Things look okay - No serious problems were detected during the pre-flight > check > > And then a restart of Nagios and Nagiosgrapher, were Nagiosgrapher failed, > > [root at laknagios /]# /etc/init.d/nagios restart > /etc/init.d/nagios: warning: nagios is not running > Shutting down nagios: [ OK ] > Starting nagios: [ OK ] > [root at laknagios /]# /etc/init.d/nagios restart > Shutting down nagios: [ OK ] > Starting nagios: [ OK ] > [root at laknagios /]# /etc/init.d/ngraph restart > Shutting down ngraph: [ OK ] > Starting ngraph: Use of uninitialized value in bitwise and (&) at > /usr/sbin/ngraph line 670. > No such signal: SIGfileparse(): need a valid pathname at > /usr/lib/perl5/vendor_perl/NagiosGrapher.pm line 1158 > fileparse(): need a valid pathname at > /usr/lib/perl5/vendor_perl/NagiosGrapher.pm line 1158 > [FAILED] > > Do you have any advice? > > Thanks, > Palle > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Gerd > Mueller > Sent: Thursday, January 03, 2008 4:53 AM > To: Nagios Users Mailinglist > Subject: Re: [Nagios-users] rrd gaps > > Hi, > > the old NagiosGrapher interfaces (network/pipe) can cause huge > latency :-(. Thanks to a patch we got there is a new interface type > "file". The main advantages of this new interface are: > * no gaps any more > * no latency caused by NagiosGrapher > * restarting NagiosGrapher does not cause any gaps > > I am sorry but the documentation totally lacks this interface. But below > is all you need. > > Cheers, > > Gerd > > > > > > ngraph.ncfg: > > interface file > perffile_path /dev/shm > > nagios.cfg: > > process_performance_data=1 > service_perfdata_file=/dev//shm/service-perfdata > service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t > $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ > service_perfdata_file_mode=a > service_perfdata_file_processing_interval=60 > > service_perfdata_file_processing_command=process-service-perfdata-file > > > commands.cfg: > define command{ > command_name process-service-perfdata-file > command_line > mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ > } > > > > Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: > > Lars and Gerd, > > > > I am having a similar problem with rrd gaps. > > It was doing fine until I added 3 more hosts and 8 more services and then > > suddenly I get the rrd gaps, some graphs are even blank. > > > > My latency are as below (they seem pretty high compared to yours?): > > > > # nagiostats | grep -i latency > > Active Service Latency: 6.804 / 330.675 / 238.562 sec > > Active Host Latency: 0.000 / 0.000 / 0.000 sec > > > > > > nagiostats | grep -i total > > Used/High/Total Command Buffers: 0 / 8 / 4096 > > Used/High/Total Check Result Buffers: 85 / 106 / 4096 > > Total Services: 106 > > Total Service State Change: 0.000 / 0.000 / 0.000 % > > Total Hosts: 36 > > Total Host State Change: 0.000 / 0.000 / 0.000 % > > > > > > I also use the rpm package from linadd.org. > > nagios-2.9-1.i586.rpm, > > nagios-web-2.9-1.i586.rpm, > > nagios-plugins-1.4.9-1.i586.rpm, > > nagios-plugins-extras-1.4.9-1.i586.rpm > > nagios-graph-1.6.1-rc3.i586.rpm > > > > If you find any solution for this I would be more than happy :) > > > > Thanks, > > - Palle > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars > > Stavholm > > Sent: Wednesday, January 02, 2008 7:06 AM > > To: Mad Unix > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] rrd gaps > > > > Mad Unix wrote: > > > Can you tell me how did you implement graph beside the nagios > > > > Let's keep this on the list, shall we? > > > > I used rpm packages from linadd.org. > > > > > Thanks > > > > You're welcome. > > /L > > > > > On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: > > >> Gerd Mueller wrote: > > >>> Hi Lars, > > >>> > > >>> which interface are you using? And how big is your nagios' latency? > > >> I don't quite understand the first question there? > > >> We use the Nagios web interface with the nuvola theme? > > >> > > >> We have only a few hosts and around a hundred service checks, > > >> i.e. no heavy load here: > > >> > > >> # nagiostats | grep -i latency > > >> Active Service Latency: 0.000 / 0.335 / 0.135 sec > > >> Passive Service Latency: 0.000 / 0.000 / 0.000 sec > > >> Active Host Latency: 0.000 / 0.284 / 0.152 sec > > >> Passive Host Latency: 0.000 / 0.000 / 0.000 sec > > >> > > >> # nagiostats | grep -i total > > >> Used/High/Total Command Buffers: 0 / 1 / 4096 > > >> Total Services: 114 > > >> Total Service State Change: 0.000 / 12.110 / 0.106 % > > >> Total Hosts: 19 > > >> Total Host State Change: 0.000 / 0.000 / 0.000 % > > >> > > >> /L > > >> > > >> > > >>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: > > >>>> Hi All, > > >>>> > > >>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. > > >>>> > > >>>> It all works very well, except for one annoying problem: > > >>>> I get gaps in the graphs, and I don't understand why. > > >>>> > > >>>> Any ideas appreciated, sample graph attached. > > >>>> > > >>>> R > > >>>> /Lars > > >>>> > > ------------------------------------------------------------------------- > > >>>> This SF.net email is sponsored by: Microsoft > > >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. > > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > >>>> _______________________________________________ Nagios-users mailing > > list Nagios-users at 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: Microsoft > > >> Defy all challenges. Microsoft(R) Visual Studio 2005. > > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > >> _______________________________________________ > > >> Nagios-users mailing list > > >> Nagios-users at 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: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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 -- Gerd Mueller Senior Consultant NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 N?rnberg Tel: +49 911 92885-0 | Fax: +49 911 92885-33 GF: Julian Hein | AG N?rnberg HRB18461 http://www.netways.de | gmueller at netways.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From missgaynor at gmail.com Thu Jan 3 17:08:33 2008 From: missgaynor at gmail.com (Gloria Gaynor) Date: Thu, 3 Jan 2008 17:08:33 +0100 Subject: service notifications sent to only host admins Message-ID: Let's say I have two hosts "alfa" and "bravo" and two separate contact groups belonging to the hosts: define contactgroup { contactgroup_name alfa-admins members foo,bar } define contactgroup { contactgroup_name beta-admins members baz } define host { host_name alfa contact_groups alfa-admins } define host { host_name bravo contact_groups bravo-admins } I'd like to define a service that's monitored on both hosts but notifies only the contact groups belonging to the host. define service { service_description the_service check_command check_the_service host_name alfa,bravo contact_groups alfa,beta } The example above would notify contact "baz" if the_service goes down on "alfa". I don't want that. I know I could define two separate services or define some custom script as the contact's service_notification_command that filters out the messages that don't "belong" to the contact but both of these solutions seem pretty ugly to me. What's the preferred way to do this? Thanks! Gloria ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gmueller at netways.de Thu Jan 3 17:09:38 2008 From: gmueller at netways.de (Gerd Mueller) Date: Thu, 03 Jan 2008 17:09:38 +0100 Subject: rrd gaps In-Reply-To: <007301c84e20$4def0850$98ad38a6@na.dsmain.com> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> <1199353964.15132.11.camel@netl-gm-01.int.netways.de> <006901c84e13$bceea240$98ad38a6@na.dsmain.com> <1199370714.24284.8.camel@netl-gm-01.int.netways.de> <007301c84e20$4def0850$98ad38a6@na.dsmain.com> Message-ID: <1199376578.24284.12.camel@netl-gm-01.int.netways.de> It's not hard. Just use "make update". That should be enough ;-) Could be that you have to remove old NagiosGrapher.pm File Gerd Am Donnerstag, den 03.01.2008, 10:50 -0500 schrieb Palle L Jensen: > I am not using the most current version of Nagiosgrapher; I am using > Nagiosgrapher 1.6.1-rc3. How hard is it to upgrade to the newest version? > > Currently I am running below versions and packages from linadd.org, on Linux > distro - Fedora Core 6. > - nagios-2.9-1.i586.rpm, > - nagios-web-2.9-1.i586.rpm, > - nagios-plugins-1.4.9-1.i586.rpm, > - nagios-plugins-extras-1.4.9-1.i586.rpm > - nagios-graph-1.6.1-rc3.i586.rpm > > > Thanks, > Palle > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Gerd M?ller > Sent: Thursday, January 03, 2008 9:32 AM > To: Palle L Jensen > Cc: Nagios Users Mailinglist > Subject: Re: [Nagios-users] rrd gaps > > Which version of NagiosGrapher are you using? The file interface exists > only in the newest version. > > Gerd > > Am Donnerstag, den 03.01.2008, 09:20 -0500 schrieb Palle L Jensen: > > Gerd, > > > > After making below changes as you suggested, I did a "pre-flight" > > > > # nagios -v /etc/nagios/nagios.cfg > > > > Nagios 2.9 > > Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) Last > Modified: > > 04-10-2007 > > License: GPL > > > > Reading configuration data... > > > > Running pre-flight check on configuration data... > > > > Checking services... > > Checked 101 services. > > Checking hosts... > > Checked 36 hosts. > > Checking host groups... > > Checked 6 host groups. > > Checking service groups... > > Checked 5 service groups. > > Checking contacts... > > Checked 1 contacts. > > Checking contact groups... > > Checked 1 contact groups. > > Checking service escalations... > > Checked 0 service escalations. > > Checking service dependencies... > > Checked 0 service dependencies. > > Checking host escalations... > > Checked 0 host escalations. > > Checking host dependencies... > > Checked 0 host dependencies. > > Checking commands... > > Checked 61 commands. > > Checking time periods... > > Checked 3 time periods. > > Checking extended host info definitions... > > Checked 36 extended host info definitions. > > Checking extended service info definitions... > > Checked 92 extended service info definitions. > > Checking for circular paths between hosts... > > Checking for circular host and service dependencies... > > Checking global event handlers... > > Checking obsessive compulsive processor commands... > > Checking misc settings... > > > > Total Warnings: 0 > > Total Errors: 0 > > > > Things look okay - No serious problems were detected during the pre-flight > > check > > > > And then a restart of Nagios and Nagiosgrapher, were Nagiosgrapher failed, > > > > [root at laknagios /]# /etc/init.d/nagios restart > > /etc/init.d/nagios: warning: nagios is not running > > Shutting down nagios: [ OK ] > > Starting nagios: [ OK ] > > [root at laknagios /]# /etc/init.d/nagios restart > > Shutting down nagios: [ OK ] > > Starting nagios: [ OK ] > > [root at laknagios /]# /etc/init.d/ngraph restart > > Shutting down ngraph: [ OK ] > > Starting ngraph: Use of uninitialized value in bitwise and (&) at > > /usr/sbin/ngraph line 670. > > No such signal: SIGfileparse(): need a valid pathname at > > /usr/lib/perl5/vendor_perl/NagiosGrapher.pm line 1158 > > fileparse(): need a valid pathname at > > /usr/lib/perl5/vendor_perl/NagiosGrapher.pm line 1158 > > [FAILED] > > > > Do you have any advice? > > > > Thanks, > > Palle > > > > -----Original Message----- > > From: nagios-users-bounces at lists.sourceforge.net > > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Gerd > > Mueller > > Sent: Thursday, January 03, 2008 4:53 AM > > To: Nagios Users Mailinglist > > Subject: Re: [Nagios-users] rrd gaps > > > > Hi, > > > > the old NagiosGrapher interfaces (network/pipe) can cause huge > > latency :-(. Thanks to a patch we got there is a new interface type > > "file". The main advantages of this new interface are: > > * no gaps any more > > * no latency caused by NagiosGrapher > > * restarting NagiosGrapher does not cause any gaps > > > > I am sorry but the documentation totally lacks this interface. But below > > is all you need. > > > > Cheers, > > > > Gerd > > > > > > > > > > > > ngraph.ncfg: > > > > interface file > > perffile_path /dev/shm > > > > nagios.cfg: > > > > process_performance_data=1 > > service_perfdata_file=/dev//shm/service-perfdata > > service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t > > $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ > > service_perfdata_file_mode=a > > service_perfdata_file_processing_interval=60 > > > > service_perfdata_file_processing_command=process-service-perfdata-file > > > > > > commands.cfg: > > define command{ > > command_name process-service-perfdata-file > > command_line > > mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ > > } > > > > > > > > Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: > > > Lars and Gerd, > > > > > > I am having a similar problem with rrd gaps. > > > It was doing fine until I added 3 more hosts and 8 more services and > then > > > suddenly I get the rrd gaps, some graphs are even blank. > > > > > > My latency are as below (they seem pretty high compared to yours?): > > > > > > # nagiostats | grep -i latency > > > Active Service Latency: 6.804 / 330.675 / 238.562 sec > > > Active Host Latency: 0.000 / 0.000 / 0.000 sec > > > > > > > > > nagiostats | grep -i total > > > Used/High/Total Command Buffers: 0 / 8 / 4096 > > > Used/High/Total Check Result Buffers: 85 / 106 / 4096 > > > Total Services: 106 > > > Total Service State Change: 0.000 / 0.000 / 0.000 % > > > Total Hosts: 36 > > > Total Host State Change: 0.000 / 0.000 / 0.000 % > > > > > > > > > I also use the rpm package from linadd.org. > > > nagios-2.9-1.i586.rpm, > > > nagios-web-2.9-1.i586.rpm, > > > nagios-plugins-1.4.9-1.i586.rpm, > > > nagios-plugins-extras-1.4.9-1.i586.rpm > > > nagios-graph-1.6.1-rc3.i586.rpm > > > > > > If you find any solution for this I would be more than happy :) > > > > > > Thanks, > > > - Palle > > > > > > -----Original Message----- > > > From: nagios-users-bounces at lists.sourceforge.net > > > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars > > > Stavholm > > > Sent: Wednesday, January 02, 2008 7:06 AM > > > To: Mad Unix > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] rrd gaps > > > > > > Mad Unix wrote: > > > > Can you tell me how did you implement graph beside the nagios > > > > > > Let's keep this on the list, shall we? > > > > > > I used rpm packages from linadd.org. > > > > > > > Thanks > > > > > > You're welcome. > > > /L > > > > > > > On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: > > > >> Gerd Mueller wrote: > > > >>> Hi Lars, > > > >>> > > > >>> which interface are you using? And how big is your nagios' latency? > > > >> I don't quite understand the first question there? > > > >> We use the Nagios web interface with the nuvola theme? > > > >> > > > >> We have only a few hosts and around a hundred service checks, > > > >> i.e. no heavy load here: > > > >> > > > >> # nagiostats | grep -i latency > > > >> Active Service Latency: 0.000 / 0.335 / 0.135 sec > > > >> Passive Service Latency: 0.000 / 0.000 / 0.000 sec > > > >> Active Host Latency: 0.000 / 0.284 / 0.152 sec > > > >> Passive Host Latency: 0.000 / 0.000 / 0.000 sec > > > >> > > > >> # nagiostats | grep -i total > > > >> Used/High/Total Command Buffers: 0 / 1 / 4096 > > > >> Total Services: 114 > > > >> Total Service State Change: 0.000 / 12.110 / 0.106 % > > > >> Total Hosts: 19 > > > >> Total Host State Change: 0.000 / 0.000 / 0.000 % > > > >> > > > >> /L > > > >> > > > >> > > > >>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: > > > >>>> Hi All, > > > >>>> > > > >>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. > > > >>>> > > > >>>> It all works very well, except for one annoying problem: > > > >>>> I get gaps in the graphs, and I don't understand why. > > > >>>> > > > >>>> Any ideas appreciated, sample graph attached. > > > >>>> > > > >>>> R > > > >>>> /Lars > > > >>>> > > > > ------------------------------------------------------------------------- > > > >>>> This SF.net email is sponsored by: Microsoft > > > >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. > > > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > >>>> _______________________________________________ Nagios-users > mailing > > > list Nagios-users at 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: Microsoft > > > >> Defy all challenges. Microsoft(R) Visual Studio 2005. > > > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > >> _______________________________________________ > > > >> Nagios-users mailing list > > > >> Nagios-users at 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: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at 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: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at 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 -- Gerd Mueller Senior Consultant NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 N?rnberg Tel: +49 911 92885-0 | Fax: +49 911 92885-33 GF: Julian Hein | AG N?rnberg HRB18461 http://www.netways.de | gmueller at netways.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gmueller at netways.de Thu Jan 3 17:14:31 2008 From: gmueller at netways.de (Gerd Mueller) Date: Thu, 03 Jan 2008 17:14:31 +0100 Subject: rrd gaps In-Reply-To: <477CF7E9.6080900@de.rhenus.com> References: <477B55BF.3080602@telcotec.se> <477CF7E9.6080900@de.rhenus.com> Message-ID: <1199376871.10235.1.camel@netl-gm-01.int.netways.de> Hi > From my experience, gaps are normally caused by missing datasets over a > period of time. Yes! > Missing datasets are often caused by: > > - Huge service latencies That's why I recommend the new interface type. I prevents latencies (see below). > > - non-fitting service check intervals. NagiosGrapher takes care of this. No need for manuell actions. Gerd ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at gridshield.net Thu Jan 3 17:18:15 2008 From: marc at gridshield.net (Marc DeTrano) Date: Thu, 03 Jan 2008 10:18:15 -0600 Subject: graphical mapping tool In-Reply-To: References: Message-ID: <477D0AC7.4070508@gridshield.net> > Date: Thu, 3 Jan 2008 12:33:56 +0000 > From: "Alex Dehaini" > Subject: [Nagios-users] graphical mapping tool > ... > Hi Guys, > > Nagios is a wonderful tool but it's status map is not the prettiest. Any > tool out there that I can integrate with nagios to produce nice maps. I will My company maintains NEXSM, which you may also find helpful. http://www.nagiosexchange.org/Frontends.37.0.html?&tx_netnagext_pi1[p_view]=625&tx_netnagext_pi1[page]=30%3A10 Marc DeTrano ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From rsasko at niag.com Thu Jan 3 17:26:34 2008 From: rsasko at niag.com (Rich Sasko) Date: Thu, 3 Jan 2008 10:26:34 -0600 Subject: Nortel switches Message-ID: I have several Nortel Switches I would like to monitor with Nagios. Some of them are in stacks of two to four switches. I can get the information from the first switch in the stack but I cannot figure out how to monitor the other 1 to 3 switches in the stack. Does anyone have an idea? Our current service definition uses the following format: define service{ use generic-service host_name Core service_description Port 3 Link Status check_command check_snmp!-C public -o ifOperStatus.3 -r 1 -m RFC1213-MIB } Richard Sasko Niagara Lasalle Corp Phone: (219) 853-6272 Mobile: (219) 484-5617 E-mail: rsasko at niag.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Thu Jan 3 18:26:18 2008 From: knobdy at gmail.com (Brian Loe) Date: Thu, 3 Jan 2008 11:26:18 -0600 Subject: best solution for configuration changes Message-ID: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> I was thinking of some convoluted solution for users to configure "their" configuration files and them diffed or uniqed to the original with that being saved and then the newly updated config file to be copied over the old one and nagios reloaded, etc., etc.. BUT, I figure there has to be a better way. What I have for host config files are: windows.cfg net.cfg resources.cfg unix.cfg security.cfg Each of those host config files has a group of people associated with them - and I'll need to break out the services.cfg file the same way. I haven't added a user to the system either - and I'm not even sure what the best way of doing that! The end result of what ever I do allows, for instance, people in the security group to modify /etc/nagios/security_hosts.cfg and /etc/nagios/security_svcs.cfg, and the changes would be saved somewhere (repository or log file or whatever), and then nagios service would be reloaded. Suggestions? Solutions? It'd be great if this could be done via a/the web interface but I haven't found one that works that well yet - and I still am not sure how to provide users with a login/pw that they can change upon the next log on (obviously I'm not an expert linux admin)! -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Thu Jan 3 18:30:56 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 03 Jan 2008 17:30:56 +0000 Subject: best solution for configuration changes In-Reply-To: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> References: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> Message-ID: <477D1BD0.9030008@googlemail.com> Brian Loe wrote: > I was thinking of some convoluted solution for users to configure > "their" configuration files and them diffed or uniqed to the original > with that being saved and then the newly updated config file to be > copied over the old one and nagios reloaded, etc., etc.. BUT, I figure > there has to be a better way. What I have for host config files are: > > windows.cfg > net.cfg > resources.cfg > unix.cfg > security.cfg > > Each of those host config files has a group of people associated with > them - and I'll need to break out the services.cfg file the same way. > > I haven't added a user to the system either - and I'm not even sure > what the best way of doing that! > > The end result of what ever I do allows, for instance, people in the > security group to modify /etc/nagios/security_hosts.cfg and > /etc/nagios/security_svcs.cfg, and the changes would be saved > somewhere (repository or log file or whatever), and then nagios > service would be reloaded. > > Suggestions? Solutions? It'd be great if this could be done via a/the > web interface but I haven't found one that works that well yet - and I > still am not sure how to provide users with a login/pw that they can > change upon the next log on (obviously I'm not an expert linux admin)! Revision Control? Get Subversion. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From MPetersen at gs1us.org Thu Jan 3 18:35:22 2008 From: MPetersen at gs1us.org (Petersen, Mark) Date: Thu, 3 Jan 2008 12:35:22 -0500 Subject: check_by_ssh against localhost segfaults? Message-ID: <54B7F7DBCA12D94CA3FE17B68F1461A70452D8A8@LVNJEVS205.UCCORG.org> I'm trying to run check_by_ssh against my localhost (for consistency purposes.) I'm using forced command execution with ssh: `cat /home/nagios/.ssh/authorized_keys2` command="/home/nagios/bin/check_by_ssh.sh" ssh-dss AAAAB3N nagios_check_by_ssh /usr/lib/nagios/plugins/check_by_ssh -i /etc/nagios2/keys/check_by_ssh -l nagios -H localhost -C 'Disk_Space -m /root -w 15% -c 10%' -t 20 This check works fine (same authorized_keys, same script) on remote hosts, but segfaults against localhost. Localhost kernel: [5081242.311916] check_by_ssh[15109]: segfault at 0000000000000000 rip 00002b68aaa130f0 rsp 00007fff00450888 error 4 As the nagios user I run: `ssh -v -i /etc/nagios2/keys/check_by_ssh localhost 'Disk_Space -m /root -w 15% -c 10%'` debug1: read PEM private key done: type DSA debug1: Remote: Forced command: /home/nagios/bin/check_by_ssh.sh debug1: Authentication succeeded (publickey). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug1: Sending command: Disk_Space -m /root -w 15% -c 10% debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: channel 0: free: client-session, nchannels 1 debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0 debug1: Exit status 1 `ssh -v -i /etc/nagios2/keys/check_by_ssh otherhost 'Disk_Space -m /root -w 15% -c 10%'` debug1: read PEM private key done: type DSA debug1: Remote: Forced command: /home/nagios/bin/check_by_ssh.sh debug1: Authentication succeeded (publickey). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug1: Sending command: Disk_Space -m /root -w 15% -c 10% debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 DISK OK - free space: / 320 MB (67% inode=96%);| /=159MB;407;431;96;479 debug1: channel 0: free: client-session, nchannels 1 debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.0 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0 debug1: Exit status 0 The only difference is the output from check_by_ssh.sh on the remote host (and an exit code.) Since the check_by_ssh.sh (/home/nagios actually) was rsynced from localhost to otherhost it seems it should be ok. If I export SSH_ORIGINAL_COMMAND and run check_by_ssh.sh on localhost it works ok, so I don't think it's the script. Nagios is reporting status as "(Return code of 139 is out of bounds)." This is on Ubuntu 6.10, all versions of everything (ssh client, server, nagios-plugins, etc.) are the same. Any ideas, I'm kind of at a loss... mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Thu Jan 3 18:38:59 2008 From: knobdy at gmail.com (Brian Loe) Date: Thu, 3 Jan 2008 11:38:59 -0600 Subject: best solution for configuration changes In-Reply-To: <477D1BD0.9030008@googlemail.com> References: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> <477D1BD0.9030008@googlemail.com> Message-ID: <3c4611bc0801030938m3e4e22f8t673c83ebc3f16da3@mail.gmail.com> On Jan 3, 2008 11:30 AM, Hari Sekhon wrote: > > Revision Control? > > Get Subversion. > > -h > I've used subversion in the past and it worked well for what I was doing - but that was all cron and script driven and there were plenty of examples to "borrow" from. This needs to be user driven and I have not yet found any examples to "borrow" from, which is why I'm asking the list. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Thu Jan 3 18:42:38 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 03 Jan 2008 17:42:38 +0000 Subject: best solution for configuration changes In-Reply-To: <3c4611bc0801030938m3e4e22f8t673c83ebc3f16da3@mail.gmail.com> References: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> <477D1BD0.9030008@googlemail.com> <3c4611bc0801030938m3e4e22f8t673c83ebc3f16da3@mail.gmail.com> Message-ID: <477D1E8E.1040804@googlemail.com> Brian Loe wrote: > On Jan 3, 2008 11:30 AM, Hari Sekhon > wrote: > > > Revision Control? > > Get Subversion. > > -h > > > I've used subversion in the past and it worked well for what I was > doing - but that was all cron and script driven and there were plenty > of examples to "borrow" from. This needs to be user driven and I have > not yet found any examples to "borrow" from, which is why I'm asking > the list. You could also check out cfengine. Haven't had time for it myself though. -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From perldork at webwizarddesign.com Thu Jan 3 18:44:44 2008 From: perldork at webwizarddesign.com (Max) Date: Thu, 3 Jan 2008 12:44:44 -0500 Subject: best solution for configuration changes In-Reply-To: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> References: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> Message-ID: Hi, On Jan 3, 2008 12:26 PM, Brian Loe wrote: > I was thinking of some convoluted solution for users to configure "their" > configuration files and them diffed or uniqed to the original with that > being saved and then the newly updated config file to be copied over the old > one and nagios reloaded, etc., etc.. BUT, I figure there has to be a better > way. What I have for host config files are: Subversion is a good idea, only caveat is that your users have to learn to write Nagios configuration snippets. I have used NagioSQL in the past, it is decent :), the problem is that the GUIs I have used for Nagios configuration generation do not make use of inheritence or the other nice OO features of the Nagios configuration framework, it can also be quite time consuming to massage your hand-designed Nagios configuration into a format that can be imported into or ingested by the Nagios GUIs (some come with import tools). If you use Subversion, I recommend going with the web_dav module as you can then limit who can access what part of your Nagios configuration repository based on group membership; e.g. nagios/ etc/ security-group/ windows-group/ On the Nagios server side you could have a cron job that updated the configs every N minutes or even a sub-version commit trigger that would run a "nagios -v /path/nagios.cfg" check on your configuration and either 1) restart Nagios if the configuration is good or 2) alert you if someone has broken the configs. You could even integrate Trac and get a nice project management interface with ticketing capabilities to let people make requests for configuration changes, one that lets you and any other monitoring team members you have document your monitoring set up with the built in Wiki and the graphviz plugin for diagrams, etc. http://trac.edgewall.org/ - Max ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Thu Jan 3 18:48:28 2008 From: knobdy at gmail.com (Brian Loe) Date: Thu, 3 Jan 2008 11:48:28 -0600 Subject: best solution for configuration changes In-Reply-To: References: Message-ID: <3c4611bc0801030948t73472cebqfbcd0cf49e1b885c@mail.gmail.com> On Jan 3, 2008 11:41 AM, Valdinger, Stephen (DOV, MSX) < svalding at doverchem.com> wrote: > Fruity is a great tool. It is driven by a MySQL back-end. Users make > changes in the web interface, which get saved to the database. Once all is > reviewed, you can verify everything in the web before writing the actual > configuration files. Being a web app, something as simple as a .htaccess > file will work for your authentication, or you can incorporate it however > you like. This is not for the 3.x branch, and is currently being revamped > into a project called Lilac. It should be very interesting once it is done. > The project intends to create a web-configuration front end to manage many > of the major open-source network monitoring tools such as Nagios and Cacti, > etc? > > > > Stephen Valdinger > I'm watching this project, and have been for awhile, because I use both Nagios and Cacti - but it has not yet hit the point of development that I'm able to use it...the simple htaccess file is a part of the problem actually - what's the mechanism for allowing users to change their own passwords, via the web?! :) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hpsekhon at googlemail.com Thu Jan 3 18:58:36 2008 From: hpsekhon at googlemail.com (Hari Sekhon) Date: Thu, 03 Jan 2008 17:58:36 +0000 Subject: best solution for configuration changes In-Reply-To: <3c4611bc0801030948t73472cebqfbcd0cf49e1b885c@mail.gmail.com> References: <3c4611bc0801030948t73472cebqfbcd0cf49e1b885c@mail.gmail.com> Message-ID: <477D224C.2080008@googlemail.com> Brian Loe wrote: > > > On Jan 3, 2008 11:41 AM, Valdinger, Stephen (DOV, MSX) > > wrote: > > Fruity is a great tool. It is driven by a MySQL back-end. Users > make changes in the web interface, which get saved to the > database. Once all is reviewed, you can verify everything in the > web before writing the actual configuration files. Being a web > app, something as simple as a .htaccess file will work for your > authentication, or you can incorporate it however you like. This > is not for the 3.x branch, and is currently being revamped into a > project called Lilac. It should be very interesting once it is > done. The project intends to create a web-configuration front end > to manage many of the major open-source network monitoring tools > such as Nagios and Cacti, etc? > > Stephen Valdinger > > > > I'm watching this project, and have been for awhile, because I use > both Nagios and Cacti - but it has not yet hit the point of > development that I'm able to use it...the simple htaccess file is a > part of the problem actually - what's the mechanism for allowing users > to change their own passwords, via the web?! :) It needs proper forms based authenticated, not .htaccess for that. I still think that revision control configuration is quite important though. So there you have 2 feature requests Stephen: 1. Forms based authentication 2. Revision Control. Perhaps some integration with Subversion underneath it? -h -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Thu Jan 3 18:59:32 2008 From: knobdy at gmail.com (Brian Loe) Date: Thu, 3 Jan 2008 11:59:32 -0600 Subject: best solution for configuration changes In-Reply-To: References: Message-ID: <3c4611bc0801030959i3e685c97jec59f5164a51316f@mail.gmail.com> On Jan 3, 2008 11:46 AM, Valdinger, Stephen (DOV, MSX) < svalding at doverchem.com> wrote: > I'm a member of the lilac project as it happens. I can put in a feature > request for that. > > > Users can be administered at least as well as they are via Cacti - and hey, why not use the same system for lilac, cacti AND nagios?! But also, last time I tried fruity it only had room for the default configuration files. I need to have individual config files for each user group. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Thu Jan 3 19:02:06 2008 From: knobdy at gmail.com (Brian Loe) Date: Thu, 3 Jan 2008 12:02:06 -0600 Subject: best solution for configuration changes In-Reply-To: <477D224C.2080008@googlemail.com> References: <3c4611bc0801030948t73472cebqfbcd0cf49e1b885c@mail.gmail.com> <477D224C.2080008@googlemail.com> Message-ID: <3c4611bc0801031002j1a01c6i347de36eb57069df@mail.gmail.com> On Jan 3, 2008 11:58 AM, Hari Sekhon wrote: > It needs proper forms based authenticated, not .htaccess for that. > > I still think that revision control configuration is quite important > though. > > So there you have 2 feature requests Stephen: > > 1. Forms based authentication > 2. Revision Control. Perhaps some integration with Subversion underneath > it? > > -h > Absolutely, and as I expressed in my original e-mail, I was planning some level of archiving, which is a MUST for allowing non-Nagios users to begin editing configuration files. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stava at telcotec.se Thu Jan 3 19:14:13 2008 From: stava at telcotec.se (Lars Stavholm) Date: Thu, 03 Jan 2008 19:14:13 +0100 Subject: rrd gaps In-Reply-To: <477CF7E9.6080900@de.rhenus.com> References: <477B55BF.3080602@telcotec.se> <477CF7E9.6080900@de.rhenus.com> Message-ID: <477D25F5.7010101@telcotec.se> Marcus Fleige wrote: > Hi there, > > here's my 2 cents about the gaps: > > From my experience, gaps are normally caused by missing datasets over a > period of time. RRD expects data within a time window defined in > the "step" and "heartbeat" variables. If data doesn't arrive in this > window, the value for the defined time frame is set to "NaN" (Not a > number), resulting in not being displayed in the generated image. > > Missing datasets are often caused by: > > - Huge service latencies, e.g. if you got lots of services to be checked > in a rather short period of time. (Got this with 3k services, which > should be checked in a period of 2 minutes -> 25 Checks/second is quite > a lot...) > > - non-fitting service check intervals. If you check your services in a > 15 minute interval, but your rrd files expect data every 5 minutes, only > every third time frame will be filled, resulting in gaps. > > Maybe this is of some use. It is, it explains a lot. I'll do some adjustments and tests and report back to this thread. Thanks /L ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From throck at duke.edu Thu Jan 3 19:27:29 2008 From: throck at duke.edu (Tom Throckmorton) Date: Thu, 03 Jan 2008 13:27:29 -0500 Subject: best solution for configuration changes In-Reply-To: References: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> Message-ID: <477D2911.20407@duke.edu> On 01/03/2008 12:44 PM, Max wrote: > On the Nagios server side you could have a cron job that updated the > configs every N minutes or even a sub-version commit trigger that > would run a "nagios -v /path/nagios.cfg" check on your configuration > and either 1) restart Nagios if the configuration is good or 2) alert > you if someone has broken the configs. ...or, do the pre-flight check using a pre-commit hook, so that the broken configs never make it to the nagios server in the first place ;-) -tt -- Tom Throckmorton OIT - CSI Duke University ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From svalding at kent.edu Thu Jan 3 20:42:34 2008 From: svalding at kent.edu (svalding at kent.edu) Date: Thu, 03 Jan 2008 14:42:34 -0500 Subject: HP Printers Message-ID: List, I want to start monitoring our network printers. I have Nagios 2.10 installed with 1.4.10 plugins. I have configured one printer to test with and have it in nagios right now with just a ping service check. In testing the check_hpjd plugin from the terminal it gave me an output of ("Ready "). The documentation states that it will monitor for open trays, low tonter, paper jams and things like that. Will the check_hpjd alert on those issues automatically because the only options I see in it are -H for hostname and -C community name? How do I go about checking just for say low toner? -------------- next part -------------- A non-text attachment was scrubbed... Name: svalding.vcf Type: text/x-vcard Size: 131 bytes Desc: Card for URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From patrick.morris at hp.com Thu Jan 3 20:47:35 2008 From: patrick.morris at hp.com (Patrick Morris) Date: Thu, 3 Jan 2008 11:47:35 -0800 Subject: HP Printers In-Reply-To: References: Message-ID: <20080103194735.GX8781@pmorris.usa.hp.com> On Thu, 03 Jan 2008, svalding at kent.edu wrote: > List, > > I want to start monitoring our network printers. I have Nagios 2.10 > installed with 1.4.10 plugins. I have configured one printer to test > with and have it in nagios right now with just a ping service check. In > testing the check_hpjd plugin from the terminal it gave me an output of > ("Ready "). The documentation states that it will monitor for open > trays, low tonter, paper jams and things like that. Will the check_hpjd > alert on those issues automatically because the only options I see in it > are -H for hostname and -C community name? How do I go about checking > just for say low toner? You don't need to do anything, but this is one of those things that's very easy to test yourself. Try pulling out all the paper or yanking a toner cartridge. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Matthias.Flacke at gmx.de Thu Jan 3 21:39:36 2008 From: Matthias.Flacke at gmx.de (Matthias Flacke) Date: Thu, 03 Jan 2008 21:39:36 +0100 Subject: best solution for configuration changes In-Reply-To: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> References: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> Message-ID: <477D4808.4030208@gmx.de> I'd like to suggest a completely different approach - again with the plugin check_multi (http://my-plugin.de/check_multi) which I yesterday introduced in another context. ;-) Take the following scenario: you have a parent check_multi service for each region (user/admin/organisational) you want to serve and it is configured within nagios by you - this is the fix frame. Now the flexible part - the plugin configuration. Multiple child plugins are configured in a plain ASCII file like the following: # group1.cmd command [ proc1 ] = check_procs -C abc ... command [ disk1 ] = check_disk -w ... command [ load ] = check_load ... ... This command file is easy to understand, to change and to test (on the command line). There has nothing to be changed in Nagios, no need to run any further 'nagios -v' check. So you can delegate this job to your users. If the users do anything wrong with it, they only earn an error message (which is shown in Nagios parent plugin output) and at worst a CRITICAL state for their parent service. But Nagios remains sane and integer. These check_multi configs can be maintained by SVN, and security is based on standard Unix access control. The only disadvantage: all child checks only have one parent. This means only one notification, escalation logics a.s.o. If you want to split this, take a second service. And another point: it's more or less Nagios3 stuff because it extensively uses multiline output. Greetz, Matthias Brian Loe wrote: > I was thinking of some convoluted solution for users to configure > "their" configuration files and them diffed or uniqed to the original > with that being saved and then the newly updated config file to be > copied over the old one and nagios reloaded, etc., etc.. BUT, I figure > there has to be a better way. What I have for host config files are: > > windows.cfg > net.cfg > resources.cfg > unix.cfg > security.cfg > > Each of those host config files has a group of people associated with > them - and I'll need to break out the services.cfg file the same way. > > I haven't added a user to the system either - and I'm not even sure what > the best way of doing that! > > The end result of what ever I do allows, for instance, people in the > security group to modify /etc/nagios/security_hosts.cfg and > /etc/nagios/security_svcs.cfg, and the changes would be saved somewhere > (repository or log file or whatever), and then nagios service would be > reloaded. > > Suggestions? Solutions? It'd be great if this could be done via a/the > web interface but I haven't found one that works that well yet - and I > still am not sure how to provide users with a login/pw that they can > change upon the next log on (obviously I'm not an expert linux admin)! -- http://my-plugin.de/check_multi ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kemotaha at gmail.com Thu Jan 3 23:22:05 2008 From: kemotaha at gmail.com (Nathan Blackham) Date: Thu, 3 Jan 2008 15:22:05 -0700 Subject: Acking an alert by replying to an email Message-ID: We use email to send all our alerts out, whether it goes to our phones over SMS or to our emails. Is there a script or an addon, that I can have nagios monitor the email box that sends out the alerts to watch for replies and ACK alerts based upon a reply? Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From MPetersen at gs1us.org Thu Jan 3 23:26:06 2008 From: MPetersen at gs1us.org (Petersen, Mark) Date: Thu, 3 Jan 2008 17:26:06 -0500 Subject: Acking an alert by replying to an email In-Reply-To: References: Message-ID: <54B7F7DBCA12D94CA3FE17B68F1461A70452DA82@LVNJEVS205.UCCORG.org> I believe most people use procmail and submit external commands through procmail rules. ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Nathan Blackham Sent: Thursday, January 03, 2008 4:22 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Acking an alert by replying to an email We use email to send all our alerts out, whether it goes to our phones over SMS or to our emails. Is there a script or an addon, that I can have nagios monitor the email box that sends out the alerts to watch for replies and ACK alerts based upon a reply? Nathan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cchiriboga at palosanto.com Thu Jan 3 23:54:06 2008 From: cchiriboga at palosanto.com (Carlos Chiriboga Calderon) Date: Thu, 03 Jan 2008 17:54:06 -0500 Subject: NagiosGraph + NRPE Message-ID: <1199400846.3137.11.camel@ibmlaptop.novasoft.com> Hi everybudy, first i need express my excuses becouse my knowledge of english is very low. I hava a monitor (nagios) server (linux) in my lan and one remote server in internet (nrpe on linux), i want configure the nagiosgraph for read the stadistics of the remote server, how can i do this? Best regards, Carlos Chiriboga Calderon Guayaquil Ecuador ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stava at telcotec.se Fri Jan 4 00:41:32 2008 From: stava at telcotec.se (Lars Stavholm) Date: Fri, 04 Jan 2008 00:41:32 +0100 Subject: rrd gaps In-Reply-To: <1199353964.15132.11.camel@netl-gm-01.int.netways.de> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> <1199353964.15132.11.camel@netl-gm-01.int.netways.de> Message-ID: <477D72AC.6090008@telcotec.se> Yup, thanks Gerd, that did the trick. I followed your instructions to the letter and ended up with no gaps:) Thanks /L Gerd Mueller wrote: > Hi, > > the old NagiosGrapher interfaces (network/pipe) can cause huge > latency :-(. Thanks to a patch we got there is a new interface type > "file". The main advantages of this new interface are: > * no gaps any more > * no latency caused by NagiosGrapher > * restarting NagiosGrapher does not cause any gaps > > I am sorry but the documentation totally lacks this interface. But below > is all you need. > > Cheers, > > Gerd > > > > > > ngraph.ncfg: > > interface file > perffile_path /dev/shm > > nagios.cfg: > > process_performance_data=1 > service_perfdata_file=/dev//shm/service-perfdata > service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t > $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ > service_perfdata_file_mode=a > service_perfdata_file_processing_interval=60 > > service_perfdata_file_processing_command=process-service-perfdata-file > > > commands.cfg: > define command{ > command_name process-service-perfdata-file > command_line > mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ > } > > > > Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: >> Lars and Gerd, >> >> I am having a similar problem with rrd gaps. >> It was doing fine until I added 3 more hosts and 8 more services and then >> suddenly I get the rrd gaps, some graphs are even blank. >> >> My latency are as below (they seem pretty high compared to yours?): >> >> # nagiostats | grep -i latency >> Active Service Latency: 6.804 / 330.675 / 238.562 sec >> Active Host Latency: 0.000 / 0.000 / 0.000 sec >> >> >> nagiostats | grep -i total >> Used/High/Total Command Buffers: 0 / 8 / 4096 >> Used/High/Total Check Result Buffers: 85 / 106 / 4096 >> Total Services: 106 >> Total Service State Change: 0.000 / 0.000 / 0.000 % >> Total Hosts: 36 >> Total Host State Change: 0.000 / 0.000 / 0.000 % >> >> >> I also use the rpm package from linadd.org. >> nagios-2.9-1.i586.rpm, >> nagios-web-2.9-1.i586.rpm, >> nagios-plugins-1.4.9-1.i586.rpm, >> nagios-plugins-extras-1.4.9-1.i586.rpm >> nagios-graph-1.6.1-rc3.i586.rpm >> >> If you find any solution for this I would be more than happy :) >> >> Thanks, >> - Palle >> >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net >> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars >> Stavholm >> Sent: Wednesday, January 02, 2008 7:06 AM >> To: Mad Unix >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] rrd gaps >> >> Mad Unix wrote: >>> Can you tell me how did you implement graph beside the nagios >> Let's keep this on the list, shall we? >> >> I used rpm packages from linadd.org. >> >>> Thanks >> You're welcome. >> /L >> >>> On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: >>>> Gerd Mueller wrote: >>>>> Hi Lars, >>>>> >>>>> which interface are you using? And how big is your nagios' latency? >>>> I don't quite understand the first question there? >>>> We use the Nagios web interface with the nuvola theme? >>>> >>>> We have only a few hosts and around a hundred service checks, >>>> i.e. no heavy load here: >>>> >>>> # nagiostats | grep -i latency >>>> Active Service Latency: 0.000 / 0.335 / 0.135 sec >>>> Passive Service Latency: 0.000 / 0.000 / 0.000 sec >>>> Active Host Latency: 0.000 / 0.284 / 0.152 sec >>>> Passive Host Latency: 0.000 / 0.000 / 0.000 sec >>>> >>>> # nagiostats | grep -i total >>>> Used/High/Total Command Buffers: 0 / 1 / 4096 >>>> Total Services: 114 >>>> Total Service State Change: 0.000 / 12.110 / 0.106 % >>>> Total Hosts: 19 >>>> Total Host State Change: 0.000 / 0.000 / 0.000 % >>>> >>>> /L >>>> >>>> >>>>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: >>>>>> Hi All, >>>>>> >>>>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. >>>>>> >>>>>> It all works very well, except for one annoying problem: >>>>>> I get gaps in the graphs, and I don't understand why. >>>>>> >>>>>> Any ideas appreciated, sample graph attached. >>>>>> >>>>>> R >>>>>> /Lars >>>>>> >> ------------------------------------------------------------------------- >>>>>> This SF.net email is sponsored by: Microsoft >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>> _______________________________________________ Nagios-users mailing >> list Nagios-users at 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: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From brock at kuhsefamily.org Fri Jan 4 00:47:18 2008 From: brock at kuhsefamily.org (Brock Kuhse) Date: Thu, 3 Jan 2008 16:47:18 -0700 Subject: rrd gaps In-Reply-To: <477D72AC.6090008@telcotec.se> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> <1199353964.15132.11.camel@netl-gm-01.int.netways.de> <477D72AC.6090008@telcotec.se> Message-ID: <006f01c84e62$f9c92650$ed5b72f0$@org> Likewise here. Those gaps were driving me crazy, and switching the interface to "file" made them go away (and made our clients happier). Thank you very much, Gerd. - Brock -----Original Message----- From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars Stavholm Sent: Thursday, January 03, 2008 4:42 PM To: Gerd Mueller Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] rrd gaps Yup, thanks Gerd, that did the trick. I followed your instructions to the letter and ended up with no gaps:) Thanks /L Gerd Mueller wrote: > Hi, > > the old NagiosGrapher interfaces (network/pipe) can cause huge > latency :-(. Thanks to a patch we got there is a new interface type > "file". The main advantages of this new interface are: > * no gaps any more > * no latency caused by NagiosGrapher > * restarting NagiosGrapher does not cause any gaps > > I am sorry but the documentation totally lacks this interface. But below > is all you need. > > Cheers, > > Gerd > > > > > > ngraph.ncfg: > > interface file > perffile_path /dev/shm > > nagios.cfg: > > process_performance_data=1 > service_perfdata_file=/dev//shm/service-perfdata > service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t > $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ > service_perfdata_file_mode=a > service_perfdata_file_processing_interval=60 > > service_perfdata_file_processing_command=process-service-perfdata-file > > > commands.cfg: > define command{ > command_name process-service-perfdata-file > command_line > mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ > } > > > > Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: >> Lars and Gerd, >> >> I am having a similar problem with rrd gaps. >> It was doing fine until I added 3 more hosts and 8 more services and then >> suddenly I get the rrd gaps, some graphs are even blank. >> >> My latency are as below (they seem pretty high compared to yours?): >> >> # nagiostats | grep -i latency >> Active Service Latency: 6.804 / 330.675 / 238.562 sec >> Active Host Latency: 0.000 / 0.000 / 0.000 sec >> >> >> nagiostats | grep -i total >> Used/High/Total Command Buffers: 0 / 8 / 4096 >> Used/High/Total Check Result Buffers: 85 / 106 / 4096 >> Total Services: 106 >> Total Service State Change: 0.000 / 0.000 / 0.000 % >> Total Hosts: 36 >> Total Host State Change: 0.000 / 0.000 / 0.000 % >> >> >> I also use the rpm package from linadd.org. >> nagios-2.9-1.i586.rpm, >> nagios-web-2.9-1.i586.rpm, >> nagios-plugins-1.4.9-1.i586.rpm, >> nagios-plugins-extras-1.4.9-1.i586.rpm >> nagios-graph-1.6.1-rc3.i586.rpm >> >> If you find any solution for this I would be more than happy :) >> >> Thanks, >> - Palle >> >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net >> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars >> Stavholm >> Sent: Wednesday, January 02, 2008 7:06 AM >> To: Mad Unix >> Cc: nagios-users at lists.sourceforge.net >> Subject: Re: [Nagios-users] rrd gaps >> >> Mad Unix wrote: >>> Can you tell me how did you implement graph beside the nagios >> Let's keep this on the list, shall we? >> >> I used rpm packages from linadd.org. >> >>> Thanks >> You're welcome. >> /L >> >>> On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: >>>> Gerd Mueller wrote: >>>>> Hi Lars, >>>>> >>>>> which interface are you using? And how big is your nagios' latency? >>>> I don't quite understand the first question there? >>>> We use the Nagios web interface with the nuvola theme? >>>> >>>> We have only a few hosts and around a hundred service checks, >>>> i.e. no heavy load here: >>>> >>>> # nagiostats | grep -i latency >>>> Active Service Latency: 0.000 / 0.335 / 0.135 sec >>>> Passive Service Latency: 0.000 / 0.000 / 0.000 sec >>>> Active Host Latency: 0.000 / 0.284 / 0.152 sec >>>> Passive Host Latency: 0.000 / 0.000 / 0.000 sec >>>> >>>> # nagiostats | grep -i total >>>> Used/High/Total Command Buffers: 0 / 1 / 4096 >>>> Total Services: 114 >>>> Total Service State Change: 0.000 / 12.110 / 0.106 % >>>> Total Hosts: 19 >>>> Total Host State Change: 0.000 / 0.000 / 0.000 % >>>> >>>> /L >>>> >>>> >>>>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: >>>>>> Hi All, >>>>>> >>>>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. >>>>>> >>>>>> It all works very well, except for one annoying problem: >>>>>> I get gaps in the graphs, and I don't understand why. >>>>>> >>>>>> Any ideas appreciated, sample graph attached. >>>>>> >>>>>> R >>>>>> /Lars >>>>>> >> ------------------------------------------------------------------------- >>>>>> This SF.net email is sponsored by: Microsoft >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>> _______________________________________________ Nagios-users mailing >> list Nagios-users at 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: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cchiriboga at palosanto.com Fri Jan 4 02:06:58 2008 From: cchiriboga at palosanto.com (Carlos Chiriboga Calderon) Date: Thu, 03 Jan 2008 20:06:58 -0500 Subject: NagiosGraph + NRPE Message-ID: <1199408818.3137.22.camel@ibmlaptop.novasoft.com> ****************Spanish******************************************* Gracias por la ayuda, pero he resuelto mi problema de una manera poco elegante pero efectiva, modifique la definicion del comando check_nrpe de tal forma que quedara asi: ****************************************************************** ****************English******************************************* Thanks for the help, but i did resolv my problem with the dirty method, i did change the definition of the command check_nrpe to this: ****************************************************************** define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ && /usr/local/nagios/share/nagiosgraph/insert.pl "$LASTSERVICECHECK$|| $HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$" } Atentamente, Best regards, Carlos Chiriboga Calderon El jue, 03-01-2008 a las 17:09 -0600, German Solis Z. escribi?: > HOLA, programa tus chequeos de nrpe para que envien performance data > de esta forma: > > > http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN203 > > Saludos, suerte. > > > > > On Jan 3, 2008, at 4:54 PM, Carlos Chiriboga Calderon wrote: > > > Hi everybudy, first i need express my excuses becouse my knowledge of > > english is very low. > > > > I hava a monitor (nagios) server (linux) in my lan and one remote > > server > > in internet (nrpe on linux), i want configure the nagiosgraph for read > > the stadistics of the remote server, how can i do this? > > > > Best regards, > > > > Carlos Chiriboga Calderon > > Guayaquil Ecuador > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From s.shipway at auckland.ac.nz Fri Jan 4 04:16:22 2008 From: s.shipway at auckland.ac.nz (Steve Shipway) Date: Fri, 4 Jan 2008 16:16:22 +1300 Subject: graphical mapping tool In-Reply-To: <4b008f7d0801030433u53303f7t279bca4bf717ea31@mail.gmail.com> References: <4b008f7d0801030433u53303f7t279bca4bf717ea31@mail.gmail.com> Message-ID: <12A6FDDD13C460408A6E47E5DB1235A201960D7F@UXCHANGE3.UoA.auckland.ac.nz> Here, we use weathermap -- http://www.network-weathermap.com/ -- which can take data feeds from MRTG and Nagios as well as from Cacti. I have a home-grown remote editor 'weatherman' available from http://www.steveshipway.org/software/weathermap-3.5.zip (perl/Tcl for windows/linux/mac/etc) which is easier to use than the supplied one. This lets us have custom designed maps with nodes that link to MRTG graphs, Nagios status pages, or other maps, and change colour based on Nagios status while the links change colour based on MRTG traffic flow. Since I wrote the initial Nagios data plugin for Weathermap, let me know if you try it out and have any problems obtaining it or getting it to work. Steve ________________________________ From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Alex Dehaini Nagios is a wonderful tool but it's status map is not the prettiest. Any tool out there that I can integrate with nagios to produce nice maps. I will love something that I can use to create multiple maps that are all connected to a general map? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marc at ena.com Fri Jan 4 04:44:10 2008 From: marc at ena.com (Marc Powell) Date: Thu, 3 Jan 2008 21:44:10 -0600 Subject: graphical mapping tool In-Reply-To: <12A6FDDD13C460408A6E47E5DB1235A201960D7F@UXCHANGE3.UoA.auckland.ac.nz> References: <4b008f7d0801030433u53303f7t279bca4bf717ea31@mail.gmail.com> <12A6FDDD13C460408A6E47E5DB1235A201960D7F@UXCHANGE3.UoA.auckland.ac.nz> Message-ID: On Jan 3, 2008, at 9:16 PM, Steve Shipway wrote: > Here, we use weathermap -- http://www.network-weathermap.com/ -- > which can take data feeds from MRTG and Nagios as well as from > Cacti. I have a home-grown remote editor ?weatherman? available > from http://www.steveshipway.org/software/weathermap-3.5.zip (perl/ > Tcl for windows/linux/mac/etc) which is Thanks for the pointer Steve. This looks interesting. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From kyoxu at hotmail.com Fri Jan 4 05:00:34 2008 From: kyoxu at hotmail.com (Kelvin Xu) Date: Fri, 4 Jan 2008 12:00:34 +0800 Subject: nagios core dump and restart when check_nrpe Message-ID: Hi all, I have just installed Nagios 3.0rc1 into a Solaris 10 machine. Everything is working fine except when i tried to do a check_nrpe on a remote host or localhost. I check my /var/adm/messages. Below is a section of the output: Jan 4 10:16:39 pnsgsit1gw1 nagios[263]: [ID 702911 user.info] Caught SIGTERM, shutting down...Jan 4 10:16:39 pnsgsit1gw1 nagios[263]: [ID 702911 user.info] Successfully shutdown... (PID=263)Jan 4 10:16:39 pnsgsit1gw1 nagios[290]: [ID 702911 user.info] Nagios 3.0rc1 starting... (PID=290)Jan 4 10:16:39 pnsgsit1gw1 nagios[290]: [ID 702911 user.info] Local time is Fri Jan 04 10:16:39 SGT 2008Jan 4 10:16:39 pnsgsit1gw1 nagios[290]: [ID 702911 user.info] LOG VERSION: 2.0Jan 4 10:16:39 pnsgsit1gw1 nagios[291]: [ID 702911 user.info] Finished daemonizing... (New PID=291)Jan 4 10:17:53 pnsgsit1gw1 genunix: [ID 603404 kern.notice] NOTICE: core_log: nagios[302] setid process, core not dumped: /var/core/core.nagios.302.pnsgsit1gw1.210033.65541.1199413073Jan 4 10:17:53 pnsgsit1gw1 nagios[291]: [ID 702911 user.info] Caught SIGTERM, shutting down...Jan 4 10:17:53 pnsgsit1gw1 nagios[291]: [ID 702911 user.info] Successfully shutdown... (PID=291)Jan 4 10:17:53 pnsgsit1gw1 nagios[305]: [ID 702911 user.info] Nagios 3.0rc1 starting... (PID=305)Jan 4 10:17:53 pnsgsit1gw1 nagios[305]: [ID 702911 user.info] Local time is Fri Jan 04 10:17:53 SGT 2008Jan 4 10:17:53 pnsgsit1gw1 nagios[305]: [ID 702911 user.info] LOG VERSION: 2.0Jan 4 10:17:53 pnsgsit1gw1 nagios[306]: [ID 702911 user.info] Finished daemonizing... (New PID=306) This will repeat every few minutes and will not occur when i remove the nrpe service monitoring from the configuration. I tried to do a /usr/local/nagios/libexec/check_nrpe -H pnsgsit1gw2 -c check_load, The output seems fine except there is some addition characters appended to end. OK - load average: 0.00, 0.00, 0.00|load1=0.000;15.000;30.000;0; load5=0.000;10.000;25.000;0; load15=0.000;5.000;20.000;0;???p?: Below is my host configuration: define host{ use linux-server host_name pnsgsit1gw2 ; The name we're giving to this server alias pnsgsit1gw2 ; A longer name for the server address 10.106.127.106 ; IP address of the server} define service{ use local-service host_name pnsgsit1gw2 service_description NRPE check_command check_nrpe!check_load} define service{ use local-service ; Name of service template to use host_name pnsgsit1gw2 service_description HTTP check_command check_http notifications_enabled 0 } Anyone has any ideas of what could be the problem? Thanks Regards, Kelvin Xu _________________________________________________________________ Get your free suite of Windows Live services today! http://www.get.live.com/wl/all -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 09:17:08 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 09:17:08 +0100 (CET) Subject: check_hpasm error Message-ID: <20080104081709.04D8458004B@desire.netways.de> Hi list I try to use the check_hpasm plugin on the RH 5.0 Linux box running Nagios. I get the following error : "UNKNOWN - insufficient rights to call sudo /sbin/hpasmcli " * Content of etc/commands.cfg : # 'check_hpasm' command definition define command{ command_name check_hpasm command_line $USER1$/check_hpasm -v } * Content of etc/hostslinux.cfg : define service { host_name miysis use template-services service_description HP Hardware check_command check_hpasm } * Content of /etc/sudoers : nagios ALL=NOPASSWD: /sbin/hpasmcli, /opt/compaq/utils/hpasmcli, /sbin/hplog, /usr/sbin/hpacucli, /opt/compaq/acucli Do you have any hint ? Many thanks, - PO Michel (misterpo) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marcus.fleige at de.rhenus.com Fri Jan 4 09:41:28 2008 From: marcus.fleige at de.rhenus.com (Marcus Fleige) Date: Fri, 4 Jan 2008 09:41:28 +0100 Subject: check_hpasm error In-Reply-To: <20080104081709.04D8458004B@desire.netways.de> References: <20080104081709.04D8458004B@desire.netways.de> Message-ID: <477DF138.6090007@de.rhenus.com> Hello there, PO Michel schrieb am 04.01.2008 09:17 Uhr: > Hi list > > I try to use the check_hpasm plugin on the RH 5.0 Linux box running Nagios. > > I get the following error : "UNKNOWN - insufficient rights to call sudo /sbin/hpasmcli " > > [...] Actually, i got exactly the same problem on my systems. Could you have a look to your "/opt/compaq"-directory and check its permissions? Unter normal conditions, nagios user will not be allowed to go there, permissions are set to 750 on my machine. So, without being able to read it, the nagios users cannot execute /opt/compaq/utils/hpasmcli. I was not willing to change the permissions on all my machines, so i circumvented it by calling the check_hpasm-script directly via sudo: nrpe.cfg: command[check-hpasm]=sudo /usr/lib/nagios/plugins/check_hpasm -b $ARG1$ sudoers: nagios ALL=NOPASSWD:[...],/usr/lib/nagios/plugins/check_hpasm Maybe this helps? :-) Regards, Marcus Fleige ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 10:09:55 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 10:09:55 +0100 (CET) Subject: check_hpasm error In-Reply-To: <477DF138.6090007@de.rhenus.com> References: <477DF138.6090007@de.rhenus.com> Message-ID: <20080104090955.412BE58004B@desire.netways.de> Hi Marcus Thanks a lot for your quick and precious help. My purpose is also to make check_hpasm work through NRPE. But I get an "NRPE. Unable to read output" message. Here is my services.cfg file : define service { host_name miysis use template-services service_description HP Hardware check_command check_nrpe!check_hpasm } nrpe.cfg is : command[check_hpasm]=sudo /usr/local/nagios/libexec/check_hpasm -v - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=7868 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 10:10:05 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 10:10:05 +0100 (CET) Subject: check_hpasm error In-Reply-To: <477DF138.6090007@de.rhenus.com> References: <477DF138.6090007@de.rhenus.com> Message-ID: <20080104091005.9528E58004B@desire.netways.de> Hi Marcus Thanks a lot for your quick and precious help. My purpose is also to make check_hpasm work through NRPE. But I get an "NRPE. Unable to read output" message. Here is my services.cfg file : define service { host_name miysis use template-services service_description HP Hardware check_command check_nrpe!check_hpasm } nrpe.cfg is : command[check_hpasm]=sudo /usr/local/nagios/libexec/check_hpasm -v - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=7868 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 10:23:57 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 10:23:57 +0100 (CET) Subject: check_hparray Error Message-ID: <20080104092358.0EF9758004B@desire.netways.de> Hi list I try to use the check_hparray plugin through NRPE on the RHEL 5.0 Linux box running Nagios. I get the following error message : "check_hparray Error." Here are my config files : * /etc/sudoers nagios ALL=NOPASSWD: /sbin/hpasmcli, /opt/compaq/utils/hpasmcli, /sbin/hplog, /usr/sbin/hpacucli, /opt/compaq/acucli * etc/nrpe.cfg : command[check_hparray_slot1]=/usr/local/nagios/libexec/check_hparray -s 1 * etc/services.cfg : define service { host_name miysis use template-services service_description HP Raid Array 1 check_command check_nrpe!check_hparray_slot1 } Anything wrong in my config files ? Thanks in advance for your help, - PO Michel (misterpo) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Gerhard.Lausser at consol.de Fri Jan 4 10:31:26 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Fri, 4 Jan 2008 10:31:26 +0100 Subject: check_hpasm error In-Reply-To: <20080104090955.412BE58004B@desire.netways.de> References: <477DF138.6090007@de.rhenus.com> <20080104090955.412BE58004B@desire.netways.de> Message-ID: <01c401c84eb4$93f16610$a601000a@int.consol.de> Hi, can you please login as the nagios user on host miysis and execute sudo /sbin/hpasmcli -s help If you are asked for a password there, then maybe your sudo-configuration only allows you to call the bare command without any additional command line options. man sudoers says: A simple filename allows the user to run the command with any arguments he/she wishes. However, you may also specify command line argu? ments (including wildcards). Alternately, you can specify "" to indicate that the command may only be run without command line arguments. Maybe something like that is the reason. Does /sbin/hpasmcli exist? Is it a link? What about /opt/compaq/utils/hpasmcli? Does it run if you call sudo /opt/compaq/utils/hpasmcli -s help The "NRPE. Unable to read output" is typical for such siturations where a plugin's only output is a "password:". You need to fix the sudo-problem first. Another thing is the -v option. This is only for debugging if you call the plugin as standalone. With -v it outputs some lines of text and nagios will show the first one ("checking hpasmd process") instead of the last one with the summary. Greetings from Munich, Gerhard > -----Urspr?ngliche Nachricht----- > Von: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] Im > Auftrag von PO Michel > Gesendet: Freitag, 4. Januar 2008 10:10 > An: nagios-users at lists.sourceforge.net; pom at tpg.ch > Betreff: Re: [Nagios-users] check_hpasm error > > Hi Marcus > > Thanks a lot for your quick and precious help. > > My purpose is also to make check_hpasm work through NRPE. > > But I get an "NRPE. Unable to read output" message. > > Here is my services.cfg file : > > define service { > host_name miysis > use template-services > service_description HP Hardware > check_command check_nrpe!check_hpasm > } > > nrpe.cfg is : > > command[check_hpasm]=sudo /usr/local/nagios/libexec/check_hpasm -v > > > - PO Michel (misterpo) > > ----------------------- > This thread is located in the archive at this URL: > http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maill > isttofaq_pi1[showUid]=7868 > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 10:58:04 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 10:58:04 +0100 (CET) Subject: check_hpasm error In-Reply-To: <01c401c84eb4$93f16610$a601000a@int.consol.de> References: <01c401c84eb4$93f16610$a601000a@int.consol.de> Message-ID: <20080104095804.D28BF58004B@desire.netways.de> Hi Gerhard Thanks a lot for you reply. Yes, the sudo /sbin/hpasmcli -s help works run as nagios. I get the following output : CLEAR DISABLE ENABLE EXIT HELP QUIT SET SHOW /sbin/hpasmcli is a link to /opt/compaq/utils/hpasmcli which has appropriate Linux rights. I don't really feel comfortable with this sudoers functionality. I have treied to add wildcards like the following : nagios ALL = NOPASSWD: /sbin/hpasmcli, /opt/compaq/utils/*, /sbin/hplog, /usr/sbin/hpacucli, /opt/compaq/acucli without success. Do you think Nagios should run on another distro than RedHat 5.0 ? It is possible for me to make it run on Debian Etch... - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=7872 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 11:05:03 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 11:05:03 +0100 (CET) Subject: check_hpasm error In-Reply-To: <01c401c84eb4$93f16610$a601000a@int.consol.de> References: <01c401c84eb4$93f16610$a601000a@int.consol.de> Message-ID: <20080104100503.9491F58004B@desire.netways.de> Hi Gerhard Thanks a lot for you reply. Yes, the sudo /sbin/hpasmcli -s help works run as nagios. I get the following output : CLEAR DISABLE ENABLE EXIT HELP QUIT SET SHOW /sbin/hpasmcli is a link to /opt/compaq/utils/hpasmcli which has appropriate Linux rights. I don't really feel comfortable with this sudoers functionality. I have treied to add wildcards like the following : nagios ALL = NOPASSWD: /sbin/hpasmcli, /opt/compaq/utils/*, /sbin/hplog, /usr/sbin/hpacucli, /opt/compaq/acucli without success. Do you think Nagios should run on another distro than RedHat 5.0 ? It is possible for me to make it run on Debian Etch... - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=7872 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Gerhard.Lausser at consol.de Fri Jan 4 11:09:06 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Fri, 4 Jan 2008 11:09:06 +0100 Subject: check_hpasm error In-Reply-To: <20080104095804.D28BF58004B@desire.netways.de> References: <01c401c84eb4$93f16610$a601000a@int.consol.de> <20080104095804.D28BF58004B@desire.netways.de> Message-ID: <01d701c84eb9$d74a34a0$a601000a@int.consol.de> > Yes, the sudo /sbin/hpasmcli -s help works run as nagios. I > get the following output : > CLEAR DISABLE ENABLE EXIT HELP QUIT SET SHOW That's perfect so far. I think you even don't need the sudoers entry for /opt/compaq/utils/hpasmcli any more. What's the output if you call check_hpasm -v as the nagios user on miysis? > Do you think Nagios should run on another distro than RedHat 5.0 ? No, the ability to run hpasmcli with sudo should be sufficient. Gerhard ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 11:12:31 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 11:12:31 +0100 (CET) Subject: check_hpasm error In-Reply-To: <01d701c84eb9$d74a34a0$a601000a@int.consol.de> References: <01d701c84eb9$d74a34a0$a601000a@int.consol.de> Message-ID: <20080104101232.7DED358004B@desire.netways.de> Hi Gerhard I have already tried that and it works. Do you think that running NRPE under xinetd could raise problems ? - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=7875 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tva at d-fi.fr Fri Jan 4 11:26:11 2008 From: tva at d-fi.fr (Thierry VALLIER) Date: Fri, 4 Jan 2008 11:26:11 +0100 Subject: Plugins for IBM Storage DS4000 et Netapp FAS2xxx In-Reply-To: <5336CE5F5C88EC4384BF375B40A8EC1E528AA3@w2k-meu-exc.Exchange.d-fi.fr> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> <5336CE5F5C88EC4384BF375B40A8EC1E528AA3@w2k-meu-exc.Exchange.d-fi.fr> Message-ID: <5336CE5F5C88EC4384BF375B40A8EC1E7C9368@w2k-meu-exc.Exchange.d-fi.fr> Hi all I'm searching plugins for monitoring my storage IBM DS4000 and NetApp FAS2020. Can someone help me please ? Thanx in advance Bien cordialement, Best regards Thierry VALLIER GROUPE D.FI * : 01 58 87 32 65 * : 06 03 17 07 44 * : thierry.vallier at d-fi.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From sander at pictura-dp.nl Fri Jan 4 11:42:36 2008 From: sander at pictura-dp.nl (Sander Klein) Date: Fri, 04 Jan 2008 11:42:36 +0100 Subject: Plugins for IBM Storage DS4000 et Netapp FAS2xxx In-Reply-To: <5336CE5F5C88EC4384BF375B40A8EC1E7C9368@w2k-meu-exc.Exchange.d-fi.fr> References: <4d3f56c90801020413p1a00f145j4bd126f62c07c179@mail.gmail.com> <5336CE5F5C88EC4384BF375B40A8EC1E528AA3@w2k-meu-exc.Exchange.d-fi.fr> <5336CE5F5C88EC4384BF375B40A8EC1E7C9368@w2k-meu-exc.Exchange.d-fi.fr> Message-ID: <477E0D9C.4090504@pictura-dp.nl> Hey, Thierry VALLIER wrote: > > Hi all > > I?m searching plugins for monitoring my storage IBM DS4000 and NetApp > FAS2020. > Did you bother to look at http://www.nagiosexchange.org? Or even type something like 'nagios netapp' in google? It gives millions of hits.... Greets, Sander ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Gerhard.Lausser at consol.de Fri Jan 4 11:48:50 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Fri, 4 Jan 2008 11:48:50 +0100 Subject: check_hpasm error In-Reply-To: <20080104101232.7DED358004B@desire.netways.de> References: <01d701c84eb9$d74a34a0$a601000a@int.consol.de> <20080104101232.7DED358004B@desire.netways.de> Message-ID: <01d801c84ebf$645ac710$a601000a@int.consol.de> > running NRPE under xinetd could raise problems ? I don't think so. At least i never read about anyone having problems. Gerhard ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 12:16:26 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 12:16:26 +0100 (CET) Subject: check_hpasm error In-Reply-To: <01d801c84ebf$645ac710$a601000a@int.consol.de> References: <01d801c84ebf$645ac710$a601000a@int.consol.de> Message-ID: <20080104111626.182E558004B@desire.netways.de> Hi Gerhard Should I uncomment the commad_prefix option in the nrpe.cfg config file ? For the time being it is not used and my other NRPE checks (Disk, CPU, Swap) work... - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=7879 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Gerhard.Lausser at consol.de Fri Jan 4 12:37:34 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Fri, 4 Jan 2008 12:37:34 +0100 Subject: check_hpasm error In-Reply-To: <20080104111626.182E558004B@desire.netways.de> References: <01d801c84ebf$645ac710$a601000a@int.consol.de> <20080104111626.182E558004B@desire.netways.de> Message-ID: <01e201c84ec6$3305fa20$a601000a@int.consol.de> Hi Michel, > Should I uncomment the commad_prefix option in the nrpe.cfg > config file ? you would do that, if you want to run _all_ of your commands with sudo, which is a crazy thing to do under normal circumstances. Another usage may be something like command_prefix=PATH="$PATH:/some/special/path/to/nagios" > For the time being it is not used and my other NRPE checks > (Disk, CPU, Swap) work... Then you have absolutely no reason to change that. Adding sudo only to the commands which really need it like command[check_hpasm]=sudo /usr/local/nagios/libexec/check_hpasm and nowhere else is a good solution and doesn't bloat your sudoers file. Gerhard ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Jim.Melin at co.hennepin.mn.us Fri Jan 4 15:52:19 2008 From: Jim.Melin at co.hennepin.mn.us (Jim.Melin at co.hennepin.mn.us) Date: Fri, 4 Jan 2008 08:52:19 -0600 Subject: Acking an alert by replying to an email In-Reply-To: <54B7F7DBCA12D94CA3FE17B68F1461A70452DA82@LVNJEVS205.UCCORG.org> References: <54B7F7DBCA12D94CA3FE17B68F1461A70452DA82@LVNJEVS205.UCCORG.org> Message-ID: Anyone aware of a how-to on this? I'd need to be able to adapt lotus notes to do the necessary. "Petersen, Mark" Sent by: nagios-users-bounces at lists.sourceforge.net To "Nathan Blackham" , cc 01/03/2008 04:24 PM Subject Re: [Nagios-users] Acking an alert by replying to an email I believe most people use procmail and submit external commands through procmail rules. From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Nathan Blackham Sent: Thursday, January 03, 2008 4:22 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Acking an alert by replying to an email We use email to send all our alerts out, whether it goes to our phones over SMS or to our emails. Is there a script or an addon, that I can have nagios monitor the email box that sends out the alerts to watch for replies and ACK alerts based upon a reply? Nathan------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Fri Jan 4 15:56:07 2008 From: madunix at gmail.com (Mad Unix) Date: Fri, 4 Jan 2008 16:56:07 +0200 Subject: SMS gateway In-Reply-To: References: <4d3f56c90801030054m30d7dae6w3feaf7affda55985@mail.gmail.com> Message-ID: <4d3f56c90801040656g60f1c1f2j393158336a543430@mail.gmail.com> which tools do you use to send sms through GSM modem (connected via COM) through nagios: smstools, kanal, or smsclient On 1/3/08, Dennis H?nseler wrote: > > Hi, > > please take a look at this postings first: > > > http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.net&forum_name=nagios-users > > Thanks. > > On Thu, 3 Jan 2008 10:54:59 +0200, "Mad Unix" wrote: > > *I am trying to connect 2N Analog GSM Gateways* to my Linux Server in > order to send SMS messages to > my admins through nagios. > > 1. any one installed this device before on RHEL5 server if yes your help > appreciated. > 2. how can modify the nagios config in order to send SMS messages > > -- > madunix > > kind regards,Dennis H?nseler > > -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From dennis at huenseler.net Fri Jan 4 16:01:42 2008 From: dennis at huenseler.net (=?UTF-8?B?RGVubmlzIEjDvG5zZWxlcg==?=) Date: Fri, 04 Jan 2008 16:01:42 +0100 Subject: SMS gateway In-Reply-To: <4d3f56c90801040656g60f1c1f2j393158336a543430@mail.gmail.com> References: <4d3f56c90801030054m30d7dae6w3feaf7affda55985@mail.gmail.com> <4d3f56c90801040656g60f1c1f2j393158336a543430@mail.gmail.com> Message-ID: <477E4A56.3050204@huenseler.net> Hello Mad Unix, I use smstools to send the sms through gsm modem. Kind regards, Dennis Mad Unix schrieb: > which tools do you use to send sms through GSM modem (connected via > COM) through nagios: > smstools, kanal, or smsclient > > > On 1/3/08, *Dennis H?nseler* > wrote: > > Hi, > > please take a look at this postings first: > > http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.net&forum_name=nagios-users > > > Thanks. > > On Thu, 3 Jan 2008 10:54:59 +0200, "Mad Unix" wrote: > > *I am trying to connect 2N Analog GSM Gateways* to my Linux > Server in order to send SMS messages to > my admins through nagios. > > 1. any one installed this device before on RHEL5 server if yes > your help appreciated. > 2. how can modify the nagios config in order to send SMS messages > > -- > madunix > > kind regards,Dennis H?nseler > > > > > -- > madunix ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From madunix at gmail.com Fri Jan 4 16:05:44 2008 From: madunix at gmail.com (Mad Unix) Date: Fri, 4 Jan 2008 17:05:44 +0200 Subject: SMS gateway In-Reply-To: <477E4A56.3050204@huenseler.net> References: <4d3f56c90801030054m30d7dae6w3feaf7affda55985@mail.gmail.com> <4d3f56c90801040656g60f1c1f2j393158336a543430@mail.gmail.com> <477E4A56.3050204@huenseler.net> Message-ID: <4d3f56c90801040705t6bebe56fl40d1280396a7c5a9@mail.gmail.com> can you send me how did you configure the GSM modem (Serial Port) under linux, and the smstools configuration and also how did you add the sms to your nagios config, would be really appreciated Thanks On 1/4/08, Dennis H?nseler wrote: > > Hello Mad Unix, > > I use smstools to send the sms through gsm modem. > > Kind regards, > Dennis > > Mad Unix schrieb: > > which tools do you use to send sms through GSM modem (connected via > > COM) through nagios: > > smstools, kanal, or smsclient > > > > > > On 1/3/08, *Dennis H?nseler* > > wrote: > > > > Hi, > > > > please take a look at this postings first: > > > > > http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.net&forum_name=nagios-users > > < > http://sourceforge.net/mailarchive/forum.php?thread_name=iSeXznEC.1196286006.0182960.maco%40blava.net&forum_name=nagios-users > > > > > > Thanks. > > > > On Thu, 3 Jan 2008 10:54:59 +0200, "Mad Unix" wrote: > > > > *I am trying to connect 2N Analog GSM Gateways* to my Linux > > Server in order to send SMS messages to > > my admins through nagios. > > > > 1. any one installed this device before on RHEL5 server if yes > > your help appreciated. > > 2. how can modify the nagios config in order to send SMS > messages > > > > -- > > madunix > > > > kind regards,Dennis H?nseler > > > > > > > > > > -- > > madunix > > -- madunix -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From pom at tpg.ch Fri Jan 4 16:21:04 2008 From: pom at tpg.ch (PO Michel) Date: Fri, 4 Jan 2008 16:21:04 +0100 (CET) Subject: check_hpasm error In-Reply-To: <01e201c84ec6$3305fa20$a601000a@int.consol.de> References: <01e201c84ec6$3305fa20$a601000a@int.consol.de> Message-ID: <20080104152105.CC14458004B@desire.netways.de> Hi Gerhard I cannot get things to work. I currently have : nagios ALL=NOPASSWD: /sbin/hpasmcli, /opt/compaq/utils/*, /sbin/hplog, /usr/sbin/hpacucli, /opt/compaq/acucli, /usr/local/nagios/libexec/* in my /etc/sudoers file. What can I try more ? I would really like to convince my management that Nagios is the tool that we need but I am little bit afraid of the time you have to spend to configure it :-) - PO Michel (misterpo) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=7881 > Hi Michel, > > > Should I uncomment the commad_prefix option in the nrpe.cfg > > config file ? > you would do that, if you want to run _all_ of your commands with sudo, > which is a crazy thing to do under normal circumstances. Another usage may > be something like > command_prefix=PATH="$PATH:/some/special/path/to/nagios" > > > For the time being it is not used and my other NRPE checks > > (Disk, CPU, Swap) work... > Then you have absolutely no reason to change that. Adding sudo only to the > commands which really need it like > command[check_hpasm]=sudo /usr/local/nagios/libexec/check_hpasm > and nowhere else is a good solution and doesn't bloat your sudoers file. > > Gerhard > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From MPetersen at gs1us.org Fri Jan 4 16:24:23 2008 From: MPetersen at gs1us.org (Petersen, Mark) Date: Fri, 4 Jan 2008 10:24:23 -0500 Subject: Acking an alert by replying to an email In-Reply-To: References: <54B7F7DBCA12D94CA3FE17B68F1461A70452DA82@LVNJEVS205.UCCORG.org> Message-ID: <54B7F7DBCA12D94CA3FE17B68F1461A70452DC1E@LVNJEVS205.UCCORG.org> I think the easiest solution would be to have Lotus Notes forward mail for nagios at somewhere.com (or whatever from address you use) to nagios at nagios.somewhere.com and run procmail on the nagios server. Is this compatible with your setup? I don't really know much about Notes, but I assume it's not running it on the nagios box. mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From gmueller at netways.de Fri Jan 4 16:04:26 2008 From: gmueller at netways.de (Gerd Mueller) Date: Fri, 04 Jan 2008 16:04:26 +0100 Subject: rrd gaps In-Reply-To: <006f01c84e62$f9c92650$ed5b72f0$@org> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> <1199353964.15132.11.camel@netl-gm-01.int.netways.de> <477D72AC.6090008@telcotec.se> <006f01c84e62$f9c92650$ed5b72f0$@org> Message-ID: <1199459066.17883.3.camel@netl-gm-01.int.netways.de> :-) Yes, many thanks to Peter Tuschy, who wrote this patch. BTW: Today we put a "current" release on NagiosExchange. Hopefully this will be the next stable release. Zooming of graphs is the newest feature in this version. Cheers, Gerd Am Donnerstag, den 03.01.2008, 16:47 -0700 schrieb Brock Kuhse: > Likewise here. Those gaps were driving me crazy, and switching the > interface to "file" made them go away (and made our clients happier). > > Thank you very much, Gerd. > > - Brock > > -----Original Message----- > From: nagios-users-bounces at lists.sourceforge.net > [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars > Stavholm > Sent: Thursday, January 03, 2008 4:42 PM > To: Gerd Mueller > Cc: Nagios Users Mailinglist > Subject: Re: [Nagios-users] rrd gaps > > Yup, thanks Gerd, that did the trick. > > I followed your instructions to the letter > and ended up with no gaps:) > > Thanks > /L > > Gerd Mueller wrote: > > Hi, > > > > the old NagiosGrapher interfaces (network/pipe) can cause huge > > latency :-(. Thanks to a patch we got there is a new interface type > > "file". The main advantages of this new interface are: > > * no gaps any more > > * no latency caused by NagiosGrapher > > * restarting NagiosGrapher does not cause any gaps > > > > I am sorry but the documentation totally lacks this interface. But below > > is all you need. > > > > Cheers, > > > > Gerd > > > > > > > > > > > > ngraph.ncfg: > > > > interface file > > perffile_path /dev/shm > > > > nagios.cfg: > > > > process_performance_data=1 > > service_perfdata_file=/dev//shm/service-perfdata > > service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t > > $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ > > service_perfdata_file_mode=a > > service_perfdata_file_processing_interval=60 > > > > service_perfdata_file_processing_command=process-service-perfdata-file > > > > > > commands.cfg: > > define command{ > > command_name process-service-perfdata-file > > command_line > > mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ > > } > > > > > > > > Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: > >> Lars and Gerd, > >> > >> I am having a similar problem with rrd gaps. > >> It was doing fine until I added 3 more hosts and 8 more services and then > >> suddenly I get the rrd gaps, some graphs are even blank. > >> > >> My latency are as below (they seem pretty high compared to yours?): > >> > >> # nagiostats | grep -i latency > >> Active Service Latency: 6.804 / 330.675 / 238.562 sec > >> Active Host Latency: 0.000 / 0.000 / 0.000 sec > >> > >> > >> nagiostats | grep -i total > >> Used/High/Total Command Buffers: 0 / 8 / 4096 > >> Used/High/Total Check Result Buffers: 85 / 106 / 4096 > >> Total Services: 106 > >> Total Service State Change: 0.000 / 0.000 / 0.000 % > >> Total Hosts: 36 > >> Total Host State Change: 0.000 / 0.000 / 0.000 % > >> > >> > >> I also use the rpm package from linadd.org. > >> nagios-2.9-1.i586.rpm, > >> nagios-web-2.9-1.i586.rpm, > >> nagios-plugins-1.4.9-1.i586.rpm, > >> nagios-plugins-extras-1.4.9-1.i586.rpm > >> nagios-graph-1.6.1-rc3.i586.rpm > >> > >> If you find any solution for this I would be more than happy :) > >> > >> Thanks, > >> - Palle > >> > >> -----Original Message----- > >> From: nagios-users-bounces at lists.sourceforge.net > >> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars > >> Stavholm > >> Sent: Wednesday, January 02, 2008 7:06 AM > >> To: Mad Unix > >> Cc: nagios-users at lists.sourceforge.net > >> Subject: Re: [Nagios-users] rrd gaps > >> > >> Mad Unix wrote: > >>> Can you tell me how did you implement graph beside the nagios > >> Let's keep this on the list, shall we? > >> > >> I used rpm packages from linadd.org. > >> > >>> Thanks > >> You're welcome. > >> /L > >> > >>> On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: > >>>> Gerd Mueller wrote: > >>>>> Hi Lars, > >>>>> > >>>>> which interface are you using? And how big is your nagios' latency? > >>>> I don't quite understand the first question there? > >>>> We use the Nagios web interface with the nuvola theme? > >>>> > >>>> We have only a few hosts and around a hundred service checks, > >>>> i.e. no heavy load here: > >>>> > >>>> # nagiostats | grep -i latency > >>>> Active Service Latency: 0.000 / 0.335 / 0.135 sec > >>>> Passive Service Latency: 0.000 / 0.000 / 0.000 sec > >>>> Active Host Latency: 0.000 / 0.284 / 0.152 sec > >>>> Passive Host Latency: 0.000 / 0.000 / 0.000 sec > >>>> > >>>> # nagiostats | grep -i total > >>>> Used/High/Total Command Buffers: 0 / 1 / 4096 > >>>> Total Services: 114 > >>>> Total Service State Change: 0.000 / 12.110 / 0.106 % > >>>> Total Hosts: 19 > >>>> Total Host State Change: 0.000 / 0.000 / 0.000 % > >>>> > >>>> /L > >>>> > >>>> > >>>>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: > >>>>>> Hi All, > >>>>>> > >>>>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. > >>>>>> > >>>>>> It all works very well, except for one annoying problem: > >>>>>> I get gaps in the graphs, and I don't understand why. > >>>>>> > >>>>>> Any ideas appreciated, sample graph attached. > >>>>>> > >>>>>> R > >>>>>> /Lars > >>>>>> > >> ------------------------------------------------------------------------- > >>>>>> This SF.net email is sponsored by: Microsoft > >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2005. > >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>>>> _______________________________________________ Nagios-users mailing > >> list Nagios-users at 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: Microsoft > >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. > >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >>>> _______________________________________________ > >>>> Nagios-users mailing list > >>>> Nagios-users at 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: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2005. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at 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: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2005. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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 -- Gerd Mueller Senior Consultant NETWAYS GmbH | Deutschherrnstr. 47a | D-90429 N?rnberg Tel: +49 911 92885-0 | Fax: +49 911 92885-33 GF: Julian Hein | AG N?rnberg HRB18461 http://www.netways.de | gmueller at netways.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From knobdy at gmail.com Fri Jan 4 16:42:37 2008 From: knobdy at gmail.com (Brian Loe) Date: Fri, 4 Jan 2008 09:42:37 -0600 Subject: best solution for configuration changes In-Reply-To: <477D4808.4030208@gmx.de> References: <3c4611bc0801030926jf95c49dneeed3eb4e86ae498@mail.gmail.com> <477D4808.4030208@gmx.de> Message-ID: <3c4611bc0801040742q7a935c33ub1859defbe3902bf@mail.gmail.com> On Jan 3, 2008 2:39 PM, Matthias Flacke wrote: > > I'd like to suggest a completely different approach - again with the > plugin > check_multi (http://my-plugin.de/check_multi) which I yesterday introduced > in > another context. ;-) > > Take the following scenario: you have a parent check_multi service for > each > region (user/admin/organisational) you want to serve and it is configured > within nagios by you - this is the fix frame. > I'm not sure how this fits in with my need to allow my users to ADD and DELETE and MODIFY the devices defined in Nagios which THEY are responsible for (I'm with the Network and Sun teams, I don't want to manage the Windows servers or the security teams' devices). And right now another add-on I'd like is a WYSIWIG map configuration tool so I can layout the 2d map with a mouse! BUT, that's another thread. Might have to look into what 3.0 will get us, as I'm sure its worth the money regardless but I'm trying right now to sell the company on the value of opensource. :) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From marcus.fleige at de.rhenus.com Fri Jan 4 17:12:55 2008 From: marcus.fleige at de.rhenus.com (Marcus Fleige) Date: Fri, 4 Jan 2008 17:12:55 +0100 Subject: check_hpasm error In-Reply-To: <20080104152105.CC14458004B@desire.netways.de> References: <01e201c84ec6$3305fa20$a601000a@int.consol.de> <20080104152105.CC14458004B@desire.netways.de> Message-ID: <477E5B07.6050502@de.rhenus.com> Hi again, try to explicitly name your sudo-commands. Name the entry "/usr/local/libexec/check_hpasm *", that should allow your nagios user to run the command with any option without asking for a password. Regards, Marcus Fleige ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Jim.Melin at co.hennepin.mn.us Fri Jan 4 17:31:39 2008 From: Jim.Melin at co.hennepin.mn.us (Jim.Melin at co.hennepin.mn.us) Date: Fri, 4 Jan 2008 10:31:39 -0600 Subject: Acking an alert by replying to an email In-Reply-To: <54B7F7DBCA12D94CA3FE17B68F1461A70452DC1E@LVNJEVS205.UCCORG.org> References: <54B7F7DBCA12D94CA3FE17B68F1461A70452DC1E@LVNJEVS205.UCCORG.org> Message-ID: It's the procmail part that will be the political hot potato. Thou Shalt Have No Other Email Platform Before Me is the edict from on high, regarding notes. Not withstanding that the nagios server has to have a mailing agent of some sort to work of course. I'll see what I can squeak past the powers that be. "Petersen, Mark" Sent by: nagios-users-bounces at lists.sourceforge.net To , cc 01/04/2008 09:22 AM Subject Re: [Nagios-users] Acking an alert by replying to an email I think the easiest solution would be to have Lotus Notes forward mail for nagios at somewhere.com (or whatever from address you use) to nagios at nagios.somewhere.com and run procmail on the nagios server. Is this compatible with your setup? I don't really know much about Notes, but I assume it's not running it on the nagios box. mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Gerhard.Lausser at consol.de Fri Jan 4 17:45:54 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Fri, 4 Jan 2008 17:45:54 +0100 Subject: check_hpasm error In-Reply-To: <20080104152105.CC14458004B@desire.netways.de> References: <01e201c84ec6$3305fa20$a601000a@int.consol.de> <20080104152105.CC14458004B@desire.netways.de> Message-ID: <01f301c84ef1$45d4fbd0$a601000a@int.consol.de> Hi Michel, Hi Marcus ;-) now i see what's wrong here: in your sudoers you allow the nagios-user to execute /sbin/hpasmcli with sudo but according to the nrpe.cfg command[check_hpasm]=sudo /usr/local/nagios/libexec/check_hpasm you actually try to execute /usr/local/nagios/libexec/check_hpasm with sudo. Inside the check_hpasm i have some code which decides wether to execute "/sbin/hpasmcli" or "sudo /sbin/hpasmcli". This depends on the uid under which the plugin was started. You have two possibilities: 1. - Stay with the current sudoers configuration which works ("....Yes, the sudo /sbin/hpasmcli -s help works run as nagios. I get the following output....") - Tell NRPE to run check_hpasm as the nagios user: command[check_hpasm]=/usr/local/nagios/libexec/check_hpasm The check_hpasm would detect that it runs under a non-root uid and will call sudo /sbin/hpasmcli ... 2. - Add /usr/local/nagios/libexec/check_hpasm to the list of privileged commands in /etc/sudoers and keep your nrpe.cfg I would recommend Nr.1 > little bit afraid of the time you have to spend to configure it :-) If i can help convincing a management to accept Nagios, then it was worth it. Gerhard ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From stava at telcotec.se Fri Jan 4 21:27:34 2008 From: stava at telcotec.se (Lars Stavholm) Date: Fri, 04 Jan 2008 21:27:34 +0100 Subject: rrd gaps In-Reply-To: <1199459066.17883.3.camel@netl-gm-01.int.netways.de> References: <477B55BF.3080602@telcotec.se> <1199266342.12087.3.camel@netl-gm-01.int.netways.de> <477B60EA.4000407@telcotec.se> <4d3f56c90801020237k6414f191j682e04fe09ab2770@mail.gmail.com> <477B7E45.3020808@telcotec.se> <007501c84d6d$685a6df0$98ad38a6@na.dsmain.com> <1199353964.15132.11.camel@netl-gm-01.int.netways.de> <477D72AC.6090008@telcotec.se> <006f01c84e62$f9c92650$ed5b72f0$@org> <1199459066.17883.3.camel@netl-gm-01.int.netways.de> Message-ID: <477E96B6.3010000@telcotec.se> Gerd Mueller wrote: > :-) Yes, many thanks to Peter Tuschy, who wrote this patch. > > BTW: Today we put a "current" release on NagiosExchange. Hopefully this > will be the next stable release. Zooming of graphs is the newest feature > in this version. I tried it and it works alright in the sense that the graphs gets created, but unfortunately the graph icons shows up with the red border and no graph. Clicking on it does however take me to a good grahp, as per usual. Also, the zoom function your talking about, where do I find it? Cheers /Lars > Am Donnerstag, den 03.01.2008, 16:47 -0700 schrieb Brock Kuhse: >> Likewise here. Those gaps were driving me crazy, and switching the >> interface to "file" made them go away (and made our clients happier). >> >> Thank you very much, Gerd. >> >> - Brock >> >> -----Original Message----- >> From: nagios-users-bounces at lists.sourceforge.net >> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars >> Stavholm >> Sent: Thursday, January 03, 2008 4:42 PM >> To: Gerd Mueller >> Cc: Nagios Users Mailinglist >> Subject: Re: [Nagios-users] rrd gaps >> >> Yup, thanks Gerd, that did the trick. >> >> I followed your instructions to the letter >> and ended up with no gaps:) >> >> Thanks >> /L >> >> Gerd Mueller wrote: >>> Hi, >>> >>> the old NagiosGrapher interfaces (network/pipe) can cause huge >>> latency :-(. Thanks to a patch we got there is a new interface type >>> "file". The main advantages of this new interface are: >>> * no gaps any more >>> * no latency caused by NagiosGrapher >>> * restarting NagiosGrapher does not cause any gaps >>> >>> I am sorry but the documentation totally lacks this interface. But below >>> is all you need. >>> >>> Cheers, >>> >>> Gerd >>> >>> >>> >>> >>> >>> ngraph.ncfg: >>> >>> interface file >>> perffile_path /dev/shm >>> >>> nagios.cfg: >>> >>> process_performance_data=1 >>> service_perfdata_file=/dev//shm/service-perfdata >>> service_perfdata_file_template=$HOSTNAME$\t$SERVICEDESC$\t >>> $SERVICEOUTPUT$\t$SERVICEPERFDATA$\t$TIMET$ >>> service_perfdata_file_mode=a >>> service_perfdata_file_processing_interval=60 >>> >>> service_perfdata_file_processing_command=process-service-perfdata-file >>> >>> >>> commands.cfg: >>> define command{ >>> command_name process-service-perfdata-file >>> command_line >>> mv /dev/shm/service-perfdata /dev/shm/service-perfdata.$TIMET$ >>> } >>> >>> >>> >>> Am Mittwoch, den 02.01.2008, 13:29 -0500 schrieb Palle L Jensen: >>>> Lars and Gerd, >>>> >>>> I am having a similar problem with rrd gaps. >>>> It was doing fine until I added 3 more hosts and 8 more services and then >>>> suddenly I get the rrd gaps, some graphs are even blank. >>>> >>>> My latency are as below (they seem pretty high compared to yours?): >>>> >>>> # nagiostats | grep -i latency >>>> Active Service Latency: 6.804 / 330.675 / 238.562 sec >>>> Active Host Latency: 0.000 / 0.000 / 0.000 sec >>>> >>>> >>>> nagiostats | grep -i total >>>> Used/High/Total Command Buffers: 0 / 8 / 4096 >>>> Used/High/Total Check Result Buffers: 85 / 106 / 4096 >>>> Total Services: 106 >>>> Total Service State Change: 0.000 / 0.000 / 0.000 % >>>> Total Hosts: 36 >>>> Total Host State Change: 0.000 / 0.000 / 0.000 % >>>> >>>> >>>> I also use the rpm package from linadd.org. >>>> nagios-2.9-1.i586.rpm, >>>> nagios-web-2.9-1.i586.rpm, >>>> nagios-plugins-1.4.9-1.i586.rpm, >>>> nagios-plugins-extras-1.4.9-1.i586.rpm >>>> nagios-graph-1.6.1-rc3.i586.rpm >>>> >>>> If you find any solution for this I would be more than happy :) >>>> >>>> Thanks, >>>> - Palle >>>> >>>> -----Original Message----- >>>> From: nagios-users-bounces at lists.sourceforge.net >>>> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Lars >>>> Stavholm >>>> Sent: Wednesday, January 02, 2008 7:06 AM >>>> To: Mad Unix >>>> Cc: nagios-users at lists.sourceforge.net >>>> Subject: Re: [Nagios-users] rrd gaps >>>> >>>> Mad Unix wrote: >>>>> Can you tell me how did you implement graph beside the nagios >>>> Let's keep this on the list, shall we? >>>> >>>> I used rpm packages from linadd.org. >>>> >>>>> Thanks >>>> You're welcome. >>>> /L >>>> >>>>> On Jan 2, 2008 12:01 PM, Lars Stavholm wrote: >>>>>> Gerd Mueller wrote: >>>>>>> Hi Lars, >>>>>>> >>>>>>> which interface are you using? And how big is your nagios' latency? >>>>>> I don't quite understand the first question there? >>>>>> We use the Nagios web interface with the nuvola theme? >>>>>> >>>>>> We have only a few hosts and around a hundred service checks, >>>>>> i.e. no heavy load here: >>>>>> >>>>>> # nagiostats | grep -i latency >>>>>> Active Service Latency: 0.000 / 0.335 / 0.135 sec >>>>>> Passive Service Latency: 0.000 / 0.000 / 0.000 sec >>>>>> Active Host Latency: 0.000 / 0.284 / 0.152 sec >>>>>> Passive Host Latency: 0.000 / 0.000 / 0.000 sec >>>>>> >>>>>> # nagiostats | grep -i total >>>>>> Used/High/Total Command Buffers: 0 / 1 / 4096 >>>>>> Total Services: 114 >>>>>> Total Service State Change: 0.000 / 12.110 / 0.106 % >>>>>> Total Hosts: 19 >>>>>> Total Host State Change: 0.000 / 0.000 / 0.000 % >>>>>> >>>>>> /L >>>>>> >>>>>> >>>>>>> Am Mittwoch, den 02.01.2008, 10:13 +0100 schrieb Lars Stavholm: >>>>>>>> Hi All, >>>>>>>> >>>>>>>> we use latest nagios-3 and latest NagiosGrapher-1.6.1-rc5. >>>>>>>> >>>>>>>> It all works very well, except for one annoying problem: >>>>>>>> I get gaps in the graphs, and I don't understand why. >>>>>>>> >>>>>>>> Any ideas appreciated, sample graph attached. >>>>>>>> >>>>>>>> R >>>>>>>> /Lars >>>>>>>> >>>> ------------------------------------------------------------------------- >>>>>>>> This SF.net email is sponsored by: Microsoft >>>>>>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>>>> _______________________________________________ Nagios-users mailing >>>> list Nagios-users at 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: Microsoft >>>>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>>> _______________________________________________ >>>>>> Nagios-users mailing list >>>>>> Nagios-users at 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: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at 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: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From cchiriboga at palosanto.com Fri Jan 4 23:37:10 2008 From: cchiriboga at palosanto.com (Carlos Chiriboga Calderon) Date: Fri, 04 Jan 2008 17:37:10 -0500 Subject: NRPE Plug-in Development Message-ID: <1199486230.2843.20.camel@ibmlaptop.novasoft.com> First, i need express my excuses becouse my level of knowledge of english is very low. Now, i'm writing a new plugin for get the bandwith used in a sample time, the program run fine but i cant make then the nagios read the result correctly. the help of my program is this: ************************ **Check BandWidth 0.01** ************************ Usage: check_bw -t -wu -wd -cu -cd -if Donde: -t Time of the sample -wu Minimal Value of up Bandwidth used for a Warning -wd Minimal Value of Down Bandwidth used for a Warning -cu Minimal Value of up Bandwidth used for a Critical -cd Minimal Value of up Bandwidth used for a Critical -if Name of Network Interface. In what format i need print the output? Best regards, Carlos Chiriboga Calderon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From aaron.segura at cabelas.com Fri Jan 4 23:59:46 2008 From: aaron.segura at cabelas.com (Aaron M. Segura) Date: Fri, 04 Jan 2008 15:59:46 -0700 Subject: NRPE Plug-in Development In-Reply-To: <1199486230.2843.20.camel@ibmlaptop.novasoft.com> References: <1199486230.2843.20.camel@ibmlaptop.novasoft.com> Message-ID: <1199487586.14185.22.camel@sidhqmis4grdv91> http://nagiosplug.sourceforge.net/developer-guidelines.html#PLUGOUTPUT On Fri, 2008-01-04 at 17:37 -0500, Carlos Chiriboga Calderon wrote: > First, i need express my excuses becouse my level of knowledge of english is very low. > > Now, i'm writing a new plugin for get the bandwith used in a sample time, > the program run fine but i cant make then the nagios read the result > correctly. > > the help of my program is this: > > ************************ > **Check BandWidth 0.01** > ************************ > > Usage: > > check_bw -t -wu -wd -cu > -cd -if > > Donde: > -t Time of the sample > -wu Minimal Value of up Bandwidth used for a Warning > -wd Minimal Value of Down Bandwidth used for a Warning > -cu Minimal Value of up Bandwidth used for a Critical > -cd Minimal Value of up Bandwidth used for a Critical > -if Name of Network Interface. > > In what format i need print the output? > > > Best regards, > > > Carlos Chiriboga Calderon > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From hs at schlittermann.de Sat Jan 5 00:07:15 2008 From: hs at schlittermann.de (Heiko Schlittermann) Date: Sat, 5 Jan 2008 00:07:15 +0100 Subject: NRPE Plug-in Development In-Reply-To: <1199486230.2843.20.camel@ibmlaptop.novasoft.com> References: <1199486230.2843.20.camel@ibmlaptop.novasoft.com> Message-ID: <20080104230714.GK10685@schlittermann.de> Carlos Chiriboga Calderon (Fr 04 Jan 2008 23:37:10 CET): > First, i need express my excuses becouse my level of knowledge of english is very low. > > Now, i'm writing a new plugin for get the bandwith used in a sample time, > the program run fine but i cant make then the nagios read the result > correctly. > > the help of my program is this: > > ************************ > **Check BandWidth 0.01** > ************************ > > Usage: > > check_bw -t -wu -wd -cu > -cd -if > > Donde: > -t Time of the sample > -wu Minimal Value of up Bandwidth used for a Warning > -wd Minimal Value of Down Bandwidth used for a Warning > -cu Minimal Value of up Bandwidth used for a Critical > -cd Minimal Value of up Bandwidth used for a Critical > -if Name of Network Interface. > > In what format i need print the output? Your plugin should have a proper exit code 0 - ok 1 - warning 2 - critical 3 - unknown This is the main information, nagios uses. All the rest is just for prosaic purposes :-) To STDOUT you can write anything you want, it appears in the status detail: "OK - current bw: 17Mbit/s" In case you want to enable some extended monitoring (performance), you may output the performance data: "OK - current bw: 17Mbit/s|in:12 out:22" There doesn't seem to be consens about the line end (at least I saw plugins writing a new line and other don't. BTW: I've written a shell based traffic checker - sampling over the period it's called again. If you're interested - just for curiosity - drop me a note :) Best regards from Dresden Viele Gr??e aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de ---------------------------- internet & unix support - Heiko Schlittermann HS12-RIPE ----------------------------------------- gnupg encrypted messages are welcome - key ID: 48D0359B --------------- gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2 7E92 EE4E AC98 48D0 359B - -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From tdbtdb+nagios at gmail.com Sat Jan 5 01:23:55 2008 From: tdbtdb+nagios at gmail.com (Dave) Date: Fri, 4 Jan 2008 14:23:55 -1000 Subject: Acking an alert by replying to an email In-Reply-To: References: <54B7F7DBCA12D94CA3FE17B68F1461A70452DC1E@LVNJEVS205.UCCORG.org> Message-ID: <943be0b10801041623ice29a16ga7d6bef57ca7d04c@mail.gmail.com> fetchmail might do the job for you. Because of a particular arrangement of our mail server, I was unable to use procmail for a similar purpose (not nagios but email front-end for rt). It depends on whether notes is willing to speak to a client with a protocol that fetchmail knows. (POP worked for me, not sure what notes likes.) Added advantages over procmail - definitely simpler, probably consumes fewer resources, possibly easier to keep secure (especially due to the complexity issue). I am unfamiliar with notes, doesn't it have some sort of native pre-processing available? Dave On Jan 4, 2008 6:31 AM, wrote: > It's the procmail part that will be the political hot potato. Thou Shalt Have No Other Email Platform Before Me is the edict from on high, regarding > notes. Not withstanding that the nagios server has to have a mailing agent of some sort to work of course. > > I'll see what I can squeak past the powers that be. > > > > > > "Petersen, Mark" > Sent by: > nagios-users-bounces at lists.sourceforge.net To > , > cc > 01/04/2008 09:22 AM > Subject > Re: [Nagios-users] Acking an alert by replying to an email > > > > > > > > > > > > I think the easiest solution would be to have Lotus Notes forward mail > for nagios at somewhere.com (or whatever from address you use) to > nagios at nagios.somewhere.com and run procmail on the nagios server. > > Is this compatible with your setup? I don't really know much about > Notes, but I assume it's not running it on the nagios box. > > mark > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at 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: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Stanley.Hopcroft at Dest.gov.au Sat Jan 5 08:46:40 2008 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Sat, 5 Jan 2008 18:46:40 +1100 Subject: Trouble with Global event handlers in Nag 3 (b7). [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Dear Folks, I am writing to ask for help with global event handlers in Nagios 3.0 (b7). The handler that worked Ok with Nag 2.9 seems to work erratically (ie only some of the time; more often than not it doesn't do anything) with 3.0. Nag would log (in nagios.log) this message with 2.9 [1186030923] GLOBAL HOST EVENT HANDLER: Wollongong;DOWN;HARD;10;global_host_event_handler [1186031313] GLOBAL HOST EVENT HANDLER: Wollongong;UP;HARD;1;global_host_event_handler but with 3.0b7 these, [1199420252] GLOBAL HOST EVENT HANDLER: Sydney-backup;(null);(null);(null);global_host_event_handler [1199423092] GLOBAL HOST EVENT HANDLER: Sydney-backup;(null);(null);(null);global_host_event_handler but the definition of the handler command has not changed, command_name global_host_event_handler command_line $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ It is wonderful to see that the 3.x series has debug level, and type in nagios.cfg, but I can't see what is useful with this problem. I think the event broker should be what I want even though I have no event broker module in use. When I try it I see a lot of messages about callbacks (which I didn't know I had). Any advice will be very welcome. Please point me to the FM if this is a change from 2.x that I haven't noticed. Thank you, Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Stanley.Hopcroft at Dest.gov.au Sat Jan 5 09:01:00 2008 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Sat, 5 Jan 2008 19:01:00 +1100 Subject: Global event handler problem in 3.0 ? [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Dear Folks, In sehandlers.c I see if(log_event_handlers==TRUE) logit(NSLOG_EVENT_HANDLER,FALSE,"GLOBAL HOST EVENT HANDLER: %s;%s;%s;%s;%s\n",hst->name,macro_x[MACRO_HOSTSTATE],macro_x[MACRO_HOSTS TATETYPE],macro_x[MACRO_HOSTATTEMPT],global_host_event_handler); which suggests that if the macro_x[FOO] vals are NULL, I will see what I do in the nagios.log [1199423092] GLOBAL HOST EVENT HANDLER: Sydney-backup;(null);(null);(null);global_host_event_handler Why on earth should the macros be undefined ? The DEBUG statements look good but how do I enable debug for event handlers ? Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From termx23 at gmail.com Sat Jan 5 10:02:52 2008 From: termx23 at gmail.com (Peter Edmonds) Date: Sat, 5 Jan 2008 20:02:52 +1100 Subject: SMS gateway In-Reply-To: <4d3f56c90801040656g60f1c1f2j393158336a543430@mail.gmail.com> References: <4d3f56c90801030054m30d7dae6w3feaf7affda55985@mail.gmail.com> <4d3f56c90801040656g60f1c1f2j393158336a543430@mail.gmail.com> Message-ID: <6b8cee7e0801050102y1b53e4fdqd0c95f99e836c6b9@mail.gmail.com> > which tools do you use to send sms through GSM modem (connected via COM) > through nagios: > smstools, kanal, or smsclient I use gnokii. Modem is a Telular GSM SX5D /etc/gnokiirc looks like this [global] port = /dev/ttyS0 model = AT initlength = default connection = serial use_locking = yes serial_baudrate = 19200 smsc_timeout = 10 [gnokiid] bindir = /usr/sbin/ [connect_script] TELEPHONE = 12345678 [disconnect_script] [logging] debug = on rlpdebug = off xdebug = off Notify command for service notifications looks like this echo -e "<$HOSTNAME$>\n$SERVICEDESC$\n$SERVICESTATE$\n$SERVICEOUTPUT$\n$LONGDATETIME$" |gnokii --sendsms $CONTACTPAGER$ >> /usr/local/groundwork/nagios/var/gnokii.log 2>&1 For host notifications this does the job echo -e "<$HOSTNAME$>\n$SERVICEDESC$\n$SERVICESTATE$\n$HOSTOUTPUT$\n$LONGDATETIME$" |gnokii --sendsms $CONTACTPAGER$ >> /usr/local/nagios/var/gnokii.log 2>&1 Peter Edmonds ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Stanley.Hopcroft at Dest.gov.au Sat Jan 5 11:06:50 2008 From: Stanley.Hopcroft at Dest.gov.au (Stanley.Hopcroft at Dest.gov.au) Date: Sat, 5 Jan 2008 21:06:50 +1100 Subject: Debugging global host event handler in Nag 3 [SEC=UNCLASSIFIED] In-Reply-To: References: Message-ID: Dear Folks, The debug options in Nag 3.x are wonderful (especially for embedded Perl. It is no longer necessary to enable debugging in p1.pl. This Is a MASSIVE simply MASSIVE improvement. Thank you). (FWIW the debug options for event handlers in nagios.cfg are debug_level=16 # DEBUG VERBOSITY # This option determines how verbose the debug log out will be. # Values: 0 = Brief output # 1 = More detailed # 2 = Very detailed debug_verbosity=2 ) The debug file then shows the event handler being called with all the args [1199526258.177826] [016.1] [pid=12436] Propagating checks to immediate non-UNREACHABLE child hosts... [1199526258.177833] [016.1] [pid=12436] Pre-handle_host_state() Host: acisp014, Attempt=1/10, Type=HARD, Final State=1 [1199526258.177900] [016.1] [pid=12436] Running global event handler for host 'acisp014'.. [1199526258.177919] [2320.2] [pid=12436] Raw Command Input: $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ [1199526258.177928] [2320.2] [pid=12436] Expanded Command Output: $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ [1199526258.177935] [016.2] [pid=12436] Raw global host event handler command line: $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ [1199526258.177958] [016.2] [pid=12436] Processed global host event handler command line: /usr/lib/nagios/plugins/eventhandlers/global_host_event_handler acisp014 DOWN HARD 1199526081 1199526258 0 0 [1199526258.213601] [016.1] [pid=12436] Post-handle_host_state() Host: acisp014, Attempt=1/10, Type=HARD, Final State=1 even though it is logged like so in nagios.log [1199526258] HOST ALERT: acisp014;DOWN;HARD;1;DOWN BABY DOWN. [1199526258] GLOBAL HOST EVENT HANDLER: acisp014;(null);(null);(null);global_host_event_handler Later, [1199527058.256653] [016.1] [pid=12436] HOST: acisp014, ATTEMPT=1/10, CHECK TYPE=ACTIVE, STATE TYPE=HARD, OLD STATE=1, NEW STATE=0 [1199527058.256661] [016.1] [pid=12436] Host was DOWN/UNREACHABLE. [1199527058.256667] [016.1] [pid=12436] Host experienced a HARD recovery (it's now UP). [1199527058.256673] [016.1] [pid=12436] Propagating checks to parent host(s)... [1199527058.256679] [016.1] [pid=12436] Propagating checks to child host(s)... [1199527058.256685] [016.1] [pid=12436] Pre-handle_host_state() Host: acisp014, Attempt=1/10, Type=HARD, Final State=0 [1199527058.256750] [016.1] [pid=12436] Running global event handler for host 'acisp014'.. [1199527058.256767] [2320.2] [pid=12436] Raw Command Input: $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ [1199527058.256776] [2320.2] [pid=12436] Expanded Command Output: $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ [1199527058.256783] [016.2] [pid=12436] Raw global host event handler command line: $USER2$/global_host_event_handler $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $LASTHOSTUP$ $LASTHOSTDOWN$ $LASTHOSTUNREACHABLE$ $HOSTDOWNTIME$ [1199527058.256806] [016.2] [pid=12436] Processed global host event handler command line: /usr/lib/nagios/plugins/eventhandlers/global_host_event_handler acisp014 UP HARD 1199527058 1199526258 0 0 [1199527058.385280] [016.1] [pid=12436] Post-handle_host_state() Host: acisp014, Attempt=1/10, Type=HARD, Final State=0 So the event handler is called correctly; there is ZERO likelihood of the failure to get the handler results being the fault of Nagios 3 (it is the fault of MY event handler). On the other hand 1 why does the log entry not show the event handler args apart from $HOSTNAME$ 2 why does debug not show the return code of the handler 3 why does the debug not show the ePN processing (as it does very well with service checks) of the event handler 4 why does the debug output showing the 'Expanded Command Output:' not show the macro values ? Your comments are very welcome. Thank you, Yours sincerely. Classification: UNCLASSIFIED ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users at 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 From mugnoz.pilar at gmail.com Sat Jan 5 15:23:49 2008 From: mugnoz.pilar at gmail.com (=?ISO-8859-1?Q?Pili_Mu=F1oz_Gargallo?=) Date: Sat, 5 Jan 2008 15:23:49 +0100 Subject: thresholds values Message-ID: <53317ec10801050623y3b426080p6fc6bca0e7879146@mail.gmail.com> Hi list I have to monitor the Signal to Noise Relationship in an antena... I thougth in using check_snmp but in this case the warning thresholds and the critical theshold should have diferent meaning.. the device will be in a warning state if the device is below the warning threshold and in a critical state if the device is below the critical threshold... This could be posible? Thanks Pili -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------- next part -------------- _______________________________________________ Nagios-users mailing list Nagios-users at 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 From Gerhard.Lausser at consol.de Sat Jan 5 15:53:22 2008 From: Gerhard.Lausser at consol.de (Gerhard Lausser) Date: Sat, 5 Jan 2008 15:53:22 +0100 Subject: NRPE Plug-in Development In-Reply-To: <20080104230714.GK10685@schlittermann.de> References: <1199486230.2843.20.camel@ibmlaptop.novasoft.com> <20080104230714.GK10685@schlittermann.de> Message-ID: <021a01c84faa$b7c477c0$a601000a@int.consol.de> Hi Heiko, > In case you want to enable some extended monitoring > (performance), you may output the performance data: > > "OK - current bw: 17Mbit/s|in:12 out:22" Are you sure about the performance data format?