Regarding pxe boot monitoring on linux
Regarding pxe boot monitoring on linux
Hi someone,
How to begin with the pxe boot monitoring using nagios, I want to create a plugin which monitors pxe?
OS: Linux
Servers
How to begin with the pxe boot monitoring using nagios, I want to create a plugin which monitors pxe?
OS: Linux
Servers
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Regarding pxe boot monitoring on linux
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?
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
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?
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?
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Regarding pxe boot monitoring on linux
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?
Your resource.cfg may be elsewhere, this is for a default install of NagiosXI
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
Re: Regarding pxe boot monitoring on linux
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?
$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?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Regarding pxe boot monitoring on linux
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 atssindhe 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?
Code: Select all
/usr/lib64/nagios/plugins
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
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.
Can someone please get me a check_tftp code, with no errors. not specific to python but any code is fine.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Regarding pxe boot monitoring on linux
Who is the author of the plugin you are trying to use?
Re: Regarding pxe boot monitoring on linux
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
#
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
#
Re: Regarding pxe boot monitoring on linux
You may want to contact the author - or search the exchange for other tftp plugins:
http://exchange.nagios.org/index.php?op ... hword=tftp
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.
"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.