LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   mrtg on squid does not work after slackware upgrade (http://www.linuxquestions.org/questions/slackware-14/mrtg-on-squid-does-not-work-after-slackware-upgrade-4175461351/)

nass 05-09-2013 08:05 PM

mrtg on squid does not work after slackware upgrade
 
Hello everyone,
I have recently upgraded some servers to slackware64 14.0.
it looks as if mrtg has stopped reading information off squid correctly and the mrtg graphs have stabilised in their last values.

running
Quote:

mrtg /etc/mrtg/mrtg-squid.cfg
gives the following:
Quote:

root@stargaze:~# mrtg /etc/mrtg/mrtg-squid.cfg
SNMP Error:
no response received
SNMPv1_Session (remote host: "proxy.skails.home" [192.168.1.142].19196)
community: "public"
request ID: 1849215691
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 497.
SNMPGET Problem for cacheServerRequests cacheServerRequests cacheUptime cacheSoftware cacheVersionId on public@proxy.skails.home:19196:::::v4only
at /usr/bin/mrtg line 2330.
Use of uninitialized value $ret[-2] in concatenation (.) or string at /usr/bin/mrtg line 2349.
Use of uninitialized value $ret[-1] in concatenation (.) or string at /usr/bin/mrtg line 2349.
2013-05-10 02:50:26: WARNING: skipping because at least the query for cacheServerRequests on proxy.skails.home did not succeed
2013-05-10 02:50:26: WARNING: no data for cacheServerRequests&cacheServerRequests:public@proxy.skails.home. Skipping further queries for Host proxy.skails.home in this round.
2013-05-10 02:50:36: ERROR: Target[cacheserverrequests][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
2013-05-10 02:50:36: ERROR: Target[cacheserverrequests][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
2013-05-10 02:50:36: ERROR: Target[cacheservererrors][_IN_] ' $target->[1]{$mode} ' did not eval into defined data
The squid.mib file I am using is older but should work with this version of squid. The mid.txt found under /user/share/squid/mib.txt, if used as the replacement for the squid.mib, causes all sort of error (from a different pc - don;t be alarmed):

Quote:

root@halki:/etc/mrtg# mrtg /etc/mrtg/mrtg-squid.cfg
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.4.1.3495.1.5.2.1.2)
SNMPv1_Session (remote host: "halki.dsaconsultants.office" [192.168.18.10].19192)
community: "public"
request ID: 1312127830
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 497.
SNMPGET Problem for cacheClientHttpRequests cacheClientHttpRequests cacheUptime cacheSoftware cacheVersionId on public@halki.dsaconsultants.office:19192:::::v4only
at /usr/bin/mrtg line 2330.
Use of uninitialized value $ret[-2] in concatenation (.) or string at /usr/bin/mrtg line 2349.
Use of uninitialized value $ret[-1] in concatenation (.) or string at /usr/bin/mrtg line 2349.
2013-05-10 03:00:25: WARNING: Expected a number but got '0:00:00'
2013-05-10 03:00:25: WARNING: Expected a number but got '0:00:00'
2013-05-10 03:00:25, Rateup ERROR: /usr/bin/rateup found that cacheserverrequests's log file time of 1368153398 was greater than now (1368144025)
ERROR: Let's not do the time warp, again. Logfile unchanged.
2013-05-10 03:00:25, Rateup ERROR: /usr/bin/rateup found that cacheservererrors's log file time of 1368153398 was greater than now (1368144025)
ERROR: Let's not do the time warp, again. Logfile unchanged.
2013-05-10 03:00:25, Rateup ERROR: /usr/bin/rateup found that cacheserverinoutkb's log file time of 1368153398 was greater than now (1368144025)
ERROR: Let's not do the time warp, again. Logfile unchanged.
anyone else had trouble with migrating their mrtg + squid configuration?

Thank you very much for your help!


All times are GMT -5. The time now is 03:55 AM.