#!/usr/bin/pdmenu -c #Note that the above bang-path isn't required, but it lets you run this #file directly as a sort of pdmenu script. preproc: echo "Title: Execute menu" color:desktop:blue:blue color:title:red:white color:base:blue:white #Define the main menu: menu:main:Main Menu exec:_0. Create database backup (MySQL - zabbix):p:/usr/bin/sudo rsnapshot weekly 2>&1 | rsnapreport.pl | mail -s"Zabbix MySQL backups" username@example.com show:_1. Service control... >::service_control show:_2. Edit configuration files... >::conf_edit show:_9. Show other menu... >::other nop exec:_e. Edit this menu::sudo nano /etc/pdmenurc exit:_q. Exit menu:service_control:Services:List general service show:_0. Manage Zabbix Server service... >::service_zabbixs show:_1. Manage Zabbix Agent service... >::service_zabbixa show:_2. Manage Zabbix Proxy service... >::service_zabbixp show:_3. Manage Apache2 service... >::service_apache2 show:_4. Manage MySQL service... >::service_mysql nop exit:_q. Exit menu:service_zabbixs:Zabbix Server:Manage Zabbix Server service exec:_0. Restart Zabbix Server service:p:service zabbix-server restart exec:_1. Force-reload Zabbix Server service:p:service zabbix-server force-reload exec:_2. Start Zabbix Server service:p:service zabbix-server start exec:_3. Stop Zabbix Server service:p:service zabbix-server stop nop exit:_q. Exit menu:service_zabbixa:Zabbix Agent:Manage Zabbix Agent service exec:_0. Restart Zabbix Agent service:p:service zabbix-agent restart exec:_1. Force-reload Zabbix Agent service:p:service zabbix-agent force-reload exec:_2. Start Zabbix Agent service:p:service zabbix-agent start exec:_3. Stop Zabbix Agent service:p:service zabbix-agent stop nop exit:_q. Exit menu:service_zabbixp:Zabbix Proxy:Manage Zabbix Proxy service exec:_0. Restart Zabbix Proxy service:p:service zabbix-proxy restart exec:_1. Force-reload Zabbix Proxy service:p:service zabbix-proxy force-reload exec:_2. Start Zabbix Proxy service:p:service zabbix-proxy start exec:_3. Stop Zabbix Proxy service:p:service zabbix-proxy stop nop exit:_q. Exit menu:service_apache2:Apache2:Manage Apache2 service exec:_0. Show Apache2 status:display:service apache2 status exec:_1. Restart Apache2 service:p:service apache2 restart exec:_2. Reload Apache2 service:p:service apache2 reload exec:_3. Start Apache2 service:p:service apache2 start exec:_4. Stop Apache2 service:p:service apache2 stop nop exit:_q. Exit menu:service_mysql:MySQL:Manage MySQL service exec:_0. Show MySQL status:display:service mysql status exec:_1. Restart MySQL service:p:service mysql restart exec:_2. Reload MySQL service:p:service mysql reload exec:_3. Start MySQL service:p:service mysql start exec:_4. Stop MySQL service:p:service mysql stop nop exit:_q. Exit menu:conf_edit:Editor:Configuration files exec:_0. Edit Zabbix Server::sudo nano /usr/local/etc/zabbix_server.conf exec:_1. Edit Zabbix Agent::sudo nano /usr/local/etc/zabbix_agentd.conf exec:_2. Edit Zabbix Proxy::sudo nano /usr/local/etc/zabbix_proxy.conf exec:_3. Edit Apache2 configuration::sudo nano /etc/apache2/apache2.conf exec:_4. Edit MySQL configuration::sudo nano /etc/mysql/my.cnf exec:_5. Edit PHP configuration::sudo nano /etc/php5/apache2/php.ini exec:_6. Edit Samba configuration::sudo nano /etc/samba/smb.conf nop exit:_q. Exit menu:other:Other:Other Menu # This ties in with Debian's autogenerated Apps menu. show:_0. Debian Menus..::/Debian exec:_1. Change your password:p:passwd exec:_2. Directory listing:display:ls -l exec:_3. Change directory:edit,setenv:echo PWD=~set to?:~ exec:_4. Who's online?:truncate:echo "These users are online:";w nop exit:_q. Exit # If you edit this file, you will probably not want to remove the following # section, which makes menus of Debian apps available. preproc: \ if tty|egrep -q "tty[0-9]|vc/[0-9]|console"; then \ cat /var/lib/pdmenu/pdmenurc.vc; \ elif [ "$DISPLAY" ]; then \ cat /var/lib/pdmenu/pdmenurc.x11; \ else \ cat /var/lib/pdmenu/pdmenurc; \ fi