Page 1 of 2
Regarding pxe boot monitoring on linux
Posted: Wed Apr 08, 2015 1:42 pm
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
Re: Regarding pxe boot monitoring on linux
Posted: Wed Apr 08, 2015 2:59 pm
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?
Re: Regarding pxe boot monitoring on linux
Posted: Wed Apr 08, 2015 3:10 pm
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?
Re: Regarding pxe boot monitoring on linux
Posted: Wed Apr 08, 2015 3:48 pm
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
Re: Regarding pxe boot monitoring on linux
Posted: Thu Apr 09, 2015 8:36 am
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?
Re: Regarding pxe boot monitoring on linux
Posted: Thu Apr 09, 2015 9:43 am
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
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
Re: Regarding pxe boot monitoring on linux
Posted: Fri Apr 10, 2015 11:34 am
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.
Re: Regarding pxe boot monitoring on linux
Posted: Fri Apr 10, 2015 12:22 pm
by scottwilkerson
Who is the author of the plugin you are trying to use?
Re: Regarding pxe boot monitoring on linux
Posted: Fri Apr 10, 2015 12:35 pm
by ssindhe
Thanks!!
Copyright Marius Rieder <
[email protected]> 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
#
Re: Regarding pxe boot monitoring on linux
Posted: Fri Apr 10, 2015 2:01 pm
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