Script/Command is not consistent

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
ehelm
Posts: 16
Joined: Tue Dec 20, 2005 9:45 pm

Post by ehelm »

Tony,
We have considered there could be a file lock problem or that the cat command is executed as the file is being written to, which would explain the partial results. We have changed the way the script runs on the remote box a bit to see if that is the problem. I'll update after we let it run a few cycles.

/Eric
User avatar
ehelm
Posts: 16
Joined: Tue Dec 20, 2005 9:45 pm

Post by ehelm »

We totally disabled updating the txt file on the remote server for about 25 minutes. Still the poller reported "Result from SCRIPT not valid. Partial Result:".
How much debug would you like to see? I have all of it from a couple of polls during this time.

/Eric
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Question concerning ssh...

Is there a WAN link between the 2 servers?

Concerning the logs, can you email me a single run from the poller in full debug when this occurs. Please include the hostid and name of the affected host. Also, include a link to this post to remind me of what the email is about.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
ehelm
Posts: 16
Joined: Tue Dec 20, 2005 9:45 pm

Post by ehelm »

rony wrote:Question concerning ssh...

Is there a WAN link between the 2 servers?
No, 100base-TX LAN.

When run manually, the entire ssh session takes less than 1 second to cat the file on the remote box.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Any updates? Did you figure out what was wrong?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
ehelm
Posts: 16
Joined: Tue Dec 20, 2005 9:45 pm

Post by ehelm »

Unfortunately, no. I am at a loss.
We had changed the order that the script ran, so to see if there was a filelock, but that didn't change anything. In fact, we disabled the script from updating the txt file so cacti should have been able to cat the file and just graph the same data every poll, but it still reported "partial results".

Did you have a change to look at my email with the Debug logs?

/Eric
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest