PNP swap template HOWTO

F Thakura f.thakura at tcs.com
Thu May 7 09:50:12 CEST 2009


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 at 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 <TEMPLATE>check_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:liberaled at gmail.com]
Sent: Thursday, April 30, 2009 5:13 PM
To: nagios-users at 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 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

------------------------------------------------------------------------------

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 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

ForwardSourceID:NT000064DE

=====-----=====-----=====
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 received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




------------------------------------------------------------------------------
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 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





More information about the Users mailing list