PNP swap template HOWTO

Ayotunde Itayemi Ayotunde.Itayemi at zain.com
Wed May 6 20:21:43 CEST 2009


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.lumpa at free.fr] 
Sent: Wednesday, May 06, 2009 5:55 PM
To: Ayotunde Itayemi; nagios-users at 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.Itayemi at zain.com>
To: <nagios-users at 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 <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 

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