Description of problem: perl -e 'use NOCpulse::Notif::Acknowledgement' Failed to open /etc/nocpulse/NOCpulse/config/static/notif.ini: No such file or directory at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/NotifMailer.pm line 26 Can't call method "val" on an undefined value at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/NotifMailer.pm line 28. Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/Acknowledgement.pm line 16. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/Acknowledgement.pm line 16. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.. notif.ini -- configuration file detailing serverid (in the notification farm) and the box's address. Currently hooked into the sysvstep framework and generated by notification system startup. Since we do not us sysvstep for installation this file is not created.
Note for myself: On old Satellite (ie. previous state): [root@sputnik-prod:~]# ls -ld /opt/notification/config/stage/config/static lrwxrwxrwx 1 nocpulse nocpulse 12 Sep 10 15:04 /opt/notification/config/stage/config/static -> ../../static [root@sputnik-prod:~]# ls -ld /opt/notification/config/static drwxr-xr-x 2 nocpulse nocpulse 4096 Nov 25 17:16 /opt/notification/config/static On current spacewalk: [root@xen33 tmp]# ls -ld /etc/notification/static/ drwxr-xr-x 2 nocpulse nocpulse 4096 Nov 27 18:07 /etc/notification/static/ [root@xen33 tmp]# rpm -qf /etc/notification/static/ NPalert-1.125.20-1.el5 So I should change the path in NPalert packages
Commited as 03c71cf99784e1ef9e5456237733f67a34e9aac5
The notif.ini seems to be present (albeit in different directory) and NOCpulse::Notif::Acknowledgement from # rpm -qf /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Notif/Acknowledgement.pm NPalert-1.125.26-1.el5 finds it just fine: # perl -e 'use NOCpulse::Notif::Acknowledgement' # strace perl -e 'use NOCpulse::Notif::Acknowledgement' 2>&1 | grep notif.ini open("/etc/notification/static/notif.ini", O_RDONLY|O_LARGEFILE) = 4