Rāda ziņas ar etiķeti zabbix. Rādīt visas ziņas
Rāda ziņas ar etiķeti zabbix. Rādīt visas ziņas

otrdiena, 2013. gada 6. augusts

How to monitor any remote port from windows machine

Utility to check remote server ports for windows machines.
Link to zipped executable file>>> . I need to ensure one windows host always see other host's specific port and we already had zabbix. I was searching  solutions and found one with telnet but it was very complex dos programming to get back number besides telnet would be security breach. That was secure system and I need to ensure packets could always be processed, so to monitor server availability from zabbix server was not solution because host was in DMZ and it needs permanent connection to another server in internet. From unix it is pretty simply to write shell application I annoyed to our programmer about my problem and he did a brilliant solution, he just made little application which returns 1 if remote port is available or 0 if it is not. Utility is simple- just write remote host address space and port. It returns 1 after 3 seconds, some servers won't accept connection at once so I think it is a great tool. From command line you write

CheckPort.exe 127.0.0.1 7778 
1
CheckPort.exe 127.0.0.1 8080
0

piektdiena, 2013. gada 2. augusts

Zabbix monitor samba share

Zabbix can monitor samba deamon but cant say for sure, if samba is available from network. You can monitor if samba alive with such a script. So in /etc/zabbix/external directory must be file samba_big.sh with content below.

host=1.2.3.4
rez=`nmap --host-timeout 15000  -p 445  $host | grep 445/tcp | cut -f 2 -d ' '`
if [ "$rez" != "open" ]; then
  echo "0"
else
      echo "1"
fi


pirmdiena, 2012. gada 29. oktobris

Lack of RAM and swap space on Zabbix server

I have heavy loaded Zabbix server, we had 2 GB and it appears we need more, so we added 1 GB RAM but things get worse- swap file is about to end- now what? Zabbix server reports it have no free swap space. Zabbix server must not be stopped because several admins are monitoring country wide systems.

Thanks god I found good manual in internet. http://www.susegeek.com/general/how-to-add-additional-swap-area-in-suseopensuse/ most commands are taken from there. So first check out usage of swap.
free -tom
then check where swap files are located
swapon -s
I use command to look where can I place swapfile
df -h
Command to create 1 GB swap file where /var/swap_1 are place and name of swapfile
dd if=/dev/zero of=/var/swap_1 bs=1024 count=1000000
now we can turn that file onto swapfile
mkswap /var/swap_1
no say to OS to put swap on that file
swapon /var/swap_1
to check out if swap working
free -tom
to make those changes permanent you have to  change fstab file
vi /etc/fstab
 and add something like this
/var/swap_1          swap                 swap       defaults              0 0
"Problemo solved" says penguin. Check out Zabbix console to see if swap file is in use.



trešdiena, 2012. gada 10. oktobris

Zabbix 2 new interface for snmp monitoring

In Zabbix 2 there are added new interface, if you have hosts imported from old Zabbix, they might not to show snmp data because you have to add snmp interface. So the whole point was to add ip adress in interface 2 ASAP to a lot of hosts.