
REF: https://en.wikipedia.org/wiki/TurnKey_Linux_Virtual_Appliance_Library
nagiosserver
is the FQDN of your nagios server) :echo -e "localhost \ttestservice \t0 \tTEST " | send_nsca nagiosserver
/var/log/nagios/nagios.log
: you should see a mention that nagios received your message, and a complaint that it can't process the service check result because the service doesn't exist. That's because you did not define service "testservice". But it confirms that your nsca setup works.CHECKMK MULTISITE CONFIGURATION 1) In WATO go to "Host & Service Parameters" >> "Active Checks" >> "Classical active and passive Nagios checks" 2) Create a new rule in which the "Service description" is the same name that is going to receive the NSCA information. (This name would also be configured on your NSCA agent on the client being monitored.) 3) Make sure the new rule only applies to the hosts that will be receiving the NSCA information. This can be done via tags or by explicitly specifying host names. I prefer tags as that way I can just set up a new host with the correct tags and it will automatically get the new NSCA Service added to it's checks. 4) In the "Command line" checkbox of the new service, I put something like this 'echo "ERROR - you did an active check on this service - please do not do that on this service" && exit 1'. (This is similar to what MK is doing with CheckMK passive checks in the CheckMK template file.) 5) Go back to the Main Menu for "Host & Service Parameters" (The Rule Editor) 6) Go to "Monitoring Configuration" 7) Create a new rule under the section "Service Checks" in the category "Enable/disable active checks for services" 8) Make sure this rule specifies the Service name that you created back in step 2 and set it to "Disable active checks". 9) Apply the changes in WATO It is important to note that at this point, you have now created a Service for a host (or hosts) that is not actively being checked and is just sitting as a passive check. This is good because it will allow NSCA to pass status information for the Service back to Nagios.
ffmpeg -i video.avi -af "volumedetect" -f null /dev/null
/dev/null
with NUL
on Windows. This will output something like the following:[Parsed_volumedetect_0 @ 0x7f8ba1c121a0] mean_volume: -16.0 dB
[Parsed_volumedetect_0 @ 0x7f8ba1c121a0] max_volume: -5.0 dB
[Parsed_volumedetect_0 @ 0x7f8ba1c121a0] histogram_0db: 87861
volume
filter to an audio file. Note that applying the filter means we will have to re-encode the audio stream. What codec you want for audio depends on the original format, of course. Here are some examples:ffmpeg -i input.wav -af "volume=5dB" output.mp3
ffmpeg -i video.avi -af "volume=5dB" -c:v copy -c:a libmp3lame -q:a 2 output.avi
-b:a 192k
, for example.ffmpeg -i video.mp4 -af "volume=5dB" -c:v copy -c:a aac -strict experimental -b:a 192k output.mp4
-c:v copy
. If there are subtitles in your input file, or multiple video streams, use the option -map 0
before the output filename.root@linux# check_mk -P install foo-1.0.mkphttp://mathias-kettner.com/check_mk_exchange_file.php?HTML=yes&file=yum-2.0.3.mkp
Package | yum |
---|---|
Version | 2.0.3 |
Author | Henri Wahl |
Uploaded | 2015-10-01 15:00:03 |
Description | Checks for updates on RPM-based distributions via yum. |
Website | https://github.com/HenriWahl/checkmk-agent-plugin-yum |
Minimal Version | 1.2.4 |
Packet with | 1.2.6p10 |
Filesize | 3.06k |
Content | agents/plugins/yum checkman/yum checks/yum web/plugins/wato/yum_check_parameters.py |
Checksum (MD5) | 405fe7bb6ff1dd897b8723c8d30bf220 |
Downloads | 2185 |
:: short answer :
:: perl -MCPAN -e "install PAR::Packer"
pp -o <<DesiredExeName>>.exe <<MyFancyPerlScript>>
Config variable | Meaning |
---|---|
ignored_checktypes | Simple list of checktypes to exclude from inventory |
ignored_services | Host specific configuration list of service names to exclude |
ignored_checks | Host specific configuration list of checktypes to exclude NEW in 1.1.9i1 |
dd if=/dev/zero of=/mytempfile # that could take a some time rm -f /mytempfile
mv image.qcow2 image.qcow2_backup
qemu-img convert -O qcow2 -c image.qcow2_backup image.qcow2
# ethtool eth0
Output:Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: Yes Speed: 100Mb/s Duplex: Full Port: MII PHYAD: 32 Transceiver: internal Auto-negotiation: on Supports Wake-on: pumbg Wake-on: d Current message level: 0x00000007 (7) Link detected: yes
# mii-tool eth0
Output:eth0: negotiated 100baseTx-FD flow-control, link ok