Using Tail to watch a log file
If you ever need to watch a log file to see if something goes into it, here is a cheeky command to do that. The -f says to watch for updates, the -n 500 shows how many lines to bring back.
The ramblings of a computer geek
If you ever need to watch a log file to see if something goes into it, here is a cheeky command to do that. The -f says to watch for updates, the -n 500 shows how many lines to bring back.
We had an interesting one with Postfix, we were recieving mail fine from all other domains. Then one domain (in this case domain.co.uk) started not to get through, no changes had been made at our end. What was happening was that their domain.co.uk nameservers were not reporting TXT records properly, rather than reporting nothing or … Read more
Find and replace with VI on a pathname is a bit tricky you ned to use escape characters. In this case /bin/mail should be replaced with /usr/bin/mail The command below would do it:
With Nagios using check_icmp is the way to go, it better and faster, below is an example configuration directive for setting the check-host-alive command which will be used by each host check.
Here is an example of find and replace with VI, this will replace every instance of the “findthistext” string in the file with “replacewithtext”. Neat saves lots of typing!
This is what would be needed in your hosts configuration to monitor using check_icmp rather than check_ping. This makes the assumption its going to do two pings, otherwise turn “-p 2” into $ARG3$ instead!
http://exchange.nagios.org/directory/Plugins/Network-Protocols/HTTP/check_ssl_cert_alternative/details Downloaded the file and stuck it in: /usr/local/share/nagios/libexec Make it executable: Change the owner: Change the group: Rename it so I don’t need to stick the .pl on the end: Do a test run: Seems to be okay we see: “servername.domain.name:443 68 Days left” In the example below, that needs to be added to … Read more
So for each of the services above, one with spaces in it the other containing a dollar sign the following is needed: ReportServer$DPMDB2010 -> ReportServer”$$”DPMDB2010 Mondas RADIO Server -> “Mondas RADIO Server”