[rrd-users] Re: Help with running remstats
Thomas Erskine
thomas.erskine at sympatico.ca
Thu Mar 13 15:47:05 MET 2003
At 09:36 2003-03-12, gab.seun jones.ewulomi wrote:
>
>Hi Thomas,
>
>1)My web-server is run as root? How do I change it otherwise
You *really* don't want to run your web-server as root. Started by root,
of course, so that it can bind to port 80. Since you don't say which
web-server you're using, I'm going to assume apache. Edit the httpd.conf
file and look for the "User" and "Group" lines.
>2)I did as you suggested. I went into the directory where unpacked it
>remstats and typed
>"make owner"
Note. This only fixes the permissions on files. If you run any other
remstats programs as root after that, you'll be right back where you
started with files owned by root under the remstats tree.
>3)Yes I did create a remstats user. I have also created a host config
>file(by your direction) using "new-config".
>which then created the pseudo-host _remstats_
>4) I then tried to use the "new-ping-hosts" to create a host. Im I using the
>"new-ping-hosts" in the correct way. can you help if possible.
>
>(output below)
>./new-ping-hosts -d -f /var/remstats/etc/config/
That's incorrect. The debug flag wants a number after it and Getopt::Std
is trying to take "-f" as the level, which will be interpreted as
0. Almost all the remstats programs will accept a "-h" flag (for help) to
give you the syntax of the command-line.
>/var/remstats/etc/config/hostnames
Perhaps you meant that to be on the same line? Doesn't matter. What you
typed is completely wrong. New-ping-hosts (like all the new-xxx-hosts
programs) wants to see a group-name to add the hosts to like:
$ new-ping-hosts groupname hostfile
It will use "groupname" as the name of the group for the hosts to belong to
and read hostnames from "hostfile". Unless you've overridden it in
configure, /var/remstats/etc/config is the default config dir and you don't
need to specify it. If you want to turn debugging on, use "-d 1", not "-d".
>Argument "-f" isn't numeric in numeric gt (>) at
>/var/remstats/lib/remstats.pl line 2715, <FILE> line 1.
>DEBUG: unknown host aberdeen; attempting to continue
>DEBUG: unknown host bristol; attempting to continue
>
>/var/remstats/etc/config/hostnames = the file that contains hostnames
>this however created a host in the /var/remstats/etc/config/hosts directory
>called aberdeen and bristol. But they didnt look right. I then edited with
>the correct ip address, group etc
>
>5)I then tried to run "run-remstats" logging in as remstats user (su -
>remstats). But I get the error below
Nope. Always run "check-config" after changing the configuration. If it
won't accept it, nothing else will either.
>Thank you very much for your reply.
>[root at remstats-server bin]# ./run-remstats
>
>Errors from ping-collector:
>
>defined(@array) is deprecated at /var/remstats/bin/ping-collector line 75.
> (Maybe you should just omit the defined()?)
Yeah. You've got a more recent perl than was available when I built that
version of remstats. You can ignore them for now. I'm going to do a
release within a week on sourceforge.
>Errors from port-collector:
>
>defined(@array) is deprecated at /var/remstats/bin/port-collector line 75.
> (Maybe you should just omit the defined()?)
>
>Errors from snmp-route-collector:
>
>defined(@array) is deprecated at /var/remstats/bin/snmp-route-collector line
>64.
> (Maybe you should just omit the defined()?)
>6)The version of remstats Im running is remstats-1.00a4
>I was using the latest version(remstats-1.0.9b) but decided to drop down to
>the 1.00a4 version because I was getting to many errors.
>
>My apologies on the long reply. But your help or anyones help will be
>greatly appreciated
>regards
>
>
>
>
>
>>From: Thomas Erskine <thomas.erskine at sympatico.ca>
>>To: "gab.seun jones.ewulomi"
>><seun_ewulomi at hotmail.com>,rrd-users at list.ee.ethz.ch
>>Subject: [rrd-users] Re: Help with running remstats
>>Date: Wed, 12 Mar 2003 05:57:21 -0500
>>
>>At 05:17 2003-03-11, gab.seun jones.ewulomi wrote:
>> >Hi,
>> >
>> >Can anyone help me. I cant seem to get remstats to work. Iv followed the
>> >documentation in and out and I still dont know what is wrong.
>> >
>> >Any help will be greatly appreciated
>> >
>> ><<<<<<Error below>>>>>>>>>>>>>
>> >[root at remstats-server bin]# /usr/bin/run-remstats
>>
>>You're going to have problems running remstats as root. You don't run your
>>web-server as root do you? Go back to the directory where you unpacked it
>>and , as root, type "make owner". Then only run remstats programs as the
>>remstats user. I'm assuming that you did create one.
>>
>> >run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_
>>is
>> >missing; skipped
>>
>>This will happen if you don't have a host config file for the pseudo-host
>>_remstats_. Since "new-config" will create this, I don't know how you
>>avoided getting it created? How did you create your configuration
>>directory? Did you use "new-config /var/remstats/etc/config" or wherever
>>you told it to expect configuration directories? Which version of remstats
>>are you installing from?
>>
>> >run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_
>>is
>> >missing; skipped
>> >run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_
>>is
>> >missing; skipped
>> >run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_
>>is
>> >missing; skipped
>> >
>> >Errors from check-config:
>> >
>> >check-config: ERROR: read_config_hosts(hosts): Aberdeen: unknown line:
>> >contact Services
>> >check-config: ERROR: read_config_hosts(hosts): www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >check-config: ABORT: 2 errors found
>> >
>> >Errors from ping-collector:
>> >
>> >defined(@array) is deprecated at /var/remstats/bin/ping-collector line
>>75.
>> > (Maybe you should just omit the defined()?)
>> >ping-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line:
>> >contact Arup-ITS-Services
>> >ping-collector: ERROR: read_config_hosts(hosts):
>>www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >ping-collector: ABORT: 2 errors found
>> >updater: ERROR read_config_hosts(hosts): Aberdeen: unknown line: contact
>> > Arup-ITS-Services
>> >updater: ERROR read_config_hosts(hosts): www.theweathernetwork.com wants
>>to
>> >be in group Other Servers, but that's not listed in groups
>> >updater: ABORT: 2 errors found
>> >
>> >Errors from port-collector:
>> >
>> >defined(@array) is deprecated at /var/remstats/bin/port-collector line
>>75.
>> > (Maybe you should just omit the defined()?)
>> >port-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line:
>> >contact Arup-ITS-Services
>> >port-collector: ERROR: read_config_hosts(hosts):
>>www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >port-collector: ABORT: 2 errors found
>> >updater: ERROR read_config_hosts(hosts): Aberdeen: unknown line: contact
>> > ITS-Services
>> >updater: ERROR read_config_hosts(hosts): www.theweathernetwork.com wants
>>to
>> >be in group Other Servers, but that's not listed in groups
>> >updater: ABORT: 2 errors found
>> >
>> >Errors from snmp-route-collector:
>> >
>> >defined(@array) is deprecated at /var/remstats/bin/snmp-route-collector
>>line
>> >64.
>> > (Maybe you should just omit the defined()?)
>> >snmp-route-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown
>> >line: contact ITS-Services
>> >snmp-route-collector: ERROR: read_config_hosts(hosts):
>> >www.theweathernetwork.com wants to be in group Other Servers, but that's
>>not
>> >listed in groups
>> >snmp-route-collector: ABORT: 2 errors found
>> >
>> >Errors from log-collector:
>> >
>> >defined(@array) is deprecated at /var/remstats/bin/log-collector line
>>68.
>> > (Maybe you should just omit the defined()?)
>> >log-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line:
>> >contact ITS-Services
>> >log-collector: ERROR: read_config_hosts(hosts):
>>www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >log-collector: ABORT: 2 errors found
>> >
>> >Errors from unix-status-collector:
>> >
>> >defined(@array) is deprecated at /var/remstats/bin/unix-status-collector
>> >line 66.
>> > (Maybe you should just omit the defined()?)
>> >unix-status-collector: ERROR: read_config_hosts(hosts): Aberdeen:
>>unknown
>> >line: contact ITS-Services
>> >unix-status-collector: ERROR: read_config_hosts(hosts):
>> >www.theweathernetwork.com wants to be in group Other Servers, but that's
>>not
>> >listed in groups
>> >unix-status-collector: ABORT: 2 errors found
>> >
>> >Errors from snmp-collector:
>> >
>> >defined(@array) is deprecated at /var/remstats/bin/snmp-collector line
>>68.
>> > (Maybe you should just omit the defined()?)
>> >snmp-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown line:
>> >contact ITS-Services
>> >snmp-collector: ERROR: read_config_hosts(hosts):
>>www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >snmp-collector: ABORT: 2 errors found
>> >
>> >Errors from nt-status-collector:
>> >
>> >defined(@array) is deprecated at /var/remstats/bin/nt-status-collector
>>line
>> >83.
>> > (Maybe you should just omit the defined()?)
>> >nt-status-collector: ERROR: read_config_hosts(hosts): Aberdeen: unknown
>> >line: contact Arup-ITS-Services
>> >nt-status-collector: ERROR: read_config_hosts(hosts):
>> >www.theweathernetwork.com wants to be in group Other Servers, but that's
>>not
>> >listed in groups
>> >nt-status-collector: ABORT: 2 errors found
>> >updater: ERROR read_config_hosts(hosts): Aberdeen: unknown line: contact
>> > Arup-ITS-Services
>> >updater: ERROR read_config_hosts(hosts): www.theweathernetwork.com wants
>>to
>> >be in group Other Servers, but that's not listed in groups
>> >updater: ABORT: 2 errors found
>> >
>> >Errors from ping-monitor:
>> >
>> >ping-monitor: read_config_hosts(hosts): Aberdeen: unknown line: contact
>> >ITS-Services
>> >ping-monitor: read_config_hosts(hosts): www.theweathernetwork.com wants
>>to
>> >be in group Other Servers, but that's not listed in groups
>> >ping-monitor: ABORT: 2 errors found
>> >
>> >Errors from alert-monitor:
>> >
>> >alert-monitor: ERROR: read_config_hosts(hosts): Aberdeen: unknown line:
>> >contact ITS-Services
>> >alert-monitor: ERROR: read_config_hosts(hosts):
>>www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >alert-monitor: ABORT: 2 errors found
>> >
>> >Errors from graph-writer:
>> >
>> >graph-writer: ERROR: read_config_hosts(hosts): Aberdeen: unknown line:
>> >contact ITS-Services
>> >graph-writer: ERROR: read_config_hosts(hosts): www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >graph-writer: ABORT: 2 errors found
>> >
>> >Errors from snmpif-setspeed:
>> >
>> >snmpif-setspeed: ERROR: read_config_hosts(hosts): Aberdeen: unknown
>>line:
>> >contact ITS-Services
>> >snmpif-setspeed: ERROR: read_config_hosts(hosts):
>>www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >snmpif-setspeed: ABORT: 2 errors found
>> >
>> >Errors from datapage-interfaces:
>> >
>> >datapage-interfaces: ERROR: read_config_hosts(hosts): Aberdeen: unknown
>> >line: contact ITS-Services
>> >datapage-interfaces: ERROR: read_config_hosts(hosts):
>> >www.theweathernetwork.com wants to be in group Other Servers, but that's
>>not
>> >listed in groups
>> >datapage-interfaces: ABORT: 2 errors found
>> >
>> >Errors from datapage-inventory:
>> >
>> >Undefined subroutine &main::error called at
>>/var/remstats/lib/remstats.pl
>> >line 1772, <CONFIG> line 4.
>> >
>> >Errors from datapage-status:
>> >
>> >ERROR: read_config_hosts(hosts): Aberdeen: unknown line: contact
>> >Arup-ITS-Services
>> >ERROR: read_config_hosts(hosts): www.theweathernetwork.com wants to be
>>in
>> >group Other Servers, but that's not listed in groups
>> >ABORT: 2 errors found
>> >
>> >Errors from view-writer:
>> >
>> >view-writer: ERROR: read_config_views: sample-with-template: no such
>>view
>> >template as 'sample-template'; ignored
>> >view-writer: ERROR: read_config_hosts(hosts): Aberdeen: unknown line:
>> >contact ITS-Services
>> >view-writer: ERROR: read_config_hosts(hosts): www.theweathernetwork.com
>> >wants to be in group Other Servers, but that's not listed in groups
>> >view-writer: ABORT: 2 errors found
>> >run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_
>>is
>> >missing; skipped
>> >run-remstats: ERROR: put_status: directory /var/remstats/data/_remstats_
>>is
>> >missing; skipped
>> >
>> >regards,
>> >seun
>> >
>> >_________________________________________________________________
>> >MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
>> >
>> >--
>> >Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
>> >Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
>> >Archive http://www.ee.ethz.ch/~slist/rrd-users
>> >WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
>>
>>Thomas Erskine <thomas.erskine at sympatico.ca> +1.613.591.8490
>>
>>
>>--
>>Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
>>Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
>>Archive http://www.ee.ethz.ch/~slist/rrd-users
>>WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
>>
>
>
>_________________________________________________________________
>Stay in touch with absent friends - get MSN Messenger
>http://messenger.msn.co.uk
>
>
Thomas Erskine <thomas.erskine at sympatico.ca> +1.613.591.8490
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list