Re: [Nagios-users] PNP swap template HOWTO
Hi Ayotunde, You need to create template file with name of service command name.php (i.e. check_mem.php whatever command name you use) , if this file doesn't exist in template dir, PNP will use default template. default template for check_swap (in template.dist) shows swap free rather than swap utilized, you need to modify template to show swap utilization. Ayotunde Itayemi Ayotunde.Itayemi @zain.com To nagios-users@lists.sourceforge.net 05/06/2009 08:39 PM cc Subject [Nagios-users] PNP swap template HOWTO Hi All, By default I have nothing in the templates directory of my PNP installation so all my graphs use the Default Template. I noticed that this inverts the SWAP utilization graph i.e., the red and yellow lines (warning/critical) are very close to the bottom of the graph while the utilization shows as almost 100% (close to the top) instead of very low is it actually is. I have copied the check_swap.php from the templates.dist directory into the templates directory, deleted all the existing swap.xml and swap.rrd files, and restarted the npcd daemon. I have also tried renaming check_swap.php to swap.php. I noticed also that all my graphs use the Default Template and the XML files for all of them have TEMPLATEcheck_nrpe/TEMPLATE. As these files are generated automatically, how do I get the SWAP graph to use the SWAP template? What else do I need to do? I am using PNP version 0.4.13 Thanks. This mail is from a Gimper -Original Message- From: Ed Donahue [mailto:libera...@gmail.com] Sent: Thursday, April 30, 2009 5:13 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] [nagios] Trigger alert via email Is it possible to trigger an alert by sending an email to nagios (passive check)? I'm guessing it isn't a straight forward as that, just wonder if it is doable, and any links to examples would be cool too. Thanks in advance Ed -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ForwardSourceID:NT64DE =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have
[Nagios-users] PNP swap template HOWTO
Hi All, By default I have nothing in the templates directory of my PNP installation so all my graphs use the Default Template. I noticed that this inverts the SWAP utilization graph i.e., the red and yellow lines (warning/critical) are very close to the bottom of the graph while the utilization shows as almost 100% (close to the top) instead of very low is it actually is. I have copied the check_swap.php from the templates.dist directory into the templates directory, deleted all the existing swap.xml and swap.rrd files, and restarted the npcd daemon. I have also tried renaming check_swap.php to swap.php. I noticed also that all my graphs use the Default Template and the XML files for all of them have TEMPLATEcheck_nrpe/TEMPLATE. As these files are generated automatically, how do I get the SWAP graph to use the SWAP template? What else do I need to do? I am using PNP version 0.4.13 Thanks. This mail is from a Gimper -Original Message- From: Ed Donahue [mailto:libera...@gmail.com] Sent: Thursday, April 30, 2009 5:13 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] [nagios] Trigger alert via email Is it possible to trigger an alert by sending an email to nagios (passive check)? I'm guessing it isn't a straight forward as that, just wonder if it is doable, and any links to examples would be cool too. Thanks in advance Ed -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] PNP swap template HOWTO
You could use a template I developped some weeks ago. It works pretty well. Just copy it into the templates directory Marc-André - Original Message - From: Ayotunde Itayemi ayotunde.itay...@zain.com To: nagios-users@lists.sourceforge.net Sent: Wednesday, May 06, 2009 5:09 PM Subject: [Nagios-users] PNP swap template HOWTO Hi All, By default I have nothing in the templates directory of my PNP installation so all my graphs use the Default Template. I noticed that this inverts the SWAP utilization graph i.e., the red and yellow lines (warning/critical) are very close to the bottom of the graph while the utilization shows as almost 100% (close to the top) instead of very low is it actually is. I have copied the check_swap.php from the templates.dist directory into the templates directory, deleted all the existing swap.xml and swap.rrd files, and restarted the npcd daemon. I have also tried renaming check_swap.php to swap.php. I noticed also that all my graphs use the Default Template and the XML files for all of them have TEMPLATEcheck_nrpe/TEMPLATE. As these files are generated automatically, how do I get the SWAP graph to use the SWAP template? What else do I need to do? I am using PNP version 0.4.13 Thanks. This mail is from a Gimper -Original Message- From: Ed Donahue [mailto:libera...@gmail.com] Sent: Thursday, April 30, 2009 5:13 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] [nagios] Trigger alert via email Is it possible to trigger an alert by sending an email to nagios (passive check)? I'm guessing it isn't a straight forward as that, just wonder if it is doable, and any links to examples would be cool too. Thanks in advance Ed -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null attachment: check_swap.php -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] PNP swap template HOWTO
2009/5/6 Ayotunde Itayemi ayotunde.itay...@zain.com: I noticed also that all my graphs use the Default Template and the XML files for all of them have TEMPLATEcheck_nrpe/TEMPLATE. As these files are generated automatically, how do I get the SWAP graph to use the SWAP template? You'll notice that the graph produced by the default template tells you what check command is being run (in the bottom right hand corner of the graphic). This is the name you need to use for your template, so in your case you will need to name your new template file check_nrpe.php. It's not quite as simple as that though, because if you set up a check_nrpe.php template which makes your swap graphs look lovely, it might make all the other checks you run using check_nrpe look awful! You might need to consider setting up a separate command definition in Nagios just for your swap checks. Make it the same as check_nrpe but call it something a little different, for example check_nrpe-swap. Of course you'll need also to change your swap service definition to use this command. You can then rename your check_nrpe.pnp template to check_nrpe-swap.pnp and it won't mess up all your other nrpe checks. It's not necessary to remove .rrd or .xml files when you tinker with the templates - just hit refresh in your browser when viewing the graphs in PNP to see if the template is working. hth, Jim -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] PNP swap template HOWTO
Hi All/Jim/Marc-Andre, Thanks for the response. I was actually able to figure it out while waiting - I didn't RTFM - not all at first :-) Here is what I did in case someone else finds it useful (and if possible correct me if I am wrong): # cd /usr/local/nagios/etc/pnp/check_commands # cp -a check_nwstat.cfg-sample check_nrpe.cfg # grep CUSTOM_TEMPLATE check_nrpe.cfg CUSTOM_TEMPLATE = 0,1 # cd /usr/local/nagios/share/pnp # cp -a templates.dist/check_swap.php templates/check_nrpe_check_dsk_swap.php # /etc/init.d/npcd restart Jim: The SWAP graph looks OK and I haven't noticed any changes in the other graphs (CPU, RAM, filesystems, PING, etc) - possibly because the check_nrpe defaults are the same as in the nwstat.cfg-sample file I created the check_nrpe.cfg from, and the check_nrpe_check_dsk_swap.php is only used for the SWAP graph while the default check_nrpe settings continues to be used for the other graphs? Marc-Andre: I assume apart from just placing your SWAP template in the templates directory, I still need to create the check_nrpe.cfg and check_nrpe_check_dsk_swap.php files as I did above? Will try your template in a minute ... Ach! I lost all my SWAP history by deleting the RRDs! Thanks again. Regards. This mail is from a Gimper -Original Message- From: MAD [mailto:sri.lu...@free.fr] Sent: Wednesday, May 06, 2009 5:55 PM To: Ayotunde Itayemi; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] PNP swap template HOWTO You could use a template I developped some weeks ago. It works pretty well. Just copy it into the templates directory Marc-André - Original Message - From: Ayotunde Itayemi ayotunde.itay...@zain.com To: nagios-users@lists.sourceforge.net Sent: Wednesday, May 06, 2009 5:09 PM Subject: [Nagios-users] PNP swap template HOWTO Hi All, By default I have nothing in the templates directory of my PNP installation so all my graphs use the Default Template. I noticed that this inverts the SWAP utilization graph i.e., the red and yellow lines (warning/critical) are very close to the bottom of the graph while the utilization shows as almost 100% (close to the top) instead of very low is it actually is. I have copied the check_swap.php from the templates.dist directory into the templates directory, deleted all the existing swap.xml and swap.rrd files, and restarted the npcd daemon. I have also tried renaming check_swap.php to swap.php. I noticed also that all my graphs use the Default Template and the XML files for all of them have TEMPLATEcheck_nrpe/TEMPLATE. As these files are generated automatically, how do I get the SWAP graph to use the SWAP template? What else do I need to do? I am using PNP version 0.4.13 Thanks. This mail is from a Gimper -Original Message- From: Ed Donahue [mailto:libera...@gmail.com] Sent: Thursday, April 30, 2009 5:13 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] [nagios] Trigger alert via email Is it possible to trigger an alert by sending an email to nagios (passive check)? I'm guessing it isn't a straight forward as that, just wonder if it is doable, and any links to examples would be cool too. Thanks in advance Ed -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak
Re: [Nagios-users] PNP swap template HOWTO
2009/5/6 Ayotunde Itayemi ayotunde.itay...@zain.com: Jim: The SWAP graph looks OK and I haven't noticed any changes in the other graphs (CPU, RAM, filesystems, PING, etc) - possibly because the check_nrpe defaults are the same as in the nwstat.cfg-sample file I created the check_nrpe.cfg from, and the check_nrpe_check_dsk_swap.php is only used for the SWAP graph while the default check_nrpe settings continues to be used for the other graphs? I believe so. Yes. Ach! I lost all my SWAP history by deleting the RRDs! Bad luck! Cheers, Jim -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] PNP swap template HOWTO
Hi! On Wed, 06 May 2009, Jim Avery wrote: It's not quite as simple as that though, because if you set up a check_nrpe.php template which makes your swap graphs look lovely, it might make all the other checks you run using check_nrpe look awful! You might need to consider setting up a separate command definition in Nagios just for your swap checks. Make it the same as check_nrpe but call it something a little different, for example check_nrpe-swap. Of course you'll need also to change your swap service definition to use this command. You can then rename your check_nrpe.pnp template to check_nrpe-swap.pnp and it won't mess up all your other nrpe checks. I did something else: I patched PNP so that it removes the check_nrpe! prefix if it's there, then does processing as usual. I've sent this (trival, four-line) patch to the PNP maintainer but never got an answer :/ Regards, Tobias -- The only problem with troubleshooting is that sometimes, trouble shoots back. -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] PNP swap template HOWTO
2009/5/6 Tobias Klausmann klaus...@schwarzvogel.de: I did something else: I patched PNP so that it removes the check_nrpe! prefix if it's there, then does processing as usual. I've sent this (trival, four-line) patch to the PNP maintainer but never got an answer :/ Where would you stop though? Would you also remove check_nt and check_snmp prefixes? I appreciate you may find the patch useful and forgive me if I've misunderstood, but I'm not convinced it's necessary. Cheers, Jim -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] PNP swap template HOWTO
Hi! On Wed, 06 May 2009, Jim Avery wrote: 2009/5/6 Tobias Klausmann klaus...@schwarzvogel.de: I did something else: I patched PNP so that it removes the check_nrpe! prefix if it's there, then does processing as usual. I've sent this (trival, four-line) patch to the PNP maintainer but never got an answer :/ Where would you stop though? Would you also remove check_nt and check_snmp prefixes? I appreciate you may find the patch useful and forgive me if I've misunderstood, but I'm not convinced it's necessary. It is most useful to me, no doubt. Still I would have expected that the original author noticed this issue. I suspect 90% of Nagios users have *way* more usefully graphable NRPE/NSCP/SNMP checks than plain ones. Regards, Tobias -- The only problem with troubleshooting is that sometimes, trouble shoots back. -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null