Rights to what? It's pulling info from the stat file, correct? These are the same perms as the rest of the Cacti scriptscrazyfrog wrote:Maybe a userrights issue?
Cacti and Nagios running from different users.
Nagios script request - nagiostats
Moderators: Developers, Moderators
Right, but the "stats file" located in /usr/local/nagios/bin/nagiostat is owned by the nagios user (e.g. nagios) and the apache/cacti user has no right to access this file.sterpstra wrote:Rights to what? It's pulling info from the stat file, correct? These are the same perms as the rest of the Cacti scriptscrazyfrog wrote:Maybe a userrights issue?
Cacti and Nagios running from different users.
I could fix it with a chmod 0777 to /usr/local/nagios/bin/nagiostat. Graphs now getting data:
Hope it helps.09/27/2008 12:31:12 AM - SYSTEM STATS: Time:71.0459 Method:spine Processes:1 Threads:1 Hosts:29 HostsPerProcess:29 DataSources:351 RRDsProcessed:293
09/27/2008 12:26:12 AM - SYSTEM STATS: Time:71.0200 Method:spine Processes:1 Threads:1 Hosts:29 HostsPerProcess:29 DataSources:351 RRDsProcessed:293
09/27/2008 12:21:12 AM - SYSTEM STATS: Time:71.0852 Method:spine Processes:1 Threads:1 Hosts:29 HostsPerProcess:29 DataSources:351 RRDsProcessed:293
09/27/2008 12:20:02 AM - SPINE: Poller[0] Host[1] DS[750] WARNING: Result from SCRIPT not valid. Partial Result: ...
09/27/2008 12:16:11 AM - SYSTEM STATS: Time:70.1103 Method:spine Processes:1 Threads:1 Hosts:29 HostsPerProcess:29 DataSources:351 RRDsProcessed:293
09/27/2008 12:15:02 AM - SPINE: Poller[0] Host[1] DS[750] WARNING: Result from SCRIPT not valid. Partial Result: ...
09/27/2008 12:11:11 AM - SYSTEM STATS: Time:70.1368 Method:spine Processes:1 Threads:1 Hosts:29 HostsPerProcess:29 DataSources:351 RRDsProcessed:293
09/27/2008 12:10:02 AM - SPINE: Poller[0] Host[1] DS[750] WARNING: Result from SCRIPT not valid. Partial Result: ...
09/27/2008 12:06:13 AM - SYSTEM STATS: Time:71.1740 Method:spine Processes:1 Threads:1 Hosts:29 HostsPerProcess:29 DataSources:351 RRDsProcessed:293
09/27/2008 12:05:02 AM - SPINE: Poller[0] Host[1] DS[750] WARNING: Result from SCRIPT not valid. Partial Result: ...
09/27/2008 12:01:16 AM - SYSTEM STATS: Time:75.1582 Method:spine Processes:1 Threads:1 Hosts:29 HostsPerProcess:29 DataSources:351 RRDsProcessed:293
greets
Who is online
Users browsing this forum: No registered users and 1 guest