Hi,
what i want to do is to monitor some of our shells scripts.
for example simple backup scripts:
backup_mongo.sh
backup_postgresql.sh
What i want todo is to monitor if script backup_mongo.sh / backup_postgresql.sh finished successfully.
Create "Graph" where i can see every day marked that mongo/psql was finished 1(ok) / 0 (failed)
Create "Trigger" so it will send warning if mongo/psql was finished 0 (failed)
Was googling like few hours and i wasnt able to do it properly. (i am a noob) Please dont post any links to stackoverflow etc, saw them allready. (still i couldnt get it working)
If can anyone please post real "step by step guide"(for noobs like me). Including changes to my shell scripts, what to do on client (agent) side and Zabbix server side.
Or maybe someone can help me to setup it on teamviewer.
THX for any HELP.
(sorry my english is bad)
what i want to do is to monitor some of our shells scripts.
for example simple backup scripts:
backup_mongo.sh
Code:
#!/bin/bash TIME=`date +%Y-%m-%d` mongodump --host localhost --port 27017 --db mongo --collection profilInstance --out - | gzip > /opt/backup_local/mongodb_$TIME.gz
backup_postgresql.sh
Code:
#!/bin/bash TIME=`date +%Y-%m-%d` pg_dumpall -h localhost -p 5432 -U postgres > /opt/backup_local/all_$TIME.gz
Create "Graph" where i can see every day marked that mongo/psql was finished 1(ok) / 0 (failed)
Create "Trigger" so it will send warning if mongo/psql was finished 0 (failed)
Was googling like few hours and i wasnt able to do it properly. (i am a noob) Please dont post any links to stackoverflow etc, saw them allready. (still i couldnt get it working)
If can anyone please post real "step by step guide"(for noobs like me). Including changes to my shell scripts, what to do on client (agent) side and Zabbix server side.
Or maybe someone can help me to setup it on teamviewer.
THX for any HELP.
(sorry my english is bad)

Comment