Can you send me the output of 'wget -O - http://localhost/server-status?auto'?
Ad Widget
Collapse
More Apache Monitoring
Collapse
X
-
still cant figure it out why it doesnt work.
the configuration of the host:
[ATTACH]2717[/ATTACH]
and when i look at the hosts items, it just tells me that its not suppoted
[ATTACH]2718[/ATTACH]
the crontab call i use is:
* * * * * /root/zabbix_scripts/fetch.py -z MONITORING -o TS -c TS
do you see any problem?!Comment
-
Hi, thanks for the answer, it was a apache permission problem, now the output is quite similar that the FireMail one.Can you send me the output of 'wget -O - http://localhost/server-status?auto'?
Although in the configuration of items of zabbix the apache items appear with status Active and no Error, but they dont appear in Latest Data./usr/bin/python /etc/zabbix/ZabbixApacheUpdater.py -c 192.168.200.21 - z 192.168.200.10
zabbix_sender [14157]: DEBUG: Answer [{
"response":"success",
"info":"Processed 0 Failed 13 Total 13 Seconds spent 0.000926"}]
Info from server: "Processed 0 Failed 13 Total 13 Seconds spent 0.000926"
sent: 13; skipped: 0; total: 13Last edited by Akao; 23-03-2010, 09:55.Comment
-
yes - i am not the only one anymore
are you sure the status of the items of the server you assigned the template to is active? In the template itself they are active, when i assign them to a server they become inactive / not supported (as you can see in the screenshot posted above) after 5 minutesComment
-
Yes, here is a print screen, i added the template some days ago and continue active but the items dont appear in latest data.yes - i am not the only one anymore
are you sure the status of the items of the server you assigned the template to is active? In the template itself they are active, when i assign them to a server they become inactive / not supported (as you can see in the screenshot posted above) after 5 minutes

Some news, i realized that zabbix agent port is 10050 and the default port of the script is 10051.
So i put /usr/bin/python /etc/zabbix/ZabbixApacheUpdater.py -c 192.168.200.21 - z 192.168.200.10 -q 10050 and now the output is:
But all continues the same in Zabbix/usr/bin/python /etc/zabbix/ZabbixApacheUpdater.py -c 192.168.200.21 - z 192.168.200.10 -q 10050
zabbix_sender [14339]: DEBUG: Answer []
sent: 13; skipped: 0; total: 13
In crontab i have * * * * * /usr/bin/python /etc/zabbix/ZabbixApacheUpdater.py -c 192.168.200.21 - z 192.168.200.10 -q 10050 > /dev/null 2>&1Last edited by Akao; 23-03-2010, 10:40.Comment
-
Some news, i realized that zabbix agent port is 10050 and the default port of the script is 10051.
So i put /usr/bin/python /etc/zabbix/ZabbixApacheUpdater.py -c 192.168.200.21 - z 192.168.200.10 -q 10050 and now the output is:
But all continues the same in Zabbix
In crontab i have * * * * * /usr/bin/python /etc/zabbix/ZabbixApacheUpdater.py -c 192.168.200.21 - z 192.168.200.10 -q 10050 > /dev/null 2>&1not better here ZBX_NOTSUPPORTEDCode:MONITORING niko # /root/zabbix_scripts/fetch.py -z MONITORING -o 192.168.0.11 -c 192.168.0.11 -q 10050 zabbix_sender [3285]: DEBUG: Answer [ZBX_NOTSUPPORTED] sent: 20; skipped: 0; total: 20 MONITORING niko # /root/zabbix_scripts/fetch.py -z MONITORING -o TS -c TS -q 10050 zabbix_sender [3297]: DEBUG: Answer [ZBX_NOTSUPPORTED] sent: 20; skipped: 0; total: 20
Comment
-
New x file case, call Mulder. It suddenly began working for me. But I dont know what i have touched.

I checked the path to zabbix_sender, i had it in /usr/local/bin and i put in /usr/bin and /usr/sbin but it didnt change anything.
I remove the template, i put it again...after some minutes looking for more info, i look into zabbix and the apache stats were there.Comment
-
-
That's really weird. I wish I knew why that was happening... If it starts happening again you could try changing the Zabbix daemon to debug mode and checking it's logs for why it's refusing the data. In fact it may already be in the normal logs.New x file case, call Mulder. It suddenly began working for me. But I dont know what i have touched.

I checked the path to zabbix_sender, i had it in /usr/local/bin and i put in /usr/bin and /usr/sbin but it didnt change anything.
I remove the template, i put it again...after some minutes looking for more info, i look into zabbix and the apache stats were there.
-PaulComment
-
Debug Logs
Check and see if there are any hints in the Zabbix Server logs. If not would it be possible to switch the daemon to debug mode? If so send me a copy of the debug logs after running it. You can email me directly using my name at gpmidi.net.not better here ZBX_NOTSUPPORTEDCode:MONITORING niko # /root/zabbix_scripts/fetch.py -z MONITORING -o 192.168.0.11 -c 192.168.0.11 -q 10050 zabbix_sender [3285]: DEBUG: Answer [ZBX_NOTSUPPORTED] sent: 20; skipped: 0; total: 20 MONITORING niko # /root/zabbix_scripts/fetch.py -z MONITORING -o TS -c TS -q 10050 zabbix_sender [3297]: DEBUG: Answer [ZBX_NOTSUPPORTED] sent: 20; skipped: 0; total: 20
If this debug logs don't say why we can modify the program to not delete the file it sends. That will let us see exactly what it's refusing to send.
-PaulComment
-
hi paul,Check and see if there are any hints in the Zabbix Server logs. If not would it be possible to switch the daemon to debug mode? If so send me a copy of the debug logs after running it. You can email me directly using my name at gpmidi.net.
If this debug logs don't say why we can modify the program to not delete the file it sends. That will let us see exactly what it's refusing to send.
-Paul
i sent you the debug log since the server logs dont show anything.
Maybe my setup is just weird or the agentd isnt correctly configured?
We have X servers - each running agentd.
The server "MONITORING" (DNS via /etc/hosts: "MONITORING", local IP Adress: 192.168.0.10) runs the zabbix_server which uses the DB on "TS" (DNS via /etc/hosts: "TS", local IP Adress: 192.168.0.11) to store the information. The web frontend is also located on "TS".
Heres the configuration of the zabbix_server on "MONITORING"
Heres the configuration of the zabbix_agentd on "TS"# This is config file for ZABBIX server process
# To get more information about ZABBIX,
# go http://www.zabbix.com
############ GENERAL PARAMETERS #################
# This defines unique NodeID in distributed setup,
# Default value 0 (standalone server)
# This parameter must be between 0 and 999
#NodeID=0
# Number of pre-forked instances of pollers
# Default value is 5
# This parameter must be between 0 and 255
#StartPollers=5
# Number of pre-forked instances of IPMI pollers
# Default value is 0
# This parameter must be between 0 and 255
#StartIPMIPollers=0
# Number of pre-forked instances of pollers for unreachable hosts
# Default value is 1
# This parameter must be between 0 and 255
#StartPollersUnreachable=1
# Number of pre-forked instances of trappers
# Default value is 5
# This parameter must be between 0 and 255
#StartTrappers=5
# Number of pre-forked instances of ICMP pingers
# Default value is 1
# This parameter must be between 0 and 255
#StartPingers=1
# Number of pre-forked instances of discoverers
# Default value is 1
# This parameter must be between 0 and 255
#StartDiscoverers=1
# Number of pre-forked instances of HTTP pollers
# Default value is 1
# This parameter must be between 0 and 255
#StartHTTPPollers=1
# Listen port for trapper. Default port number is 10051. This parameter
# must be between 1024 and 32767
#ListenPort=10051
# Source IP address for outgouing connections
SourceIP=192.168.0.10
# Listen interface for trapper. Trapper will listen all network interfaces
# if this parameter is missing.
ListenIP=192.168.0.10
# How often ZABBIX will perform housekeeping procedure
# (in hours)
# Default value is 1 hour
# Housekeeping is removing unnecessary information from
# tables history, alert, and alarms
# This parameter must be between 1 and 24
#HousekeepingFrequency=1
# How often ZABBIX will try to send unsent alerts
# (in seconds)
# Default value is 30 seconds
SenderFrequency=30
# Uncomment this line to disable housekeeping procedure
#DisableHousekeeping=1
# Specifies debug level
# 0 - debug is not created
# 1 - critical information
# 2 - error information
# 3 - warnings (default)
# 4 - for debugging (produces lots of information)
DebugLevel=3
# Specifies how long we wait for agent response (in sec)
# Must be between 1 and 30
Timeout=5
# Specifies how many seconds trapper may spend processing new data
# Must be between 1 and 30
#TrapperTimeout=5
# After how many seconds of unreachability treat a host as unavailable
#UnreachablePeriod=45
# How ofter check host for availability during the unreachability period
#UnavailableDelay=15
# How ofter check host for availability during the unavailability period
#UnavailableDelay=60
# Name of PID file
PidFile=/var/run/zabbix/zabbix_server.pid
# Name of log file
# If not set, syslog is used
LogFile=/var/log/zabbix/zabbix_server.log
# Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
#LogFileSize=1
# Location for custom alert scripts
AlertScriptsPath=/home/zabbix/bin/
# Location of external scripts
#ExternalScripts=/etc/zabbix/externalscripts
# Location of fping. Default is /usr/sbin/fping
# Make sure that fping binary has root permissions and SUID flag set
#FpingLocation=/usr/sbin/fping
# Location of fping6. Default is /usr/sbin/fping6
# Make sure that fping binary has root permissions and SUID flag set
#Fping6Location=/usr/sbin/fping6
# Temporary directory. Default is /tmp
#TmpDir=/tmp
# Frequency of ICMP pings (item keys 'icmpping' and 'icmppingsec'). Defauls is 60 seconds.
#PingerFrequency=60
# Database host name
# Default is localhost
DBHost=192.168.0.11
# Database name
# SQLite3 note: path to database file must be provided. DBUser and DBPassword are ignored.
DBName=XXXXXXXXX
# Database user
DBUser=XXXXXXX
# Database password
# Comment this line if no password used
DBPassword=XXXXXXX
# Connect to MySQL using Unix socket?
#DBSocket=/tmp/mysql.sock
# This is config file for zabbix_agentd
# To get more information about ZABBIX, go http://www.zabbix.com
############ GENERAL PARAMETERS #################
# List of comma delimited IP addresses (or hostnames) of ZABBIX servers.
# No spaces allowed. First entry is used for sending active checks.
# Note that hostnames must resolve hostname->IP address and
# IP address->hostname.
Server=192.168.0.10
# Server port for sending active checks
#ServerPort=10051
# Unique hostname. Required for active checks.
Hostname=TS
# Listen port. Default is 10050
#ListenPort=10050
# IP address to bind agent
# If missing, bind to all available IPs
ListenIP=192.168.0.11
# Source IP address for outgouing connections
SourceIP=192.168.0.11
# Number of pre-forked instances of zabbix_agentd.
# Default value is 5
# This parameter must be between 1 and 16
StartAgents=5
# How often refresh list of active checks. 2 minutes by default.
#RefreshActiveChecks=120
# Disable active checks. The agent will work in passive mode listening server.
#DisableActive=1
# Enable remote commands for ZABBIX agent. By default remote commands disabled.
#EnableRemoteCommands=1
# Specifies debug level
# 0 - debug is not created
# 1 - critical information
# 2 - error information
# 3 - warnings (default)
# 4 - for debugging (produces lots of information)
DebugLevel=3
# Name of PID file
PidFile=/var/run/zabbix/zabbix_agentd.pid
# Name of log file.
# If not set, syslog will be used
LogFile=/var/log/zabbix/zabbix_agentd.log
# Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
#LogFileSize=1
# Spend no more than Timeout seconds on processing
# Must be between 1 and 30
Timeout=3
####### USER-DEFINED MONITORED PARAMETERS #######
# Format: UserParameter=<key>,<shell command>
# Note that shell command must not return empty string or EOL only
#UserParameter=system.test,who|wc -l
### Set of parameter for monitoring MySQL server (v3.23.42 and later)
### Change -u<username> and add -p<password> if required
#UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
#UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
#UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
#UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
#UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
#UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
#UserParameter=mysql.version,mysql -VComment

Comment