[wplug] configuring mon in linux

squeegy-wplug at squeegy.org squeegy-wplug at squeegy.org
Fri May 26 15:08:23 EDT 2006


On Fri, 26 May 2006, Jonathan S. Billings wrote:

>
> I've used Mon and Nagios, and both have somewhat involved config file 
> editing.  I've heard from other wplug'ers that Cacti is really nice for 
> point-and-click configuraiton.
>
>

Cacti doesn't look like what I want.  It seems to focus on graphing the network.
I am not looking for point and click or even a gui.  I am not looking so much for a way of looking at my networks availablity but a way to react to my services availability.

Mon looks like what I want but the docs are not helpful.  Seeings you have configured mon maybe you could help correct what i am doing wrong.

I setup a monitor and tested the monitor

Stopping httpd:                                            [  OK  ]

  ./http_integrity.monitor -u /index.html satellite:81
ERROR: 500 [Can't connect to satellite:81 (connect: Connection refused)] retrieving http://satellite:81/index.html

Starting httpd:                                            [  OK  ]

./http_integrity.monitor -u /index.html satellite:81
echo $?
0

so the monitor works.

I added it to mon.cf

watch webserver
     service ping
         interval 5m
         monitor fping.monitor
         period wd {Mon-Fri} hr {7am-10pm}
             alert mail.alert root at localhost
             alertevery 1h
         period wd {Sat-Sun}
             alert mail.alert root at localhost
    service http
         interval 4m
         monitor /usr/lib/mon/mon.d/monitors/http/http_integrity.monitor -u /index.html satellite:81
         allow_empty_group
         period wd {Sun-Sat}
             upalert mail.alert -S "web server is back up" mis
             alertevery 45m

then I check the status with monshow and it is untested

monshow -full

      server: localhost
        time: Fri May 26 15:00:53 2006
       state: scheduler running

   GROUP           SERVICE      STATUS      LAST       NEXT       ALERTS SUMMARY
R webserver       ping         untested    untested   0s         none
R webserver       http         untested    untested   0s         none


It is not even doing the ping test.
-- 


___________________

Jt Chiodi

http://www.madbanjoman.com
jt at madbanjoman.com


More information about the wplug mailing list