Graphs not showing any Data

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

Moderators: Developers, Moderators

Kurdt
Posts: 8
Joined: Fri Jul 21, 2006 9:36 am

Post by Kurdt »

Reinhard:
First, thanks for your patience :oops: and all your help,some questions:

1) i deleted poller.php line from /etc/cron.d/cacti should i add cactid ?

2) i made cactid to connect to mysql but the output from cactid is now:
CACTID: Using cactid config file [cactid.conf]
WARNING: Unrecongized directive: SNMP_Ver=2 in cactid.conf
CACTID: Version 0.8.6f starting
CACTID: Host[1] No host availability check possible for '127.0.0.1'
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/linux_memory.pl MemFree:'
CACTID: Host[1] DS[3] WARNING: Result from SCRIPT not valid. Partial Result: ...CACTID: Host[1] DS[3] SCRIPT: perl /usr/share/cacti/site/scripts/linux_memory.pl MemFree:, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/linux_memory.pl MemFree:'
CACTID: Host[1] DS[33] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[1] DS[33] SCRIPT: perl /usr/share/cacti/site/scripts/linux_memory.pl MemFree:, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/linux_memory.pl SwapFree:'
CACTID: Host[1] DS[4] WARNING: Result from SCRIPT not valid. Partial Result: ...CACTID: Host[1] DS[4] SCRIPT: perl /usr/share/cacti/site/scripts/linux_memory.pl SwapFree:, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/linux_memory.pl SwapFree:'
CACTID: Host[1] DS[34] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[1] DS[34] SCRIPT: perl /usr/share/cacti/site/scripts/linux_memory.pl SwapFree:, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/loadavg_multi.pl'
CACTID: Host[1] DS[5] WARNING: Result from SCRIPT not valid. Partial Result: ...CACTID: Host[1] DS[5] SCRIPT: perl /usr/share/cacti/site/scripts/loadavg_multi.pl, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/loadavg_multi.pl'
CACTID: Host[1] DS[35] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[1] DS[35] SCRIPT: perl /usr/share/cacti/site/scripts/loadavg_multi.pl, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/ping.pl 127.0.0.1'
CACTID: Host[1] DS[43] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[1] DS[43] SCRIPT: perl /usr/share/cacti/site/scripts/ping.pl 127.0.0.1, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/unix_processes.pl'
CACTID: Host[1] DS[7] WARNING: Result from SCRIPT not valid. Partial Result: ...CACTID: Host[1] DS[7] SCRIPT: perl /usr/share/cacti/site/scripts/unix_processes.pl, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/unix_processes.pl'
CACTID: Host[1] DS[32] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[1] DS[32] SCRIPT: perl /usr/share/cacti/site/scripts/unix_processes.pl, output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/unix_users.pl '
CACTID: Host[1] DS[6] WARNING: Result from SCRIPT not valid. Partial Result: ...CACTID: Host[1] DS[6] SCRIPT: perl /usr/share/cacti/site/scripts/unix_users.pl , output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/unix_users.pl '
CACTID: Host[1] DS[36] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[1] DS[36] SCRIPT: perl /usr/share/cacti/site/scripts/unix_users.pl , output: U
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/ws_apachestats.pl 127.0.0.1'
CACTID: Host[1] DS[47] WARNING: Result from SCRIPT not valid. Partial Result: ...
CACTID: Host[1] DS[47] SCRIPT: perl /usr/share/cacti/site/scripts/ws_apachestats.pl 127.0.0.1, output: U
CACTID: Time: 0.7701 s, Threads: 1, Hosts: 3
Software Enginner
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Kurdt wrote:1) i deleted poller.php line from /etc/cron.d/cacti should i add cactid ?
Not a good idea. Leave ...poller.php in crontab as it was. Switching between cmd.php and cacti is done ONLY by using the "Settings"!
2) i made cactid to connect to mysql but the output from cactid is now:
CACTID: Using cactid config file [cactid.conf]
WARNING: Unrecongized directive: SNMP_Ver=2 in cactid.conf
Please post the contents of your cactid.conf, omitting all passwords
CACTID: Version 0.8.6f starting
...
CACTID: Host[1] ERROR: Empty result [127.0.0.1]: 'perl /usr/share/cacti/site/scripts/linux_memory.pl MemFree:'
CACTID: Host[1] DS[3] WARNING: Result from SCRIPT not valid. Partial Result:
Using cactid requires all Data Input Methods to use /full/path/to/whatever (in this case perl)
Reinhard
Kurdt
Posts: 8
Joined: Fri Jul 21, 2006 9:36 am

Post by Kurdt »

- I made a backup of cron.d/cacti don't worry :oops:

- this is my cactid.conf
# +-------------------------------------------------------------------------+^
# | Settings |^
# +-------------------------------------------------------------------------+^
# | DB_Host 'localhost' for unix, IP Address for Windows |^
# | DB_Database Database name, typically 'cacti' |^
# | DB_User The user to access the database, typically 'cactiuser' |^
# | DB_Pass The password for the Cacti user |^
# | LogFile UNC path name to the Cacti logfile |^
# +-------------------------------------------------------------------------+^
DB_Host localhost
DB_Database cacti
DB_User cacti
DB_Pass ****
SNMP_Ver 2
- I did not fully understand what you said about data input methods, this is an example of a data input string for "linux memory" in cacti admin config.

Code: Select all

perl <path_cacti>/scripts/linux_memory.pl <grepstr>
am i not using full path ?
Software Enginner
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Kurdt wrote:- I made a backup of cron.d/cacti don't worry :oops:

- this is my cactid.conf
# +-------------------------------------------------------------------------+^
# | Settings |^
# +-------------------------------------------------------------------------+^
# | DB_Host 'localhost' for unix, IP Address for Windows |^
# | DB_Database Database name, typically 'cacti' |^
# | DB_User The user to access the database, typically 'cactiuser' |^
# | DB_Pass The password for the Cacti user |^
# | LogFile UNC path name to the Cacti logfile |^
# +-------------------------------------------------------------------------+^
DB_Host localhost
DB_Database cacti
DB_User cacti
DB_Pass ****
SNMP_Ver 2
AFAIK, there is not such option as "SNMP_Ver"
- I did not fully understand what you said about data input methods, this is an example of a data input string for "linux memory" in cacti admin config.

Code: Select all

perl <path_cacti>/scripts/linux_memory.pl <grepstr>
am i not using full path ?
Please change to

Code: Select all

/full/path/to/your/perl <path_cacti>/scripts/linux_memory.pl <grepstr>
This is required for the latest cactid's (but not yet mentioned on cacti's main site)
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests