I tried this several ways but still not able to figure this out. I added the device fine with -
php -q add_device.php --description="routerTwo" --ip="192.168.100.3"
--template="5" --version="1" --community="public"
Adding routerTwo (192.168.100.3) as "Cisco Router" using SNMP v1 with community "public"
Success - new device-id: (5)
Template 5 is Cisco SAA templates provided here -
http://forums.cacti.net/about4136-0-asc-0.html
I can use the templates fine from the GUI, the graphs looks great but from CLI, I can not associate the variables as it only lists
php -q add_graphs.php --graph-type=ds --graph-template-id=36 --host-id=5 --snmp-query-id=10 --snmp-query-type-id=25
--snmp-field=rttMonCtrlAdminStatus --snmp-value=1
but it tells me it does not know about rttMonCtrlAdminStatus
When I look at this device from the GUI, I see only "SNMP - Interface Statistics" under Associated Data Queries in Console - devices (edit). I think my problem is that the other data query, Cisco SAA Statistics is not associated with this device. I tried command -
For my other router that I added from the cli, I can see this snmp as a valid one -
php -q add_graphs.php --list-snmp-fields --host-id=3
Known SNMP Fields for host-id 3: (name)
ifAlias
ifDescr
ifHwAddr
ifIndex
ifIP
ifName
ifOperStatus
ifSpeed
ifType
rttIndex
rttMonCtrlAdminRttType
rttMonCtrlAdminStatus
rttMonCtrlAdminTag
rttMonCtrlAdminThreshold
rttMonEchoAdminCodecType
rttMonEchoAdminPktDataRequestSize
rttMonEchoAdminPrecision
rttMonEchoAdminTargetAddressString
rttMonEchoAdminTargetPort
rttMonEchoAdminURL
rttMonLatestHTTPErrorSenseDescription
rttMonLatestHTTPOperMessageBodyOctets
rttMonLatestJitterOperNTPState
rttMonLatestJitterOperNumOfRTT
rttMonLatestRttOperSense
for this device with id 5, it only lists the top 9 generic snmp mibs -
rtpnmlv-sumantest:/opt/cacti-0.8.7b/cli# php -q add_graphs.php --list-snmp-fields --host-id=5
Known SNMP Fields for host-id 5: (name)
ifAlias
ifDescr
ifHwAddr
ifIndex
ifIP
ifName
ifOperStatus
ifSpeed
ifType
If I can get device 5 to understand the SAA mibs, this should work.
Thank you for your input.
scripts to add a device and assign graph (IP SLA templates)
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Fri Jun 20, 2008 11:13 pm
scripts to add a device and assign graph (IP SLA templates)
- Attachments
-
- this screenshot shows that this device does not have the data query "Cisco IP SLA Statistics" as one of the associated data query for this device. I can do this from the GUI but I want to do this from CLI.
- cacti.JPG (119.87 KiB) Viewed 3242 times
-
- Posts: 4
- Joined: Fri Jun 20, 2008 11:13 pm
If I can somehow get my template be the default instead of "1) SNMP - Interface Statistics" under associated data query/data query name, my issue would be resolved. I am adding the device as a "cisco router" but I am not sure how to make a device use my data query. I am using --template to specify ip sla(saa) template but that does not make any difference
Who is online
Users browsing this forum: No registered users and 7 guests