dvarounis / perfservmon Goto Github PK
View Code? Open in Web Editor NEWNagios Plugin for IBM WebSphere Application Server using perfservlet
License: MIT License
Nagios Plugin for IBM WebSphere Application Server using perfservlet
License: MIT License
Hi Dimos
If you have a SIB with a cluster as member, then only one server in the cluster runs the engine at a time (except if choosing the "Scalability with HA" policy).
So as the script works currently, if you have 4 servers in a cluster, then you must configure a SIB destination check for each server, thus resulting in 3 UNKNOWN, and one OK message.
I suggest that we add a "cluster" switch to SIB destination check, so that perfservmon doesn't return a UNKNOWN, but "OK: inactive SIB engine" for cluster nodes that doesn't run the engine, as a way of saying "Yeah, yeah I know there's no data, but its expected" to Nagios.
Or do you have a better idea?
I'm working in a DMZ where the Security, and Compliance team have demanded that all traffic are encrypted - Especially if credentials are passed.
So this plugin is amazing, and I will work on adding servlet monitoring def's as well. But the lack of SSL kinda blocks me from using the plugin :(
Hi
Trying to test your plugin and getting this error( parameter values are masked ) :
python perfservmon.py -C OPFCell retrieve -N xxxx -P xxxx -u xxxx -p xxxx
Traceback (most recent call last):
File "perfservmon.py", line 804, in
parseperfxml(path=startingpath, cellname=arguments.CellName)
File "perfservmon.py", line 466, in parseperfxml
with shelve.open(shelvefilename, flag='c') as pfile:
AttributeError: DbfilenameShelf instance has no attribute 'exit'
Python 2.7.5
I am receiving this error when running the retrieval command:
except urllib2.HTTPError as error:
^SyntaxError: invalid syntax
Is this due to the python version?
Version 2.4.3 is running on this machine
The perfservlet is not accessible (we get a socket.timeout: timed out
) once a WAS server in the Cell experiences OutOfMemory issue.
Thus we get an alert like the following from collector untill the OOM WAS Server is restarted:
CRITICAL - Error retrieving PMI data! Check your Cell status!
Add support for Python 3 and try to keep support for Python 2.7
The following lines work only for percentage Metrics (e.g. Heap Usage):
show_parser.add_argument("-c", type=int, action="store", dest='Critical', choices=xrange(1, 100),
help="Critical Value for Metric", required=False)
show_parser.add_argument("-w", type=int, action="store", dest='Warning', choices=xrange(1, 100),
help="Warning Value for Metric", required=False)
Should be corrected to work with raw values, e.g. Warning Number of Available Messages in SIB Topic.
Hello Dimos,
When I run this command :
./perfservmon.py -C HP-ProBook-G5Node01Cell retrieve -N localhost -P 9443 -H https
I receive this message :
Traceback (most recent call last):
File "/usr/lib/nagios/plugins/perfservmon.py", line 804, in
parseperfxml(path=startingpath, cellname=arguments.CellName)
File "/usr/lib/nagios/plugins/perfservmon.py", line 466, in parseperfxml
with shelve.open(shelvefilename, flag='c') as pfile:
AttributeError: DbfilenameShelf instance has no attribute 'exit'
After I run this command :
./perfservmon.py -C HP-ProBook-G5Node01Cell show -n HP-ProBook-G5Node01 -s server1 -M WebContainer -c 90 -w 70
and the machine answers :
UNKNOWN - Error opening cached metrics file
Could you help me to find what's wrong ?
Thank you very much,
with best regards,
Mikhael
I need to use perfservermon.py for monitoring my WAS parmeters
What I have done : Installed and configured perfservlet
Perfservlet is accessible fine.
but while running the perfservmon.py command from Nagios Server. I'm getting the below error
/usr/local/nagios/libexec/perfservermon.py -C xxx retrieve -N server.example.com/wasPerfTool/servlet/perfservlet -P 9080 -u xxx -p xxx --ignorecert -H http
Traceback (most recent call last):
File "/usr/local/nagios/libexec/perfservermon.py", line 801, in
username=arguments.Username, password=arguments.Password)
File "/usr/local/nagios/libexec/perfservermon.py", line 658, in retrieveperfxml
tree = parse(xmlfilename)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1659, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1523, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: mismatched tag: line 35, column 2
Python 2.7.15+
Can you please tell me what i'm doing wrong
I am running the script is getting the following error. I am running the script is getting the following error. I tried to find the problem but to no avail.
python perfservmon.py -C MYCELL retrieve -N MYHOST -P 9080
Traceback (most recent call last):
File "perfservmon.py", line 804, in
parseperfxml(path=startingpath, cellname=arguments.CellName)
File "perfservmon.py", line 466, in parseperfxml
with shelve.open(shelvefilename, flag='c') as pfile:
AttributeError: DbfilenameShelf instance has no attribute 'exit'
python perfservmon.py -C wasbase show -n cell -s trnp300 -M Heap -c 90 -w 70
UNKNOWN - Error opening cached metrics file
The plugin frequently returns _gdbm.error: [Errno 11] Resource temporarily unavailable
under high load.
Probably need to optimize shelve.open() usage (https://docs.python.org/3.6/library/shelve.html)
Nagios Plugins Perfdata Documentation:
Nagios Plugin Guidelines
Nagios Performance Data
Raised Exceptions from parseperfxml()
and other possible methods should be printed in Nagios Check Output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.