Code Monkey home page Code Monkey logo

nagios-plugins's Introduction

nagios-plugins

Small army of nagios-plugins either made or maintained by opinkerfi

nagios-plugins's People

Contributors

argusb avatar bjarnirunar avatar eythori-sensa avatar florianheigl avatar gardart avatar gitmopp avatar gudvardur avatar hakong avatar monitoreodotosiatuchiledotcl avatar pall-valmundsson avatar palli avatar popsiclestick avatar richard-allen avatar tomas-edwardsson avatar tryggvi avatar uakfdotb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nagios-plugins's Issues

Bad defaults in check_package_updates

Its pretty much out of style with the rest of the okconfig monitoring style, also its parameters are hardcoded so you have to log into the remote server to change the parameters.

check_eva.py : command was: 'sssu "set option on_error=continue"

Not sure why i am getting bellow error on execution:-

python ./check_eva.py --host HOST1 --username USER1 --password PASSWORD1 --mode check_diskgroups
Error 2:
command was: 'sssu "set option on_error=continue" "select manager HOST1 USERNAME=USER1 PASSWORD=PASSWORD1" "ls system full" '
Traceback (most recent call last):
File "./check_eva.py", line 757, in
longserviceoutputfields=longserviceoutputfields, perfdata_fields=perfdata_fields)
File "./check_eva.py", line 484, in check_generic
systems = run_sssu()
File "./check_eva.py", line 234, in run_sssu
output = output.split('\n')
AttributeError: 'NoneType' object has no attribute 'split'

Please suggest fix.

Add more than one check in the check_eva.py

Hi.
In the first, thanks for the code check_eva.
I have a question for configuration of check_eva.py: Can i configure this check_eva.py with two or more "checks"? Example: mode = "check_systems" and "check_controllers"? If not, how i can do this?

Regards.
Juan Cassemiro.

check SAS pool status

Is it possible to check SAS pool status ?

 list pool
Current Machine Local Time: 05/26/2017  08:25:09 AM
 ____________________________________________________________________________________________________________
|Pool#| ID |    Name     |RaidType|OwnerCtlr|TotalCap|AvailCap|       Status         |  State   | Degraded   |
|_____|____|_____________|________|_________|________|________|______________________|__________|____________|
|    0|   1| StoragePoolA|       5|   Slot 0|  1313GB|   383GB| Degraded-InTransition|       ONV|         Yes|
|_____|____|_____________|________|_________|________|________|______________________|__________|____________|

help

how to install ?
after i install network config i got some message
[root@demo plugins]# ./check_nrpe -H 127.0.0.1 -c get_network_interfaces_stat
NRPE: Unable to read output

check_firewall_active enhancement

I had a nagios check for iptables that compares the checksums of rules on disk vs. in memory. This way I'm also notified if a change is made and not saved to disk.

from @hakong in pull request #28

check_package_updates dependency problems

I am not exactly sure what to do about this, but seems like PackageKit is not available on rhel5:

nagios-okplugin-check_package_updates-0.0.6-1.git.4.a01af47.el5.centos.noarch from ok-testing has depsolving problems
--> Missing Dependency: PackageKit is needed by package nagios-okplugin-check_package_updates-0.0.6-1.git.4.a01af47.el5.centos.noarch (ok-testing)
Error: Missing Dependency: PackageKit is needed by package nagios-okplugin-check_package_updates-0.0.6-1.git.4.a01af47.el5.centos.noarch (ok-testing)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

configuration in a windows

Hi, how to bring the command from a windows server, I do not understand

path = path + ";C:\Program Files\Smart Storage Administrator\ssacli\bin"

/usr/lib64/nagios/plugins/check_updates

/usr/lib64/nagios/plugins/check_updates (latest pynag and check_updates from the RHEL repo)
Thresholding on a metric that doesn't exist causes the status to be unknown. Example:

check_updates --th "metric=security,critical=1..inf" --th "metric=total,ok=0..39,warning=40..inf"
Unknown - Total: 8, Security: 0, Bug fix: 0, Enhancement: 0, Normal: 8. Metric security not found | 'total'=8;~:40;;; 'normal'=8;;;;

my fix was: /usr/lib64/nagios/plugins/check_updates:47

 for m in known_types:
    m = m.lower()
    if not p.get_metric(m):
        p.add_metric(m, 0)

Probably not the cleanest method (I was trying to remove the m = m.lower, but its Friday evening and I gave up)

[check_ipa_replication] nsds5replicaLastUpdateStatus slice is incorrect

The code linked here does not provide anything useful in the returned slice rhost[1]['nsds5replicaLastUpdateStatus'][0][:2]

>> print(rhost[1]['nsds5replicaLastUpdateStatus'][0][:2])
# Full string = "Error (0) Replica acquired successfully"
>> Er

If you want to continue with the slice approach, you probably want something like this.

if rhost[1]['nsds5replicaLastUpdateStatus'][0][7:8] == "0":
    plugin.status(ok)
elif rhost[1]['nsds5replicaLastUpdateStatus'][0][7:8] == "1":
    plugin.status(ok)

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.