Tag Info

Hot answers tagged


Turns out that the number of pending regular updates can be found using: /usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f 1 And the number of pending security updates can be found using: /usr/lib/update-notifier/apt-check 2>&1 | cut -d ';' -f 2 In the end, my Nagios plugin was as follows: #!/bin/sh # Standard Nagios plugin return ...


You can find the answer here: http://ubuntuforums.org/showthread.php?t=1328967 Here's the copy-paste from the above link: on commit { set ClientIP = binary-to-ascii(10, 8, ".", leased-address); set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6)); log(concat("Commit: IP: ", ClientIP, " Mac: ", ClientMac)); ...


The Nagios plugin /usr/lib/nagios/plugins/check_apt does not detect critical updates in Ubuntu correctly due how it detects critical updates via apt combined with how Ubuntu non-critical updates are published. More details are in the bug here: https://bugs.launchpad.net/bugs/1031680 Using /usr/lib/update-notifier/apt-check instead is a reliable workaround.


OK, I've been trawling though the Nagios3 documentation and have answered the port configuration part of my question... The answer lies in the Object Inheritance model that exists within the Nagios configuration files. Essentially I created a custom variable in each host definition that specifies the unique ssh port on that machine: define host { use ...


I've know about two options, but I haven't tried them: Nagios installer for Windows (only 32 bit installer) Nagwin You might want to take a look here, this site is dedicated for all kinds of extensions for Nagios. Have fun.


The Nagios docs explain this setting as: This directive determines whether or not checks for the service will be "obsessed" over using the ocsp_command. The ocsp_command is explained here. This is the "Obsessive Compulsive Service Processor Command." This option allows you to specify a command to be run after every service check, which can be ...


You will have to install wget is you don't have it already: #!/bin/bash IFS=' ' LIST='http://www.google.com http://www.drk.com.ar/daphne.php http://www.google.com/this-is-an-error http://serverfault.com/questions ' for I in $LIST do wget -q --no-cache --spider $I if [ $? != 0 ]; then echo Error: $I fi done


SUGGESTION #1 I have a suggestion if you are willing to get your hands a little dirty and the tables are reasonably small enough. You should convert all tables with auto_increment from INT to BIGINT. This should suppress autoincrement overflow issues for our lifetime. This will result in bigger tables (1 extra byte per row). SUGGESTION #2 If you still ...


I found the solution and separated it in five steps, so you could install it in a Virtual machine and don't have to upgrade or install the package every time, so you can run just the last step that you run before. 1. Adding the repository #!/bin/bash if [ ! -f rpmforge-release-0.5.3-1.el6.rf.i686.rpm ]; then #i386 wget ...

Only top voted, non community-wiki answers of a minimum length are eligible