Monitor log file for inactivity?

Marcel webknowledge at gmail.com
Wed Jul 23 19:07:29 CEST 2008


On Tue, Jul 22, 2008 at 6:26 PM, Mark Young <myoung at nagios.org> wrote:

>
> On Jul 22, 2008, at 7:56 AM, Sean Carolan wrote:
> > I have heard that check_by_ssh can cause a lot of overhead on large
> > networks where there are many checks going on at the same time.  Can
> > anyone give some practical numbers here?  I have about 160 machines
> > that need to be monitored, most of them will simply have the basic
> > CPU/Disk/Memory monitoring.  I would think that on a small network
> > like this it should not be a major problem.
>

[ "`stat /tmp/delta_perc.log  | egrep Modify | awk '{print $3}' | cut -d.
-f1 | date +%s`" -lt "`date +%s`" ] && \
  echo "[`date +%s`] PROCESS_SERVICE_CHECK_RESULT;host1;Log File Age;2;Lower
Than" >> /usr/local/nagios/var/rw/nagios.cmd

One liner cron plugin. 2 cents... ;)


>
>
> You should no problem if you are running on decent hardware since
> don't have that many hosts and only a few services will be checked
> with SSH.  NRPE is definitely the preferred method for running remote
> checks.  With each SSH check you are creating a new tunnel, logging
> onto a remote machine as the user you setup, running the command,
> waiting for output, and closing the connection.  Plus you are normally
> creating a public ssh key that allows for password-less log on.  You
> can see where there are both performance and security concerns.
>
> Check_by_ssh will work fine but I would at least take a took at NRPE.
> The difference in setting it up may be smaller than you think since
> you will have to touch each machine to install the plugins no matter
> what you decide.
>
>
> >
> > Nice.  I really appreciate the help.  Nagios will soon be replacing
> > the feature-challenged monitoring software we are using now for Linux
> > machines.
>
> Good to hear and good luck! :-)
>
>
> Mark Young
> ___
> Nagios Enterprises, LLC
> Web:    www.nagios.com
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080723/e0190f2d/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list