@scottalanmiller Thankyou .
I was just testing moving the VM to the new storage , moved the VM to the new storage , changed the mac id and it works good , Now i can take snap since the vm resides in the new storage with enough space for snapshot
@scottalanmiller Thankyou .
I was just testing moving the VM to the new storage , moved the VM to the new storage , changed the mac id and it works good , Now i can take snap since the vm resides in the new storage with enough space for snapshot
Hi All,
Testing Zabbix 3.0.9 , Configured zabbix-server , configured agent in another simple lamp machine.
Added http , mysql ,sshd and OS Linux template for the host , and server is detecting changes and service restarts ect.
But when tried to configure configuration > Action getting an error .
The action tries to execute the remote command and fails with the error "Cannot establish SSH session: Failed getting banner"
Even tried to create an action in zabbix-server itself(By enabling zabbix-agent in zabbix server and created an action to restart sshd service if went down) . But again the same error reoccurs.
Any body have faced the same issue ?
Hi Guys,
Have a project , which i am working on
I have a couple of servers based on linux OS.
Users will leave backups as tar.gz files back and i need to find out and remove them.
Need a script which searches and lists the tar.gz files in servers.
And have written a script for this , but this will only give the path and filename.
#Tar Files in the server.
rm -rf /home/tar.gz.txt
cd /home
find . -size +1M -name "*.tar.gz" > /home/tar.gz.txt && mail -s 'Tar_File Report' email@mydomain
< /home/tar.gz.txt
The output which i am planning to get is like the below .
List of tar files with path from each server as a consolidated e-mail
An e-mail should be triggered every month (a cron can be set for this)
The email should consist of the file path and a short note about the number of files and total size for the tar.gz files.
can i get some help on this please .
@dafyre : Thankyou so Much because ..Yesssss That did the job ...Remote command got executed in the host when selected the TYPE as custom script and services which went down is restarting in 60 seconds as configured.
Another thing i am testing now is , Since the Action Section uses zabbix-agent to run the custom script type to execute remote command ; what if the zabbix-agent itself went down or had some issue and it coudnt respond to server checks ? . Here this scenario (Choosing the TYPE as custom script)will fail for all other Actions . IN that case i need to fix the Remote command execution via SSH and also Test the GLOBAL SCRIPT Type to check zabbix-agent service.
Since i am planning to Implement this Tool in my Production Environment , need to think and test every possible scenarios where server or its critical services can get screwed up !!! And now next global script and again ssh ..
Hi Team,
Back in Mangolassi after some time
This time i have come with something related to Xen Server.
I have a xen server with 2 TB HDD. (Default Local disk)
Inside the XenServer Host i have a developement server which occupies 1.6 TB space .
My problem is that i cannot take a snapshot of the Developent server because of its space , 2 TB Disk is already occupied with 1.6 TB server files !
Error displayed : The specified storage space have insufficient space.
Now i have added a 3 TB HDD as a second Local disk (Local disk 2) by thinking that the extra space will solve my issue , But still the same issue continues.
(Image attached : Local storage is the default storage and local storage 2 LACIE HDD is the newly added one .)
The tick mark in the Local Storage makes it as the default storage repository . If i make the Newly added Local storage as default i wont be able to access current server i guess.
Is there any way to configure in such a way that the snapshots can be taken to the New Local disk i have added.
Hi I am back with a new help request :).
Currently working on a project in which i need to upgrade my XenServer 6.5 to Latest xenserver 7.
I am planning to run the xenserver from a usb drive. just wanted to know if anyone have tried this.
Thanks,
Ajin
@thwr : Ok so for executing my plan of running XEN fron USB stick needs some more Reading and R&D as mentioned by @scottalanmiller.
So i am holding it back for now as my main priority is to upgrade Xen Server to 7 , just tried to run it from USB .
Need to invest more time for this USB project .
As my priority is upgarding Xen Server , concentrating on it now , I will start a new thread for Upgrading Xen and roll back options if any upgrade error happens..
Thanks a lot for all the valuble suggestions and support for this one .
Wil be back in this thread soon.
@Mike-Davis : My Idea was to create a monitoring / alerting system and also minimize downtime for critical issue like Apache , Mysql and other critical server services which affects server perfomance, This action section actuality does it all since it can both send alerts via email and sms and also execute remote commands.
But of-course, only if it is configured correctly and works well
Thank-you all for the valuble suggetions
Hi Team,
Back in Mangolassi after some long time
This time with a git query
My project files (repository) is only 144.3 MB , but the build artifacts generated is in size of 27.1 GB . so the total Storage used is for a single project is 27.2 GB ! .
This is the same case for many other projects in git as well .
so what if i removed the build artifacts , will it cause any issue to the running projects .
@JaredBusch : Yea i agree but the only template present in Zabbix-server to monitor DB servers for Linux is "Template App MySQL".
Zabbix forums also says that "Template App MySQL". is used to monitor MariaDB databases.
@JaredBusch : yes , I have mariadb. (Server version: 5.5.52-MariaDB MariaDB Server)
Is there any compatibility issue with zabbbix-server and mariadb ?
@dafyre :Ran Into another problem Now.
Mysql service up/down status is not displayed in host status Tab. But in the graph part all mysql data is fetched from client machine and displayed in Zabbix server .like Mysql Bandwidth ,Mysql Uptime , Mysql operations ect .
Since the service up/down is not being displayed in host status , Cannot execute Actions (remote command & notifications)
All other services like Apache , ssh , telnet , cpu hike , Disk usage , Network usage .. every actions to the above said services are being fetched by zabbix-agent and displayed in zabbix-server GUI.
Checked the Zabbix-server log ,
Data for mysql services are being logged , But not displaying the service UP or down in server GUI.
LOG:
[root@Z3 ~]# tail -f /var/log/zabbix/zabbix_server.log | grep mysql
2259:20170521:151451.735 Sending [mysql.status[Questions]
2261:20170521:151452.738 In substitute_key_macros() data:'mysql.status[Slow_queries]'
2261:20170521:151452.738 End of substitute_key_macros():SUCCEED data:'mysql.status[Slow_queries]'
2261:20170521:151452.738 In get_value() key:'mysql.status[Slow_queries]'
2261:20170521:151452.738 In get_value_agent() host:'2.test.com' addr:'10.132.166.113' key:'mysql.status[Slow_queries]' conn:'unencrypted'
2261:20170521:151452.739 Sending [mysql.status[Slow_queries]
2262:20170521:151453.743 In substitute_key_macros() data:'mysql.status[Uptime]'
2262:20170521:151453.743 End of substitute_key_macros():SUCCEED data:'mysql.status[Uptime]'
2262:20170521:151453.744 In get_value() key:'mysql.status[Uptime]'
2262:20170521:151453.744 In get_value_agent() host:'2.test.com' addr:'10.132.166.113' key:'mysql.status[Uptime]' conn:'unencrypted'
2262:20170521:151453.744 Sending [mysql.status[Uptime]
@dafyre : Thankyou so Much because ..Yesssss That did the job ...Remote command got executed in the host when selected the TYPE as custom script and services which went down is restarting in 60 seconds as configured.
Another thing i am testing now is , Since the Action Section uses zabbix-agent to run the custom script type to execute remote command ; what if the zabbix-agent itself went down or had some issue and it coudnt respond to server checks ? . Here this scenario (Choosing the TYPE as custom script)will fail for all other Actions . IN that case i need to fix the Remote command execution via SSH and also Test the GLOBAL SCRIPT Type to check zabbix-agent service.
Since i am planning to Implement this Tool in my Production Environment , need to think and test every possible scenarios where server or its critical services can get screwed up !!! And now next global script and again ssh ..
@Mike-Davis : My Idea was to create a monitoring / alerting system and also minimize downtime for critical issue like Apache , Mysql and other critical server services which affects server perfomance, This action section actuality does it all since it can both send alerts via email and sms and also execute remote commands.
But of-course, only if it is configured correctly and works well
@dafyre : both the Server and ServerActive items are set to the IP address of zabbix server.
Remote Commands are also enabled.
Attaching screenshot for action conditions & operations.
@wirestyle22 said in Zabbix 3.0.9:
setsebool -P httpd_can_network_connect 1
[root@2 ssh]# setsebool -P httpd_can_network_connect 1
setsebool: SELinux is disabled.