Missing rrd-files

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

Moderators: Developers, Moderators

Herman
Posts: 21
Joined: Tue Aug 23, 2005 6:24 am

Missing rrd-files

Post by Herman »

Hi

I am running Cacti 0.8.6c with rrd-tool 1.0.49 on Solaris. I wish to report on MS Exchange OID's and so I defined the necessary data source/query and template. The graph is nicely there with the variable/OID I wish to poll. Nevertheless, the data is not present. After checking a few things, the rrd-file that should have been created, is not there in the filesystem whereas cacti named it in the datasource.

Anyone an idea?

Thanks a lot.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Is any valid data being returned from the OID (turn on debugging and look in the log) ?
phelix
Posts: 1
Joined: Thu Aug 25, 2005 4:16 pm

Post by phelix »

This exact same thing is happening to me. I have just installed this and there isn't a single rrd being created in the rra/ folder. The only error message i get in my apache log file is *.rrd': No such file or directory.

I also have Graph Debugging on and this is the error that i get next to the red X

ERROR: opening '/usr/local/src/cacti-0.8.6f/rra/sbs02_snmp_oid_28.rrd': No such file or directory

The only thing that i get in the cacti log is the info from the poller.php What could possibly be going on that is not letting the system create rrd files?
jef
Posts: 17
Joined: Thu Aug 25, 2005 3:27 pm
Location: ./

Post by jef »

i had this at install time,
i think most my issues were around folder permissions for the user running the poller, crontab config and output legibility too..

When i want to confirm data source problems, i use > tcpdump -n host 172.25.2.63 and port 161 -s 200
and run php poller.php.


Jef
Herman
Posts: 21
Joined: Tue Aug 23, 2005 6:24 am

Debug

Post by Herman »

BSOD2600 wrote:Is any valid data being returned from the OID (turn on debugging and look in the log) ?
Ok, but which debugging exactly? (sorry, I am rather new to Cacti)

Running the dataquery in verbose gives me the right value for the requested OID.
Herman
Posts: 21
Joined: Tue Aug 23, 2005 6:24 am

Post by Herman »

BSOD2600 wrote:Is any valid data being returned from the OID (turn on debugging and look in the log) ?
I put the poller in debug and verified the contents for the device in question.
(see attached). There is not even reference to the necessary rrd file although the data source for this item clearly shows <path_rra>/sgntstr14_xchgpercentcpu_301.rrd.
Attachments
debug.txt
(0 Bytes) Downloaded 141 times
Herman
Posts: 21
Joined: Tue Aug 23, 2005 6:24 am

Post by Herman »

Herman wrote:
BSOD2600 wrote:Is any valid data being returned from the OID (turn on debugging and look in the log) ?
I put the poller in debug and verified the contents for the device in question.
(see attached). There is not even reference to the necessary rrd file although the data source for this item clearly shows <path_rra>/sgntstr14_xchgpercentcpu_301.rrd.
Attachments
debug.txt
(8.64 KiB) Downloaded 554 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

08/26/2005 09:05:19 AM - CMDPHP: Poller[0] Host[13] CMD: perl /opt/cacti/cacti-0.8.6c/scripts/w32_exch_query_isstats.pl SGNTSTR14 get ActiveUserCount,UserCount, output: U

There is your problem and why a rrd file has not been created. No valid data has been returned.

If you manually run that command, does it return anything? You might need to run dcomcnfg and change your security settings so it will work for remote users.
Herman
Posts: 21
Joined: Tue Aug 23, 2005 6:24 am

Post by Herman »

BSOD2600 wrote:08/26/2005 09:05:19 AM - CMDPHP: Poller[0] Host[13] CMD: perl /opt/cacti/cacti-0.8.6c/scripts/w32_exch_query_isstats.pl SGNTSTR14 get ActiveUserCount,UserCount, output: U

There is your problem and why a rrd file has not been created. No valid data has been returned.

If you manually run that command, does it return anything? You might need to run dcomcnfg and change your security settings so it will work for remote users.
Thanks for your reply, but that is a downloaded template, not my data query. Actually I wish to get my data with a plain SNMP query, no script/cmd.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It should still create the rrd file with unknown data. Please run "php poller.php" from the command line and paste it's output into the forum (attachment). You can have the setting set to LOW for this test.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Herman
Posts: 21
Joined: Tue Aug 23, 2005 6:24 am

Post by Herman »

TheWitness wrote:It should still create the rrd file with unknown data. Please run "php poller.php" from the command line and paste it's output into the forum (attachment). You can have the setting set to LOW for this test.

TheWitness
Thanks for looking into this. The requested PHP-output is attached. For some reason it complaints about "Can't open perl script "/opt/cacti/cacti-0.8.6c/scripts/w32_exch_query_isstats.pl": No such file or directory". But that was an imported template which has nothing to do with the snmp query I am running and which is not the problem.

I use SNMP or SNMP query as Data Input Method and use a simple query <path_cacti>/resource/snmp_queries/snmp_exchange.xml to fetch the Exchange CPU OID. Nothing fancy. Only the rrd file that was named by cacti is not in the rra directory.
Attachments
poller_php.txt
(12.93 KiB) Downloaded 160 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

for the host that is giving you problems, run the following:

php <path_cacti>/cmd.php <host_id> <host_id>

Run it in DEBUG. You will be enlightened.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Herman
Posts: 21
Joined: Tue Aug 23, 2005 6:24 am

Post by Herman »

OUTPUT OF THE COMMAND:

$ php /opt/cacti/cacti-0.8.6c/cmd.php 10.1.1.14
#!/usr/bin/php -q

Notice: Undefined variable: polling_items in /opt/cacti/cacti-0.8.6c/cmd.php on line 97


I checked "debug" for the log as you said. Now, I do not even get any entry in the log for the target host apparently.

I am still not "enlightened"...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You did not follow the syntax TheWitness gave you. Host_ID is interal to cacti, no its IP. Look through the log file for which host(s) are giving you problems. Pay attention to what host number is. Then re-run the command TheWitness told you.
Herman
Posts: 21
Joined: Tue Aug 23, 2005 6:24 am

Post by Herman »

BSOD2600 wrote:You did not follow the syntax TheWitness gave you. Host_ID is interal to cacti, no its IP. Look through the log file for which host(s) are giving you problems. Pay attention to what host number is. Then re-run the command TheWitness told you.
Xcuse me, but what is the syntax, there is 2 times <host_id> in the command, which is which? The troublesome host should be "Host[13]". :-?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests