Regarding pxe boot monitoring on linux

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ssindhe
Posts: 13
Joined: Wed Apr 08, 2015 1:26 pm

Regarding pxe boot monitoring on linux

Post by ssindhe »

Hi someone,

How to begin with the pxe boot monitoring using nagios, I want to create a plugin which monitors pxe?

OS: Linux
Servers
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Regarding pxe boot monitoring on linux

Post by jdalrymple »

Depends on how far you want to go, there are many moving parts. The simplest thing would be to monitor the services required independently then maybe create a service with all those individual parts as dependencies.

check_dhcp deals with that bit
There are a few options on the Exchange for monitoring TFTP, even some that it appears can try to grab your boot file

How complex do you need to get?
ssindhe
Posts: 13
Joined: Wed Apr 08, 2015 1:26 pm

Re: Regarding pxe boot monitoring on linux

Post by ssindhe »

Hi,

Thanks, Yeah I see check_tftp scripts for monitoring tftp. But I want to know where do I have to create this file and dump this code in?

in /etc? or /usr?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Regarding pxe boot monitoring on linux

Post by jdalrymple »

Depends on your configuration. They can be anywhere, but the location is usually referenced by the $USER1$ macro.

Can you find your resources.cfg and see what that macro references?

Code: Select all

[jdalrymple@localhost ~]$ grep \$USER1 /usr/local/nagios/etc/resource.cfg
$USER1$=/usr/local/nagios/libexec
Your resource.cfg may be elsewhere, this is for a default install of NagiosXI
ssindhe
Posts: 13
Joined: Wed Apr 08, 2015 1:26 pm

Re: Regarding pxe boot monitoring on linux

Post by ssindhe »

Great, Thanks a lot, I found the reference, it says
$USER1$ = /usr/lib64/nagios/plugins

For $USER2$ it refers to event handlers.

Now, do you want me to copy this python script of check_tftp into /usr/lib64/nagios/plugins? will that help me in monitoring the pxeboot?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Regarding pxe boot monitoring on linux

Post by scottwilkerson »

ssindhe wrote:Great, Thanks a lot, I found the reference, it says
$USER1$ = /usr/lib64/nagios/plugins

For $USER2$ it refers to event handlers.

Now, do you want me to copy this python script of check_tftp into /usr/lib64/nagios/plugins? will that help me in monitoring the pxeboot?
Unfortunately, that is a loaded question because every setup of nagios is different. Usually you would place it in the plugins directory, which on your server looks like it is at

Code: Select all

/usr/lib64/nagios/plugins
Here is a link to Nagios Documentation
http://nagios.sourceforge.net/docs/nagi ... n/toc.html

Also, if you are completely new to Nagios, you may want to check out Nagios XI, which really reduces the learning curve in getting up and running and creating the configuration files
http://www.nagios.com/products/nagiosxi
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ssindhe
Posts: 13
Joined: Wed Apr 08, 2015 1:26 pm

Re: Regarding pxe boot monitoring on linux

Post by ssindhe »

I have a check_tftp python code, but when I compile it display, syntax error!!

Can someone please get me a check_tftp code, with no errors. not specific to python but any code is fine.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Regarding pxe boot monitoring on linux

Post by scottwilkerson »

Who is the author of the plugin you are trying to use?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ssindhe
Posts: 13
Joined: Wed Apr 08, 2015 1:26 pm

Re: Regarding pxe boot monitoring on linux

Post by ssindhe »

Thanks!!


Copyright Marius Rieder <marius.rieder@inf.ethz.ch> 2008
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Regarding pxe boot monitoring on linux

Post by abrist »

You may want to contact the author - or search the exchange for other tftp plugins:
http://exchange.nagios.org/index.php?op ... hword=tftp
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked