Boop the Monitoring::Sneck's snoot via SNMP
Go to file
Zane C. B-H 7b1f5b64c7 add support for base64+gzip and bump to 0.2.0 2022-08-01 15:12:14 -05:00
bin quick fix for -n and OK 2022-05-07 03:30:06 -05:00
lib/Monitoring/Sneck add support for base64+gzip and bump to 0.2.0 2022-08-01 15:12:14 -05:00
t mostly done 2022-05-01 00:55:09 -05:00
.gitignore Initial commit 2022-04-30 21:17:28 -05:00
Changes add support for base64+gzip and bump to 0.2.0 2022-08-01 15:12:14 -05:00
MANIFEST ready for release 2022-05-05 00:28:50 -05:00
Makefile.PL add support for base64+gzip and bump to 0.2.0 2022-08-01 15:12:14 -05:00
README ready for release 2022-05-05 00:28:50 -05:00
README.md ready for release 2022-05-05 00:28:50 -05:00
ignore.txt mostly done 2022-05-01 00:55:09 -05:00

README.md

Monitoring-Sneck-Boop_Snoot

This his basically a wrapper for smpget and nicely formatting the returned output. Also saves one the headache of having to remember the OID or have it handy.

FLAGS

boop_snoot <args> <host>

-p                       Do not pretty print.

-s                       Do not Sort the keys.

-d                       Print all of it and not just .data

-v <version >            Version to use. 1, 2c, or 3
                         Default: 2c

SNMP Version 1 or 2c specific
-c <community>           SNMP community stream.
                         Default: public

SNMP Version 3
-a <value>               Set authentication protocol (MD5|SHA|SHA-224|SHA-256|SHA-384|SHA-512)
-A <value>               Set authentication protocol pass phrase
-e <value>               Set security engine ID (e.g. 800000020109840301)
-E <value>               Set context engine ID (e.g. 800000020109840301)
-l <value>               Set security level (noAuthNoPriv|authNoPriv|authPriv)
-n <value>               Set context name (e.g. bridge1)
-u <value>               Set security name (e.g. bert)
-x <value>               Set privacy protocol (DES|AES)
-X <value>               Set privacy protocol pass phrase
-Z <value>               Set destination engine boots/time

-h                       Print help info.
--help                   Print help info.
--version                Print version info.

EXAMPLE

> boop_snoot nibbles1
{
   "alert" : 0,
   "alertString" : "",
   "checks" : {
      "geom_nibbles1" : {
         "check" : "/usr/local/libexec/nagios/check_geom mirror nibbles1",
         "exit" : 0,
         "output" : "OK mirror/nibbles1 COMPLETE { da0 (ACTIVE) , da1 (ACTIVE) }|geom_mirror=2;;;0;",
         "ran" : "/usr/local/libexec/nagios/check_geom mirror nibbles1"
      },
      "zfs_src" : {
         "check" : "/usr/local/libexec/nagios/check_zpools -p src",
         "exit" : 0,
         "output" : "ALL ZFS POOLS OK (src)|src=15%",
         "ran" : "/usr/local/libexec/nagios/check_zpools -p src"
      },
      "zfs_storage" : {
         "check" : "/usr/local/libexec/nagios/check_zpools -p storage",
         "exit" : 0,
         "output" : "ALL ZFS POOLS OK (storage)|storage=18%",
         "ran" : "/usr/local/libexec/nagios/check_zpools -p storage"
      }
   },
   "critical" : 0,
   "errored" : 0,
   "hostname" : "nibbles1",
   "ok" : 3,
   "time" : 1651728300,
   "unknown" : 0,
   "vars" : {
      "PATH" : "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
   },
   "warning" : 0
}