I wasn't able to get the perl script to work that was posted on this forum, so I tried to find out what was going on. I read the perl-script to see what it was doing and I decided to write the whole thing from scratch in bash.
I took a lot of ideas from the original script, but there are many new ones in my implementation.
Thanks bmcclure for all the ideas...
some major differences:
needs:
The reason why I couldn't get the original script working was probably not the fault of his script but was due to my setup....
Usage:
Create a cronjob where you call the script and give it the zabbix-server
Create a file /etc/assp2zabbix.conf where you put all the ASSP's you want to check.
assp2zabbix -x <assp>
will create a file assp_stat.xml in your home directory
I took a lot of ideas from the original script, but there are many new ones in my implementation.
Thanks bmcclure for all the ideas...
some major differences:
- all bash
- can take a file with several assp's to test
- can create the XML-file using the data it gets from ASSP
- only needs the 'KEYS' that need special handling (CPU average)
- works for old and for new zabbix_sender syntax (senderver18=1)
needs:
- curl
- host
The reason why I couldn't get the original script working was probably not the fault of his script but was due to my setup....
Usage:
Create a cronjob where you call the script and give it the zabbix-server
Code:
#!/bin/bash /usr/local/sbin/assp2zabbix $* 83.130.131.231 10051
Code:
assp1 83.130.131.240 55553 assp2 83.130.131.241 55553 assp3 83.130.131.242 55553 assp4 83.130.131.243 55553 assp5 83.130.131.244 55553
will create a file assp_stat.xml in your home directory
Comment