Is there a guide on writing custom commands? Not plugins! I found tons of guides on writing plugins. For example, I have this command, pulled from the Monitoring tab of the Reconfigure Service option beneath the Service Status Detail page:
That command uses SNMP to monitor my UPS. The way it works now that if the Runtime Remaining timeticks are over 360,000 I will get a warning email, and if timeticks go over 180,000, I will get a critical warning. What I want is the opposite. If the Runtime Remaining timeticks drop below 360,000 (1 hour), I will get a warning. If the remaining time drops below 30mins, I'll get a critical warning. I feel like there should be a flag that reverses the checks such that they test a value against "lesser than" boundaries rather than "greater than" boundaries.check_xi_service_snmp! -p 161 -o 'Ups_Time_Remaining' -P 3 --seclevel=authPriv --secname='My_SNMP_Accout' --authproto=SHA --authpasswd='Strong_Password_Here' --privpasswd='Strong_Password_2_Here' -x aes -l 'Battery Runtime Remaining' -m Correct-MIB-Table -w 360000 -c 180000
I looked on the Knowledge Base, but I didn't see anything there.