This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extractors": [ | |
{ | |
"condition_type": "none", | |
"condition_value": "", | |
"converters": [ | |
{ | |
"config": {}, | |
"type": "numeric" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Check free memory in SmartOS | |
# Regards the ARC as free memory | |
# | |
# Copyright Marcus Wilhelmsson | |
# License: MIT | |
# | |
# Get args | |
TEMP="getopt -o wch:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# template file pnp4nagios | |
# copyright Marcus Wilhelmsson | |
# license: MIT | |
# to be used with my check_cpuload.sh for SmartOS for generating graphs with pnp4nagios | |
# Define opt and def as empty | |
$opt[1] = ''; | |
$def[1] = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/node/bin/node | |
/* | |
check_smarttemp.js - Nagios plugin for checking mean disk temperatures on SmartOS using smartmontools | |
* CDDL HEADER START | |
* | |
* The contents of this file are subject to the terms of the | |
* Common Development and Distribution License, Version 1.0 only | |
* (the "License"). You may not use this file except in compliance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="nrpe"> | |
<service name="pkgsrc/nrpe" type="service" version="1"> | |
<create_default_instance enabled="false" /> | |
<single_instance /> | |
<dependency name="network" grouping="require_all" restart_on="error" type="service"> | |
<service_fmri value="svc:/milestone/network:default" /> | |
</dependency> | |
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Check CPU load on SmartOS | |
# Copyright Marcus Wilhelmsson | |
# License: MIT | |
# | |
#Get args | |
while getopts "w:c:" OPTION; do | |
case "${OPTION}" in |