Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
KnEBeL
Posts: 14 Joined: Wed May 14, 2008 9:36 am
Post
by KnEBeL » Wed May 14, 2008 9:41 am
Hello,
I have some problems since i upgrade my cacti version to the newest one.
OS: Ubuntu 6.06.2 LTS
cacti: 0.8.7b
When i change my poller from cmd.php to spine, i have all my graphs with just one line.
I looked at the logfiles which tell me that spine only reads the first output from scripts.
Code: Select all
05/14/2008 02:39:20 PM - SPINE: Poller[0] Host[8] DS[102] SCRIPT: /usr/share/cacti/scripts/xxx yyy zzz, output: 1:123.456
I changed nothing else, and when i switch back to cmd.php i have all my graphs right and all the output from the script is read.
What can be wrong?
Regards
KnEBeL
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Thu May 15, 2008 1:25 pm
Please show us the output from that script when running it manually from cli
Reinhard
KnEBeL
Posts: 14 Joined: Wed May 14, 2008 9:36 am
Post
by KnEBeL » Fri May 16, 2008 2:03 am
Hello Reinhard,
here my output from cli, done with user cacti
Code: Select all
sh-3.1$ ./script.sh input1 input2
1:141.138 4:23.281 5:173.584 6:320.104 7:6.668
sh-3.1$
KnEBeL
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Sun May 18, 2008 7:55 am
Hmm, I never tried to use numbers as the name of the output fields. Would it be possible to change to pure text? See examples at 1st link of my sig
Reinhard
KnEBeL
Posts: 14 Joined: Wed May 14, 2008 9:36 am
Post
by KnEBeL » Mon May 19, 2008 2:48 am
Hello Reinhard,
i changed now to pure text, same behavior.
Only the first field is shown in log and used interpreted from spine.
I changed short back to cmd.php, all five output fields are used.
Same from cli, script works
Any other ideas? Do you need some more logs?
Regards
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Mon May 19, 2008 8:57 am
This is which version of spine?
Reinhard
KnEBeL
Posts: 14 Joined: Wed May 14, 2008 9:36 am
Post
by KnEBeL » Mon May 19, 2008 9:01 am
spine version 0.8.7a
KnEBeL
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Mon May 19, 2008 9:07 am
Runs well for us on RHEL 4. Did you compile it on your own or download it somewhere?
Reinhard
KnEBeL
Posts: 14 Joined: Wed May 14, 2008 9:36 am
Post
by KnEBeL » Mon May 19, 2008 9:13 am
I downloaded the sources from cacti.net site, and compiled then on my own
I remember i had to do something like
libtoolize --copy --force
autoreconf --force --install --symlink
But then it was installed successfully.[/code]
TheWitness
Developer
Posts: 17007 Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:
Post
by TheWitness » Sun May 25, 2008 10:30 am
Spine is very sensitive to user output. It will not wait on either a "\n" or a "\r". Therefore, you must write the data at once. The following is not acceptable:
Code: Select all
echo "1:stuff";
do something;
echo " 2:morestuff";
do something else;
echo " 3:doevenmore\n"
exit;
TheWitness
KnEBeL
Posts: 14 Joined: Wed May 14, 2008 9:36 am
Post
by KnEBeL » Mon May 26, 2008 5:55 am
Hi TheWitness,
that matches my script.
I'll manage my output now different.
thx a lot
KnEBeL
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Mon May 26, 2008 12:30 pm
TheWitness wrote: Spine is very sensitive to user output. It will not wait on either a "\n" or a "\r". Therefore, you must write the data at once. The following is not acceptable:
Code: Select all
echo "1:stuff";
do something;
echo " 2:morestuff";
do something else;
echo " 3:doevenmore\n"
exit;
TheWitness
Oh, oh, sometimes it's just that easy. And I was pulling my hair out on it
Reinhard
Users browsing this forum: No registered users and 2 guests