Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
OpenBSD SNMPv3 general check
2018-11-27
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
BSD
4451
File | Description |
---|---|
openbsd_snmp3.py | openbsd_snmp3.py |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
> ./openbsd_snmp3.py -h
usage: openbsd_snmp3.py [-h] [--version] -H HOST -l SECLEVEL -u SECNAME
[-a AUTHPROTOCOL] [-A AUTHPASSWORD] [-x PRIVPROTOCOL]
[-X PRIVPASSWORD] -O OPTION [-w WARNING] [-c CRITICAL]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-H HOST IP addess or hostname of the target host
-l SECLEVEL Set the securityLevel used for SNMPv3 messages
(noAuthNoPriv|authNoPriv|authPriv).
-u SECNAME Set the securityName used for authenticated SNMPv3
messages.
-a AUTHPROTOCOL Set the authentication protocol (MD5|SHA) used for
authenticated SNMPv3 messages.
-A AUTHPASSWORD Set the authentication pass phrase used for authenticated
SNMPv3 messages.
-x PRIVPROTOCOL Set the privacy protocol (DES|AES) used for encrypted
SNMPv3 messages.
-X PRIVPASSWORD Set the privacy pass phrase used for encrypted SNMPv3
messages.
-O OPTION Check target. This can be "cpu", "mem", "swap", "fs" or
"proc" - number of running processes. Use "os" to see
operation system information, "proc" to see table of
running processes, "interfaces" to see some intormation
about installed network interfaces, "file-systems" to see
the statistic of disk usage on all mounted file systems.
-w WARNING WARNING threshold
-c CRITICAL CRITICAL threshold
| .
. |L /| . This script uses SNMPv3 to check memory/swap usage, file system
_ . | _| --+._/| . space usage and CPU load average on (remote) OpenBSD system.
/ ||| Y J ) / |/| ./ It also shows detailed information about all avaliable file
J |)'( | ` F`.'/ systems, and configured NICs, system information about OS
-<| F __ .-< and list of running processes.
| / .-'. `. /-. L___
J < | | O|.-' EXAMPLES:
_J .- / O | | |F
'-F --' )._. |-' $./openbsd_snmp3.py -H IP_ADDRESS -u secName -A authPassword
`-|.' /_. _| F -a authProtocol -X privPassword -x privProtocol -O fs:/var
/.- . _.< -w 80 -c 90
/' /.' .' `
/L /' |/ _.-'- Checks RAM usage (in %) with 'authNoPriv' secLevel:
/'J ___.---'| $./openbsd_snmp3.py -u secName -A authPassword -a authProtocol
| .--' V | `. ` -l authNoPriv -H -O mem -w 60 -c 90
|/`. `-. `._)
/ .-. Checks SWAP usage (in %) with 'noAuthNoPriv' secLevel:
( ` $./openbsd_snmp3.py -u secName -l noAuthNoPriv -H IP_ADDRESS
`. -O swap -w 60 -c 90
usage: openbsd_snmp3.py [-h] [--version] -H HOST -l SECLEVEL -u SECNAME
[-a AUTHPROTOCOL] [-A AUTHPASSWORD] [-x PRIVPROTOCOL]
[-X PRIVPASSWORD] -O OPTION [-w WARNING] [-c CRITICAL]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-H HOST IP addess or hostname of the target host
-l SECLEVEL Set the securityLevel used for SNMPv3 messages
(noAuthNoPriv|authNoPriv|authPriv).
-u SECNAME Set the securityName used for authenticated SNMPv3
messages.
-a AUTHPROTOCOL Set the authentication protocol (MD5|SHA) used for
authenticated SNMPv3 messages.
-A AUTHPASSWORD Set the authentication pass phrase used for authenticated
SNMPv3 messages.
-x PRIVPROTOCOL Set the privacy protocol (DES|AES) used for encrypted
SNMPv3 messages.
-X PRIVPASSWORD Set the privacy pass phrase used for encrypted SNMPv3
messages.
-O OPTION Check target. This can be "cpu", "mem", "swap", "fs" or
"proc" - number of running processes. Use "os" to see
operation system information, "proc" to see table of
running processes, "interfaces" to see some intormation
about installed network interfaces, "file-systems" to see
the statistic of disk usage on all mounted file systems.
-w WARNING WARNING threshold
-c CRITICAL CRITICAL threshold
| .
. |L /| . This script uses SNMPv3 to check memory/swap usage, file system
_ . | _| --+._/| . space usage and CPU load average on (remote) OpenBSD system.
/ ||| Y J ) / |/| ./ It also shows detailed information about all avaliable file
J |)'( | ` F`.'/ systems, and configured NICs, system information about OS
-<| F __ .-< and list of running processes.
| / .-'. `. /-. L___
J < | | O|.-' EXAMPLES:
_J .- / O | | |F
'-F --' )._. |-' $./openbsd_snmp3.py -H IP_ADDRESS -u secName -A authPassword
`-|.' /_. _| F -a authProtocol -X privPassword -x privProtocol -O fs:/var
/.- . _.< -w 80 -c 90
/' /.' .' `
/L /' |/ _.-'- Checks RAM usage (in %) with 'authNoPriv' secLevel:
/'J ___.---'| $./openbsd_snmp3.py -u secName -A authPassword -a authProtocol
| .--' V | `. ` -l authNoPriv -H -O mem -w 60 -c 90
|/`. `-. `._)
/ .-. Checks SWAP usage (in %) with 'noAuthNoPriv' secLevel:
( ` $./openbsd_snmp3.py -u secName -l noAuthNoPriv -H IP_ADDRESS
`. -O swap -w 60 -c 90
Reviews (0)
Be the first to review this listing!