02-19-2013 03:08 AM
Hi all,
I've tried to configure the Cluster Notifier. Ok, I just needed to reconfigure it with a new IP and it was already setup. How can I test it now? I have tried to simulate a failed login and I can see the result in the engine_A.log:
2013/02/19 11:55:46 VCS WARNING V-16-1-10053 User fd does not exist
2013/02/19 11:55:49 VCS WARNING V-16-1-10053 User ds does not exist
The Notifier is configured to send mails when a Warning occurs. Is there any chance to see if the Notifier sends a mail? I have checked NotifierMngr_A.log which is empty. notifier-out_A.log shows only one single line after I have restarted the notifier:
2013/02/19 11:44:19 VCS WARNING V-16-1-17031 Notifier:activated signal 6
I'm asking because I haven't any access to the mail server it self.
Thanks,
Marek
Solved! Go to Solution.
03-01-2013 04:53 AM
AFAIK, VCS will not send any information about user login errors. the messages are sent for group, resource, system, cluster, agent objects.
also an explicit addition using 'hanotify' will be sent to notifier.
02-19-2013 06:46 AM
Do you not have an email account on the mail server so you can configure your email to check if you get messages. Alternatively you can set SmtpServer to localhost so send to a local UNIX email account like "root@fqhn_of_cluster_node".
If you want to send emails to an external mail server, then you should check your host is setup for example by using mailx from a cluster node, something like:
mailx -s "This is a test" marek@company.com < /dev/null
Mike
02-28-2013 05:54 AM
Hi,
sorry for the late reply. I can write a mail to myself with mailx. But when I configure the Notifier to 127.0.0.1 then nothing happens. Just nothing. No log file will be wirtten and no mail appears. Even /var/spool/mqueue stays empty. I ran already snoop to see any smtp traffic but still nothing happens.
Marek
02-28-2013 06:14 AM
Ok,
tested more:
1. Activated mail.info in syslog.conf and restarted it (/var/log/maillog).
2. Restartet sendmail and sent a mail via mailx. Log maillog inidicates clearly an incoming mail etc.
3. Reconfigured Notifier to Server 127.0.0.1 and Warning:
hares -value ntfr SmtpServer
127.0.0.1
hares -value ntfr SmtpRecipients
mail@example.com Warning
4. Saved and Closed the configuration.
5. Took ntfr offline and back online.
6. Tried to login into the cluster via GUI as root with a wrong password. engine_A.log indicates a failed login:
WARNING V-16-1-50132 User root, logging in from 10.0.0.1 has wrong password
7. No mail sent
03-01-2013 04:53 AM
AFAIK, VCS will not send any information about user login errors. the messages are sent for group, resource, system, cluster, agent objects.
also an explicit addition using 'hanotify' will be sent to notifier.
03-01-2013 06:00 AM
OK, didn't knew that. But hanotify gave me the final hint: http://sfdoccentral.symantec.com/sf/5.0/hpux/manpages/vcs/hanotify_1m.html