View Full Version : How to check SWITCH is alive
hi all.
I'm just trying to use zabbix. I want to know how to find out the status of the SWITCH, whether he's alive or dead??
I use the SWITCH AT-8500
SNMP v2
Calimero
31-08-2009, 09:20
Depends on how you define dead and alive.
I assume there are OIDs telling you whether ports are up or down.
And you can create a data with .nodata() to make sure device is answering SNMP queries.
I mean how to know a switch is alive or dead, not the ports of the switch is.
Calimero
31-08-2009, 14:15
ping ?
monitoring whether it responds to SNMP queries (as I said above) ?
You define what "dead" is and then tell zabbix how to monitor it.
If you aren't specific, don't expect a definitive answer.
for the example in monitoring PC
{HOSTNAME} is unreachable
can cause:
- power is switch off
- UTP cable is unplug
Calimero
01-09-2009, 08:47
for the example in monitoring PC
{HOSTNAME} is unreachable
can cause:
- power is switch off
- UTP cable is unplug
Well it's the other way around, power off or network down may trigger "server is unreachable".
Maybe you should try monitoring response to ICMP ping ? Is that what you want ?
I've tried using icmpping.
configure
item
create items
but why the status "not Suported
Calimero
01-09-2009, 09:02
Did you set item type to "Simple check" ?
yes of course...
but in the error column value:
"/usr/sbin/fping: [2] No such file or directory"
Calimero
01-09-2009, 10:04
Mhh... did you install fping in the first place ?
Did you set FpingLocation= in zabbix_server.conf ?
yes i did
after work, the value of icmping never change always 0
Calimero
01-09-2009, 14:11
Mhh ... can you show us what perms fping has ?
ls -l /usr/sbin/fping
-rwxr-xr-x 1 root root 26322 2009-09-01
But now I was change to
-rwxrwxrwx 1 zabbix zabbix 26332
but is not work too
Calimero
02-09-2009, 12:59
But now I was change to
-rwxrwxrwx 1 zabbix zabbix 26332
but is not work too
fping must be setuid root.
chown root:root /usr/sbin/fping
chmod 4755 /usr/sbin/fping
fping must be setuid root.
chown root:root /usr/sbin/fping
chmod 4755 /usr/sbin/fping
That didnt solve my problem.
I have the same problem.
In my error column i see "/tmp/zabbix_server_16319.pinger: [13] Permission denied"
Almost tried everything in this forum... Please help
Thanks brow its work.
perms /usr/sbin/fping is
-rwxrwxrwx 1 root root
:D:D:D
Thanks brow its work.
perms /usr/sbin/fping is
-rwxrwxrwx 1 root root
:D:D:D
That didn't solve my problem.
Still get this error in Zabbbix : /tmp/zabbix_server_16319.pinger: [13] Permission denied
Anyone? Please help
can I see all your configuration file
zabbix_server.conf??
can I see all your configuration file
zabbix_server.conf??
Here it is:
# 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 outgoing connections
#SourceIP=
# Listen interface for trapper. Trapper will listen on all network interfaces
# if this parameter is missing.
#ListenIP=127.0.0.1
# 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 300
#TrapperTimeout=5
# After how many seconds of unreachability treat a host as unavailable
#UnreachablePeriod=45
# How often check host for availability during the unavailability period
#UnavailableDelay=60
# Name of PID file
PidFile=/var/run/zabbix-server/zabbix_server.pid
# Name of log file
# If not set, syslog is used
LogFile=/var/log/zabbix-server/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=/etc/zabbix/alert.d/
# 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'). Default is 60 seconds.
#PingerFrequency=60
# Database host name
# Default is localhost
#DBHost=localhost
# Database name
# SQLite3 note: path to database file must be provided. DBUser and DBPassword are ignored.
DBName=zabbix
# Database user
DBUser=root
# Database password
# Comment this line if no password used
DBPassword=
# Connect to MySQL using Unix socket?
#DBSocket=/tmp/mysql.sock
how about
perms /usr/sbin/fping
??
why
# Database user
DBUser=root
set to zabbix
how about
perms /usr/sbin/fping
??
why
# Database user
DBUser=root
set to zabbix
-rwxrwxrwx 1 root root 35320 Mar 15 17:43 /usr/sbin/fping
the DBUser is now set to zabbix ;)
Still getting this error, i'am really confused... Did/does anyone have the same problem?
When i login as zabbix on my CentOS, i can run fping without problem!
Error message on zabbix:
/tmp/zabbix_server_16748.pinger: [13] Permission denied
Still getting this error, i'am really confused... Did/does anyone have the same problem?
When i login as zabbix on my CentOS, i can run fping without problem!
Error message on zabbix:
/tmp/zabbix_server_16748.pinger: [13] Permission denied
Please! Anyone? Really need this working!
Still getting this error, i'am really confused... Did/does anyone have the same problem?
When i login as zabbix on my CentOS, i can run fping without problem!
Error message on zabbix:
/tmp/zabbix_server_16748.pinger: [13] Permission denied
Bump....Come on people...
benito103e
06-07-2010, 15:05
Hi,
I've the same problem
zabbix_server_32541.pinger: [13] Permission denied
Have you solved this?
I think i've the good rights ?
lrwxrwxrwx 1 root root 12 mai 20 17:38 /usr/sbin/fping
Hi,
I've the same problem
zabbix_server_32541.pinger: [13] Permission denied
Have you solved this?
I think i've the good rights ?
lrwxrwxrwx 1 root root 12 mai 20 17:38 /usr/sbin/fping
Hi, yes its solved, when I reinstalled version 1.8.2 to a new server.
If you running zabbix as root, it schould do it, but if you running it as zabbix user, try to chown root:zabbix
benito103e
06-07-2010, 15:53
Thanks for your answered
I tried it, I tried a lot of configuration .. and it doesnt work...
And I can make a fping from my server.....
fouuuu I didn't know : make a ping will be so difficult...
Thanks for your answered
I tried it, I tried a lot of configuration .. and it doesnt work...
And I can make a fping from my server.....
fouuuu I didn't know : make a ping will be so difficult...
What is your "/tmp" directory permission?
benito103e
07-07-2010, 11:28
Waww O_O !!
Thanks a lot, I just made a :
chmod 777 -R /tmp
And it works.
But why? what was the reason of the problam? (fping use /tmp? )
Waww O_O !!
Thanks a lot, I just made a :
chmod 777 -R /tmp
And it works.
But why? what was the reason of the problam? (fping use /tmp? )
Great :)
Zabbix Server is using the /tmp folder to put the pinger instance on the folder, don't ask me why :)
benito103e
07-07-2010, 14:48
Depends on how you define dead and alive.
I assume there are OIDs telling you whether ports are up or down.
And you can create a data with .nodata() to make sure device is answering SNMP queries.
Hi, I tried to check the access to a OID with a .nodata() trigger
But when I don't receive data my item switch to "not supported" and my trigger don't send me the problem...
benito103e
07-07-2010, 14:53
Great :)
Zabbix Server is using the /tmp folder to put the pinger instance on the folder, don't ask me why :)
Thanks, I would have become crazy without this information.