If you're looking to monitor the process remotely, something like this might
do:

#!/usr/bin/perl -w
    use strict;
    use Socket;
    my ($remote,$port, $iaddr, $piaddr, $proto);
    $remote = shift || die;
    $port    = shift || 1241;
    $iaddr   = inet_aton($remote)  || die "no host: $remote";
    $piaddr   = sockaddr_in($port, $iaddr);
    $proto   = getprotobyname('tcp');
    socket(SOCK, PF_INET, SOCK_STREAM, $proto)  || die "socket: $!";
    if (connect(SOCK, $piaddr)) {
        print "Host alive\n";
    } else {
        print "Nessusd seems dead\n";
    }

If you're monitoring from the nessus server on linux something like "pidof
nessusd" might work
if you're on non-linux unix, something like " pidof = `ps auxww | awk
'/nessusd/ {print $2}'` "

if these don't help...send some more detail and the check should be trivial.

John Lampe
https://f00dikator.hn.org/


"In Germany, they first came for the communists, and I didn't speak up
because I wasn't a communist. Then they came for the
Jews, and I didn't speak up because I wasn't a Jew. Then they came for
the trade unionists, and I didn't speak up because I
wasn't a trade unionist. Then they came for the Catholics and I didn't
speak up because I wasn't a Catholic. Then they came for me - and by
that time there was nobody left to speak up."

--Martin Niemvller

----- Original Message -----
From: "Michael Scheidell" <[EMAIL PROTECTED]>
To: "Magoon, Sanjay" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 11, 2002 6:08 PM
Subject: Re: Monitoring tool


> > Hi,
> >
> > Has anyone created a nessusd monitoring process?  I need something that
will
> > actively monitor the nessusd daemon on my server.
>
> tail -f /usr/local/var/nessus/logs/nessusd.messages  ?
>
> --
> Michael Scheidell
> Secnap Network Security, LLC
> (561) 368-9561 [EMAIL PROTECTED]
> See updated IT Security News at http://www.secnap.net/

Reply via email to