page.log entry
list Robert Manocchia
I am running hobbit server 4.2.0. My email pages are working fine but I cannot get my custom script to parse the BBALPHAMSG file to send a page to our system pager. In the /var/log/hobbit/page.log file I see the following entries: awk: cmd. line:2: fatal: cannot open file `server1.disk' for reading (No such file or directory) I can manually send pages to the system pager but when I try to parse the BBALPHAMSG file I get nada. Any help would be greatly appreciated. Thanks. Robert Manocchia UNIX System Administrator IDEXX Laboratories XXX XXX-XXXX EMail user-615a9b935f98@xymon.invalid
list Trent Melcher
▸
On Mon, 2007-09-10 at 11:02 -0400, Manocchia, Robert wrote:
I am running hobbit server 4.2.0. My email pages are working fine but I cannot get my custom script to parse the BBALPHAMSG file to send a page to our system pager. In the /var/log/hobbit/page.log file I see the following entries: awk: cmd. line:2: fatal: cannot open file `server1.disk' for reading (No such file or directory)
Looks like you didnt define the path to server1.disk, it looks like its trying to find it in current directory which is probably $BBHOME if hobbit fired off the script. Qualify your path to the file location and you should be fine. Trent
▸
I can manually send pages to the system pager but when I try to parse the BBALPHAMSG file I get nada. Any help would be greatly appreciated. Thanks. Robert Manocchia UNIX System Administrator IDEXX Laboratories XXX XXX-XXXX EMail user-615a9b935f98@xymon.invalid
list Robert Manocchia
Thanks. I found it. It was a problem with the awk command in one of my custom scripts.
▸
Robert Manocchia
UNIX System Administrator
IDEXX Laboratories
XXX XXX-XXXX
EMail user-615a9b935f98@xymon.invalid
-----Original Message-----
From: Trent Melcher [mailto:user-c65e78735b17@xymon.invalid] Sent: Monday, September 10, 2007 1:01 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] page.log entry
On Mon, 2007-09-10 at 11:02 -0400, Manocchia, Robert wrote:I am running hobbit server 4.2.0. My email pages are working fine but I cannot get my custom script to parse the BBALPHAMSG file to send a page to our system pager. In the /var/log/hobbit/page.log file I see the following entries: awk: cmd. line:2: fatal: cannot open file `server1.disk' for reading (No such file or directory)
Looks like you didnt define the path to server1.disk, it looks like its trying to find it in current directory which is probably $BBHOME if hobbit fired off the script. Qualify your path to the file location and you should be fine. Trent
I can manually send pages to the system pager but when I try to parse the BBALPHAMSG file I get nada. Any help would be greatly appreciated. Thanks. Robert Manocchia UNIX System Administrator IDEXX Laboratories XXX XXX-XXXX EMail user-615a9b935f98@xymon.invalid