Hey Everyone,
So I'm trying to setup a trigger for crashplan. I have a userpreference script that runs and asks crashplan what its status is. I have a grep in that statement that just looks for running
Nothing too fancy. It returns a value back to zabbix of running and all is happy in the world.
Now what I want to do is if crashplan isn't running it returns back an empty string. How can I create a trigger that when it sees anything else other than running for it to fire off.
I created a trigger based off of another thread that looks like this
But since its currently alarming that crashplan is not running (even though it is) I know that my trigger isn't working properly. Thanks.
So I'm trying to setup a trigger for crashplan. I have a userpreference script that runs and asks crashplan what its status is. I have a grep in that statement that just looks for running
Code:
UserParameter=crash.running,su - root -c '/usr/pbi/crashplan-amd64/share/crashplan/bin/CrashPlanEngine status' | grep 'running' | awk '{print $NF}'
Now what I want to do is if crashplan isn't running it returns back an empty string. How can I create a trigger that when it sees anything else other than running for it to fire off.
I created a trigger based off of another thread that looks like this
Code:
{crashplan_1:crash.running.str()}=1
Comment