Problem with a script

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

Moderators: Developers, Moderators

Post Reply
schani
Posts: 11
Joined: Thu Jun 01, 2006 12:19 pm

Problem with a script

Post by schani »

Hello,

i wrote me a little bash script returning me the temperatures of my 4 drives.

The script give back:
hdc: 48 hde: 52 hdg: 52 hdh: 45

I set up a Data Input Methode to run the script and set 4 Output Fields:
hdc hde hdg hdh

I also set up the Data Template.

But on the Cacti Log i have the Problem:

05/03/2007 01:50:24 PM - CMDPHP: Poller[0] Host[1] DS[59] CMD: /srv/www/htdocs/cacti-admin/scripts/hdtemp.sh, output: U
05/03/2007 01:50:24 PM - CMDPHP: Poller[0] Host[1] DS[59] WARNING: Result from CMD not valid. Partial Result: hdc: 48 hde: 52 hdg:

Whats wrong with my Result of the hdtemp.sh Script?

Thanks for help

Christian
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

See first link of my signature for some hints on creating own scripts.
HTH
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests