Executing scipt over ssh - NaN values in rrd file

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
jmishka
Posts: 1
Joined: Thu Aug 11, 2005 9:37 am

Executing scipt over ssh - NaN values in rrd file

Post by jmishka »

Hello,

I have written a very simple scipt to check the numer of users on the remote host. The scipt works fine and runs as the cacti user as well.

The poller gets a valid return value. (24 users) But I get all NaN values in my rrd file.

08/11/2005 10:35:15 AM - CMDPHP: Poller[0] Host[14] DS[99] CMD: /usr/local/share/cacti/scripts/execute_remote_script.sh, outpu
t: 24

08/11/2005 10:35:15 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting

08/11/2005 10:35:15 AM - CMDPHP: Poller[0] Time: 40.6992 s, Theads: N/A, Hosts: 12

08/11/2005 10:35:15 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/toldp01_remote_
users_99.rrd --template 1123770874:24

I tried making the data imput method, data template, graph template, data source, and graph by hand. I've also tried taking the 'Logged in Users' templates and duplicating them and making it just use my script.

If I leave the 'logged in users' template alone and just change the script it calls it works fine. However, I need to be able to add new scripts.

Thanks,

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

Post by rony »

User permission issue? Or path issues?
[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]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests