Operating System - HP-UX
1834253 Members
2152 Online
110066 Solutions
New Discussion

Re: Can DNS generate SMNP when named is dead?

 
Martin Hui
Advisor

Can DNS generate SMNP when named is dead?

Hi,

I wonder if anyone can help me on this.

If the named daemon is dead, can DNS able to generate SMNP. If yes, how can i check this from my DNS? Or how can i configure my DNS server to generate SMNP for alerting me the named daemon.
My DNS is running with the software(bind 8.2.5-rel and HP-Unix 11.0).

Many thanks.

Best regards,

martin
7 REPLIES 7
Alex Lavrov.
Honored Contributor

Re: Can DNS generate SMNP when named is dead?

named is DNS, right?
So, it can't generate nothing when it's dead. You need somekind of software that will check if named is up and generate *SNMP* in the case of error.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Martin Hui
Advisor

Re: Can DNS generate SMNP when named is dead?

Hi Alex,

Does HP Unix 11-00 come with software to monitor the named daemon? Can i enable it and how?

Thank you.

Best regards,

martin
Sudeesh
Respected Contributor

Re: Can DNS generate SMNP when named is dead?

There is no inbuilt tool available for monitoring gated process. You can install additional products like OpenView and configure monitoring(so many other tools are available like Unicenter). If availability of DNS is so critical you can look for High availability solutions. Poor man's solution will be to write a shell script to check for this process and alert you if not found.

Use a script like this:

PROC=`ps -ef|grep gated |grep -v grep`
if [[ $PROC = "gated" ]] then
mailx -s "Warning! gated process not running" xxxxx@yy.com
fi


Sudeesh
The most predictable thing in life is its unpredictability
Alex Lavrov.
Honored Contributor

Re: Can DNS generate SMNP when named is dead?

I don't think so ...

You have to write it or buy a monitoring software.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Sudeesh
Respected Contributor

Re: Can DNS generate SMNP when named is dead?

correction:

PROC=`ps -ef|grep gated |grep -v grep`
if [[ $PROC = "" ]] then
mailx -s "Warning! gated process not running" xxxxx@yy.com
fi

Sudeesh
The most predictable thing in life is its unpredictability
Florian Heigl (new acc)
Honored Contributor

Re: Can DNS generate SMNP when named is dead?

the net-snmp snmp agent can watch for processes, I think this is the way to go for You.

here's a snippet from the config file:
###############################################################################
# Process checks.
#
# The following are examples of how to use the agent to check for
# processes running on the host. The syntax looks something like:
#
# proc NAME [MAX=0] [MIN=0]
#
# NAME: the name of the process to check for. It must match
# exactly (ie, http will not find httpd processes).
# MAX: the maximum number allowed to be running. Defaults to 0.
# MIN: the minimum number to be running. Defaults to 0.

#
# Examples:
#

# Make sure mountd is running
#proc mountd


I should add that net-snmp builds and runs on hp-ux, but must be configured to stay out of HP-UX' SnmpMaster daemon by using a different port.

florian
yesterday I stood at the edge. Today I'm one step ahead.
Bill Hassell
Honored Contributor

Re: Can DNS generate SMNP when named is dead?

For a simple cron job to monitor any process by name, this is much more reliable than grep:

MYPROC=named
PROC=$(UNIX95= ps -fC $MYPROC)
[[ $PROC = "" ]] && mailx -s "Warning! $MYPROC process not running" xxxxx@yy.com

However, named always runs, so if it gets killed, either you need patches or someone with root capability made a big mistake.


Bill Hassell, sysadmin