Hi,
I’m trying to get two timetick values to compare them. It would be possible just to get both values and do the comparison in an alert also men I’m not getting that to work either. The value will show if a change has been made to the running config on a comware switch but the change hasn’t been saved. If hh3cCfgRunSavedLast has a lower value than hh3cCfgRunModifiedLast, an alarm will generated.
This is what I put in the discover .yaml file but I’m not sure I found the right way (apparently I didn’t since it doesn’t work):
mib: HH3C-SYS-MAN-MIB
count:
data:
-
oid: hh3cCfgRunSavedLast
value: hh3cCfgRunSavedLast
num_oid: .1.3.6.1.4.1.25506.2.4.1.1.2.0
descr: RunSavedLast
group: Switch configuration
-
oid: hh3cCfgRunModifiedLast
value: hh3cCfgRunModifiedLast
num_oid: .1.3.6.1.4.1.25506.2.4.1.1.1.0
descr: RunModifiedLast
group: Switch configuration
Nobody knows, or it’s not possible to retrieve timeticks to do a compare?
Hi,
if the values you want to compare are graphed, then in most cases the last value is stored in database.
So it should be possible in most cases to create an alert rule for it.
But i’m not sure if this values are stored by default. Are they timestamps?
Maybe it would be possible, going over graphing them as Custom OID and then building an Alert out of them
The values are timeticks so graphing isn’t of interest in this case. I just need to read these two values and save them in the database. The values can be read on all comware based switches (HPE, Huawei, etc). Custom OID is deprecated as far as I can see and also, timetick isn’t implemented. I don’t know where to go from here. In all other monitoring systems I’ve worked with, I can solve this very easy so I thought it would be as easy in LibreNMS also. I’m totally ok with reading both values to store them in the database and then use a macro to do the comparison.