06-22-2012
Need help with Nagios scripting
hye,
I) so am using nagios through centreon. i now understand were perl plugins should be written "in libexec" but my question is , i just create a file via VI write the script in it , and use it through centreon interface?
II) lets say i would like to add a drop down menu to this webpage "please find below image"
where do i implement the code for the new tab,in which directory? and when the new tab is implemented via php ,should i create a perl directive to it?
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all
I'm trying to get nagios up and running on FreeBSD 4.10
I installed the ports and just have to configure it
documentation supplied by nagios on how to configure the net-mgmt is not working for me. I tried everything possible but just can't seem to configure it.
Anybody have an... (1 Reply)
Discussion started by: stunner
1 Replies
2. Solaris
Hi ,
I want a clear a detailed manual or installation guide pls for Nagios .
I tried many time to use the original manual but the commands is related to linux i think ,,
I am using Solaris 9
Regards
Adel (2 Replies)
Discussion started by: ArabOracle.com
2 Replies
3. Red Hat
HI all,
This is my first topic in this forum.
I have a test environment which has a fedora in it and i installed nagios 3.0.6
I added windows clients into it.
But i am not getting informative outputs from it.
Can anyone tell me where i can edit inorder to get a more informative garph output.... (4 Replies)
Discussion started by: Renjesh
4 Replies
4. Solaris
Dear Members,
i make setup for nagios under linux Ubuntu Server 9.04 box
i when i try to install NRPE on Unix Box
i found this error
1- first step for installation
-bash-3.00# pwd
/download/nrpe-2.12
-bash-3.00# ./configure -with-ssl=/usr/sfw/ -with-ssl-lib=/usr/sfw/lib/
***... (1 Reply)
Discussion started by: sharkux
1 Replies
5. Infrastructure Monitoring
Hi,
Installed it and all seems okay except when I try to actually use it. :-(
Visiting my nagios url, it says
Logs and conf's follow:
nagios.log is:
# cat /usr/local/nagios/var/nagios.log | tail -5
Successfully shutdown... (PID=3613)
Nagios 3.2.2 starting... (PID=4645)... (7 Replies)
Discussion started by: smcracraft
7 Replies
6. Infrastructure Monitoring
What are the chances of getting a Nagios forum? The community is really lacking for a good place to work issues in Nagios. There just aren't any good places to go that I've found.
Thanks,
Docster (27 Replies)
Discussion started by: Docster
27 Replies
7. Infrastructure Monitoring
Hi Folks,
I have Nagios 3.0.6 which is monitoring 400+ servers in my environment and is administered by multiple administrators. I want to get notified if somebody enable or disable any notification of any of the hosts/services from GUI. Is it possible to configure?
If so, how? (0 Replies)
Discussion started by: SiddhV
0 Replies
8. Infrastructure Monitoring
We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side.
I was wondering if there is any way to setup cross dependencies... (1 Reply)
Discussion started by: eugenes18t
1 Replies
9. Red Hat
Hi,
I want to configure nagios core with my own scripts.Default configuration has been done like ping,http,Root partition,..so on...
But according to my requirement i have a script called cpumon.sh which will monitor the current cpu usage.
I gone through below link but could not find out... (1 Reply)
Discussion started by: mastansaheb
1 Replies
LEARN ABOUT DEBIAN
imgsizer
IMGSIZER(1) IMGSIZER(1)
NAME
imgsizer - automatically splice in height and width params for HTML IMG tags
SYNOPSIS
imgsizer [-d file] [--document-root file] [-h file] [--help file] [-n] [--no-overwrite] [HTMLFile] [-v file] [--version]
OPTIONS
Display version information and exit.
Display usage information.
Directory where absolute image filenames (i.e, ones which contain a leading "/") may be found.
-n, --no-overwwrite, .SH DESCRIPTION
The imgsizer script automates away the tedious task of creating and updating the extension HEIGHT and WIDTH parameters in HTML IMG
tags. These parameters help many browsers (including the Netscape/Mozilla family) to multi-thread image loading, instead of having
to load images in strict sequence in order to have each one's dimensions available so the next can be placed. This generally allows
text on the remainder of the page to load much faster.
This script will try create such attributes for any IMG tag that lacks them. It will correct existing HEIGHT and WIDTH tags unless either
contains a percent (%) sign, in which case the existing dimensions are presumed to be relative and left unaltered.
This script may be called with no arguments. In this mode, it filters HTML presented on stdin to HTML (unaltered except for added or cor-
rected HEIGHT and WIDTH attributes) on stdout. If called with file arguments, it will attempt to transform each file in place. Each argu-
ment file is not actually modified until the script completes a successful conversion pass.
The -d <directory> option sets the DocumentRoot, where images with an absolute filename (i.e., ones which contain a leading "/") may be
found. If none is specified, the DocumentRoot defaults to the current working directory.
The -n (no-overwrite) opion prevents the program from overwriting existing width and height tags if both are present.
Additional options may also be specified in the environmental variable "IMGSIZER". For example, to avoid typing "imgsizer -d /var/www/docs"
each time imgsizer is invoked, you might tell sh (or one of its descendants):
IMGSIZER="-d /var/www/docs"; export IMGSIZER
or, if you use csh:
setenv IMGSIZER "-d /var/www/docs"
This script is written in Python, and thus requires a Python interpreter on the host system. It also requires either the identify(1) utili-
ty distributed in the open-source ImageMagick suite of image-display and manipulation tools, or a modern version of file(1) and rdjpg-
com(1). These utilities are used to extract sizes from the images; imgsizer itself has no knowledge of graphics formats. The script will
handle any image format known to identify(1) including PNG, GIF, JPEG, XBM, XPM, PostScript, BMP, TIFF, and anything else even remotely
likely to show up as an inline image.
NOTE
The -q, -l, and -m options of the 1.0 versions are gone. What they used to do has been made unnecessary by smarter logic.
BUGS
The code uses regular expressions rather than true HTML/XML parsing. Some perverse but legal constructions, like extraneous space within
quoted numeric attributes, will be mangled.
AUTHOR
Originally created by Eric S. Raymond <esr@thyrsus.com>. Additional code contributed by Erik Rossen, Michael C. Toren <michael@toren.net>,
and others. For updates, see <http://www.catb.org/~esr: http://www.catb.org/~esr>
SEE ALSO
identify(1), file(1), rdjpgcom(1).
IMGSIZER(1)