[afnog] Nagios Configuration

Mike Barnard mike.barnardq at gmail.com
Fri Jul 9 14:02:09 UTC 2010


On Fri, Jul 9, 2010 at 1:10 PM, Benjamin Cobblah <cbnayai at yahoo.co.uk>wrote:

> Dear All,
>
> How do you add 2 services eg ping and uptime to a single host on nagios3.
>
> Do you split the services or you ca add to one directive?
>
>
I believe you need to split the service. I do not think you can pass two
check_command directives in one service definition.

The other option is to write your own script to ping and also check the host
uptime and return to you a result that nagios can understand and display
this.

    check_command           check_ping_uptime!100.0,20%!500.0,60%!-C public
-o sysUpTime.0

Your script would then take three inputs and give out an output formatted to
your preference...


-- 
Mike

Of course, you might discount this possibility, but remember that one in
a million chances happen 99% of the time.
------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://afnog.org/pipermail/afnog/attachments/20100709/46442df7/attachment.htm>


More information about the afnog mailing list