Cacti doesn't like a slash in the output

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Cacti doesn't like a slash in the output

Post by BSOD2600 »

I wrote a little script (which I'll soon make public) that takes some values out of a text file and spits them out so Cacti / RRDtool can latch onto them. It seems cacti doesn't like a / to be in the text. Sure I can fix my script, but any reason why it doesn't?

Code: Select all

02/18/2005 08:20:38 PM - CMDPHP: Poller[0] Host[1] CMD: perl c:\auntie\cacti/scripts/hddhealth.pl MAXTOR 6L020L1.txt 661210778200.hdd, output: RawReadErrorRate:100 SpinUpTime:81 Start/StopCount:100 ReallocatedSectorCount:100 SeekErrorRate:100 PowerOnHoursCount:73 SpinRetryCount:100 CalibrationRetryCount:100 PowerCycleCount:100 SoftReadErrorRate:100 Temperature:84 HardwareECCrecovered:100 ReallocationEventCount:100 CurrentPendingSectorCoun:100 Off-lineScanUncorrectable:100 UltraATACRCErrorCount:199
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'in:493716038' [map in->traffic_in]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'out:786959373' [map out->traffic_out]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'RawReadErrorRate:100' [map RawReadErrorRate->hdd_RawReadErrorRat]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'SpinUpTime:81' [map SpinUpTime->hdd_SpinUpTime]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'ReallocatedSectorCount:100' [map ReallocatedSectorCount->hdd_ReallSectCnt]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'SeekErrorRate:100' [map SeekErrorRate->hdd_SeekErrorRate]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'PowerOnHoursCount:73' [map PowerOnHoursCount->hdd_PowerOnHoursCou]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'SpinRetryCount:100' [map SpinRetryCount->hdd_SpinRetryCount]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'CalibrationRetryCount:100' [map CalibrationRetryCount->hdd_CalibrationRetr]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'PowerCycleCount:100' [map PowerCycleCount->hdd_PowerCycleCount]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'Temperature:84' [map Temperature->hdd_Temperature]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'ReallocationEventCount:100' [map ReallocationEventCount->hdd_ReallEntCnt]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'CurrentPendingSectorCoun:100' [map CurrentPendingSectorCoun->hdd_CurrentPendSect]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'Off-lineScanUncorrectable:100' [map Off-lineScanUncorrectable->hdd_OfflineScanUnc]
02/18/2005 08:20:38 PM - POLLER: Poller[0] Parsed MULTI output field 'UltraATACRCErrorCount:199' [map UltraATACRCErrorCount->hdd_UltraATACRCErro]
Brashquido
Cacti User
Posts: 99
Joined: Sat Feb 28, 2004 10:16 pm
Location: Melbourne, Australia
Contact:

Post by Brashquido »

Are you using cactid or cmd.php as your Poller? I had similar problems here, except with a backslash and found it worked fine using cmd.php, but cactid spat it.
Dominic Ryan
www.iis-aid.com
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Am using cmd.php.

I fixed my script to remove the / from the fields.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests