Small army of nagios-plugins either made or maintained by opinkerfi
opinkerfi / nagios-plugins Goto Github PK
View Code? Open in Web Editor NEWSmall army of nagios-plugins either made or maintained by opinkerfi
Small army of nagios-plugins either made or maintained by opinkerfi
$ /usr/lib/nagios/plugins/check_procs.sh -w 0:50 -c 0:300
PROCS WARNING: 254 processes | procs=254
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.
There is a new package in epel called nagios-plugins-check-updates which also provides nagios-plugins-check-updates.
Had to make some changed for it to work with python version 3..8.7
Unhandled exception while running script: argument should be integer or bytes-like object, not 'str'
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.
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.
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| |_____|____|_____________|________|_________|________|________|______________________|__________|____________|
tail: cannot open `/var/log/messages' for reading: Permission denied
After much discussion with the folks in #freeipa, status of "1" (Replica Busy) should not be considered an error state. At most it should be considered 3
(UKNOWN), but probably should just be considered 0
(OK).
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
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.
This policy needs minor adjustments if I remember correctly:
http://codeforthesoul.blogspot.com/2012/02/selinux-policy-to-run-checkyum-with.html
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 (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)
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)
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.