Code Monkey home page Code Monkey logo

perfservmon's People

Contributors

atterdag avatar dvarounis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

perfservmon's Issues

SIB Destinations in clusters

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?

SSL/Basic Auth support

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 :(

DbfilenameShelf error

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 --version

Python 2.7.5

Syntax issue

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

Parsed Arguments for Critical/Warning Methods work only for percentage Metrics

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.

AttributeError when trying to retrieve perf data from WAS

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

issue with perfservermon.py when executed

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 -V

Python 2.7.15+

Can you please tell me what i'm doing wrong

I Have a problem -

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

Handle Raised Exceptions

Raised Exceptions from parseperfxml() and other possible methods should be printed in Nagios Check Output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.