nemslinux / nems-plugins Goto Github PK
View Code? Open in Web Editor NEWA collection of Nagios plugins to augment functionality within NEMS Linux.
A collection of Nagios plugins to augment functionality within NEMS Linux.
When utilizing the check_win_xxx commands if the account password utilized for WMI has a ")" or "(" in it, it throws the error: "(No output on stdout) stderr: /bin/sh: 1: Syntax error: "(" unexpected"
when check_dhtxx is used NEMS returns error: (Service check timed out after 120.09 seconds)
Command executed: /usr/lib/nagios/plugins/check_dhtxx 35 40 75 80 temp
Looking at check_dhtxx I see lines 13 and 15 are calling nems-info but are failing to pass a second argument which specify which GPIO pin is in use. nems-info doesn't have a default value for the GPIO pin so the command eventually times out.
line 13: $dht = json_decode(shell_exec('/usr/local/bin/nems-info dht22'));
needs to be changed to: $dht = json_decode(shell_exec('/usr/local/bin/nems-info dht22 18'));
or ideally NConf should prompt for GPIO pin and pass it as an argument to check_dhtxx.
MIBs appear to have changed and so we get an Unknown Part error
QNAP_5_MIBs.zip
As per: NEMSLinux/nems-admin#13
Azokul01 commented on Feb 7, 2023
The repo at https://raw.githubusercontent.com/Cat5TV/nems-admin/master/build/047-nrpe is currently missing some files (nrpe.cfg and nrpe on /usr/local/nagios/bin/nrpe)
Currently the deployed templates for check_synology don't work as they require the -t argument.
The current release of NEMs (1.6) has the version 2.5 script.
This new argument was introduced in version 2.6, I have tested by updating the script on my deployment and the snmp calls are successful after updating.
Nems Linux version
1.6
Platform
Raspberry Pi 3B+ (but I'll guess any platform has this)
Priority
Low - workaround available
Description:
I want to use the --rate option in check_snmp, this feature writes a small text file of the last state and next time it runs it shows the difference between the last value and the new value, like old value is 100 and the new value is 80 the result will be -20%.
Issue
Check_SNMP by default wants to create the folders in /usr/var/1001/check_snmp and create text files here, to remember the last state of the service. This path doesn't exist, and permissions are not set to correctly to create the files. But as the /usr folder is not very much in use, I guess you might want to configure it to set to the correct destination, but that's up to you.
Workaround
Create the needed folders and set the correct permissions so the plugin can create the necessary files.
It looks like check_esxi_hardware requires python3 but when it is running, it is using python 2.
user@nems:/usr/lib/nagios/plugins $ python check_esxi_hardware.py
Traceback (most recent call last):
File "check_esxi_hardware.py", line 267, in <module>
import pywbem
ImportError: No module named pywbem
user@nems:/usr/lib/nagios/plugins $ python3 check_esxi_hardware.py
no parameters specified
Usage: check_esxi_hardware.py -H hostname -U username -P password [-C port -V system -v -p -I XX]
...
user@nems:/usr/lib/nagios/plugins $ which python
/usr/bin/python
user@nems:/usr/lib/nagios/plugins $ /usr/bin/python --version
Python 2.7.18
I can run it using python3 manually and it works fine.
when trying to use check_win_desk and check_win_mem I am getting the following error.
(No output on stdout) stderr: Can't locate Number/Format.pm in @inc (you may need to install the Number::Format module) (@inc contains: /usr/lib64/nagios/plugins /usr/lib/nagios/plugins /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at /usr/lib/nagios/plugins/check_wmi_plus.pl line 54.
BEGIN failed--compilation aborted at /usr/lib/nagios/plugins/check_wmi_plus.pl line 54.
Adafruit has deprecated the Adafruit Python DHT Sensor Library
and replaced it with the Adafruit CircuitPython DHT Library
leaving DHT sensors unable to be detected on modern NEMS Servers.
Reported by Enzo_Sous_Lean
on Discord.
Currently when a service/host is Down, the repeating messages are identical to the initial alert message.
It would be nice to distinguish the repeat messages from new alert messages.
Would also be nice if the new plugin is compatible with plain Nagios, for those who don't run Nems.
Just thinking this last part out loud, may the idea fall where it may. :-)
As per: NEMSLinux/nems-admin#8
ChrisHird commented on Jul 21, 2021
Does not run, the following is the output.
Problem with the check_ibmi_disk. cannot find the class.
(No output on stdout) stderr: java.lang.ClassNotFoundException: com.ibm.nagios.service.impl.DiskUtiliz
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at com.ibm.nagios.util.ActionFactory.get(ActionFactory.java:13)
at com.ibm.nagios.client.CheckIBMiStatus.main(CheckIBMiStatus.java:49)
java.lang.NullPointerException
at com.ibm.nagios.client.CheckIBMiStatus.main(CheckIBMiStatus.java:73)
NEMSLinux commented on Jan 3, 2023
Noting your post here for future review: IBM/nagios-for-i#17
It would be great to be able to customise the email notification headers, in particular my SMS provider requires them to be a maximum of 11 characters.
Thanks very much
As per: NEMSLinux/nems-admin#16
GitMarshallBill commented on May 16, 2023
Telegram notifications just say "Problem" or "Recovery". Any way to get them to be a bit more descriptive? What problem?
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.